forked from lostisland/faraday
-
Notifications
You must be signed in to change notification settings - Fork 0
/
faraday.gemspec
34 lines (26 loc) · 1.11 KB
/
faraday.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
31
32
33
34
lib = "faraday"
lib_file = File.expand_path("../lib/#{lib}.rb", __FILE__)
File.read(lib_file) =~ /\bVERSION\s*=\s*["'](.+?)["']/
version = $1
Gem::Specification.new do |spec|
spec.specification_version = 2 if spec.respond_to? :specification_version=
spec.required_rubygems_version = '>= 1.3.5'
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/lostisland/faraday'
spec.licenses = ['MIT']
spec.add_dependency 'multipart-post', '>= 1.2', '< 3'
spec.add_development_dependency 'bundler', '~> 1.0'
spec.files = %w(.document CHANGELOG.md CONTRIBUTING.md Gemfile LICENSE.md README.md Rakefile)
spec.files << "#{lib}.gemspec"
spec.files += Dir.glob("lib/**/*.rb")
spec.files += Dir.glob("test/**/*.{rb,txt}")
spec.files += Dir.glob("script/*")
dev_null = File.exist?('/dev/null') ? '/dev/null' : 'NUL'
git_files = `git ls-files -z 2>#{dev_null}`
spec.files &= git_files.split("\0") if $?.success?
spec.test_files = Dir.glob("test/**/*.rb")
end