text-gen 0.12.4 → 0.12.5

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: 3682ed7222eeacaa62e5b8f19fcdf17f467808fa872ba447c4d353484dcc2bb6
4
- data.tar.gz: c32eb0d27c947fdd972d6be33f20a76958ed3294b9410c4c98182266caf6ee5a
3
+ metadata.gz: c761d6858b40d475f4514ad9f309a32fbd00bc5ca1dca0be50ecd366cc7eb965
4
+ data.tar.gz: c173f8bbe852bfd317f5c634fdd947a7c393089ab18e9467b5dc6a51b59c8736
5
5
  SHA512:
6
- metadata.gz: bbb90e14bfd47f7ad676917951d7b758f350d7983702c0f3dc22330cc7a7e6abc1f1c4d6c154203013f40ecf82f1d9cb77f083482bc097a789683048a49f29fe
7
- data.tar.gz: e33b2ef314b0d341abc39469b4e556c9253a81842f4a79575534f2304ee8fa6159b5a0131283be662ff9b3c5ec15834656bd3a73b38e7898d8e49145273d6343
6
+ metadata.gz: 8832ee6825a82219769f67ece7a73c194a4ca2e4370290a633b0b571bbb98cc754243bd7737692249b880288a13482a7d80c77e741054c6aa4a3401899416f8a
7
+ data.tar.gz: f78177137d036a701bf92ccae769dfdeddb6b54f9a3d18005f864dac34e25d30976683a640314b8529427de278b78dd642fe29b02749889c3cf722ee94c962e1
@@ -40,7 +40,11 @@ module Text
40
40
 
41
41
  class << self
42
42
  def filter_name
43
- @filter_name ||= name.split("::").last.downcase
43
+ @filter_name ||= name.split("::").last
44
+ end
45
+
46
+ def filter_key
47
+ filter_name.downcase
44
48
  end
45
49
  end
46
50
  end
@@ -13,7 +13,7 @@ module Text
13
13
 
14
14
  def build(hsh_or_key, depth)
15
15
  hsh = hsh_or_key.is_a?(Hash) ? hsh_or_key : key_to_hsh(hsh_or_key)
16
- filter_class = available_filters.find { |f| f.filter_name == hsh["type"] }
16
+ filter_class = available_filters.find { |f| f.filter_key == hsh["type"] }
17
17
  filter_class.new(hsh, depth) if filter_class
18
18
  end
19
19
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Text
4
4
  module Gen
5
- VERSION = "0.12.4"
5
+ VERSION = "0.12.5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: text-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.4
4
+ version: 0.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - G Palmer