to_proc 0.0.5 → 0.0.6

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: 30adbbe7ab45d2584634078be4d07c738839018f
4
- data.tar.gz: ef2fc083117845bd556da309f6aa7b1a5cb37e16
3
+ metadata.gz: 67011cab930b43a7ccd6f2998c4d424b376dae1f
4
+ data.tar.gz: dba5cbeb5960bde64a30c55f737ce9c7180a9ab7
5
5
  SHA512:
6
- metadata.gz: 6f494638d3961f2a255dbce9e3bbe9288cfc0f1253daf3e3c9074da88a05512ca475df19b748b0fa6b99bee82756be53de88f5c3a4e66150cfe24af07a5b88f4
7
- data.tar.gz: fec8d91e81f02a14eb21e3339007a733180c78d7e05e4daef660da4f0a91592ed256f901cd811a6c5e69074fbe55de0d5de86aa3d5e0e5c3208dbb5368b0d900
6
+ metadata.gz: 9e922adfaa15e59868f03be7b6811b1d22f88025ac3c59ca8aa999c6a817b181e8089a095d1723331737e1df5c6d097e562d7f57ab056ef52b2b234fa733a993
7
+ data.tar.gz: 12338d7e028e8b3a1bdf150dc37f8c8632db116c8d9804bb02256b3dc33107db427372e7072eca81e28ee7fe405910715a40cf71f5a98c1400d889bfd5423207
@@ -13,7 +13,8 @@ class Array
13
13
  # to become the first or the last argument?
14
14
  end
15
15
  else
16
- super
16
+ arguments = self
17
+ -> receiver { receiver.to_proc[*arguments] }
17
18
  end
18
19
  end
19
20
  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.5'
4
+ g.version = '0.0.6'
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.5
4
+ version: 0.0.6
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-10-25 00:00:00.000000000 Z
11
+ date: 2016-12-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -44,7 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
44
44
  version: '0'
45
45
  requirements: []
46
46
  rubyforge_project:
47
- rubygems_version: 2.5.1
47
+ rubygems_version: 2.5.2
48
48
  signing_key:
49
49
  specification_version: 4
50
50
  summary: What if almost any object were a proc?