ngwords 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
  SHA1:
3
- metadata.gz: d41521a6fa019d9f1c345282ca96a59c620ea26d
4
- data.tar.gz: 5df7db85c0e4717f730e7201c045577ec0e2fe46
3
+ metadata.gz: 58bb61a514991d26b5613b1e895549168715c1fe
4
+ data.tar.gz: 694ca60731b0c1574e89b62e2a57516db2b5ca49
5
5
  SHA512:
6
- metadata.gz: c5c71701212670ebf4f40c4948f7c68e69e87ff305cc0c4eac85c81700073446fba65e0ab61e50b03785940a8f0ca6ddd265293345ea32847d968aed64592cb0
7
- data.tar.gz: 9f1632726b8d8c57427b3c155022d7349bdcea0e2268b14c20726f3a951318487c8983359f984ee37da0078a92cee548ca8410c9dbd790a5080680a1b45e054d
6
+ metadata.gz: e2ce2ae02a95fb59c064c12510801728cd183d49ee4e32a971a0d9ad82a292d56c60ff1d15d8ba074eadb524961cc0297a1a86de92bc60448b46d5cb6ad2b509
7
+ data.tar.gz: 5933bb970e4c81c079d829ea1dc023b84a45413b825085f2aa65674c477917ab9dbc701f9ccf1ecb5287171df154599ee03df94efb901338b880e9a5bdb6ca28
@@ -21,7 +21,7 @@ module ActiveModel
21
21
  delim = lang == :en ? '\\b' : ''
22
22
  Array(list).reject(&:blank?).each do |ngword|
23
23
  escaped_ngword = ngword.split(/\p{blank}/).reject(&:blank?).map { |word| '(?=.*' + delim + Regexp.escape(word) + delim + ')' }.join('')
24
- ngwords.push(Regexp.compile("^#{escaped_ngword}", Regexp::IGNORECASE | Regexp::MULTILINE))
24
+ ngwords << Regexp.compile("^#{escaped_ngword}", Regexp::IGNORECASE | Regexp::MULTILINE)
25
25
  end
26
26
  end
27
27
  @@ngwords = Regexp.union(ngwords)
@@ -1,3 +1,3 @@
1
1
  module Ngwords
2
- VERSION = '0.1.3'.freeze
2
+ VERSION = '0.1.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ngwords
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
  - chitamano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-13 00:00:00.000000000 Z
11
+ date: 2018-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: moji
@@ -83,7 +83,6 @@ files:
83
83
  - lib/ngwords/railtie.rb
84
84
  - lib/ngwords/validator.rb
85
85
  - lib/ngwords/version.rb
86
- - lib/tasks/ngwords_tasks.rake
87
86
  homepage: https://github.com/chitamano/ngwords
88
87
  licenses:
89
88
  - MIT
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :ngwords do
3
- # # Task goes here
4
- # end