|
1 | | -$LOAD_PATH << File.join(File.dirname(__FILE__), 'lib') |
| 1 | +$LOAD_PATH.push File.expand_path("../lib", __FILE__) |
2 | 2 | require 'cocaine/version' |
3 | 3 |
|
4 | | -include_files = ["README*", "LICENSE", "Rakefile", "{lib,spec}/**/*"].map do |glob| |
5 | | - Dir[glob] |
6 | | -end.flatten |
7 | | -exclude_files = ["**/*.rbc"].map do |glob| |
8 | | - Dir[glob] |
9 | | -end.flatten |
10 | | - |
11 | | -spec = Gem::Specification.new do |s| |
| 4 | +Gem::Specification.new do |s| |
12 | 5 | s.name = "cocaine" |
13 | | - s.version = Cocaine::VERSION |
| 6 | + s.version = Cocaine::VERSION.dup |
| 7 | + s.platform = Gem::Platform::RUBY |
14 | 8 | s.author = "Jon Yurek" |
15 | 9 | s.email = "jyurek@thoughtbot.com" |
16 | 10 | s.homepage = "http://www.thoughtbot.com/projects/cocaine" |
17 | | - s.description = "A small library for doing (command) lines" |
18 | | - s.platform = Gem::Platform::RUBY |
19 | 11 | s.summary = "A small library for doing (command) lines" |
20 | | - s.files = include_files - exclude_files |
21 | | - s.require_path = "lib" |
22 | | - s.test_files = Dir["spec/**/*_spec.rb"] |
23 | | - s.add_development_dependency 'rspec' |
24 | | - s.add_development_dependency 'bourne' |
25 | | - s.add_development_dependency 'mocha' |
| 12 | + s.description = "A small library for doing (command) lines" |
| 13 | + |
| 14 | + s.files = `git ls-files`.split("\n") |
| 15 | + s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") |
| 16 | + s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } |
| 17 | + s.require_paths = ["lib"] |
| 18 | + |
| 19 | + s.add_development_dependency('rspec') |
| 20 | + s.add_development_dependency('bourne') |
| 21 | + s.add_development_dependency('mocha') |
| 22 | + s.add_development_dependency('rake') |
26 | 23 | end |
27 | 24 |
|
0 commit comments