-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathRakefile
38 lines (33 loc) · 1.11 KB
/
Rakefile
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
require 'rake/gempackagetask'
require 'rubygems/specification'
require 'bundler'
GEM = "cinderella"
GEM_VERSION = "0.2.2"
AUTHOR = "Corey Donohoe"
EMAIL = "[email protected]"
HOMEPAGE = "http://github.com/atmos/cinderella"
SUMMARY = "The development environment you never wanted to manage alone"
spec = Gem::Specification.new do |s|
s.name = GEM
s.version = GEM_VERSION
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["LICENSE"]
s.summary = SUMMARY
s.description = s.summary
s.author = AUTHOR
s.email = EMAIL
s.homepage = HOMEPAGE
bundle = Bundler::Definition.build('Gemfile', 'Gemfile.lock', { })
bundle.dependencies.each do |dep|
next unless dep.groups.include?(:runtime)
s.add_dependency(dep.name, dep.version_requirements.to_s)
end
s.bindir = "bin"
s.executables = %w( cinderella )
s.require_path = 'lib'
s.files = %w(LICENSE README.md Rakefile) + Dir.glob("{lib}/**/*")
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end