activemerchant 1.7.2 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG CHANGED
@@ -1,9 +1,13 @@
1
1
  = ActiveMerchant CHANGELOG
2
2
 
3
+ == Version 1.7.3 (September 14, 2010)
4
+
5
+ * Fix SagePay special handling for Japanese YEN currency to not send fractional amounts [Soleone]
6
+
3
7
  == Version 1.7.2 (August 27, 2010)
4
8
 
5
9
  * Update Braintree integration to play nicely with the braintree 2.5.0 gem [Soleone]
6
- * Fix SagePay to not send fractional amounts for Chinese YEN currency [Soleone]
10
+ * Fix SagePay to not send fractional amounts for Japanese YEN currency [Soleone]
7
11
 
8
12
  == Version 1.7.1 (July 28, 2010)
9
13
 
@@ -24,13 +24,13 @@
24
24
  $:.unshift File.dirname(__FILE__)
25
25
 
26
26
  require 'active_support'
27
+ require 'active_support/core_ext/string/inflections'
27
28
  require 'active_support/core_ext/hash/indifferent_access'
28
29
  require 'active_support/core_ext/class/inheritable_attributes'
29
30
  require 'active_support/core_ext/class/attribute_accessors'
30
31
  require 'active_support/core_ext/class/delegating_attributes'
31
32
  require 'active_support/core_ext/module/attribute_accessors'
32
33
  require 'active_support/core_ext/kernel/requires'
33
- require 'active_support/inflector'
34
34
 
35
35
  require 'builder'
36
36
  require 'cgi'
@@ -32,7 +32,7 @@ module ActiveMerchant #:nodoc:
32
32
  :jcb => "JCB"
33
33
  }
34
34
 
35
- CURRENCIES_WITHOUT_FRACTIONS = [ 'YEN' ]
35
+ CURRENCIES_WITHOUT_FRACTIONS = [ 'JPY' ]
36
36
 
37
37
  ELECTRON = /^(424519|42496[23]|450875|48440[6-8]|4844[1-5][1-5]|4917[3-5][0-9]|491880)\d{10}(\d{3})?$/
38
38
 
@@ -1,15 +1,3 @@
1
-
2
- # make the bogus gateway be classified correctly by the inflector
3
- if defined?(ActiveSupport::Inflector)
4
- ActiveSupport::Inflector.inflections do |inflect|
5
- inflect.uncountable 'bogus'
6
- end
7
- else
8
- Inflector.inflections do |inflect|
9
- inflect.uncountable 'bogus'
10
- end
11
- end
12
-
13
1
  module ActiveMerchant
14
2
  module Billing
15
3
  module Integrations
@@ -42,7 +42,7 @@ module ActiveMerchant #:nodoc:
42
42
  def payment_service_for(order, account, options = {}, &proc)
43
43
  raise ArgumentError, "Missing block" unless block_given?
44
44
 
45
- integration_module = ActiveMerchant::Billing::Integrations.const_get(options.delete(:service).to_s.classify)
45
+ integration_module = ActiveMerchant::Billing::Integrations.const_get(options.delete(:service).to_s.camelize)
46
46
 
47
47
  result = []
48
48
  result << form_tag(integration_module.service_url, options.delete(:html) || {})
@@ -57,18 +57,10 @@ module ActiveMerchant #:nodoc:
57
57
  end
58
58
 
59
59
  result << '</form>'
60
-
61
- concat(html_safe_string(result.join("\n")))
62
- end
63
-
64
- private
65
-
66
- def html_safe_string(string)
67
- if string.respond_to?(:html_safe)
68
- string.html_safe
69
- else
70
- string
71
- end
60
+ result= result.join("\n")
61
+
62
+ concat(result.respond_to?(:html_safe) ? result.html_safe : result)
63
+ nil
72
64
  end
73
65
  end
74
66
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveMerchant
2
- VERSION = "1.7.2"
2
+ VERSION = "1.7.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemerchant
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 7
9
- - 2
10
- version: 1.7.2
9
+ - 3
10
+ version: 1.7.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tobias Luetke
@@ -36,7 +36,7 @@ cert_chain:
36
36
  hPaSTyVU0yCSnw==
37
37
  -----END CERTIFICATE-----
38
38
 
39
- date: 2010-08-27 00:00:00 -04:00
39
+ date: 2010-09-14 00:00:00 -04:00
40
40
  default_executable:
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
metadata.gz.sig CHANGED
Binary file