eezee_regexes 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: c1adfc0d0b4537ca8f2b4a8895cecab3a75d66e5170e3d0070d9f0c233901865
4
- data.tar.gz: 93c6c3d2596cca8c217411f41c36afd2b8438cf91e6bd7a87ff35853bfe66887
3
+ metadata.gz: de97a17cacc5e295ef313ef6d620d3b482de38b2a28d93da1cdcbf69ef0d377d
4
+ data.tar.gz: 14361868514df36318c47293fedda5f2186c436108e530dafb196186865754e8
5
5
  SHA512:
6
- metadata.gz: a09b9bd848e3e252fd4ac46bb455d30cae5f244d59ad8c64d16b5327e4a5804ab40c5cdbb71d58ad26b4ba360c5ada42835011d23485de85ffc026f090d88f8c
7
- data.tar.gz: afd8e50cf9bd27f8a4592f4577499ecf1ee4f7207ac16a408b49f728a01f18a432ee519feae0e2c1e3572d9fc8c37af03720efb220656de4b5c57cbb96dd6602
6
+ metadata.gz: 3dd7103e03cca5cce042296035b8844cc82272dc3cc6b949303e5be016ce186a458e58c1fd5517259745e36333fbd6d822fafc27c5bbf51e362969275b7c9b86
7
+ data.tar.gz: c8a1d6e568186d7645fe0a7eda0e09cbf0c083be82e3ca51aed2f1a0b0c368cdb1e6d0fc70d78dc273747a86b609337818702101bbbda41f7583bbf1b9d0e204
@@ -2,8 +2,13 @@
2
2
  class RegexRulesCollector
3
3
  attr_accessor :ast
4
4
 
5
- def initialize
6
- self.ast = RubyVM::AbstractSyntaxTree.parse_file(regex_rule_file)
5
+ def initialize(input = nil)
6
+
7
+ if input
8
+ self.ast = RubyVM::AbstractSyntaxTree.parse_file(regex_rule_file)
9
+ else
10
+ self.ast = RubyVM::AbstractSyntaxTree.parse(input)
11
+ end
7
12
  end
8
13
 
9
14
  def regex_rule_file
@@ -1,3 +1,3 @@
1
1
  module EezeeRegexes
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eezee_regexes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Arno Korfmann