vertebrae 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c36f7513900e9676643bff2e6d7d6ec05528c115
4
- data.tar.gz: b9f03bbf801b10f655c837d0943bf7d1a2eadfc2
2
+ SHA256:
3
+ metadata.gz: 6b31eacf810e59f26505d1d99deca99bfaa8ae92f20f19e7983e2321b0320682
4
+ data.tar.gz: 94cf05f3f8c1a4bb367184646e888b6311cd9af784f7fe1664e5f82a00420023
5
5
  SHA512:
6
- metadata.gz: c4a6788755e1256f4176c0d221fd8f8b6437d76f4aba6f54451f93cdc34b5fbce68c58ed0796bb29f2324e1411c578f810168198d17bb947d6cbcdc5fd49088a
7
- data.tar.gz: e27d47e5cbd778c753fa47caf9ae89dac15b666bd424fa7cd9be32b4803ccf9133422abff419db33646ca3e61ffc2da0a971200a47f4666561d0470b8fa729b8
6
+ metadata.gz: 2f0bea7c3e4c7c3672a268e2ba5fbfa26894913cc59070fcbac196cdbb1832e29992c45c4475626118f4ddaa81829c64b479b4edf430245508890187a89648ab
7
+ data.tar.gz: 7833302a0449e1decb8cfaac725c3d9c8f3501349865f9e8294608ebccb6cea2f79b0d1121feed07a0d27e7eb876e63444ece76c6fe78924475c0368a476c4ac
@@ -1 +1 @@
1
- 2.4.2
1
+ 2.6.5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
@@ -98,7 +98,7 @@ module Vertebrae
98
98
  },
99
99
  :ssl => ssl,
100
100
  :url => endpoint
101
- }
101
+ }.merge(connection_options)
102
102
  end
103
103
 
104
104
 
@@ -71,4 +71,38 @@ describe Vertebrae::Configuration do
71
71
  expect(subject.adapter).to eq(:foo)
72
72
  end
73
73
  end
74
+
75
+ describe '#faraday_options' do
76
+ subject { Vertebrae::Configuration.new(host: 'example.com') }
77
+
78
+ it 'should include headers, ssl, and url settings by default' do
79
+ opts = subject.faraday_options
80
+ expect(opts.keys).to contain_exactly(:headers, :ssl, :url)
81
+ expect(opts[:headers]).to eq({'Accept' => 'application/json;q=0.1',
82
+ 'Accept-Charset' => 'utf-8',
83
+ 'User-Agent' => 'Vertebrae REST Gem',
84
+ 'Content-Type' => 'application/json'})
85
+ expect(opts[:ssl]).to eq({})
86
+ expect(opts[:url]).to eq 'https://example.com/'
87
+ end
88
+
89
+ context 'with connection_options' do
90
+ let(:connection_options) { {ssl: {verify: false},
91
+ timeout: 5} }
92
+
93
+ subject { Vertebrae::Configuration.new(host: 'example.com', connection_options: connection_options) }
94
+
95
+ it 'should override and extend the default options' do
96
+ opts = subject.faraday_options
97
+ expect(opts.keys).to contain_exactly(:headers, :ssl, :timeout, :url)
98
+ expect(opts[:headers]).to eq({'Accept' => 'application/json;q=0.1',
99
+ 'Accept-Charset' => 'utf-8',
100
+ 'User-Agent' => 'Vertebrae REST Gem',
101
+ 'Content-Type' => 'application/json'})
102
+ expect(opts[:ssl]).to eq({verify: false})
103
+ expect(opts[:url]).to eq 'https://example.com/'
104
+ expect(opts[:timeout]).to eq 5
105
+ end
106
+ end
107
+ end
74
108
  end
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: vertebrae 0.5.0 ruby lib
5
+ # stub: vertebrae 0.5.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "vertebrae".freeze
9
- s.version = "0.5.0"
9
+ s.version = "0.5.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Nathan Woodhull".freeze]
14
- s.date = "2018-12-04"
14
+ s.date = "2020-03-16"
15
15
  s.description = "A set of low level infrastructure and reusable code for building API clients".freeze
16
16
  s.email = "nathan@controlshiftlabs.com".freeze
17
17
  s.extra_rdoc_files = [
@@ -53,27 +53,27 @@ Gem::Specification.new do |s|
53
53
  ]
54
54
  s.homepage = "http://github.com/controlshift/vertebrae".freeze
55
55
  s.licenses = ["MIT".freeze]
56
- s.rubygems_version = "2.6.14".freeze
56
+ s.rubygems_version = "3.0.8".freeze
57
57
  s.summary = "API Client Infrastructure".freeze
58
58
 
59
59
  if s.respond_to? :specification_version then
60
60
  s.specification_version = 4
61
61
 
62
62
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
63
- s.add_runtime_dependency(%q<activesupport>.freeze, [">= 5.1.4", "~> 5.1"])
63
+ s.add_runtime_dependency(%q<activesupport>.freeze, ["~> 5.1", ">= 5.1.4"])
64
64
  s.add_runtime_dependency(%q<faraday>.freeze, [">= 0.9.2"])
65
- s.add_runtime_dependency(%q<faraday_middleware>.freeze, [">= 0.12.2", "~> 0.12"])
66
- s.add_runtime_dependency(%q<hashie>.freeze, [">= 3.5.7", "~> 3.5"])
65
+ s.add_runtime_dependency(%q<faraday_middleware>.freeze, ["~> 0.12", ">= 0.12.2"])
66
+ s.add_runtime_dependency(%q<hashie>.freeze, ["~> 3.5", ">= 3.5.7"])
67
67
  s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
68
68
  s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
69
69
  s.add_development_dependency(%q<webmock>.freeze, [">= 0"])
70
70
  s.add_development_dependency(%q<rspec-its>.freeze, [">= 0"])
71
71
  s.add_development_dependency(%q<juwelier>.freeze, [">= 0"])
72
72
  else
73
- s.add_dependency(%q<activesupport>.freeze, [">= 5.1.4", "~> 5.1"])
73
+ s.add_dependency(%q<activesupport>.freeze, ["~> 5.1", ">= 5.1.4"])
74
74
  s.add_dependency(%q<faraday>.freeze, [">= 0.9.2"])
75
- s.add_dependency(%q<faraday_middleware>.freeze, [">= 0.12.2", "~> 0.12"])
76
- s.add_dependency(%q<hashie>.freeze, [">= 3.5.7", "~> 3.5"])
75
+ s.add_dependency(%q<faraday_middleware>.freeze, ["~> 0.12", ">= 0.12.2"])
76
+ s.add_dependency(%q<hashie>.freeze, ["~> 3.5", ">= 3.5.7"])
77
77
  s.add_dependency(%q<rspec>.freeze, [">= 0"])
78
78
  s.add_dependency(%q<bundler>.freeze, [">= 0"])
79
79
  s.add_dependency(%q<webmock>.freeze, [">= 0"])
@@ -81,10 +81,10 @@ Gem::Specification.new do |s|
81
81
  s.add_dependency(%q<juwelier>.freeze, [">= 0"])
82
82
  end
83
83
  else
84
- s.add_dependency(%q<activesupport>.freeze, [">= 5.1.4", "~> 5.1"])
84
+ s.add_dependency(%q<activesupport>.freeze, ["~> 5.1", ">= 5.1.4"])
85
85
  s.add_dependency(%q<faraday>.freeze, [">= 0.9.2"])
86
- s.add_dependency(%q<faraday_middleware>.freeze, [">= 0.12.2", "~> 0.12"])
87
- s.add_dependency(%q<hashie>.freeze, [">= 3.5.7", "~> 3.5"])
86
+ s.add_dependency(%q<faraday_middleware>.freeze, ["~> 0.12", ">= 0.12.2"])
87
+ s.add_dependency(%q<hashie>.freeze, ["~> 3.5", ">= 3.5.7"])
88
88
  s.add_dependency(%q<rspec>.freeze, [">= 0"])
89
89
  s.add_dependency(%q<bundler>.freeze, [">= 0"])
90
90
  s.add_dependency(%q<webmock>.freeze, [">= 0"])
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vertebrae
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Woodhull
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-04 00:00:00.000000000 Z
11
+ date: 2020-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 5.1.4
20
17
  - - "~>"
21
18
  - !ruby/object:Gem::Version
22
19
  version: '5.1'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 5.1.4
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 5.1.4
30
27
  - - "~>"
31
28
  - !ruby/object:Gem::Version
32
29
  version: '5.1'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 5.1.4
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: faraday
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -48,42 +48,42 @@ dependencies:
48
48
  name: faraday_middleware
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: 0.12.2
54
51
  - - "~>"
55
52
  - !ruby/object:Gem::Version
56
53
  version: '0.12'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 0.12.2
57
57
  type: :runtime
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: 0.12.2
64
61
  - - "~>"
65
62
  - !ruby/object:Gem::Version
66
63
  version: '0.12'
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 0.12.2
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: hashie
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: 3.5.7
74
71
  - - "~>"
75
72
  - !ruby/object:Gem::Version
76
73
  version: '3.5'
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: 3.5.7
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: 3.5.7
84
81
  - - "~>"
85
82
  - !ruby/object:Gem::Version
86
83
  version: '3.5'
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: 3.5.7
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: rspec
89
89
  requirement: !ruby/object:Gem::Requirement
@@ -213,8 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  - !ruby/object:Gem::Version
214
214
  version: '0'
215
215
  requirements: []
216
- rubyforge_project:
217
- rubygems_version: 2.6.14
216
+ rubygems_version: 3.0.8
218
217
  signing_key:
219
218
  specification_version: 4
220
219
  summary: API Client Infrastructure