strip_attributes 1.4.3 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ff3a0ea7a0ad2399cfe77252be06860ed86f84fb
4
+ data.tar.gz: eb2d6ea7b6375258381f914368385d0a6e015260
5
+ SHA512:
6
+ metadata.gz: 449748943c98701d704edcf2333aced1a1d9850eaba9c97acf15948fb26f55ffa4979744080f487334f8de49304511a570ef8f5ee22c498c93868eb91a2e379b
7
+ data.tar.gz: ca85da74e5400e8ed4e0397c43d827ccedff7e0ead9ba67c7af66eb1f096db50a50602ae5c88b233767e613da3712d76bf6d38897278d7371681ad163c7ac642
data/README.md CHANGED
@@ -10,6 +10,11 @@ options can be used to limit which attributes are stripped. Both options accept
10
10
  a single attribute (`:only => :field`) or arrays of attributes (`:except =>
11
11
  [:field1, :field2, :field3]`).
12
12
 
13
+ **If you like this project, please help by donating.**
14
+
15
+ * Gittip: https://www.gittip.com/rmm5t/
16
+ * Bitcoin: `1wzBnMjWVZfpiFMc5i2nzKT7sCBaZNfLK`
17
+
13
18
  ## Installation
14
19
 
15
20
  Include the gem in your Gemfile:
@@ -60,6 +60,7 @@ module StripAttributes
60
60
  def expectation(past = true)
61
61
  expectation = past ? "stripped" : "strip"
62
62
  expectation += past ? " and collapsed" : " and collapse" if @options[:collapse_spaces]
63
+ expectation
63
64
  end
64
65
  end
65
66
  end
@@ -1,3 +1,3 @@
1
1
  module StripAttributes
2
- VERSION = "1.4.3"
2
+ VERSION = "1.4.4"
3
3
  end
metadata CHANGED
@@ -1,86 +1,91 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strip_attributes
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.4.3
4
+ version: 1.4.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ryan McGeary
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-22 00:00:00.000000000 Z
11
+ date: 2013-07-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activemodel
16
- type: :runtime
17
15
  requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '3.0'
22
20
  - - <
23
21
  - !ruby/object:Gem::Version
24
22
  version: '5.0'
25
- none: false
23
+ type: :runtime
24
+ prerelease: false
26
25
  version_requirements: !ruby/object:Gem::Requirement
27
26
  requirements:
28
- - - ! '>='
27
+ - - '>='
29
28
  - !ruby/object:Gem::Version
30
29
  version: '3.0'
31
30
  - - <
32
31
  - !ruby/object:Gem::Version
33
32
  version: '5.0'
34
- none: false
35
- prerelease: false
36
33
  - !ruby/object:Gem::Dependency
37
34
  name: active_attr
38
- type: :development
39
35
  requirement: !ruby/object:Gem::Requirement
40
36
  requirements:
41
37
  - - ~>
42
38
  - !ruby/object:Gem::Version
43
39
  version: '0.7'
44
- none: false
40
+ type: :development
41
+ prerelease: false
45
42
  version_requirements: !ruby/object:Gem::Requirement
46
43
  requirements:
47
44
  - - ~>
48
45
  - !ruby/object:Gem::Version
49
46
  version: '0.7'
50
- none: false
51
- prerelease: false
52
47
  - !ruby/object:Gem::Dependency
53
48
  name: minitest-matchers
54
- type: :development
55
49
  requirement: !ruby/object:Gem::Requirement
56
50
  requirements:
57
51
  - - ~>
58
52
  - !ruby/object:Gem::Version
59
53
  version: '1.2'
60
- none: false
54
+ type: :development
55
+ prerelease: false
61
56
  version_requirements: !ruby/object:Gem::Requirement
62
57
  requirements:
63
58
  - - ~>
64
59
  - !ruby/object:Gem::Version
65
60
  version: '1.2'
66
- none: false
61
+ - !ruby/object:Gem::Dependency
62
+ name: minitest
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ~>
66
+ - !ruby/object:Gem::Version
67
+ version: '4.7'
68
+ type: :development
67
69
  prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ~>
73
+ - !ruby/object:Gem::Version
74
+ version: '4.7'
68
75
  - !ruby/object:Gem::Dependency
69
76
  name: rake
70
- type: :development
71
77
  requirement: !ruby/object:Gem::Requirement
72
78
  requirements:
73
79
  - - ~>
74
80
  - !ruby/object:Gem::Version
75
81
  version: '10.0'
76
- none: false
82
+ type: :development
83
+ prerelease: false
77
84
  version_requirements: !ruby/object:Gem::Requirement
78
85
  requirements:
79
86
  - - ~>
80
87
  - !ruby/object:Gem::Version
81
88
  version: '10.0'
82
- none: false
83
- prerelease: false
84
89
  description: StripAttributes automatically strips all ActiveRecord model attributes
85
90
  of leading and trailing whitespace before validation. If the attribute is blank,
86
91
  it strips the value to nil.
@@ -102,33 +107,26 @@ files:
102
107
  homepage: https://github.com/rmm5t/strip_attributes
103
108
  licenses:
104
109
  - MIT
110
+ metadata: {}
105
111
  post_install_message:
106
112
  rdoc_options: []
107
113
  require_paths:
108
114
  - lib
109
115
  required_ruby_version: !ruby/object:Gem::Requirement
110
116
  requirements:
111
- - - ! '>='
117
+ - - '>='
112
118
  - !ruby/object:Gem::Version
113
- segments:
114
- - 0
115
- hash: -2985851846884596940
116
119
  version: '0'
117
- none: false
118
120
  required_rubygems_version: !ruby/object:Gem::Requirement
119
121
  requirements:
120
- - - ! '>='
122
+ - - '>='
121
123
  - !ruby/object:Gem::Version
122
- segments:
123
- - 0
124
- hash: -2985851846884596940
125
124
  version: '0'
126
- none: false
127
125
  requirements: []
128
126
  rubyforge_project:
129
- rubygems_version: 1.8.23
127
+ rubygems_version: 2.0.3
130
128
  signing_key:
131
- specification_version: 3
129
+ specification_version: 4
132
130
  summary: Whitespace cleanup for ActiveModel attributes
133
131
  test_files:
134
132
  - test/matchers_test.rb