checkout_ru 0.6.0 → 0.6.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
2
  SHA1:
3
- metadata.gz: f4046739ccdac1c5b51340fac69dc26566c68fbf
4
- data.tar.gz: a89e9028eed740096d2b9c7a433650d92dd6bf9b
3
+ metadata.gz: 6c8db6b60c632ebd68bb99e630499b8224558da8
4
+ data.tar.gz: a69756438cd509f77b4df9e8e16ac26d0abfaf1c
5
5
  SHA512:
6
- metadata.gz: c200f7bc263f24d5e037c149e8671f9c6c9335fbd0917533d7acc6e25829b909fbcf0d6a0267ca493abd69cddb026ca34328591a135a2df99a66d308cfdb1ab1
7
- data.tar.gz: 346f55f049e9634c3e6955e713a143dc02d586c4370c745e11e38f7fe49b00b60706bb001ccec6f4e9f7789df99d110782cb35cab16ccd463d81f10a0d014b0d
6
+ metadata.gz: 88f5ae2090debddebdaf6c08ce4e10e358f4b913401f2162d1f56d05dc1e5db8d7f80842eee5959365a1bf9bfff8449e5d8ab354b1508cc4360da16c33f209d8
7
+ data.tar.gz: 61ae4e76d89b80171b33662993e9c1f2f0be8a9ef6584c81056e0a3f4bf3c714c64647387d2bc6e864d7c7918ce5a618ed94b5e9b253d82c6ebb19f7455036b1
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - ruby-head
4
+ - 2
5
+ - 2.2
@@ -1,3 +1,7 @@
1
+ ## 0.6.1
2
+
3
+ - Support `forcedCost` option for API Order
4
+
1
5
  ## 0.6.0
2
6
 
3
7
  - Start using Faraday 0.9.1 (up from 0.8.9)
@@ -34,5 +34,5 @@ Gem::Specification.new do |spec|
34
34
  # Temporary spec dependency due to bug in Faraday 0.9.x. Also referred to from
35
35
  # test/test_helper.rb:
36
36
  # https://github.com/vcr/vcr/issues/386
37
- spec.add_development_dependency 'webmock'
37
+ spec.add_development_dependency 'webmock', '~> 1.21'
38
38
  end
@@ -59,8 +59,6 @@ module CheckoutRu
59
59
  end
60
60
 
61
61
  def parse_status(status)
62
- status_map = Order::Status::MAP
63
-
64
62
  if status.is_a?(Symbol)
65
63
  unless Order::Status::MAP.keys.include?(status)
66
64
  raise Error, "Invalid order status: #{status}"
@@ -21,6 +21,7 @@ module CheckoutRu
21
21
  property :comment
22
22
  property :shop_order_id, :from => :shopOrderId
23
23
  property :payment_method, :required => true, :from => :paymentMethod
24
+ property :forced_cost, :from => :forcedCost
24
25
 
25
26
  coerce_key :goods, Item
26
27
  coerce_key :delivery, Delivery
@@ -1,3 +1,3 @@
1
1
  module CheckoutRu
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
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.6.0
4
+ version: 0.6.1
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-05-30 00:00:00.000000000 Z
11
+ date: 2016-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -168,16 +168,16 @@ dependencies:
168
168
  name: webmock
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ">="
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '0'
173
+ version: '1.21'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ">="
178
+ - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '0'
180
+ version: '1.21'
181
181
  description: Ruby client for checkout.ru.
182
182
  email:
183
183
  - max@bitsonnet.com
@@ -186,6 +186,7 @@ extensions: []
186
186
  extra_rdoc_files: []
187
187
  files:
188
188
  - ".gitignore"
189
+ - ".travis.yml"
189
190
  - CHANGELOG.md
190
191
  - Gemfile
191
192
  - LICENSE.txt
@@ -240,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
241
  version: '0'
241
242
  requirements: []
242
243
  rubyforge_project:
243
- rubygems_version: 2.4.5
244
+ rubygems_version: 2.5.1
244
245
  signing_key:
245
246
  specification_version: 4
246
247
  summary: Ruby client for checkout.ru
@@ -262,4 +263,3 @@ test_files:
262
263
  - test/fixtures/status_history.yml
263
264
  - test/fixtures/update_order.yml
264
265
  - test/test_helper.rb
265
- has_rdoc: