checkout_ru 0.5.1 → 0.6.0

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
2
  SHA1:
3
- metadata.gz: 67ba1776758aff93812e8db9601160ee5a095719
4
- data.tar.gz: 6b6c449d9ca9aabb1ed0edf0ca63872f1a934922
3
+ metadata.gz: f4046739ccdac1c5b51340fac69dc26566c68fbf
4
+ data.tar.gz: a89e9028eed740096d2b9c7a433650d92dd6bf9b
5
5
  SHA512:
6
- metadata.gz: 442d13b106ee8ab3ab8a2375e99ade2b04eb699e412b8185452c8c88ee975065fc25219c038cd7a4f0a53b18232b16b5b9c841f28c37d81da12fe7a65e5b1466
7
- data.tar.gz: 05d23e0922f1765dfffcb77c26dc5e74faef7f9103a27eb0f1f090b028a95a797ad78e29016cd13e7abf6a9b43dcd7e2bdbfd06b7c3603d047c56baae10aed8d
6
+ metadata.gz: c200f7bc263f24d5e037c149e8671f9c6c9335fbd0917533d7acc6e25829b909fbcf0d6a0267ca493abd69cddb026ca34328591a135a2df99a66d308cfdb1ab1
7
+ data.tar.gz: 346f55f049e9634c3e6955e713a143dc02d586c4370c745e11e38f7fe49b00b60706bb001ccec6f4e9f7789df99d110782cb35cab16ccd463d81f10a0d014b0d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.6.0
2
+
3
+ - Start using Faraday 0.9.1 (up from 0.8.9)
4
+
1
5
  ## 0.5.1
2
6
 
3
7
  - Support for first specialized error: CheckoutRu::NoDeliveryFoundError.
data/checkout_ru.gemspec CHANGED
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency 'faraday', '~> 0.8.9'
22
- spec.add_runtime_dependency 'faraday_middleware', '~> 0.9'
21
+ spec.add_runtime_dependency 'faraday', '~> 0.9.0'
22
+ spec.add_runtime_dependency 'faraday_middleware', '~> 0.9.1'
23
23
  spec.add_runtime_dependency 'faraday_middleware-multi_json', '~> 0.0'
24
24
  spec.add_runtime_dependency 'multi_json', '~> 1.8'
25
25
  spec.add_runtime_dependency 'hashie', '~> 2.0'
@@ -30,4 +30,9 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency 'minitest', '~> 5.2'
31
31
  spec.add_development_dependency 'vcr', '~> 2.8'
32
32
  spec.add_development_dependency 'mocha', '~> 1.0'
33
+
34
+ # Temporary spec dependency due to bug in Faraday 0.9.x. Also referred to from
35
+ # test/test_helper.rb:
36
+ # https://github.com/vcr/vcr/issues/386
37
+ spec.add_development_dependency 'webmock'
33
38
  end
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  module CheckoutRu
2
4
  class ExpiredTicketResponse
3
5
  attr_reader :response
@@ -1,3 +1,3 @@
1
1
  module CheckoutRu
2
- VERSION = "0.5.1"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  class ExpiredTicketResponseTest < MiniTest::Test
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  class CheckoutRu::SessionTest < MiniTest::Test
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  class CheckoutRuTest < MiniTest::Test
@@ -124,7 +126,8 @@ class CheckoutRuTest < MiniTest::Test
124
126
  assert_equal 'SPSR', response.delivery_name
125
127
 
126
128
  assert_equal 4, response.delivery_history.size
127
- assert_equal 'Москва - Хранилище неперерегистрированного', response.delivery_history[0].status
129
+ assert_equal 'Москва - Хранилище неперерегистрированного',
130
+ response.delivery_history[0].status
128
131
  assert_equal '07.10.2014 17:01:00', response.delivery_history[0].date
129
132
  end
130
133
  end
data/test/test_helper.rb CHANGED
@@ -12,7 +12,12 @@ CheckoutRu.auto_renew_session = true
12
12
 
13
13
  VCR.configure do |c|
14
14
  c.cassette_library_dir = 'test/fixtures'
15
- c.hook_into :faraday
15
+
16
+ # Typically we'd hook into :faraday here, since that's what checkout_ru uses,
17
+ # but due to an issue we must use a workaround, hook directly into underlying
18
+ # library (webmock). Issue also referred to in checkout_ru.gemspec.
19
+ # https://github.com/vcr/vcr/issues/386
20
+ c.hook_into :webmock
16
21
 
17
22
  if REAL_API_KEY
18
23
  c.filter_sensitive_data(FAKE_API_KEY) { REAL_API_KEY }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: checkout_ru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxim Chernyak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-28 00:00:00.000000000 Z
11
+ date: 2015-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.8.9
19
+ version: 0.9.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.8.9
26
+ version: 0.9.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday_middleware
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.9'
33
+ version: 0.9.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.9'
40
+ version: 0.9.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: faraday_middleware-multi_json
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -164,6 +164,20 @@ dependencies:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '1.0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: webmock
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
167
181
  description: Ruby client for checkout.ru.
168
182
  email:
169
183
  - max@bitsonnet.com
@@ -226,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
240
  version: '0'
227
241
  requirements: []
228
242
  rubyforge_project:
229
- rubygems_version: 2.2.2
243
+ rubygems_version: 2.4.5
230
244
  signing_key:
231
245
  specification_version: 4
232
246
  summary: Ruby client for checkout.ru