iron-cms 0.14.1 → 0.15.0

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: 5fca4f44cbc8415bd4747e0728dc748e9934398a39a49849a945e63d24bfea8c
4
- data.tar.gz: c96b41b3989ecde608ad2a1e60a77a2fa4bbd5962f5a250588826384386a6be4
3
+ metadata.gz: f6e038165d19792d4996c7ec0dba52cf3050c9047819f0857274a9d3adb5f190
4
+ data.tar.gz: 1d6624acb03d0789ed4f7f984b3578237474a179610b4ab20632e89fda7a2e63
5
5
  SHA512:
6
- metadata.gz: 46dc0c8ea6775bd3756b682e1fa3f8847f11faf2a104b974db2abb0eb12d85f76a24ecaa438b66334e68e8fb81c0f9c179603a798db6799bdc3f55ea85230f55
7
- data.tar.gz: 4f51211680c6190e3b59e062f56480b7dd28bb41586f0ddce2903d2edba8f9da1bbb9a75b708e7a0246b417b12c24f08cbf6219af35f46f7bb07bda883041f61
6
+ metadata.gz: 91535cb2aa2fa21cdfe6b819b231ea70a447ec88145b0123564f84fa47c3e3c1ad4214a446ca59c4f1423496d644c6fb5207e292cc7d686f3bc5ef37ffbf37e2
7
+ data.tar.gz: 63802328dc8911c7109a661daaf8742461459b3e0b929e73163736c0f86861b7cab9115f3ccb85802b20d0e6983baafc7d5c3a782b2408bf91ea50cffe83a010
@@ -15,7 +15,8 @@ module Iron
15
15
  result = strip_special_characters(raw)
16
16
  return nil if result.blank?
17
17
  result = remove_unbalanced_quotes(result)
18
- neutralize_operators(result)
18
+ result = neutralize_operators(result)
19
+ add_prefix_wildcards(result)
19
20
  end
20
21
 
21
22
  def strip_special_characters(text)
@@ -29,5 +30,9 @@ module Iron
29
30
  def neutralize_operators(text)
30
31
  text.downcase
31
32
  end
33
+
34
+ def add_prefix_wildcards(text)
35
+ text.gsub(/("(?:[^"]*)"|\w+)/, '\1*')
36
+ end
32
37
  end
33
38
  end
data/lib/iron/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Iron
2
- VERSION = "0.14.1"
2
+ VERSION = "0.15.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Massimo De Marchi