activemerchant 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. data.tar.gz.sig +0 -0
  2. data/CHANGELOG +9 -0
  3. data/MIT-LICENSE +1 -1
  4. data/lib/active_merchant.rb +6 -26
  5. data/lib/active_merchant/billing.rb +9 -0
  6. data/lib/active_merchant/billing/gateways/beanstream/beanstream_core.rb +12 -1
  7. data/lib/active_merchant/billing/gateways/skip_jack.rb +2 -1
  8. data/lib/active_merchant/billing/integrations/chronopay/helper.rb +40 -1
  9. data/lib/active_merchant/billing/integrations/two_checkout.rb +1 -1
  10. metadata +9 -173
  11. metadata.gz.sig +0 -0
  12. data/Rakefile +0 -153
  13. data/init.rb +0 -3
  14. data/script/destroy +0 -14
  15. data/script/generate +0 -14
  16. data/test/fixtures.yml +0 -355
  17. data/test/remote/gateways/remote_authorize_net_cim_test.rb +0 -460
  18. data/test/remote/gateways/remote_authorize_net_test.rb +0 -145
  19. data/test/remote/gateways/remote_beanstream_interac_test.rb +0 -53
  20. data/test/remote/gateways/remote_beanstream_test.rb +0 -150
  21. data/test/remote/gateways/remote_braintree_test.rb +0 -147
  22. data/test/remote/gateways/remote_card_stream_test.rb +0 -148
  23. data/test/remote/gateways/remote_cyber_source_test.rb +0 -144
  24. data/test/remote/gateways/remote_data_cash_test.rb +0 -356
  25. data/test/remote/gateways/remote_efsnet_test.rb +0 -81
  26. data/test/remote/gateways/remote_elavon_test.rb +0 -66
  27. data/test/remote/gateways/remote_eway_test.rb +0 -74
  28. data/test/remote/gateways/remote_exact_test.rb +0 -60
  29. data/test/remote/gateways/remote_first_pay_test.rb +0 -87
  30. data/test/remote/gateways/remote_instapay_test.rb +0 -61
  31. data/test/remote/gateways/remote_jetpay_test.rb +0 -103
  32. data/test/remote/gateways/remote_linkpoint_test.rb +0 -121
  33. data/test/remote/gateways/remote_merchant_e_solutions_test.rb +0 -173
  34. data/test/remote/gateways/remote_merchant_ware_test.rb +0 -113
  35. data/test/remote/gateways/remote_modern_payments_cim_test.rb +0 -58
  36. data/test/remote/gateways/remote_modern_payments_test.rb +0 -57
  37. data/test/remote/gateways/remote_moneris_test.rb +0 -82
  38. data/test/remote/gateways/remote_net_registry_test.rb +0 -85
  39. data/test/remote/gateways/remote_netbilling_test.rb +0 -70
  40. data/test/remote/gateways/remote_ogone_test.rb +0 -115
  41. data/test/remote/gateways/remote_pay_junction_test.rb +0 -143
  42. data/test/remote/gateways/remote_pay_secure_test.rb +0 -39
  43. data/test/remote/gateways/remote_payflow_express_test.rb +0 -50
  44. data/test/remote/gateways/remote_payflow_test.rb +0 -237
  45. data/test/remote/gateways/remote_payflow_uk_test.rb +0 -173
  46. data/test/remote/gateways/remote_payment_express_test.rb +0 -136
  47. data/test/remote/gateways/remote_paypal_express_test.rb +0 -49
  48. data/test/remote/gateways/remote_paypal_test.rb +0 -191
  49. data/test/remote/gateways/remote_plugnpay_test.rb +0 -72
  50. data/test/remote/gateways/remote_psigate_test.rb +0 -50
  51. data/test/remote/gateways/remote_psl_card_test.rb +0 -123
  52. data/test/remote/gateways/remote_quickpay_test.rb +0 -190
  53. data/test/remote/gateways/remote_realex_test.rb +0 -224
  54. data/test/remote/gateways/remote_sage_bankcard_test.rb +0 -109
  55. data/test/remote/gateways/remote_sage_pay_test.rb +0 -219
  56. data/test/remote/gateways/remote_sage_test.rb +0 -87
  57. data/test/remote/gateways/remote_sage_virtual_check_test.rb +0 -62
  58. data/test/remote/gateways/remote_sallie_mae_test.rb +0 -51
  59. data/test/remote/gateways/remote_secure_pay_au_test.rb +0 -40
  60. data/test/remote/gateways/remote_secure_pay_tech_test.rb +0 -37
  61. data/test/remote/gateways/remote_secure_pay_test.rb +0 -28
  62. data/test/remote/gateways/remote_skipjack_test.rb +0 -105
  63. data/test/remote/gateways/remote_trans_first_test.rb +0 -34
  64. data/test/remote/gateways/remote_transax_test.rb +0 -112
  65. data/test/remote/gateways/remote_trust_commerce_test.rb +0 -152
  66. data/test/remote/gateways/remote_usa_epay_test.rb +0 -46
  67. data/test/remote/gateways/remote_verifi_test.rb +0 -107
  68. data/test/remote/gateways/remote_viaklix_test.rb +0 -43
  69. data/test/remote/gateways/remote_wirecard_test.rb +0 -111
  70. data/test/remote/integrations/remote_gestpay_integration_test.rb +0 -37
  71. data/test/remote/integrations/remote_paypal_integration_test.rb +0 -26
  72. data/test/test_helper.rb +0 -184
  73. data/test/unit/avs_result_test.rb +0 -59
  74. data/test/unit/base_test.rb +0 -54
  75. data/test/unit/check_test.rb +0 -88
  76. data/test/unit/connection_test.rb +0 -129
  77. data/test/unit/country_code_test.rb +0 -33
  78. data/test/unit/country_test.rb +0 -64
  79. data/test/unit/credit_card_formatting_test.rb +0 -19
  80. data/test/unit/credit_card_methods_test.rb +0 -179
  81. data/test/unit/credit_card_test.rb +0 -318
  82. data/test/unit/cvv_result_test.rb +0 -33
  83. data/test/unit/expiry_date_test.rb +0 -32
  84. data/test/unit/gateways/authorize_net_cim_test.rb +0 -676
  85. data/test/unit/gateways/authorize_net_test.rb +0 -290
  86. data/test/unit/gateways/beanstream_interac_test.rb +0 -51
  87. data/test/unit/gateways/beanstream_test.rb +0 -108
  88. data/test/unit/gateways/bogus_test.rb +0 -46
  89. data/test/unit/gateways/braintree_test.rb +0 -118
  90. data/test/unit/gateways/card_stream_test.rb +0 -90
  91. data/test/unit/gateways/cyber_source_test.rb +0 -188
  92. data/test/unit/gateways/data_cash_test.rb +0 -133
  93. data/test/unit/gateways/efsnet_test.rb +0 -123
  94. data/test/unit/gateways/elavon_test.rb +0 -139
  95. data/test/unit/gateways/eway_test.rb +0 -118
  96. data/test/unit/gateways/exact_test.rb +0 -156
  97. data/test/unit/gateways/first_pay_test.rb +0 -125
  98. data/test/unit/gateways/gateway_test.rb +0 -48
  99. data/test/unit/gateways/instapay_test.rb +0 -102
  100. data/test/unit/gateways/jetpay_test.rb +0 -185
  101. data/test/unit/gateways/linkpoint_test.rb +0 -197
  102. data/test/unit/gateways/merchant_e_solutions_test.rb +0 -169
  103. data/test/unit/gateways/merchant_ware_test.rb +0 -188
  104. data/test/unit/gateways/modern_payments_cim_test.rb +0 -162
  105. data/test/unit/gateways/moneris_test.rb +0 -158
  106. data/test/unit/gateways/net_registry_test.rb +0 -416
  107. data/test/unit/gateways/netbilling_test.rb +0 -54
  108. data/test/unit/gateways/ogone_test.rb +0 -319
  109. data/test/unit/gateways/pay_junction_test.rb +0 -123
  110. data/test/unit/gateways/pay_secure_test.rb +0 -71
  111. data/test/unit/gateways/payflow_express_test.rb +0 -173
  112. data/test/unit/gateways/payflow_express_uk_test.rb +0 -86
  113. data/test/unit/gateways/payflow_test.rb +0 -305
  114. data/test/unit/gateways/payflow_uk_test.rb +0 -30
  115. data/test/unit/gateways/payment_express_test.rb +0 -195
  116. data/test/unit/gateways/paypal_express_test.rb +0 -382
  117. data/test/unit/gateways/paypal_test.rb +0 -569
  118. data/test/unit/gateways/plugnpay_test.rb +0 -86
  119. data/test/unit/gateways/psigate_test.rb +0 -169
  120. data/test/unit/gateways/psl_card_test.rb +0 -64
  121. data/test/unit/gateways/quickpay_test.rb +0 -112
  122. data/test/unit/gateways/realex_test.rb +0 -151
  123. data/test/unit/gateways/sage_bankcard_test.rb +0 -196
  124. data/test/unit/gateways/sage_pay_test.rb +0 -139
  125. data/test/unit/gateways/sage_virtual_check_test.rb +0 -71
  126. data/test/unit/gateways/sallie_mae_test.rb +0 -53
  127. data/test/unit/gateways/secure_pay_au_test.rb +0 -207
  128. data/test/unit/gateways/secure_pay_tech_test.rb +0 -44
  129. data/test/unit/gateways/secure_pay_test.rb +0 -101
  130. data/test/unit/gateways/skip_jack_test.rb +0 -213
  131. data/test/unit/gateways/trans_first_test.rb +0 -112
  132. data/test/unit/gateways/trust_commerce_test.rb +0 -90
  133. data/test/unit/gateways/usa_epay_test.rb +0 -128
  134. data/test/unit/gateways/verifi_test.rb +0 -96
  135. data/test/unit/gateways/viaklix_test.rb +0 -78
  136. data/test/unit/gateways/wirecard_test.rb +0 -250
  137. data/test/unit/generators/test_gateway_generator.rb +0 -46
  138. data/test/unit/generators/test_generator_helper.rb +0 -20
  139. data/test/unit/generators/test_integration_generator.rb +0 -53
  140. data/test/unit/integrations/action_view_helper_test.rb +0 -50
  141. data/test/unit/integrations/bogus_module_test.rb +0 -20
  142. data/test/unit/integrations/chronopay_module_test.rb +0 -13
  143. data/test/unit/integrations/gestpay_module_test.rb +0 -14
  144. data/test/unit/integrations/helpers/bogus_helper_test.rb +0 -28
  145. data/test/unit/integrations/helpers/chronopay_helper_test.rb +0 -67
  146. data/test/unit/integrations/helpers/gestpay_helper_test.rb +0 -100
  147. data/test/unit/integrations/helpers/hi_trust_helper_test.rb +0 -16
  148. data/test/unit/integrations/helpers/nochex_helper_test.rb +0 -53
  149. data/test/unit/integrations/helpers/paypal_helper_test.rb +0 -171
  150. data/test/unit/integrations/helpers/quickpay_helper_test.rb +0 -40
  151. data/test/unit/integrations/helpers/two_checkout_helper_test.rb +0 -92
  152. data/test/unit/integrations/hi_trust_module_test.rb +0 -13
  153. data/test/unit/integrations/nochex_module_test.rb +0 -13
  154. data/test/unit/integrations/notifications/chronopay_notification_test.rb +0 -66
  155. data/test/unit/integrations/notifications/gestpay_notification_test.rb +0 -60
  156. data/test/unit/integrations/notifications/hi_trust_notification_test.rb +0 -59
  157. data/test/unit/integrations/notifications/nochex_notification_test.rb +0 -51
  158. data/test/unit/integrations/notifications/notification_test.rb +0 -54
  159. data/test/unit/integrations/notifications/paypal_notification_test.rb +0 -85
  160. data/test/unit/integrations/notifications/quickpay_notification_test.rb +0 -69
  161. data/test/unit/integrations/notifications/two_checkout_notification_test.rb +0 -55
  162. data/test/unit/integrations/paypal_module_test.rb +0 -28
  163. data/test/unit/integrations/quickpay_module_test.rb +0 -9
  164. data/test/unit/integrations/returns/chronopay_return_test.rb +0 -11
  165. data/test/unit/integrations/returns/gestpay_return_test.rb +0 -10
  166. data/test/unit/integrations/returns/hi_trust_return_test.rb +0 -24
  167. data/test/unit/integrations/returns/nochex_return_test.rb +0 -10
  168. data/test/unit/integrations/returns/paypal_return_test.rb +0 -10
  169. data/test/unit/integrations/returns/return_test.rb +0 -11
  170. data/test/unit/integrations/returns/two_checkout_return_test.rb +0 -24
  171. data/test/unit/integrations/two_checkout_module_test.rb +0 -13
  172. data/test/unit/post_data_test.rb +0 -55
  173. data/test/unit/posts_data_test.rb +0 -48
  174. data/test/unit/response_test.rb +0 -28
  175. data/test/unit/utils_test.rb +0 -7
  176. data/test/unit/validateable_test.rb +0 -60
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG CHANGED
@@ -1,5 +1,14 @@
1
1
  = ActiveMerchant CHANGELOG
2
2
 
3
+ == Version 1.5.1 (February 14, 2010)
4
+
5
+ * Cleanup Rakefile, add gemspec and prepare for 1.5.1 release [cody]
6
+ * Update copyright dates [cody]
7
+ * Work around SkipJack bug by reversing the order of the query params [Soleone]
8
+ * Fix uppercase character in autoload of 2Checkout's Notification class [Edward Ocampo-Gooding]
9
+ * Detect language used in Chronopay integration based on billing address country [Soleone]
10
+ * Better handle international addresses in BeanstreamGateway [Soleone]
11
+
3
12
  == Version 1.5.0 (February 2, 2010)
4
13
 
5
14
  * Fix Gestpay notification to avoid Ruby 1.9 warnings [cody]
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2005 Tobias Luetke
1
+ Copyright (c) 2005-2010 Tobias Luetke
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2005-2007 Tobias Luetke
2
+ # Copyright (c) 2005-2010 Tobias Luetke
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -23,24 +23,11 @@
23
23
 
24
24
  $:.unshift File.dirname(__FILE__)
25
25
 
26
- # Include rails' active support for all the core extensions we love
27
- begin
28
- require 'active_support'
29
- rescue LoadError
30
- require 'rubygems'
31
- gem 'activesupport', ">=2.0.0"
32
- require 'active_support'
33
- end
34
-
35
- begin
36
- require 'builder'
37
- rescue LoadError
38
- require 'rubygems'
39
- require 'builder'
40
- end
41
-
26
+ require 'active_support'
27
+ require 'builder'
42
28
  require 'cgi'
43
29
  require 'rexml/document'
30
+
44
31
  require 'active_merchant/lib/utils'
45
32
  require 'active_merchant/lib/error'
46
33
  require 'active_merchant/lib/validateable'
@@ -50,17 +37,10 @@ require 'active_merchant/lib/post_data'
50
37
  require 'active_merchant/lib/requires_parameters'
51
38
  require 'active_merchant/lib/country'
52
39
 
53
- require 'active_merchant/billing/avs_result'
54
- require 'active_merchant/billing/cvv_result'
55
- require 'active_merchant/billing/credit_card_methods'
56
- require 'active_merchant/billing/credit_card_formatting'
57
- require 'active_merchant/billing/credit_card'
58
- require 'active_merchant/billing/base'
59
- require 'active_merchant/billing/check'
60
- require 'active_merchant/billing/gateways'
40
+ require 'active_merchant/billing'
61
41
 
62
42
  module ActiveMerchant #:nodoc:
63
43
  module Billing #:nodoc:
64
- autoload :Integrations, 'active_merchant/billing/integrations'
44
+ autoload :Integrations, 'active_merchant/billing/integrations'
65
45
  end
66
46
  end
@@ -0,0 +1,9 @@
1
+ require 'active_merchant/billing/avs_result'
2
+ require 'active_merchant/billing/cvv_result'
3
+ require 'active_merchant/billing/credit_card_methods'
4
+ require 'active_merchant/billing/credit_card_formatting'
5
+ require 'active_merchant/billing/credit_card'
6
+ require 'active_merchant/billing/base'
7
+ require 'active_merchant/billing/check'
8
+ require 'active_merchant/billing/response'
9
+ require 'active_merchant/billing/gateways'
@@ -105,7 +105,9 @@ module ActiveMerchant #:nodoc:
105
105
  post[:adjId] = reference
106
106
  end
107
107
 
108
- def add_address(post, options)
108
+ def add_address(post, options)
109
+ prepare_address_for_non_american_countries(options)
110
+
109
111
  if billing_address = options[:billing_address] || options[:address]
110
112
  post[:ordName] = billing_address[:name]
111
113
  post[:ordEmailAddress] = options[:email]
@@ -132,6 +134,15 @@ module ActiveMerchant #:nodoc:
132
134
  end
133
135
  end
134
136
 
137
+ def prepare_address_for_non_american_countries(options)
138
+ [ options[:billing_address], options[:shipping_address] ].compact.each do |address|
139
+ unless ['US', 'CA'].include?(address[:country])
140
+ address[:state] = '--'
141
+ address[:zip] = '000000' unless address[:zip]
142
+ end
143
+ end
144
+ end
145
+
135
146
  def add_invoice(post, options)
136
147
  post[:trnOrderNumber] = options[:order_id]
137
148
  post[:trnComments] = options[:description]
@@ -356,7 +356,8 @@ module ActiveMerchant #:nodoc:
356
356
  def post_data(action, money, params = {})
357
357
  add_credentials(params, action)
358
358
  add_amount(params, action, money)
359
- params.collect { |key, value| "#{key.to_s}=#{CGI.escape(value.to_s)}" }.join("&")
359
+ sorted_params = params.to_a.sort{|a,b| a.to_s <=> b.to_s}.reverse
360
+ sorted_params.collect { |key, value| "#{key.to_s}=#{CGI.escape(value.to_s)}" }.join("&")
360
361
  end
361
362
 
362
363
  def add_transaction_id(post, transaction_id)
@@ -3,12 +3,39 @@ module ActiveMerchant #:nodoc:
3
3
  module Integrations #:nodoc:
4
4
  module Chronopay
5
5
  class Helper < ActiveMerchant::Billing::Integrations::Helper
6
+ # All currently supported checkout languages:
7
+ # es (Spanish)
8
+ # en (English)
9
+ # de (German)
10
+ # pt (Portuguese)
11
+ # lv (Latvian)
12
+ # cn1 (Chinese Version 1)
13
+ # cn2 (Chinese version 2)
14
+ # nl (Dutch)
15
+ # ru (Russian)
16
+ COUNTRIES_FOR_LANG = {
17
+ 'ES' => %w( AR BO CL CO CR CU DO EC SV GQ GT HN MX NI PA PY PE ES UY VE),
18
+ 'DE' => %w( DE AT CH LI ),
19
+ 'PT' => %w( AO BR CV GW MZ PT ST TL),
20
+ 'RU' => %w( BY KG KZ RU ),
21
+ 'LV' => 'LV',
22
+ 'CN1' => 'CN',
23
+ 'NL' => 'NL'
24
+ }
25
+
26
+ LANG_FOR_COUNTRY = COUNTRIES_FOR_LANG.inject(Hash.new("EN")) do |memo, (lang, countries)|
27
+ countries.each do |code|
28
+ memo[code] = lang
29
+ end
30
+ memo
31
+ end
32
+
33
+
6
34
  self.country_format = :alpha3
7
35
 
8
36
  def initialize(order, account, options = {})
9
37
  super
10
38
  add_field('cb_type', 'p')
11
- add_field('language', 'EN')
12
39
  end
13
40
 
14
41
  # product_id
@@ -56,6 +83,7 @@ module ActiveMerchant #:nodoc:
56
83
  field = mappings[:billing_address][k]
57
84
  add_field(field, v) unless field.nil?
58
85
  end
86
+ add_field('language', checkout_language_from_country(country_code))
59
87
  end
60
88
 
61
89
  # card_no
@@ -74,6 +102,17 @@ module ActiveMerchant #:nodoc:
74
102
  # cs2
75
103
  # cs3
76
104
  # decline_url
105
+
106
+
107
+ private
108
+
109
+ def checkout_language_from_country(country_code)
110
+ country = Country.find(country_code)
111
+ short_code = country.code(:alpha2).to_s
112
+ LANG_FOR_COUNTRY[short_code]
113
+ rescue InvalidCountryCodeError
114
+ 'EN'
115
+ end
77
116
  end
78
117
  end
79
118
  end
@@ -5,7 +5,7 @@ module ActiveMerchant #:nodoc:
5
5
  module TwoCheckout
6
6
  autoload 'Helper', File.dirname(__FILE__) + '/two_checkout/helper'
7
7
  autoload 'Return', File.dirname(__FILE__) + '/two_checkout/return'
8
- autoload 'Notification', File.dirname(__FILE__) + '/two_Checkout/notification'
8
+ autoload 'Notification', File.dirname(__FILE__) + '/two_checkout/notification'
9
9
 
10
10
  mattr_accessor :service_url
11
11
  self.service_url = 'https://www.2checkout.com/2co/buyer/purchase'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemerchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke
@@ -30,7 +30,7 @@ cert_chain:
30
30
  hPaSTyVU0yCSnw==
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2010-02-02 00:00:00 -05:00
33
+ date: 2010-02-14 00:00:00 -05:00
34
34
  default_executable:
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: 2.0.0
55
55
  version:
56
- description:
56
+ description: Active Merchant is a simple payment abstraction library used in and sponsored by Shopify. It is written by Tobias Luetke, Cody Fauser, and contributors. The aim of the project is to feel natural to Ruby users and to abstract as many parts as possible away from the user to offer a consistent interface across all supported gateways.
57
57
  email: tobi@leetsoft.com
58
58
  executables: []
59
59
 
@@ -62,6 +62,11 @@ extensions: []
62
62
  extra_rdoc_files: []
63
63
 
64
64
  files:
65
+ - CHANGELOG
66
+ - README.rdoc
67
+ - MIT-LICENSE
68
+ - CONTRIBUTORS
69
+ - gem-public_cert.pem
65
70
  - lib/active_merchant/billing/avs_result.rb
66
71
  - lib/active_merchant/billing/base.rb
67
72
  - lib/active_merchant/billing/check.rb
@@ -176,6 +181,7 @@ files:
176
181
  - lib/active_merchant/billing/integrations/two_checkout.rb
177
182
  - lib/active_merchant/billing/integrations.rb
178
183
  - lib/active_merchant/billing/response.rb
184
+ - lib/active_merchant/billing.rb
179
185
  - lib/active_merchant/lib/connection.rb
180
186
  - lib/active_merchant/lib/country.rb
181
187
  - lib/active_merchant/lib/error.rb
@@ -187,176 +193,6 @@ files:
187
193
  - lib/active_merchant.rb
188
194
  - lib/certs/cacert.pem
189
195
  - lib/support/gateway_support.rb
190
- - test/fixtures.yml
191
- - test/remote/gateways/remote_authorize_net_cim_test.rb
192
- - test/remote/gateways/remote_authorize_net_test.rb
193
- - test/remote/gateways/remote_beanstream_interac_test.rb
194
- - test/remote/gateways/remote_beanstream_test.rb
195
- - test/remote/gateways/remote_braintree_test.rb
196
- - test/remote/gateways/remote_card_stream_test.rb
197
- - test/remote/gateways/remote_cyber_source_test.rb
198
- - test/remote/gateways/remote_data_cash_test.rb
199
- - test/remote/gateways/remote_efsnet_test.rb
200
- - test/remote/gateways/remote_elavon_test.rb
201
- - test/remote/gateways/remote_eway_test.rb
202
- - test/remote/gateways/remote_exact_test.rb
203
- - test/remote/gateways/remote_first_pay_test.rb
204
- - test/remote/gateways/remote_instapay_test.rb
205
- - test/remote/gateways/remote_jetpay_test.rb
206
- - test/remote/gateways/remote_linkpoint_test.rb
207
- - test/remote/gateways/remote_merchant_e_solutions_test.rb
208
- - test/remote/gateways/remote_merchant_ware_test.rb
209
- - test/remote/gateways/remote_modern_payments_cim_test.rb
210
- - test/remote/gateways/remote_modern_payments_test.rb
211
- - test/remote/gateways/remote_moneris_test.rb
212
- - test/remote/gateways/remote_net_registry_test.rb
213
- - test/remote/gateways/remote_netbilling_test.rb
214
- - test/remote/gateways/remote_ogone_test.rb
215
- - test/remote/gateways/remote_pay_junction_test.rb
216
- - test/remote/gateways/remote_pay_secure_test.rb
217
- - test/remote/gateways/remote_payflow_express_test.rb
218
- - test/remote/gateways/remote_payflow_test.rb
219
- - test/remote/gateways/remote_payflow_uk_test.rb
220
- - test/remote/gateways/remote_payment_express_test.rb
221
- - test/remote/gateways/remote_paypal_express_test.rb
222
- - test/remote/gateways/remote_paypal_test.rb
223
- - test/remote/gateways/remote_plugnpay_test.rb
224
- - test/remote/gateways/remote_psigate_test.rb
225
- - test/remote/gateways/remote_psl_card_test.rb
226
- - test/remote/gateways/remote_quickpay_test.rb
227
- - test/remote/gateways/remote_realex_test.rb
228
- - test/remote/gateways/remote_sage_bankcard_test.rb
229
- - test/remote/gateways/remote_sage_pay_test.rb
230
- - test/remote/gateways/remote_sage_test.rb
231
- - test/remote/gateways/remote_sage_virtual_check_test.rb
232
- - test/remote/gateways/remote_sallie_mae_test.rb
233
- - test/remote/gateways/remote_secure_pay_au_test.rb
234
- - test/remote/gateways/remote_secure_pay_tech_test.rb
235
- - test/remote/gateways/remote_secure_pay_test.rb
236
- - test/remote/gateways/remote_skipjack_test.rb
237
- - test/remote/gateways/remote_trans_first_test.rb
238
- - test/remote/gateways/remote_transax_test.rb
239
- - test/remote/gateways/remote_trust_commerce_test.rb
240
- - test/remote/gateways/remote_usa_epay_test.rb
241
- - test/remote/gateways/remote_verifi_test.rb
242
- - test/remote/gateways/remote_viaklix_test.rb
243
- - test/remote/gateways/remote_wirecard_test.rb
244
- - test/remote/integrations/remote_gestpay_integration_test.rb
245
- - test/remote/integrations/remote_paypal_integration_test.rb
246
- - test/test_helper.rb
247
- - test/unit/avs_result_test.rb
248
- - test/unit/base_test.rb
249
- - test/unit/check_test.rb
250
- - test/unit/connection_test.rb
251
- - test/unit/country_code_test.rb
252
- - test/unit/country_test.rb
253
- - test/unit/credit_card_formatting_test.rb
254
- - test/unit/credit_card_methods_test.rb
255
- - test/unit/credit_card_test.rb
256
- - test/unit/cvv_result_test.rb
257
- - test/unit/expiry_date_test.rb
258
- - test/unit/gateways/authorize_net_cim_test.rb
259
- - test/unit/gateways/authorize_net_test.rb
260
- - test/unit/gateways/beanstream_interac_test.rb
261
- - test/unit/gateways/beanstream_test.rb
262
- - test/unit/gateways/bogus_test.rb
263
- - test/unit/gateways/braintree_test.rb
264
- - test/unit/gateways/card_stream_test.rb
265
- - test/unit/gateways/cyber_source_test.rb
266
- - test/unit/gateways/data_cash_test.rb
267
- - test/unit/gateways/efsnet_test.rb
268
- - test/unit/gateways/elavon_test.rb
269
- - test/unit/gateways/eway_test.rb
270
- - test/unit/gateways/exact_test.rb
271
- - test/unit/gateways/first_pay_test.rb
272
- - test/unit/gateways/gateway_test.rb
273
- - test/unit/gateways/instapay_test.rb
274
- - test/unit/gateways/jetpay_test.rb
275
- - test/unit/gateways/linkpoint_test.rb
276
- - test/unit/gateways/merchant_e_solutions_test.rb
277
- - test/unit/gateways/merchant_ware_test.rb
278
- - test/unit/gateways/modern_payments_cim_test.rb
279
- - test/unit/gateways/moneris_test.rb
280
- - test/unit/gateways/net_registry_test.rb
281
- - test/unit/gateways/netbilling_test.rb
282
- - test/unit/gateways/ogone_test.rb
283
- - test/unit/gateways/pay_junction_test.rb
284
- - test/unit/gateways/pay_secure_test.rb
285
- - test/unit/gateways/payflow_express_test.rb
286
- - test/unit/gateways/payflow_express_uk_test.rb
287
- - test/unit/gateways/payflow_test.rb
288
- - test/unit/gateways/payflow_uk_test.rb
289
- - test/unit/gateways/payment_express_test.rb
290
- - test/unit/gateways/paypal_express_test.rb
291
- - test/unit/gateways/paypal_test.rb
292
- - test/unit/gateways/plugnpay_test.rb
293
- - test/unit/gateways/psigate_test.rb
294
- - test/unit/gateways/psl_card_test.rb
295
- - test/unit/gateways/quickpay_test.rb
296
- - test/unit/gateways/realex_test.rb
297
- - test/unit/gateways/sage_bankcard_test.rb
298
- - test/unit/gateways/sage_pay_test.rb
299
- - test/unit/gateways/sage_virtual_check_test.rb
300
- - test/unit/gateways/sallie_mae_test.rb
301
- - test/unit/gateways/secure_pay_au_test.rb
302
- - test/unit/gateways/secure_pay_tech_test.rb
303
- - test/unit/gateways/secure_pay_test.rb
304
- - test/unit/gateways/skip_jack_test.rb
305
- - test/unit/gateways/trans_first_test.rb
306
- - test/unit/gateways/trust_commerce_test.rb
307
- - test/unit/gateways/usa_epay_test.rb
308
- - test/unit/gateways/verifi_test.rb
309
- - test/unit/gateways/viaklix_test.rb
310
- - test/unit/gateways/wirecard_test.rb
311
- - test/unit/generators/test_gateway_generator.rb
312
- - test/unit/generators/test_generator_helper.rb
313
- - test/unit/generators/test_integration_generator.rb
314
- - test/unit/integrations/action_view_helper_test.rb
315
- - test/unit/integrations/bogus_module_test.rb
316
- - test/unit/integrations/chronopay_module_test.rb
317
- - test/unit/integrations/gestpay_module_test.rb
318
- - test/unit/integrations/helpers/bogus_helper_test.rb
319
- - test/unit/integrations/helpers/chronopay_helper_test.rb
320
- - test/unit/integrations/helpers/gestpay_helper_test.rb
321
- - test/unit/integrations/helpers/hi_trust_helper_test.rb
322
- - test/unit/integrations/helpers/nochex_helper_test.rb
323
- - test/unit/integrations/helpers/paypal_helper_test.rb
324
- - test/unit/integrations/helpers/quickpay_helper_test.rb
325
- - test/unit/integrations/helpers/two_checkout_helper_test.rb
326
- - test/unit/integrations/hi_trust_module_test.rb
327
- - test/unit/integrations/nochex_module_test.rb
328
- - test/unit/integrations/notifications/chronopay_notification_test.rb
329
- - test/unit/integrations/notifications/gestpay_notification_test.rb
330
- - test/unit/integrations/notifications/hi_trust_notification_test.rb
331
- - test/unit/integrations/notifications/nochex_notification_test.rb
332
- - test/unit/integrations/notifications/notification_test.rb
333
- - test/unit/integrations/notifications/paypal_notification_test.rb
334
- - test/unit/integrations/notifications/quickpay_notification_test.rb
335
- - test/unit/integrations/notifications/two_checkout_notification_test.rb
336
- - test/unit/integrations/paypal_module_test.rb
337
- - test/unit/integrations/quickpay_module_test.rb
338
- - test/unit/integrations/returns/chronopay_return_test.rb
339
- - test/unit/integrations/returns/gestpay_return_test.rb
340
- - test/unit/integrations/returns/hi_trust_return_test.rb
341
- - test/unit/integrations/returns/nochex_return_test.rb
342
- - test/unit/integrations/returns/paypal_return_test.rb
343
- - test/unit/integrations/returns/return_test.rb
344
- - test/unit/integrations/returns/two_checkout_return_test.rb
345
- - test/unit/integrations/two_checkout_module_test.rb
346
- - test/unit/post_data_test.rb
347
- - test/unit/posts_data_test.rb
348
- - test/unit/response_test.rb
349
- - test/unit/utils_test.rb
350
- - test/unit/validateable_test.rb
351
- - script/destroy
352
- - script/generate
353
- - CHANGELOG
354
- - CONTRIBUTORS
355
- - gem-public_cert.pem
356
- - init.rb
357
- - MIT-LICENSE
358
- - Rakefile
359
- - README.rdoc
360
196
  has_rdoc: true
361
197
  homepage: http://activemerchant.org/
362
198
  licenses: []
metadata.gz.sig CHANGED
Binary file
data/Rakefile DELETED
@@ -1,153 +0,0 @@
1
- require 'rubygems'
2
- require 'rake'
3
- require 'rake/testtask'
4
- require 'rake/rdoctask'
5
- require 'rake/gempackagetask'
6
- require 'rake/contrib/rubyforgepublisher'
7
- require File.join(File.dirname(__FILE__), 'lib', 'support', 'gateway_support')
8
-
9
-
10
- PKG_VERSION = "1.5.0"
11
- PKG_NAME = "activemerchant"
12
- PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
13
-
14
- PKG_FILES = FileList[
15
- "lib/**/*", "test/**/*", "script/**/*", "[a-zA-Z]*"
16
- ].exclude(/\.svn$/)
17
-
18
-
19
- desc "Default Task"
20
- task :default => 'test:units'
21
-
22
- # Run the unit tests
23
- namespace :test do
24
-
25
- Rake::TestTask.new(:units) do |t|
26
- t.pattern = 'test/unit/**/*_test.rb'
27
- t.ruby_opts << '-rubygems'
28
- t.libs << 'test'
29
- t.verbose = true
30
- end
31
-
32
- Rake::TestTask.new(:remote) do |t|
33
- t.pattern = 'test/remote/**/*_test.rb'
34
- t.ruby_opts << '-rubygems'
35
- t.libs << 'test'
36
- t.verbose = true
37
- end
38
-
39
- end
40
-
41
- # Genereate the RDoc documentation
42
- Rake::RDocTask.new do |rdoc|
43
- rdoc.rdoc_dir = 'doc'
44
- rdoc.title = "ActiveMerchant library"
45
- rdoc.options << '--line-numbers' << '--inline-source' << '--main=README.rdoc'
46
- rdoc.rdoc_files.include('README.rdoc', 'CHANGELOG')
47
- rdoc.rdoc_files.include('lib/**/*.rb')
48
- rdoc.rdoc_files.exclude('lib/tasks')
49
- end
50
-
51
- task :install => [:package] do
52
- `gem install pkg/#{PKG_FILE_NAME}.gem`
53
- end
54
-
55
- task :lines do
56
- lines = 0
57
- codelines = 0
58
- Dir.foreach("lib") { |file_name|
59
- next unless file_name =~ /.*rb/
60
-
61
- f = File.open("lib/" + file_name)
62
-
63
- while line = f.gets
64
- lines += 1
65
- next if line =~ /^\s*$/
66
- next if line =~ /^\s*#/
67
- codelines += 1
68
- end
69
- }
70
- puts "Lines #{lines}, LOC #{codelines}"
71
- end
72
-
73
- desc "Delete tar.gz / zip / rdoc"
74
- task :cleanup => [ :clobber_package, :clobber_rdoc ]
75
-
76
- spec = Gem::Specification.new do |s|
77
- s.name = PKG_NAME
78
- s.version = PKG_VERSION
79
- s.summary = "Framework and tools for dealing with credit card transactions."
80
- s.has_rdoc = true
81
-
82
- s.files = PKG_FILES
83
-
84
- s.rubyforge_project = "activemerchant"
85
- s.require_path = 'lib'
86
- s.author = "Tobias Luetke"
87
- s.email = "tobi@leetsoft.com"
88
- s.homepage = "http://activemerchant.org/"
89
-
90
- s.add_dependency('activesupport', '>= 2.3.2')
91
- s.add_dependency('builder', '>= 2.0.0')
92
-
93
- s.signing_key = ENV['GEM_PRIVATE_KEY']
94
- s.cert_chain = ['gem-public_cert.pem']
95
- end
96
-
97
- Rake::GemPackageTask.new(spec) do |p|
98
- p.gem_spec = spec
99
- p.need_tar = true
100
- p.need_zip = true
101
- end
102
-
103
- desc "Release the gems and docs to RubyForge"
104
- task :release => [ :publish, :upload_rdoc ]
105
-
106
- desc "Publish the release files to RubyForge."
107
- task :publish => [ :package ] do
108
- require 'rubyforge'
109
-
110
- packages = %w( gem tgz zip ).collect{ |ext| "pkg/#{PKG_NAME}-#{PKG_VERSION}.#{ext}" }
111
-
112
- rubyforge = RubyForge.new
113
- rubyforge.configure
114
- rubyforge.login
115
- rubyforge.add_release(PKG_NAME, PKG_NAME, "REL #{PKG_VERSION}", *packages)
116
- end
117
-
118
- desc 'Upload RDoc to RubyForge'
119
- task :upload_rdoc => :rdoc do
120
- user = ENV['RUBYFORGE_USER']
121
- project = "/var/www/gforge-projects/#{PKG_NAME}"
122
- local_dir = 'doc'
123
- pub = Rake::SshDirPublisher.new user, project, local_dir
124
- pub.upload
125
- end
126
-
127
- namespace :gateways do
128
- desc 'Print the currently supported gateways'
129
- task :print do
130
- support = GatewaySupport.new
131
- support.to_s
132
- end
133
-
134
- namespace :print do
135
- desc 'Print the currently supported gateways in RDoc format'
136
- task :rdoc do
137
- support = GatewaySupport.new
138
- support.to_rdoc
139
- end
140
-
141
- desc 'Print the currently supported gateways in Textile format'
142
- task :textile do
143
- support = GatewaySupport.new
144
- support.to_textile
145
- end
146
-
147
- desc 'Print the gateway functionality supported by each gateway'
148
- task :features do
149
- support = GatewaySupport.new
150
- support.features
151
- end
152
- end
153
- end