assert_same 0.7.0 → 0.7.1

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.
Files changed (3) hide show
  1. data/assert_same.gemspec +1 -1
  2. data/lib/assert_same.rb +1 -1
  3. metadata +1 -1
data/assert_same.gemspec CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  SPEC = Gem::Specification.new do |s|
4
4
  s.name = "assert_same"
5
- s.version = "0.7.0"
5
+ s.version = "0.7.1"
6
6
  s.author = "Pluron, Inc."
7
7
  s.email = "support@pluron.com"
8
8
  s.homepage = "http://github.com/acunote/assert_same"
data/lib/assert_same.rb CHANGED
@@ -69,7 +69,7 @@ test_unit_module.module_eval do
69
69
  #Hash[filename][line_number] = offset
70
70
  #For each line in the original file we store its offset (+N or -N lines)
71
71
  #relative to the actual file
72
- @@file_offsets = Hash.new { |hash, key| hash[key] = {} }
72
+ class_variable_set(:@@file_offsets, Hash.new { |hash, key| hash[key] = {} })
73
73
 
74
74
  # assert_same: assert which checks that two strings (expected and actual) are same
75
75
  # and which can "magically" replace expected value with the actual in case
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assert_same
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: