activemerchant 1.79.0 → 1.79.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: fc758ea4c33fcefecc9d94e1dc19c858d01292b8
4
- data.tar.gz: 0c81fa395b72670baf36ba18fbb3c7bd2e246c0e
3
+ metadata.gz: 6f427e481f9ffab05d2fe6dbc40799ab2917c291
4
+ data.tar.gz: aab73ff03f9f687a81c8a66d1d90cadedd48b812
5
5
  SHA512:
6
- metadata.gz: bbfe31171a450822d61d4c2d9eed29ae72fa5e85d501616c789ebbbf283f722bc3072fdf716b8eaedeebbd901461e0a701c0f258720b5f1547b2ff6f25242259
7
- data.tar.gz: 2e65932a609a54ffa6d63b70cf004b536160e00e6cb3cbc3d6cfa8c63e28ccb92bbbad63655e7071829677724cc35bb2b8475fbc96beb27f80691ed2a454120e
6
+ metadata.gz: 9e57733e7d23c8a23c09f12ec1b131a510264dde7059794b7ab62000b3df25e1c4549835db9671b789e641fe18faf8de181043327b8f01df0b003632eca555bf
7
+ data.tar.gz: d846382b3e9bb6b2de08f28bb6d8b11e75ed05e74187f78a3447b1dbd232a9017cbe7cc2a32b347d686f4475615568e1bbeaf0b6106dc0764f955d0ef6fe9369
data/CHANGELOG CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  == HEAD
4
4
 
5
+ == Version 1.79.1 (May 31, 2018)
6
+ * Fix Net::HTTP connections defaulting to connection: keep-alive instead of close since #2862 [bpollack] #2868
7
+ * Mundipagg: allow passing holder_document for credit card purchases [bpollack] #2864
8
+ * Conekta: support monthly_installments [bpollack] #2866
9
+ * Authorize.net: allow sending email_customer set to false [bpollack] #2867
10
+
5
11
  == Version 1.79.0 (May 30, 2018)
6
12
  * Allow setting min/max SSL version for a connection on Ruby 2.5 [bdewater] #2775
7
13
  * Add `gateways:ssl:min_version` rake task to test upcoming TLS 1.0 deprecation deadline [bdewater] #2775
@@ -412,10 +412,10 @@ module ActiveMerchant
412
412
  ActiveMerchant.deprecated "Using the duplicate_window class_attribute is deprecated. Use the transaction options hash instead."
413
413
  set_duplicate_window(xml, self.class.duplicate_window)
414
414
  end
415
- if options[:email_customer]
415
+ if options.key?(:email_customer)
416
416
  xml.setting do
417
417
  xml.settingName("emailCustomer")
418
- xml.settingValue("true")
418
+ xml.settingValue(options[:email_customer] ? "true" : "false")
419
419
  end
420
420
  end
421
421
  if options[:header_email_receipt]
@@ -77,6 +77,7 @@ module ActiveMerchant #:nodoc:
77
77
  post[:description] = options[:description] || "Active Merchant Purchase"
78
78
  post[:reference_id] = options[:order_id] if options[:order_id]
79
79
  post[:currency] = (options[:currency] || currency(money)).downcase
80
+ post[:monthly_installments] = options[:monthly_installments] if options[:monthly_installments]
80
81
  post[:amount] = amount(money)
81
82
  end
82
83
 
@@ -176,6 +176,7 @@ module ActiveMerchant #:nodoc:
176
176
  post[:payment][:credit_card][:card][:exp_month] = payment.month
177
177
  post[:payment][:credit_card][:card][:exp_year] = payment.year
178
178
  post[:payment][:credit_card][:card][:cvv] = payment.verification_value
179
+ post[:payment][:credit_card][:card][:holder_document] = options[:holder_document] if options[:holder_document]
179
180
  add_billing_address(post,'credit_card', options)
180
181
  end
181
182
  end
@@ -65,6 +65,8 @@ module ActiveMerchant
65
65
  end
66
66
 
67
67
  def request(method, body, headers = {})
68
+ headers['connection'] ||= 'close'
69
+
68
70
  request_start = Process.clock_gettime(Process::CLOCK_MONOTONIC)
69
71
 
70
72
  retry_exceptions(:max_retries => max_retries, :logger => logger, :tag => tag) do
@@ -1,3 +1,3 @@
1
1
  module ActiveMerchant
2
- VERSION = "1.79.0"
2
+ VERSION = "1.79.1"
3
3
  end
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.79.0
4
+ version: 1.79.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke