guerrilla_patch 2.8.4 → 2.8.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,8 +1,8 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gemspec
4
3
  gem 'rake'
5
- gem 'binding_of_caller'
4
+
5
+ gemspec
6
6
 
7
7
  group :development, :test do
8
8
  gem "rspec", "~> 2.8.0"
data/Gemfile.lock CHANGED
@@ -1,14 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- guerrilla_patch (2.8.4)
4
+ guerrilla_patch (2.8.5)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
8
8
  specs:
9
- binding_of_caller (0.7.2)
10
- debug_inspector (>= 0.0.1)
11
- debug_inspector (0.0.2)
12
9
  diff-lcs (1.1.3)
13
10
  rake (0.9.2.2)
14
11
  rspec (2.8.0)
@@ -24,7 +21,6 @@ PLATFORMS
24
21
  ruby
25
22
 
26
23
  DEPENDENCIES
27
- binding_of_caller
28
24
  bundler (>= 1.0.0)
29
25
  guerrilla_patch!
30
26
  rake
data/README.md CHANGED
@@ -27,7 +27,7 @@ While waiting for Ruby 2.0 to implement it I am using this:
27
27
 
28
28
  ````
29
29
  def initialize(amount, index:nil, envy_no_more:nil)
30
- auto_assign
30
+ auto_assign binding
31
31
  end
32
32
  ```
33
33
 
@@ -3,8 +3,7 @@ require 'guerrilla_patch/allocate'
3
3
  require 'binding_of_caller'
4
4
 
5
5
  module Kernel
6
- def auto_assign
7
- caller_binding = binding.of_caller(1)
6
+ def auto_assign(caller_binding)
8
7
  method(caller[0][/`.*'/][1..-2]).parameters.each { |arg| instance_eval("@#{arg[1]} = caller_binding.eval(arg[1].to_s)") }
9
8
  end
10
9
 
@@ -1,3 +1,3 @@
1
1
  module GuerrillaPatch
2
- VERSION = "2.8.4"
2
+ VERSION = "2.8.5"
3
3
  end
@@ -84,7 +84,7 @@ describe Kernel do
84
84
  attr_reader :index, :amount
85
85
 
86
86
  def initialize(index, amount)
87
- auto_assign
87
+ auto_assign binding
88
88
  end
89
89
 
90
90
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guerrilla_patch
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.4
4
+ version: 2.8.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -57,7 +57,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
57
57
  version: '0'
58
58
  segments:
59
59
  - 0
60
- hash: -700366039810131134
60
+ hash: 2239648464881007691
61
61
  required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  segments:
68
68
  - 0
69
- hash: -700366039810131134
69
+ hash: 2239648464881007691
70
70
  requirements: []
71
71
  rubyforge_project:
72
72
  rubygems_version: 1.8.23