enumerable-proxy 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ begin
8
8
  gem.summary = %Q{[1,2,3].map.to_s == %w(1 2 3)}
9
9
  gem.description = %Q{EnumerableProxy is a pattern for simple block-free ruby enumeration}
10
10
  gem.email = "github@jacobrothstein.com"
11
- gem.homepage = "http://github.com/jbr/enumerable--proxy"
11
+ gem.homepage = "http://github.com/jbr/enumerable-proxy"
12
12
  gem.authors = ["Jacob Rothstein"]
13
13
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
14
14
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.3
1
+ 1.1.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{enumerable-proxy}
8
- s.version = "1.1.3"
8
+ s.version = "1.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jacob Rothstein"]
@@ -26,9 +26,10 @@ Gem::Specification.new do |s|
26
26
  "enumerable-proxy.gemspec",
27
27
  "lib/enumerable_proxy.rb",
28
28
  "lib/enumerable_proxy/array_extensions.rb",
29
+ "lib/enumerable_proxy/array_p_methods.rb",
29
30
  "test/test_helper.rb"
30
31
  ]
31
- s.homepage = %q{http://github.com/jbr/enumerable--proxy}
32
+ s.homepage = %q{http://github.com/jbr/enumerable-proxy}
32
33
  s.rdoc_options = ["--charset=UTF-8"]
33
34
  s.require_paths = ["lib"]
34
35
  s.rubygems_version = %q{1.3.5}
@@ -20,3 +20,4 @@ module EnumerableProxy
20
20
  end
21
21
 
22
22
  Enumerable.instance_eval {include EnumerableProxy}
23
+ require 'enumerable_proxy/array_p_methods'
@@ -0,0 +1,17 @@
1
+ require 'enumerable_proxy'
2
+
3
+ module EnumerableProxy
4
+ module ArrayPMethods
5
+ def self.included(klass)
6
+ %w(each map select reject all? any? detect).each do |method|
7
+ klass.class_eval %{
8
+ def p#{method}(&blk)
9
+ blk.nil? ? proxy(:#{method}) : #{method}(&blk)
10
+ end if instance_methods.include?(method)
11
+ }
12
+ end
13
+ end
14
+ end
15
+ end
16
+
17
+ Array.instance_eval { include EnumerableProxy::ArrayPMethods }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enumerable-proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Rothstein
@@ -32,9 +32,10 @@ files:
32
32
  - enumerable-proxy.gemspec
33
33
  - lib/enumerable_proxy.rb
34
34
  - lib/enumerable_proxy/array_extensions.rb
35
+ - lib/enumerable_proxy/array_p_methods.rb
35
36
  - test/test_helper.rb
36
37
  has_rdoc: true
37
- homepage: http://github.com/jbr/enumerable--proxy
38
+ homepage: http://github.com/jbr/enumerable-proxy
38
39
  licenses: []
39
40
 
40
41
  post_install_message: