commonregex 0.0.1 → 0.0.2

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 +4 -4
  2. data/lib/commonregex.rb +1 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f521d3d2c69a9cbb89d93cddfc274286eb38da66
4
- data.tar.gz: dfd92a777e9ec16d0f8d985bd2843d634af5f578
3
+ metadata.gz: 673d3901fb5e5f240782e68a6d251c4e989bf9cf
4
+ data.tar.gz: a7969bbc0c7dfce93f869b640f7df5e7047f16d2
5
5
  SHA512:
6
- metadata.gz: 34388df37522ed929de93dcdc25ad1dc0141dce4b0928d0f91f7152f413c4fe64e91988269e3efb2dc68d39d902ddf66a95d7ef5e593ded0d6eb1cc76472d46e
7
- data.tar.gz: 6ab28848a8cb12e6d132d0d1e278e9ef94f1e76f6442393f716030d2981b588d1b17e01e4353e5e486efc5c9bc50193e94bc99e99bdb962179c0b1545b259268
6
+ metadata.gz: 760d9b167e068162018da4b9b702e3c14a04592bb88d4230d05ec6c2cb44019d394f9c22258f9f0466387413552b5c61954a0ab59e29d662bab4b0587cdfdb39
7
+ data.tar.gz: c0ce842f64d8e8a8d0fc851635a90a1f6d370d05d773ac885e1e0499703607ff244f2db9675c21b0c4d40f913d53601e86fcbb1e46c5d7aa0d350305693c25a1
@@ -40,6 +40,7 @@ class CommonRegex
40
40
  @@credit_card_regex = /((?:(?:\d{4}[- ]){3}\d{4}|\d{16}))(?![\d])/m
41
41
  @@address_regex = /(\d{1,4} [\w\s]{1,20}(?:(street|avenue|road|highway|square|traill|drive|court|parkway|boulevard)\b|(st|ave|rd|hwy|sq|trl|dr|ct|pkwy|blvd)\.(?=\b)?))/im
42
42
 
43
+
43
44
  def initialize(text = '')
44
45
  @text = text;
45
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonregex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Talysson Oliveira Cassiano
@@ -38,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
38
38
  version: '0'
39
39
  requirements: []
40
40
  rubyforge_project:
41
- rubygems_version: 2.4.3
41
+ rubygems_version: 2.2.2
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: CommonRegex port for Ruby