ruhl 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/ruhl/engine.rb +5 -4
  3. data/ruhl.gemspec +1 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.3.2
data/lib/ruhl/engine.rb CHANGED
@@ -231,19 +231,20 @@ module Ruhl
231
231
  end
232
232
 
233
233
  if Ruhl.use_instance_variables
234
- # No luck so far, lets see if code is actually an instance
234
+ calling = args.first
235
+ # No luck so far, lets see if calling is actually an instance
235
236
  # variable.
236
- ivar = :"@#{code}"
237
+ ivar = :"@#{calling}"
237
238
  if scope.instance_variable_defined?(ivar)
238
239
  if Ruhl.log_instance_variable_warning
239
- Ruhl.logger.warn("Ruhl did NOT find a method named: #{code} but did find and is using: @#{code}")
240
+ Ruhl.logger.warn("Ruhl did NOT find a method named: #{calling} but did find and is using: @#{calling}")
240
241
  end
241
242
  return scope.instance_variable_get(ivar)
242
243
  end
243
244
  end
244
245
 
245
246
  log_context(code)
246
- raise NoMethodError.new("Neither method nor instance variable found: #{args.first}")
247
+ raise NoMethodError.new("Neither method nor instance variable found: #{calling}")
247
248
  end
248
249
  end
249
250
 
data/ruhl.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ruhl}
8
- s.version = "1.3.1"
8
+ s.version = "1.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrew Stone"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruhl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stone