mcmire-matchy 0.5.1 → 0.5.2

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/lib/matchy.rb +3 -5
  2. data/lib/matchy/version.rb +1 -1
  3. metadata +1 -1
@@ -66,11 +66,9 @@ module Matchy
66
66
  end
67
67
 
68
68
  %w(assertions_module test_case_class assertion_failed_error).each do |method|
69
- class_eval <<-EOT, __FILE__, __LINE__
70
- def #{method}
71
- @@current_adapter ? @@current_adapter.#{method} : raise(LoadError, Matchy.adapter_not_found_msg)
72
- end
73
- EOT
69
+ define_method(method) do
70
+ @@current_adapter ? @@current_adapter.__send__(method) : raise(LoadError, Matchy.adapter_not_found_msg)
71
+ end
74
72
  end
75
73
 
76
74
  def init
@@ -2,7 +2,7 @@ module Matchy
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mcmire-matchy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy McAnally