|
| 1 | + |
| 2 | +lib = File.expand_path("../lib", __FILE__) |
| 3 | +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) |
| 4 | +require "beyond_api/version" |
| 5 | + |
| 6 | +Gem::Specification.new do |spec| |
| 7 | + spec.name = "beyond_api" |
| 8 | + spec.version = BeyondApi::VERSION |
| 9 | + spec.authors = ["unabris"] |
| 10 | + spec.email = ["[email protected]"] |
| 11 | + |
| 12 | + spec.summary = %q{TODO: Write a short summary, because RubyGems requires one.} |
| 13 | + spec.description = %q{TODO: Write a longer description or delete this line.} |
| 14 | + spec.homepage = "TODO: Put your gem's website or public repo URL here." |
| 15 | + |
| 16 | + # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host' |
| 17 | + # to allow pushing to a single host or delete this section to allow pushing to any host. |
| 18 | + if spec.respond_to?(:metadata) |
| 19 | + spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'" |
| 20 | + |
| 21 | + spec.metadata["homepage_uri"] = spec.homepage |
| 22 | + spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here." |
| 23 | + spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here." |
| 24 | + else |
| 25 | + raise "RubyGems 2.0 or newer is required to protect against " \ |
| 26 | + "public gem pushes." |
| 27 | + end |
| 28 | + |
| 29 | + # Specify which files should be added to the gem when it is released. |
| 30 | + # The `git ls-files -z` loads the files in the RubyGem that have been added into git. |
| 31 | + spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do |
| 32 | + `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } |
| 33 | + end |
| 34 | + spec.bindir = "exe" |
| 35 | + spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } |
| 36 | + spec.require_paths = ["lib"] |
| 37 | + |
| 38 | + spec.add_development_dependency "bundler", "~> 2.0" |
| 39 | + spec.add_development_dependency "rake", "~> 10.0" |
| 40 | + spec.add_development_dependency "rspec", "~> 3.0" |
| 41 | +end |
0 commit comments