credit_card_sanitizer 0.6.7 → 0.6.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/credit_card_sanitizer.rb +1 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ed76d9a9522df05c6dd170d26ea92106d17a57f3
4
- data.tar.gz: 2d674bd758d3de26a702d7934fecc385c3cf10eb
2
+ SHA256:
3
+ metadata.gz: ccb82cfd1273fff26cd228625a4da739431801e421c30abea2ce1af9513c6e39
4
+ data.tar.gz: ebcf474ba677378ae541bb37b7fd8ec0701a13e414d3c091f1fbf7a63362694e
5
5
  SHA512:
6
- metadata.gz: 6c4c88de4bc7357bb5897ca7f0eb18a472951fd62d63623ca0a37d28b859f3d4891c727cbf44e73920f8bae87f2abca5760532a1ee53f4b4cf89beb9717aa14c
7
- data.tar.gz: b55b8fcdf570998f1c4663d435e260b31962e3522fbf97e1b4230c2cef6809e42767de7657aa44390138586b8c122f9080cb360a20600c5971af93711d412cb5
6
+ metadata.gz: 37a3a7aec54549386a8919dfbdc8046a5f693b66916e9d2597e28eb367c3eac334be9d38077e83e0e7d2fae0fcc69aae4835adf78e51e68afc995d1e0cc7b236
7
+ data.tar.gz: '0694575b1e7f58429fa8a605b495783708dd11e0469d1ce19b515608dfecec08ba6028b68f6717e56086e2dc945bdaa8c1112ba2892a62825c2ffd0e6ac25d70'
@@ -204,7 +204,7 @@ class CreditCardSanitizer
204
204
  def without_expiration(text)
205
205
  expiration_date_boundary = SecureRandom.hex.tr('0123456789', 'ABCDEFGHIJ')
206
206
  text.gsub!(EXPIRATION_DATE) do |expiration_date|
207
- match = expiration_date.match(/(?<whitespace>\s*)(?<rest>.*)/)
207
+ match = expiration_date.match(/(?<whitespace>\s*)(?<rest>.*)/m)
208
208
  "#{match[:whitespace]}#{expiration_date_boundary}#{match[:rest]}#{expiration_date_boundary}"
209
209
  end
210
210
  yield
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: credit_card_sanitizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Chapweske
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-02-05 00:00:00.000000000 Z
13
+ date: 2018-03-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: luhn_checksum
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  requirements: []
70
70
  rubyforge_project:
71
- rubygems_version: 2.6.11
71
+ rubygems_version: 2.7.6
72
72
  signing_key:
73
73
  specification_version: 4
74
74
  summary: Credit card sanitizer