to_proc 0.0.6 → 0.0.7

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: 67011cab930b43a7ccd6f2998c4d424b376dae1f
4
- data.tar.gz: dba5cbeb5960bde64a30c55f737ce9c7180a9ab7
3
+ metadata.gz: a477419f523b6d4e09104704fccd5ec663757f27
4
+ data.tar.gz: b9e556edcecedfbaa67abac06b2f2ad7d5ebba68
5
5
  SHA512:
6
- metadata.gz: 9e922adfaa15e59868f03be7b6811b1d22f88025ac3c59ca8aa999c6a817b181e8089a095d1723331737e1df5c6d097e562d7f57ab056ef52b2b234fa733a993
7
- data.tar.gz: 12338d7e028e8b3a1bdf150dc37f8c8632db116c8d9804bb02256b3dc33107db427372e7072eca81e28ee7fe405910715a40cf71f5a98c1400d889bfd5423207
6
+ metadata.gz: 2e9ec8062c64cb8f667c0619fa741f4ff0961c00a8274e245378c6b6211c748edc72d84a3cb7802a1726b500c5bcddcadda227ce42d3858e284d658556bcbad3
7
+ data.tar.gz: 005fe5fcd842d234f2d2b615aa43436877a86e172c0a4d656f40a13b78c36938d09d3aac75dd228a4ad4201f90edf133229b185296eddcbe41fbfd65525f6a2c
data/lib/to_proc/all.rb CHANGED
@@ -4,3 +4,5 @@ require 'to_proc/sugar'
4
4
 
5
5
  require 'to_proc/try'
6
6
  require 'to_proc/two'
7
+ require 'to_proc/key'
8
+ require 'to_proc/value'
@@ -0,0 +1,5 @@
1
+ module ToProc
2
+ Key = -> *array do
3
+ -> pair { array.to_proc.call pair[0] }
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module ToProc
2
+ Value = -> *array do
3
+ -> pair { array.to_proc.call pair[1] }
4
+ end
5
+ end
data/to_proc.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |g|
2
2
  g.name = 'to_proc'
3
3
  g.files = `git ls-files`.split($/)
4
- g.version = '0.0.6'
4
+ g.version = '0.0.7'
5
5
  g.summary = 'What if almost any object were a proc?'
6
6
  g.authors = ['Anatoly Chernow']
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: to_proc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatoly Chernow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-17 00:00:00.000000000 Z
11
+ date: 2017-01-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -21,9 +21,11 @@ files:
21
21
  - lib/to_proc/core/Array.rb
22
22
  - lib/to_proc/core/Class.rb
23
23
  - lib/to_proc/core/Object.rb
24
+ - lib/to_proc/key.rb
24
25
  - lib/to_proc/sugar.rb
25
26
  - lib/to_proc/try.rb
26
27
  - lib/to_proc/two.rb
28
+ - lib/to_proc/value.rb
27
29
  - to_proc.gemspec
28
30
  homepage:
29
31
  licenses: []