auto_strip_attributes 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,11 +22,8 @@ Gem::Specification.new do |s|
22
22
  s.add_runtime_dependency "activerecord", ">= 3.0"
23
23
 
24
24
  s.add_development_dependency "activerecord", ">= 3.0"
25
- s.add_development_dependency "minitest", "2.8.1"
25
+ s.add_development_dependency "minitest", "~> 2.8.1"
26
26
  s.add_development_dependency "mocha", "~> 0.9.12"
27
27
  s.add_development_dependency 'rake'
28
28
 
29
- #s.add_development_dependency 'ruby-debug'
30
- #s.add_development_dependency 'ruby-debug19'
31
-
32
29
  end
@@ -1,3 +1,3 @@
1
1
  module AutoStripAttributes
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
@@ -1,13 +1,18 @@
1
- #to use:
2
- #require "test/test_helper"
3
- #bundle exec ruby test/auto_strip_attributes_test.rb -v --name /test_name/
1
+ # to use:
2
+ # require "test/test_helper"
3
+ # bundle exec ruby test/auto_strip_attributes_test.rb -v --name /test_name/
4
4
 
5
5
  require 'minitest/autorun'
6
6
  require 'minitest/spec'
7
7
  require "active_record"
8
8
  require "auto_strip_attributes"
9
9
  require 'mocha'
10
- #require 'ruby-debug'
10
+
11
+ # if you need debug, add relevant line to auto_strip_attributes.gemspec
12
+ # s.add_development_dependency 'ruby-debug'
13
+ # s.add_development_dependency 'ruby-debug19'
14
+ # and uncomment following line
15
+ # require 'ruby-debug'
11
16
 
12
17
 
13
18
  class MockRecordParent
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_strip_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
- requirement: &15856940 !ruby/object:Gem::Requirement
16
+ requirement: &9037140 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *15856940
24
+ version_requirements: *9037140
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activerecord
27
- requirement: &15856440 !ruby/object:Gem::Requirement
27
+ requirement: &9036640 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,21 +32,21 @@ dependencies:
32
32
  version: '3.0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *15856440
35
+ version_requirements: *9036640
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: minitest
38
- requirement: &15905580 !ruby/object:Gem::Requirement
38
+ requirement: &9085720 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
- - - =
41
+ - - ~>
42
42
  - !ruby/object:Gem::Version
43
43
  version: 2.8.1
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *15905580
46
+ version_requirements: *9085720
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: mocha
49
- requirement: &15905120 !ruby/object:Gem::Requirement
49
+ requirement: &9085260 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.9.12
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *15905120
57
+ version_requirements: *9085260
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rake
60
- requirement: &15904740 !ruby/object:Gem::Requirement
60
+ requirement: &9084880 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *15904740
68
+ version_requirements: *9084880
69
69
  description: AutoStripAttributes helps to remove unnecessary whitespaces from ActiveRecord
70
70
  or ActiveModel attributes. It's good for removing accidental spaces from user inputs.
71
71
  It works by adding a before_validation hook to the record. It has option to set