mm-stripper 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/Rakefile +2 -2
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -8,7 +8,7 @@ If the value is blank, it sets it to nil
|
|
8
8
|
Either load it into all models, or individual models:
|
9
9
|
|
10
10
|
# add to all models
|
11
|
-
MongoMapper::Document.
|
11
|
+
MongoMapper::Document.plugin(MongoMapper::Plugins::Stripper)
|
12
12
|
|
13
13
|
# add to a specific model
|
14
14
|
plugin MongoMapper::Plugins::Stripper
|
data/Rakefile
CHANGED
@@ -15,7 +15,7 @@ spec = Gem::Specification.new do |s|
|
|
15
15
|
|
16
16
|
# Change these as appropriate
|
17
17
|
s.name = "mm-stripper"
|
18
|
-
s.version = "0.2.
|
18
|
+
s.version = "0.2.1"
|
19
19
|
s.summary = "Tiny plugin for MongoMapper to strip whitespace from strings before validation."
|
20
20
|
s.author = "Richard Livsey"
|
21
21
|
s.email = "youremail@example.com"
|
@@ -31,7 +31,7 @@ spec = Gem::Specification.new do |s|
|
|
31
31
|
|
32
32
|
# If you want to depend on other gems, add them here, along with any
|
33
33
|
# relevant versions
|
34
|
-
s.add_dependency("mongo_mapper", "
|
34
|
+
s.add_dependency("mongo_mapper", ">= 0.9.0")
|
35
35
|
|
36
36
|
# If your tests use any gems, include them here
|
37
37
|
s.add_development_dependency("rspec")
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mm-stripper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Richard Livsey
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
hash: 59
|
30
30
|
segments:
|