strip_attributes 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3e651d0d39ce72ba89f17e690a0dac548c37ff0
4
- data.tar.gz: c8d3915d4cb62080de4ce629af76ef8a4974672a
3
+ metadata.gz: 0e4b323cd614f1fe461e795f9639291ac5eda4db
4
+ data.tar.gz: 41546e168fb2fdf9220c1048b86cf2ddeca972b5
5
5
  SHA512:
6
- metadata.gz: 869369a4ed6c794974d87ce80d95f7835ce2714e9391e2a79b1af5dd8a3cca45c1b640f7e1e4ab632b999bf5b4fbec14698c8b2d232cdd0b4af8550c625f5923
7
- data.tar.gz: 36ee4132a596ca23bc7ac451b0fa71176e1c9cf452121d8c7d48a0162bf0e9400c402b9571c4cdd7672e6237191dc2ab1b885fac93847543b9101d747efca4d0
6
+ metadata.gz: a632fd515e427df871254d544f625facdc50aedb24919499f261bea2d39a82401fce27410062186da237586e6962461197babb7988c0206917cb3a3c020423d8
7
+ data.tar.gz: 127b3edc8af1a095691071279ba760522b5e64dcff6d3793d575e77b7fb7508392e15e1421fecc1c780700d17d8bfba0785194763c286d34bf1e97072d44246e
@@ -33,15 +33,16 @@ module StripAttributes
33
33
  self
34
34
  end
35
35
 
36
- def failure_message_for_should
36
+ def failure_message # RSpec 3.x
37
37
  "Expected whitespace to be #{expectation} from ##{@attribute}, but it was not"
38
38
  end
39
- alias_method :failure_message, :failure_message_for_should
39
+ alias_method :failure_message_for_should, :failure_message # RSpec 1.2, 2.x, and minitest-matchers
40
40
 
41
- def failure_message_for_should_not
41
+ def failure_message_when_negated # RSpec 3.x
42
42
  "Expected whitespace to remain on ##{@attribute}, but it was #{expectation}"
43
43
  end
44
- alias_method :negative_failure_message, :failure_message_for_should_not
44
+ alias_method :failure_message_for_should_not, :failure_message_when_negated # RSpec 1.2, 2.x, and minitest-matchers
45
+ alias_method :negative_failure_message, :failure_message_when_negated # RSpec 1.1
45
46
 
46
47
  def description
47
48
  "#{expectation(false)} whitespace from ##{@attribute}"
@@ -1,3 +1,3 @@
1
1
  module StripAttributes
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
3
3
  end
data/test/test_helper.rb CHANGED
@@ -10,3 +10,6 @@ class Tableless
10
10
 
11
11
  include ActiveModel::Validations::Callbacks
12
12
  end
13
+
14
+ # Avoid annoying deprecation warning
15
+ I18n.enforce_available_locales = true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strip_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan McGeary
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-16 00:00:00.000000000 Z
11
+ date: 2014-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.2.0
127
+ rubygems_version: 2.2.2
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Whitespace cleanup for ActiveModel attributes