Skip to content

Commit

Permalink
Backport changes on gemspec from main
Browse files Browse the repository at this point in the history
  • Loading branch information
anero committed Sep 28, 2023
1 parent 17ac404 commit 60f3cd5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 38 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ gem 'hashie', '> 3.5.7'
# Include everything needed to run rake, tests, features, etc.
group :development do
gem "rspec"
gem "rake"
gem "bundler"
gem "webmock"
gem "rspec-its"
Expand Down
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

require 'rubygems'
require 'bundler'
require 'bundler/gem_tasks'

begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
Expand Down
2 changes: 1 addition & 1 deletion lib/vertebrae.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
require 'vertebrae/model'
require 'vertebrae/version'

require 'railties' if defined? Rails
require 'vertebrae/railties' if defined? Rails

module Vertebrae

Expand Down
48 changes: 11 additions & 37 deletions vertebrae.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'version'
require 'vertebrae/version'

Gem::Specification.new do |s|
s.name = "vertebrae".freeze
s.version = "0.6.2"
s.version = Vertebrae::VERSION

s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
s.require_paths = ["lib".freeze]
Expand All @@ -16,42 +16,14 @@ Gem::Specification.new do |s|
s.email = "[email protected]".freeze
s.extra_rdoc_files = [
"LICENSE.txt",
"README.rdoc"
]
s.files = [
".document",
".github/workflows/ci.yml",
".rspec",
".rubocop.yml",
".ruby-gemset",
".ruby-version",
"Gemfile",
"LICENSE.txt",
"README.rdoc",
"Rakefile",
"VERSION",
"lib/api.rb",
"lib/authorization.rb",
"lib/base.rb",
"lib/configuration.rb",
"lib/connection.rb",
"lib/constants.rb",
"lib/core_ext/array.rb",
"lib/model.rb",
"lib/railties.rb",
"lib/request.rb",
"lib/response/raise_error.rb",
"lib/response_error.rb",
"lib/vertebrae.rb",
"spec/api_spec.rb",
"spec/configuration_spec.rb",
"spec/dummy/client.rb",
"spec/dummy/dummy.rb",
"spec/logger_spec.rb",
"spec/request_spec.rb",
"spec/spec_helper.rb",
"vertebrae.gemspec"
"README.md"
]
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
s.files = Dir.chdir(File.expand_path(__dir__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
end

s.homepage = "http://github.com/controlshift/vertebrae".freeze
s.licenses = ["MIT".freeze]
s.summary = "API Client Infrastructure".freeze
Expand All @@ -66,6 +38,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency(%q<faraday_middleware>.freeze, ["> 0.12.2"])
s.add_runtime_dependency(%q<hashie>.freeze, ["> 3.5.7"])
s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
s.add_development_dependency(%q<rake>.freeze, [">= 0"])
s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
s.add_development_dependency(%q<webmock>.freeze, [">= 0"])
s.add_development_dependency(%q<rspec-its>.freeze, [">= 0"])
Expand All @@ -76,6 +49,7 @@ Gem::Specification.new do |s|
s.add_dependency(%q<faraday_middleware>.freeze, ["> 0.12.2"])
s.add_dependency(%q<hashie>.freeze, ["> 3.5.7"])
s.add_dependency(%q<rspec>.freeze, [">= 0"])
s.add_dependency(%q<rake>.freeze, [">= 0"])
s.add_dependency(%q<bundler>.freeze, [">= 0"])
s.add_dependency(%q<webmock>.freeze, [">= 0"])
s.add_dependency(%q<rspec-its>.freeze, [">= 0"])
Expand Down

0 comments on commit 60f3cd5

Please sign in to comment.