|
1 | 1 | # -*- encoding: utf-8 -*-
|
2 | 2 |
|
3 |
| -Gem::Specification.new do |s| |
4 |
| - s.name = "cookiejar" |
5 |
| - s.version = "0.3.2" |
| 3 | +lib = File.expand_path('../lib', __FILE__) |
| 4 | +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) |
| 5 | +require 'cookiejar/version' |
6 | 6 |
|
7 |
| - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= |
8 |
| - s.authors = ["David Waite"] |
9 |
| - s.date = "2014-02-16" |
10 |
| - s.license = "BSD-2-Clause" |
11 |
| - s.description = "Allows for parsing and returning cookies in Ruby HTTP client code" |
12 |
| - |
13 |
| - s.files = [ |
14 |
| - "LICENSE", |
15 |
| - "README.markdown", |
16 |
| - "Rakefile", |
17 |
| - "contributors.json", |
18 |
| - "lib/cookiejar/cookie.rb", |
19 |
| - "lib/cookiejar/cookie_validation.rb", |
20 |
| - "lib/cookiejar/jar.rb", |
21 |
| - "lib/cookiejar.rb", |
22 |
| - "spec/cookie_spec.rb", |
23 |
| - "spec/cookie_validation_spec.rb", |
24 |
| - "spec/jar_spec.rb" |
25 |
| - ] |
26 |
| - s.homepage = "https://alkaline-solutions.com" |
27 |
| - s.rdoc_options = ["--title", "CookieJar -- Client-side HTTP Cookies"] |
28 |
| - s.require_paths = ["lib"] |
29 |
| - s.rubygems_version = "2.1.10" |
30 |
| - s.summary = "Client-side HTTP Cookie library" |
| 7 | +Gem::Specification.new do |s| |
| 8 | + s.name = 'cookiejar' |
| 9 | + s.version = CookieJar::VERSION |
| 10 | + s.authors = ['David Waite'] |
| 11 | + |
| 12 | + s.description = 'Allows for parsing and returning cookies in Ruby HTTP client code' |
| 13 | + s.summary = 'Client-side HTTP Cookie library' |
| 14 | + s.homepage = 'http://alkaline-solutions.com' |
| 15 | + s.date = '2014-02-01' |
31 | 16 |
|
32 |
| - if s.respond_to? :specification_version then |
33 |
| - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION |
34 |
| - s.specification_version = 3 |
| 17 | + s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR) |
| 18 | + s.test_files = s.files.grep(%r{^(spec)/}) |
| 19 | + s.rdoc_options = ['--title', 'CookieJar -- Client-side HTTP Cookies'] |
| 20 | + s.require_paths = ['lib'] |
35 | 21 |
|
36 |
| - if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then |
37 |
| - else |
38 |
| - end |
39 |
| - else |
40 |
| - end |
41 |
| - s.add_development_dependency "rake", "~> 10.0" |
42 |
| - s.add_development_dependency "rspec-collection_matchers", "~> 1.0" |
43 |
| - s.add_development_dependency "rspec", "~> 3.0" |
44 |
| - s.add_development_dependency "yard", "~> 0.8", ">= 0.8.7" |
| 22 | + s.add_development_dependency 'rake', '~> 10.0' |
| 23 | + s.add_development_dependency 'rspec-collection_matchers', '~> 1.0' |
| 24 | + s.add_development_dependency 'rspec', '~> 3.0' |
| 25 | + s.add_development_dependency 'yard', '~> 0.8', '>= 0.8.7' |
45 | 26 | end
|
0 commit comments