mongoid_taggable 0.1.2 → 0.1.3
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/Rakefile +1 -1
- data/lib/mongoid/taggable.rb +1 -1
- data/mongoid_taggable.gemspec +3 -4
- data/spec/mongoid/taggable_spec.rb +5 -0
- metadata +4 -12
data/Rakefile
CHANGED
@@ -7,7 +7,7 @@ begin
|
|
7
7
|
require 'jeweler'
|
8
8
|
Jeweler::Tasks.new do |gemspec|
|
9
9
|
gemspec.name = "mongoid_taggable"
|
10
|
-
gemspec.version = "0.1.
|
10
|
+
gemspec.version = "0.1.3"
|
11
11
|
gemspec.summary = "Mongoid taggable behaviour"
|
12
12
|
gemspec.description = "Mongoid Taggable provides some helpers to create taggable documents."
|
13
13
|
gemspec.email = "wilkerlucio@gmail.com"
|
data/lib/mongoid/taggable.rb
CHANGED
data/mongoid_taggable.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{mongoid_taggable}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Wilker Lucio", "Kris Kowalik"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-03-07}
|
13
13
|
s.description = %q{Mongoid Taggable provides some helpers to create taggable documents.}
|
14
14
|
s.email = %q{wilkerlucio@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.homepage = %q{http://github.com/wilkerlucio/mongo_taggable}
|
33
33
|
s.rdoc_options = ["--charset=UTF-8"]
|
34
34
|
s.require_paths = ["lib"]
|
35
|
-
s.rubygems_version = %q{1.
|
35
|
+
s.rubygems_version = %q{1.5.0}
|
36
36
|
s.summary = %q{Mongoid taggable behaviour}
|
37
37
|
s.test_files = [
|
38
38
|
"spec/mongoid/taggable_spec.rb",
|
@@ -40,7 +40,6 @@ Gem::Specification.new do |s|
|
|
40
40
|
]
|
41
41
|
|
42
42
|
if s.respond_to? :specification_version then
|
43
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
44
43
|
s.specification_version = 3
|
45
44
|
|
46
45
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
@@ -39,6 +39,11 @@ describe Mongoid::Taggable do
|
|
39
39
|
@m.tags = "now , with, some spaces , in places "
|
40
40
|
@m.tags_array.should == ["now", "with", "some spaces", "in places"]
|
41
41
|
end
|
42
|
+
|
43
|
+
it "should not put empty tags in array" do
|
44
|
+
@m.tags = "repetitive,, commas, shouldn't cause,,, empty tags"
|
45
|
+
@m.tags_array.should == ["repetitive", "commas", "shouldn't cause", "empty tags"]
|
46
|
+
end
|
42
47
|
end
|
43
48
|
|
44
49
|
context "changing separator" do
|
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_taggable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
- 2
|
9
|
-
version: 0.1.2
|
4
|
+
prerelease:
|
5
|
+
version: 0.1.3
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Wilker Lucio
|
@@ -15,7 +11,7 @@ autorequire:
|
|
15
11
|
bindir: bin
|
16
12
|
cert_chain: []
|
17
13
|
|
18
|
-
date: 2011-
|
14
|
+
date: 2011-03-07 00:00:00 -03:00
|
19
15
|
default_executable:
|
20
16
|
dependencies: []
|
21
17
|
|
@@ -54,21 +50,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
54
50
|
requirements:
|
55
51
|
- - ">="
|
56
52
|
- !ruby/object:Gem::Version
|
57
|
-
segments:
|
58
|
-
- 0
|
59
53
|
version: "0"
|
60
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
55
|
none: false
|
62
56
|
requirements:
|
63
57
|
- - ">="
|
64
58
|
- !ruby/object:Gem::Version
|
65
|
-
segments:
|
66
|
-
- 0
|
67
59
|
version: "0"
|
68
60
|
requirements: []
|
69
61
|
|
70
62
|
rubyforge_project:
|
71
|
-
rubygems_version: 1.
|
63
|
+
rubygems_version: 1.5.0
|
72
64
|
signing_key:
|
73
65
|
specification_version: 3
|
74
66
|
summary: Mongoid taggable behaviour
|