instructure-active_model-better_errors 1.6.3.rails2.1 → 1.6.3.rails2.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.3.rails2.1
1
+ 1.6.3.rails2.2
@@ -30,7 +30,6 @@ Gem::Specification.new do |s|
30
30
  "lib/active_model/better_errors.rb",
31
31
  "lib/active_model/error_collecting.rb",
32
32
  "lib/active_model/error_collecting/array_reporter.rb",
33
- "lib/active_model/error_collecting/core_ext.rb",
34
33
  "lib/active_model/error_collecting/emulation.rb",
35
34
  "lib/active_model/error_collecting/error_collection.rb",
36
35
  "lib/active_model/error_collecting/error_message.rb",
@@ -18,8 +18,6 @@ require 'active_model/error_collecting/machine_array_reporter'
18
18
  require 'active_model/error_collecting/emulation'
19
19
  require 'active_model/error_collecting/errors'
20
20
 
21
- require 'active_model/error_collecting/core_ext'
22
-
23
21
  module ActiveModel
24
22
  module ErrorCollecting
25
23
  class << self
@@ -81,7 +81,7 @@ module ActiveModel
81
81
 
82
82
  def ==(other)
83
83
  return type == other if other.is_a?(Symbol)
84
- to_s == other.to_s
84
+ to_hash == other.to_hash
85
85
  end
86
86
  end
87
87
  end
@@ -80,17 +80,4 @@ describe ActiveModel::ErrorCollecting::ErrorMessageSet do
80
80
  it { should be_false }
81
81
  end
82
82
  end
83
-
84
- describe "#==" do
85
- subject { errors == set }
86
- let(:errors) { [:invalid] }
87
- let(:expected) { ["is invalid"] }
88
- specify do
89
- set.should == expected
90
- end
91
-
92
- specify do
93
- expected.should == set
94
- end
95
- end
96
83
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instructure-active_model-better_errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3.rails2.1
4
+ version: 1.6.3.rails2.2
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -246,7 +246,6 @@ files:
246
246
  - lib/active_model/better_errors.rb
247
247
  - lib/active_model/error_collecting.rb
248
248
  - lib/active_model/error_collecting/array_reporter.rb
249
- - lib/active_model/error_collecting/core_ext.rb
250
249
  - lib/active_model/error_collecting/emulation.rb
251
250
  - lib/active_model/error_collecting/error_collection.rb
252
251
  - lib/active_model/error_collecting/error_message.rb
@@ -292,7 +291,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
292
291
  version: '0'
293
292
  segments:
294
293
  - 0
295
- hash: -329676681584185471
294
+ hash: -57061475421107857
296
295
  required_rubygems_version: !ruby/object:Gem::Requirement
297
296
  none: false
298
297
  requirements:
@@ -1,6 +0,0 @@
1
- class String
2
- def ==(other)
3
- return super other.to_s if other.is_a? ActiveModel::ErrorCollecting::ErrorMessage
4
- super
5
- end
6
- end