-
Notifications
You must be signed in to change notification settings - Fork 3
/
rulebook.gemspec
54 lines (44 loc) · 2.16 KB
/
rulebook.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
Gem::Specification.new do |s|
s.author = "Ryan Scott Lewis"
s.email = "[email protected]"
s.homepage = "http://github.com/c00lryguy/rulebook"
s.description = "Allows you to define a set of 'rules' or dynamic methods to apply to a class."
s.summary = "Define methods with regex for dynamic methods."
s.require_paths = ["lib"]
s.name = File.basename(__FILE__, ".gemspec")
s.version = File.read("VERSION")
# VERSIONING
# Some people like to use a YAML file to display the version, some like CSV,
# others might just add a constant set to a version string, some (Rack) might
# even have an array splitting the version into parts.
# Just edit the above line appropriately.
# An easy thing to do is set a constant within your app to a version string
# and use it in here
# Add directories you *might* use in ALL projects.
s.files = [File.basename(__FILE__)] + Dir['lib/**/*'] + Dir['bin/**/*'] + Dir['test/**/*'] + Dir['examples/**/*'] + Dir['spec/**/*']
# Add files you *might* use in ALL projects!
%W{Gemfile.lock README.* README Rakefile VERSION LICENSE}.each do |file|
s.files.unshift(file) if File.exists?(file)
end
# Add files you *might* use in ALL projects!
%W{README.* README VERSION LICENSE LICENSE.*}.each do |file|
(s.extra_rdoc_files ||= []).unshift(file) if File.exists?(file)
end
# s.executables = ["bin/myapp.rb"]
# If you only specify one application file in executables, that file becomes
# the default executable. Therefore, you only need to specify this value if you
# have more than one application file.
if s.executables.length > 1
if exe = s.executables.find { |e| e.include?(File.basename(__FILE__, ".gemspec")) }
s.default_executable = exe
else
raise(Exception, "Couldn't automatically figure out the default_executable")
end
end
s.test_files = Dir['test/**/*'] + Dir['examples/**/*'] + Dir['spec/**/*']
s.add_dependency("meta_tools", "~> 0.2.3")
s.add_development_dependency("rake", "~> 0.9.2")
s.add_development_dependency("rspec", "~> 2.6.0")
s.add_development_dependency("shoulda", "~> 2.11.3")
s.add_development_dependency("mocha", "~> 0.9.12")
end