mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-04 00:02:03 -04:00
remove some duplication from faraday.gemspec. add scripts
This commit is contained in:
parent
c99350905d
commit
7d581322b1
@ -1,4 +1,5 @@
|
||||
lib_file = File.expand_path('../lib/faraday.rb', __FILE__)
|
||||
lib = "faraday"
|
||||
lib_file = File.expand_path("../lib/#{lib}.rb", __FILE__)
|
||||
File.read(lib_file) =~ /\bVERSION\s*=\s*["'](.+?)["']/
|
||||
version = $1
|
||||
|
||||
@ -6,23 +7,25 @@ Gem::Specification.new do |spec|
|
||||
spec.specification_version = 2 if spec.respond_to? :specification_version=
|
||||
spec.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if spec.respond_to? :required_rubygems_version=
|
||||
|
||||
spec.name = 'faraday'
|
||||
spec.name = lib
|
||||
spec.version = version
|
||||
|
||||
spec.summary = "HTTP/REST API client library."
|
||||
|
||||
spec.authors = ["Rick Olson"]
|
||||
spec.email = 'technoweenie@gmail.com'
|
||||
spec.homepage = 'https://github.com/technoweenie/faraday'
|
||||
spec.homepage = 'https://github.com/lostisland/faraday'
|
||||
spec.licenses = ['MIT']
|
||||
|
||||
spec.add_dependency 'multipart-post', '~> 1.1'
|
||||
spec.add_development_dependency 'rake'
|
||||
spec.add_development_dependency 'simplecov'
|
||||
|
||||
spec.files = %w(Gemfile LICENSE.md README.md Rakefile faraday.gemspec script/test)
|
||||
spec.files = %w(Gemfile LICENSE.md README.md Rakefile)
|
||||
spec.files << "#{lib}.gemspec"
|
||||
spec.files += Dir.glob("lib/**/*.rb")
|
||||
spec.files += Dir.glob("test/**/*.rb")
|
||||
spec.files += Dir.glob("script/*")
|
||||
|
||||
dev_null = File.exist?('/dev/null') ? '/dev/null' : 'NUL'
|
||||
git_files = `git ls-files -z 2>#{dev_null}`
|
||||
|
Loading…
x
Reference in New Issue
Block a user