eregex 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 105e25c4a1d17a2d053d55a6b8b2186573a4c738e3a71d5dc8fc471b088fdfc2
4
- data.tar.gz: c8b514ed8a9dcbcce634045b347bd44e0a42e198824902f1bf7e7d36229c321f
3
+ metadata.gz: 881d2cda12e8612a0485ee1b204f855bef50597534394b8a46cfa158602cb4f2
4
+ data.tar.gz: 318a9a4ef0839aafbdef2f28a6634ac84ab129787d7cb0e29f6c4201cb4f6810
5
5
  SHA512:
6
- metadata.gz: 5099624bae61a178c87b1d2e0932e4f2819b4dedb86609dbfc3c84724f50e1d02fb249a9f1c32ac82dd3b8b17d38f7e6d291ea184c68c607a934943d378bc5be
7
- data.tar.gz: 22585d595a9cb987d7a58655ee448a1141b18de38f03e646b15eead369052bb06aa7f2de7d143874e92ac24ce24af80aca3bba61558846d69a8f2b11cdb4cf23
6
+ metadata.gz: 923f2d1f2ff4648a55441179e02bb8f44576e3c690e4e2c826cea3fde8ef53c8e573884ec76baea72b7c2bda2dbc1e1c7f59dcf7522b4e951f3b1f6bc2c010f6
7
+ data.tar.gz: 77dbeeb08097aeb1a3498bd65448efb611e06a3844524167e80ae78f8c98465f77975687f518937e124e319cc6df6d59bab438a0c2c735c0fe4fe214c8786929
data/CHANGELOG.md CHANGED
@@ -3,3 +3,7 @@
3
3
  ## [0.1.1] - 2021-08-11
4
4
 
5
5
  - Initial release
6
+
7
+ ## [0.1.2] - 2021-08-12
8
+
9
+ - Fix calling methods with allow_whitespace option
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eregex (0.1.1)
4
+ eregex (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/eregex.rb CHANGED
@@ -13,19 +13,19 @@ module ERegex
13
13
  PATTERN_NUMERIC = '-?\d*(\.\d+)?'
14
14
 
15
15
  def self.alpha?(subject, allow_whitespace: false)
16
- match(subject, self::PATTERN_ALPHA, allow_whitespace)
16
+ match(subject, self::PATTERN_ALPHA, allow_whitespace: allow_whitespace)
17
17
  end
18
18
 
19
19
  def self.alphadash?(subject, allow_whitespace: false)
20
- match(subject, self::PATTERN_ALPHADASH, allow_whitespace)
20
+ match(subject, self::PATTERN_ALPHADASH, allow_whitespace: allow_whitespace)
21
21
  end
22
22
 
23
23
  def self.alphanumeric?(subject, allow_whitespace: false)
24
- match(subject, self::PATTERN_ALPHANUMERIC, allow_whitespace)
24
+ match(subject, self::PATTERN_ALPHANUMERIC, allow_whitespace: allow_whitespace)
25
25
  end
26
26
 
27
27
  def self.digits?(subject, allow_whitespace: false)
28
- match(subject, self::PATTERN_DIGITS, allow_whitespace)
28
+ match(subject, self::PATTERN_DIGITS, allow_whitespace: allow_whitespace)
29
29
  end
30
30
 
31
31
  def self.numeric?(subject)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ERegex
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eregex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ahmed Sayed
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2021-08-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Easy way to use regex
14
14
  email: