activemerchant 1.7.2 → 1.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/CHANGELOG +5 -1
- data/lib/active_merchant.rb +1 -1
- data/lib/active_merchant/billing/gateways/sage_pay.rb +1 -1
- data/lib/active_merchant/billing/integrations.rb +0 -12
- data/lib/active_merchant/billing/integrations/action_view_helper.rb +5 -13
- data/lib/active_merchant/version.rb +1 -1
- metadata +4 -4
- metadata.gz.sig +0 -0
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
|
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
|
|
data/lib/active_merchant.rb
CHANGED
@@ -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'
|
@@ -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.
|
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
|
-
|
62
|
-
|
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
|
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:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 1.7.
|
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-
|
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
|