-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsrl_ruby.gemspec
78 lines (70 loc) · 2.24 KB
/
srl_ruby.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# frozen_string_literal: true
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'srl_ruby/version'
# Implementation module
module PkgExtending
def self.pkg_files(aPackage)
file_list = Dir[
'.rubocop.yml',
'.rspec',
'.yardopts',
'appveyor.yml',
'cucumber.yml',
'Gemfile',
'Rakefile',
'CHANGELOG.md',
'LICENSE.txt',
'README.md',
'srl_ruby.gemspec',
'bin/*.srl',
'bin/*.rb',
'features/*.*',
'features/**/*.*',
'features/**/**/*.features',
'lib/*.*',
'lib/**/*.rb',
'spec/**/*.rb',
'srl_test/**/*.*',
'templates/*.erb'
]
aPackage.files = file_list
aPackage.test_files = Dir['spec/**/*_spec.rb']
aPackage.require_path = 'lib'
end
def self.pkg_documentation(aPackage)
aPackage.rdoc_options << '--charset=UTF-8 --exclude="examples|spec"'
aPackage.extra_rdoc_files = ['README.md']
end
end # module
Gem::Specification.new do |spec|
spec.name = 'srl_ruby'
spec.version = SrlRuby::VERSION
spec.authors = ['Dimitri Geshef']
spec.email = ['[email protected]']
spec.description = <<-DESCR
A compiler and library that transforms highly readable Simple Regex Language
patterns into regular expressions.
DESCR
spec.summary = <<-SUMMARY
A parser for the [Simple Regex Language](https://simple-regex.com/).
It translates patterns expressed in SRL into plain Ruby Regexp objects
or in regex literals. Use self-documenting, human readable, SRL expressions
to craft your new awesome regular expressions.
SUMMARY
spec.homepage = 'https://github.com/famished-tiger/SRL-Ruby'
spec.license = 'MIT'
spec.bindir = 'bin'
spec.executables << 'srl2ruby'
spec.require_paths = ['lib']
PkgExtending.pkg_files(spec)
PkgExtending.pkg_documentation(spec)
spec.required_ruby_version = '>= 2.5.0'
# Runtime dependencies
spec.add_dependency 'rley', '~> 0.8.11'
# Development dependencies
spec.add_development_dependency 'bundler', '>= 2.2.0'
spec.add_development_dependency 'cucumber', '>= 3.1.2'
spec.add_development_dependency 'rake', '>= 12.0'
spec.add_development_dependency 'rspec', '~> 3.0'
end