-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathgem-src.gemspec
30 lines (24 loc) · 1.11 KB
/
gem-src.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
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
Gem::Specification.new do |gem|
gem.name = "gem-src"
gem.version = '0.10.2'
gem.authors = ["Akira Matsuda"]
gem.email = ["[email protected]"]
gem.description = 'Gem.post_install { `git clone gem_source src` }'
gem.summary = 'Gem.post_install { `git clone gem_source src` }'
gem.homepage = 'https://github.com/amatsuda/gem-src'
gem.files = `git ls-files`.split($/)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
gem.add_development_dependency 'rspec', ['>= 0']
gem.post_install_message = <<-END
[gem-src] Installing gem-src as a gem is not recommended. Please consider installing as an rbenv plugin instead.
If you have not yet configured "gemsrc_clone_root", we strongly recommend you to add the configuration to your .gemrc.
e.g.)
% echo "gemsrc_clone_root: ~/src" >> ~/.gemrc
See README for more details.
END
end