offsite_payments 2.6.1 → 2.6.2

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: 977c0a47bbf4b3bad338b55b596dfef58a4c53aa
4
- data.tar.gz: aad5880a06eb50759eee02e7fc3b0b4f573f68a8
3
+ metadata.gz: 3b8d4512405d3d3fc5c7b8604888b8a40ee6f0fe
4
+ data.tar.gz: a622aaa06cb673bcb061c038c0bef9c7480f18b3
5
5
  SHA512:
6
- metadata.gz: 5a93c305e1371bc1ad53349f5aaea48929fa9757e0011b9b9d3ada62eb631c456e524636a4dedfabb9db4993a4b4d2d39b515c5c19885f263282ed5a3ae95307
7
- data.tar.gz: cc17d8dbbf89ec9a21bb4e6008b79cf3f6c6340c639b7bc17e057e4d43818139de105963d6f3fbbea213a12e78c1296cf79e3e3c8be946de9b7dda7cf94e090f
6
+ metadata.gz: 77fd2790f3827e15315dbdd4c9dc63e74b1a0371ebb14290c727add4d20da190f34dae4560090db451f991c86c12772fa4bd2da53d7a87f25d87ad4b71c3f445
7
+ data.tar.gz: c08bdc48d71f10cf746875b50a25a2c277ab1da4e474c54055ad4e89bfa529abad1a935002d89458151f3df24690e2440211fad3e14c0f56c254b8b8c1b4e8b0
@@ -117,7 +117,7 @@ module OffsitePayments #:nodoc:
117
117
 
118
118
  # Order amount should be equal to gross - discount
119
119
  def amount_ok?( order_amount, order_discount = BigDecimal.new( '0.0' ) )
120
- BigDecimal.new( original_gross ) == order_amount && BigDecimal.new( discount.to_s ) == order_discount
120
+ BigDecimal.new( original_gross ) == order_amount && discount.to_d == order_discount
121
121
  end
122
122
 
123
123
  # Status of transaction return from the PayU. List of possible values:
@@ -1,3 +1,3 @@
1
1
  module OffsitePayments
2
- VERSION = "2.6.1"
2
+ VERSION = "2.6.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: offsite_payments
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.1
4
+ version: 2.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-07 00:00:00.000000000 Z
11
+ date: 2017-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -290,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
290
290
  version: '0'
291
291
  requirements: []
292
292
  rubyforge_project:
293
- rubygems_version: 2.5.2
293
+ rubygems_version: 2.5.2.1
294
294
  signing_key:
295
295
  specification_version: 4
296
296
  summary: Framework and tools for dealing with offsite (hosted) payment pages.