array_proc 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/array_proc.rb +7 -2
- metadata +12 -52
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a2abaea2c988dd7ee01c30ce137d54d3e4cbc90d46cc0b2dc0665b6a0ce7871a
|
4
|
+
data.tar.gz: 8017935abbbae68fc78b2b86b5b91b15f2ab08730899e326eb971d0caa9d6a64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7994f17879e9365b6659c918a0d85cf20ce8932e33eba117c9a1f28366c9397a214bf42641070db29f79048215d9e2d43b0f80fed6e2d693b192d23346176268
|
7
|
+
data.tar.gz: ef93566211ebbec8ce6edfdae8e6f9b6480e5f98f5c2ccd309be0e204854725fb8834c90da6cfe39421bd3a29db8ad813570edd72708846d716dcf6108f7cd5f
|
data/lib/array_proc.rb
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Adds `Array#to_proc` to allow multiple method calls on each element of an enumerable using the `&` shorthand
|
1
4
|
class Array
|
2
5
|
def to_proc
|
3
|
-
proc
|
6
|
+
proc do |object|
|
7
|
+
map { |method| method.to_proc.call(object) }
|
8
|
+
end
|
4
9
|
end
|
5
|
-
end
|
10
|
+
end
|
metadata
CHANGED
@@ -1,67 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: array_proc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Rosenberg
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
|
14
|
-
name: rspec
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '2.0'
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 2.0.0
|
23
|
-
type: :development
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '2.0'
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 2.0.0
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: simplecov
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0.8'
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 0.8.0
|
43
|
-
type: :development
|
44
|
-
prerelease: false
|
45
|
-
version_requirements: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '0.8'
|
50
|
-
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: 0.8.0
|
53
|
-
description: Adds the to_proc method to the array class.
|
11
|
+
date: 2024-08-04 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Adds `Array#to_proc`.
|
54
14
|
email: aarongrosenberg@gmail.com
|
55
15
|
executables: []
|
56
16
|
extensions: []
|
57
17
|
extra_rdoc_files: []
|
58
18
|
files:
|
59
19
|
- lib/array_proc.rb
|
60
|
-
homepage: https://github.com/
|
20
|
+
homepage: https://github.com/agrberg/array_proc
|
61
21
|
licenses:
|
62
22
|
- MIT
|
63
|
-
metadata:
|
64
|
-
|
23
|
+
metadata:
|
24
|
+
rubygems_mfa_required: 'true'
|
25
|
+
post_install_message:
|
65
26
|
rdoc_options: []
|
66
27
|
require_paths:
|
67
28
|
- lib
|
@@ -69,16 +30,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
30
|
requirements:
|
70
31
|
- - ">="
|
71
32
|
- !ruby/object:Gem::Version
|
72
|
-
version: '0'
|
33
|
+
version: '2.0'
|
73
34
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
35
|
requirements:
|
75
36
|
- - ">="
|
76
37
|
- !ruby/object:Gem::Version
|
77
38
|
version: '0'
|
78
39
|
requirements: []
|
79
|
-
|
80
|
-
|
81
|
-
signing_key:
|
40
|
+
rubygems_version: 3.5.17
|
41
|
+
signing_key:
|
82
42
|
specification_version: 4
|
83
43
|
summary: Turn an array into an array of procs to be called on an object.
|
84
44
|
test_files: []
|