to_proc 0.0.0 → 0.0.1

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: 74a2796be10cd99610c7a8cdf6766200628887a7
4
- data.tar.gz: f5ae4f3150d07e2cdd67a898676e3a107f708e83
3
+ metadata.gz: cea0e4a1ede76dbf5111b7760ce54c851918b482
4
+ data.tar.gz: ddb73554b6e41a338619678a3df31c707dd76d07
5
5
  SHA512:
6
- metadata.gz: 70c849929c81380d835ed046ada18f25bd14b4d47321ae628c80340fffa9437e2eadf6d0126aeadef41cb72972da5b213127659f8f67d568fbc6029b79f0d6d1
7
- data.tar.gz: e73a5aa3ef5e455430daaf320a40aaf7202a081d8c04b4a8c5558625b13066095dae6d8ee2757a6d00c982fc7c096f589c9618973e70e02ce6a3acfdea7879e5
6
+ metadata.gz: 98702c848376d6edd09578c1ab4670048eaa5ebbfa834783d6235f8b66c87e933cd6dc54745c04efdfb7a050ed93beaa1396bffd5e51d8d1d7e8b8f7123f8e0b
7
+ data.tar.gz: 7f42bf89d19361ab269dcf53b928cdefd6a975cfda843673438bc98ad331aba5597ae18bda75036d543741952dd57d990dccb82c564029b9c0dc6854e2db68dc
@@ -0,0 +1,4 @@
1
+ require 'to_proc'
2
+
3
+ require 'to_proc/try'
4
+ require 'to_proc/sugar'
@@ -0,0 +1,10 @@
1
+ Try = -> process do
2
+ -> input do
3
+ begin
4
+ output = process[input]
5
+ output.nil? ? input : output
6
+ rescue
7
+ input
8
+ end
9
+ end
10
+ 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.0'
5
- g.summary = 'A convinience for using classes as procs.'
4
+ g.version = '0.0.1'
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.0
4
+ version: 0.0.1
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-09-27 00:00:00.000000000 Z
11
+ date: 2016-10-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -17,7 +17,9 @@ extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
19
  - lib/to_proc.rb
20
+ - lib/to_proc/all.rb
20
21
  - lib/to_proc/sugar.rb
22
+ - lib/to_proc/try.rb
21
23
  - to_proc.gemspec
22
24
  homepage:
23
25
  licenses: []
@@ -41,5 +43,5 @@ rubyforge_project:
41
43
  rubygems_version: 2.5.1
42
44
  signing_key:
43
45
  specification_version: 4
44
- summary: A convinience for using classes as procs.
46
+ summary: What if almost any object were a proc?
45
47
  test_files: []