ruby-anything 0.0.4 → 0.0.5

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: 4dd81e98faed770f1e10c8f68e6f0785e8983948
4
- data.tar.gz: 9f27b060abd00d2e236f42c26acaab28a88b4d67
3
+ metadata.gz: f6de1dfc4a2289a093560813ded154d9419e20fb
4
+ data.tar.gz: 5e08ced8fb5620814deac9c76ac7bc9ed24758d7
5
5
  SHA512:
6
- metadata.gz: 9b3c1141a5b71996544597063304cb7a616a6e40f73c3be12a328145acacba9913a89cac2308af8c987fd300783e194894cd86d8e84b39cffaa35bf63e6d5eef
7
- data.tar.gz: 2837931b12eec418137afe0affbf1ff877a85329693bbf3a3a29615a7fc28d6d172a494e1e81649b5cd59532765c4384b82945abedf6f369f6e50fda9f6e3925
6
+ metadata.gz: 39177f06d64ace87199e621cb02b7c86a8f6918f10ddef78266fd231de99dd8ae20050d95def652dd4d7d9389bd00f585f5eb4e27ac72263c09c8838e0e1f5c2
7
+ data.tar.gz: 9d78ddf247360014bb2e0713a8cebfeae106bfde92567c966bbfd62bc96d5ab9cdf27f40e8d46b24294c600533f3c1a5670e8503bb6cb9c4796f54809573babe
@@ -4,8 +4,9 @@ module RubyAnything
4
4
  patterns = text.split(/\s+/).map do |word|
5
5
  /#{word}/i
6
6
  end
7
+
7
8
  select do |e|
8
- patterns.empty? || patterns.any? { |p| p =~ e }
9
+ patterns.empty? || patterns.all? { |p| p =~ e }
9
10
  end
10
11
  end
11
12
  end
@@ -1,3 +1,3 @@
1
1
  module RubyAnything
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-anything
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takatoshi Matsumoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-12 00:00:00.000000000 Z
11
+ date: 2014-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec