offsite_payments 2.6.7 → 2.6.8

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: 6f64388719134b6c2477e56fb133586e0577273b
4
- data.tar.gz: aef7c9494eda15a44f60b374f00f2e30f8a86eb3
3
+ metadata.gz: 887575f216bc372f1fa4b5811961183a4f3a175c
4
+ data.tar.gz: 6197ce5461cc1b2617a83e43b77e4ec68d55bb86
5
5
  SHA512:
6
- metadata.gz: 95e09168c57ff3c7bbc7b5e8b87d32afb740b0a887be1785bb0a8aa46ae1e61593626e7ca4257332260194cb820698ee63b9bb13ab61199bd2d56dd9587693e8
7
- data.tar.gz: d1efd82ca2f60e45e27e64c9b3b72a48f01be8a654da97d12c1eb871328108836a63bffa91ac65b50d436170340253800991274fe14dbd987d9698dd9f179bf5
6
+ metadata.gz: a480dc8207b1cb179e9c9820d26005c8cb530f191dd71695b912623ab0cb0325b7d741cdbbb20c0b3224f2935337a52c07460197082c4532df4aaebeb3225dd4
7
+ data.tar.gz: c3b76bb2ceb4f082dfd4ef8e3a24b79771b2be5c487450310459aae94c7e222b83aa26875e27d04f55909064de8bf099972121df05f4f481b16421339106f5a8
@@ -74,7 +74,6 @@ module OffsitePayments #:nodoc:
74
74
 
75
75
  response = http.request(request)
76
76
  JSON.parse(response.body)
77
- rescue JSON::ParserError
78
77
  end
79
78
  end
80
79
 
@@ -96,12 +96,12 @@ module OffsitePayments #:nodoc:
96
96
 
97
97
  def sanitize_fields
98
98
  %w(email phone).each do |field|
99
- sanitize_field(@fields[field])
99
+ @fields[field] = sanitize_field(@fields[field])
100
100
  end
101
101
  end
102
102
 
103
103
  def sanitize_field(field)
104
- field.gsub!(/[^a-zA-Z0-9\-_@\/\s.]/, '') if field
104
+ field.gsub(/[^a-zA-Z0-9\-_@\/\s.]/, '') if field
105
105
  end
106
106
  end
107
107
 
@@ -1,3 +1,3 @@
1
1
  module OffsitePayments
2
- VERSION = "2.6.7"
2
+ VERSION = "2.6.8"
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.7
4
+ version: 2.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-07 00:00:00.000000000 Z
11
+ date: 2018-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport