rafini 0.4.0 → 0.5.0

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: 4fee7de23e9fb3ef805b34056f54e5a7a944671c
4
- data.tar.gz: 5b97e29bfa82799e494c49b9e8574a5a6c6a5410
3
+ metadata.gz: 487c2085e2d72ff8cbcb19139112d40803daaf94
4
+ data.tar.gz: f367404c6323a01f3bd75b2cd69f2524e9ebd57d
5
5
  SHA512:
6
- metadata.gz: f2722db2dba8bb97dd1d45ba93cea7b44c2715c07e4922ac480ebabaeae4c4357e88cfc77f30fd8e51541db65d7e74e95b5fb5e657a39780ea892ece68ee8d05
7
- data.tar.gz: 02cd25f9f263d2b764d0a4a6b1d9c39098c7b9e8cd33d592a48f77253a34b40ad8eddf1fc906a60d55c92d82186a4a5c321f7583b188ff1ada437030b1207c20
6
+ metadata.gz: c76b4db1a927a1a6b2ffd13f621adf32df2fb9657cf5f33e86bfa5d6457dc813f37d92d879009220c078574ad2807407e3233abf3e909d9c2706745a0fa8bcba
7
+ data.tar.gz: 0d1f221119ff12ad9f978ae7f6c55c48c1f9a97009af8845d0637f6cc536902c903b2b01f63df318faed9eaf216306c93c3eed4a8842a486efb71041696f90d4
data/README.rdoc CHANGED
@@ -22,6 +22,9 @@ Just a collection of useful refinements.
22
22
  # is
23
23
  [:a,:b,:c].is(true) #=> {a: true, b: true, c: true}
24
24
 
25
+ # any?
26
+ [:a,:b,:c].any?(:b,:d) #=> true
27
+
25
28
  === using Rafini::Exception
26
29
 
27
30
  # $!.puts
data/lib/rafini/array.rb CHANGED
@@ -54,6 +54,16 @@ module Rafini
54
54
  return hash
55
55
  end
56
56
 
57
+ # [:a, :b, :c].any?(:b, :d) #=> true
58
+ #
59
+ # Are any of the given in the array?
60
+ def any?(*a)
61
+ a.each do |b|
62
+ return true if include?(b)
63
+ end
64
+ return false
65
+ end
66
+
57
67
  end
58
68
  end
59
69
  end
@@ -1,3 +1,3 @@
1
1
  module Rafini
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rafini
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - carlosjhr64
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-06 00:00:00.000000000 Z
11
+ date: 2014-12-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  Just a collection of useful refinements.