rafini 1.0.0 → 1.1.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: bcf2292d9da70068c6595c31195265cacea43c9d
4
- data.tar.gz: 9dcab18064c2eeb25340182f22e26632141f82f0
3
+ metadata.gz: 3293f08b8bedca591dfb9191266f1fe947d7b7d7
4
+ data.tar.gz: 4bc9c202326f66670eaf71a006f83b32f6775142
5
5
  SHA512:
6
- metadata.gz: 404b14d5065305fa3c792bb6f3b43af65f292e99d3a2b50c89db45fa2fa16bf9e8468af4f5c65e95de6e401a21c3d46a06d752e93e8b97d85c0ec81f6267739d
7
- data.tar.gz: c41acda381c48132bee1dd21115db290059387f04d7c1b4ce914f2b780fc7de679a302d23a9c75a02e905f6856d4aba146d80cc9edc8e1465f54215c1ae95105
6
+ metadata.gz: ad87bf6867f6dfe0c02f2db385bae58fbd87f108e11862d5dde8bce3add09fe6552b32802c456f6d85e26b2e35a64d46869c73a44281c2d6f3f00ead8453594d
7
+ data.tar.gz: 6bb831dffcfb01708d5f2d3f8a7043f656e9bea000e923dcc821587a6328def34cb6ce0b1fef5a266dbc31df36b733919d784f0d09d8c2ddfaed0a3b62322a84
data/README.rdoc CHANGED
@@ -22,9 +22,6 @@ 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
-
28
25
  === using Rafini::Exception
29
26
 
30
27
  # $!.puts
data/lib/rafini/hash.rb CHANGED
@@ -53,6 +53,13 @@ module Rafini
53
53
  self
54
54
  end
55
55
 
56
+ # hash.maps(key1,...)
57
+ #
58
+ # Maps parameters list with hash.
59
+ # {a:'A",b:'B',c:'C'}.maps(:c,:a,:b) #=> ['C','A','B']
60
+ def maps(*keys)
61
+ keys.map{|_|self[_]}
62
+ end
56
63
  end
57
64
  end
58
65
  end
@@ -1,3 +1,3 @@
1
1
  module Rafini
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.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: 1.0.0
4
+ version: 1.1.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-25 00:00:00.000000000 Z
11
+ date: 2014-12-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  Just a collection of useful refinements.