mongoid-simple-tags 0.0.5 → 0.0.6
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/.gitignore +48 -0
- data/.rspec +2 -0
- data/Gemfile +2 -6
- data/Gemfile.lock +31 -22
- data/README.rdoc +1 -1
- data/Rakefile +4 -37
- data/VERSION +1 -1
- data/mongoid-simple-tags.gemspec +16 -56
- data/{test/mongoid-simple-tags_test.rb → spec/mongoid-simple-tags_spec.rb} +31 -32
- data/spec/spec_helper.rb +8 -0
- metadata +71 -88
- data/.document +0 -5
- data/test/helper.rb +0 -22
data/.gitignore
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# rcov generated
|
|
2
|
+
coverage
|
|
3
|
+
|
|
4
|
+
# rdoc generated
|
|
5
|
+
rdoc
|
|
6
|
+
|
|
7
|
+
# yard generated
|
|
8
|
+
doc
|
|
9
|
+
.yardoc
|
|
10
|
+
|
|
11
|
+
# bundler
|
|
12
|
+
.bundle
|
|
13
|
+
|
|
14
|
+
# jeweler generated
|
|
15
|
+
pkg
|
|
16
|
+
|
|
17
|
+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
|
18
|
+
#
|
|
19
|
+
# * Create a file at ~/.gitignore
|
|
20
|
+
# * Include files you want ignored
|
|
21
|
+
# * Run: git config --global core.excludesfile ~/.gitignore
|
|
22
|
+
#
|
|
23
|
+
# After doing this, these files will be ignored in all your git projects,
|
|
24
|
+
# saving you from having to 'pollute' every project you touch with them
|
|
25
|
+
#
|
|
26
|
+
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
|
27
|
+
#
|
|
28
|
+
# For MacOS:
|
|
29
|
+
#
|
|
30
|
+
#.DS_Store
|
|
31
|
+
|
|
32
|
+
# For TextMate
|
|
33
|
+
#*.tmproj
|
|
34
|
+
#tmtags
|
|
35
|
+
|
|
36
|
+
# For emacs:
|
|
37
|
+
#*~
|
|
38
|
+
#\#*
|
|
39
|
+
#.\#*
|
|
40
|
+
|
|
41
|
+
# For vim:
|
|
42
|
+
*.swp
|
|
43
|
+
|
|
44
|
+
# For redcar:
|
|
45
|
+
#.redcar
|
|
46
|
+
|
|
47
|
+
# For rubinius:
|
|
48
|
+
#*.rbc
|
data/.rspec
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,36 +1,45 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
mongoid-simple-tags (0.0.6)
|
|
5
|
+
bson_ext (~> 1.6)
|
|
6
|
+
mongoid (~> 2.4)
|
|
7
|
+
|
|
1
8
|
GEM
|
|
2
9
|
remote: http://rubygems.org/
|
|
3
10
|
specs:
|
|
4
|
-
activemodel (3.
|
|
5
|
-
activesupport (= 3.
|
|
11
|
+
activemodel (3.2.6)
|
|
12
|
+
activesupport (= 3.2.6)
|
|
6
13
|
builder (~> 3.0.0)
|
|
14
|
+
activesupport (3.2.6)
|
|
7
15
|
i18n (~> 0.6)
|
|
8
|
-
activesupport (3.1.1)
|
|
9
16
|
multi_json (~> 1.0)
|
|
10
|
-
bson (1.4
|
|
11
|
-
bson_ext (1.4
|
|
17
|
+
bson (1.6.4)
|
|
18
|
+
bson_ext (1.6.4)
|
|
19
|
+
bson (~> 1.6.4)
|
|
12
20
|
builder (3.0.0)
|
|
13
|
-
|
|
21
|
+
diff-lcs (1.1.3)
|
|
14
22
|
i18n (0.6.0)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
bson (>= 1.3.1)
|
|
21
|
-
mongoid (2.2.1)
|
|
22
|
-
activemodel (~> 3.0)
|
|
23
|
-
mongo (>= 1.3, < 1.4)
|
|
23
|
+
mongo (1.6.2)
|
|
24
|
+
bson (~> 1.6.2)
|
|
25
|
+
mongoid (2.4.11)
|
|
26
|
+
activemodel (~> 3.1)
|
|
27
|
+
mongo (<= 1.6.2)
|
|
24
28
|
tzinfo (~> 0.3.22)
|
|
25
|
-
multi_json (1.
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
multi_json (1.3.6)
|
|
30
|
+
rspec (2.10.0)
|
|
31
|
+
rspec-core (~> 2.10.0)
|
|
32
|
+
rspec-expectations (~> 2.10.0)
|
|
33
|
+
rspec-mocks (~> 2.10.0)
|
|
34
|
+
rspec-core (2.10.1)
|
|
35
|
+
rspec-expectations (2.10.0)
|
|
36
|
+
diff-lcs (~> 1.1.3)
|
|
37
|
+
rspec-mocks (2.10.1)
|
|
38
|
+
tzinfo (0.3.33)
|
|
28
39
|
|
|
29
40
|
PLATFORMS
|
|
30
41
|
ruby
|
|
31
42
|
|
|
32
43
|
DEPENDENCIES
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
jeweler (~> 1.6.2)
|
|
36
|
-
mongoid (= 2.2.1)
|
|
44
|
+
mongoid-simple-tags!
|
|
45
|
+
rspec (~> 2.10.0)
|
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
|
@@ -1,38 +1,5 @@
|
|
|
1
|
-
# encoding: utf-8
|
|
2
|
-
|
|
3
|
-
require 'rubygems'
|
|
4
1
|
require 'bundler'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
|
10
|
-
exit e.status_code
|
|
11
|
-
end
|
|
12
|
-
require 'rake'
|
|
13
|
-
|
|
14
|
-
require 'jeweler'
|
|
15
|
-
Jeweler::Tasks.new do |gem|
|
|
16
|
-
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
|
17
|
-
gem.name = "mongoid-simple-tags"
|
|
18
|
-
gem.homepage = "http://github.com/chebyte/mongoid-simple-tags"
|
|
19
|
-
gem.license = "MIT"
|
|
20
|
-
gem.summary = %Q{tags on mongoid made easy}
|
|
21
|
-
gem.description = %Q{basic and simple tagging system for mongoid}
|
|
22
|
-
gem.email = "maurotorres@gmail.com"
|
|
23
|
-
gem.authors = ["chebyte"]
|
|
24
|
-
# dependencies defined in Gemfile
|
|
25
|
-
gem.add_dependency('mongoid','>=2.0.0')
|
|
26
|
-
|
|
27
|
-
end
|
|
28
|
-
Jeweler::RubygemsDotOrgTasks.new
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
require 'rake/testtask'
|
|
32
|
-
Rake::TestTask.new do |t|
|
|
33
|
-
# t.libs.push "lib"
|
|
34
|
-
t.test_files = FileList['test/*_test.rb']
|
|
35
|
-
t.verbose = true
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
|
|
2
|
+
require 'rspec/core/rake_task'
|
|
3
|
+
Bundler::GemHelper.install_tasks
|
|
4
|
+
RSpec::Core::RakeTask.new(:spec)
|
|
5
|
+
task :default => :spec
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.6
|
data/mongoid-simple-tags.gemspec
CHANGED
|
@@ -1,62 +1,22 @@
|
|
|
1
|
-
# Generated by jeweler
|
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
1
|
# -*- encoding: utf-8 -*-
|
|
5
2
|
|
|
6
3
|
Gem::Specification.new do |s|
|
|
7
|
-
s.name
|
|
8
|
-
s.version
|
|
4
|
+
s.name = "mongoid-simple-tags"
|
|
5
|
+
s.version = "0.0.6"
|
|
6
|
+
s.platform = Gem::Platform::RUBY
|
|
7
|
+
s.authors = ["chebyte"]
|
|
8
|
+
s.email = ["maurotorres@gmail.com"]
|
|
9
|
+
s.homepage = "https://github.com/chebyte/mongoid-simple-tags"
|
|
10
|
+
s.summary = %q{MongoID simple tags for RAILS}
|
|
11
|
+
s.description = %q{basic and simple tagging system for mongoid using map-reduce function}
|
|
9
12
|
|
|
10
|
-
s.
|
|
11
|
-
s.authors = ["chebyte"]
|
|
12
|
-
s.date = %q{2011-11-25}
|
|
13
|
-
s.description = %q{basic and simple tagging system for mongoid}
|
|
14
|
-
s.email = %q{maurotorres@gmail.com}
|
|
15
|
-
s.extra_rdoc_files = [
|
|
16
|
-
"LICENSE.txt",
|
|
17
|
-
"README.rdoc"
|
|
18
|
-
]
|
|
19
|
-
s.files = [
|
|
20
|
-
".document",
|
|
21
|
-
"Gemfile",
|
|
22
|
-
"Gemfile.lock",
|
|
23
|
-
"LICENSE.txt",
|
|
24
|
-
"README.rdoc",
|
|
25
|
-
"Rakefile",
|
|
26
|
-
"VERSION",
|
|
27
|
-
"lib/mongoid-simple-tags.rb",
|
|
28
|
-
"mongoid-simple-tags.gemspec",
|
|
29
|
-
"test/helper.rb",
|
|
30
|
-
"test/mongoid-simple-tags_test.rb"
|
|
31
|
-
]
|
|
32
|
-
s.homepage = %q{http://github.com/chebyte/mongoid-simple-tags}
|
|
33
|
-
s.licenses = ["MIT"]
|
|
34
|
-
s.require_paths = ["lib"]
|
|
35
|
-
s.rubygems_version = %q{1.5.2}
|
|
36
|
-
s.summary = %q{tags on mongoid made easy}
|
|
37
|
-
|
|
38
|
-
if s.respond_to? :specification_version then
|
|
39
|
-
s.specification_version = 3
|
|
13
|
+
s.rubyforge_project = "mongoid-simple-tags"
|
|
40
14
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
s.add_dependency(%q<mongoid>, ["= 2.2.1"])
|
|
49
|
-
s.add_dependency(%q<bson_ext>, [">= 1.4.0"])
|
|
50
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
|
51
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
|
|
52
|
-
s.add_dependency(%q<mongoid>, [">= 2.0.0"])
|
|
53
|
-
end
|
|
54
|
-
else
|
|
55
|
-
s.add_dependency(%q<mongoid>, ["= 2.2.1"])
|
|
56
|
-
s.add_dependency(%q<bson_ext>, [">= 1.4.0"])
|
|
57
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
|
58
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
|
|
59
|
-
s.add_dependency(%q<mongoid>, [">= 2.0.0"])
|
|
60
|
-
end
|
|
15
|
+
s.files = `git ls-files`.split("\n")
|
|
16
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
17
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
18
|
+
s.require_paths = ["lib"]
|
|
19
|
+
s.add_development_dependency "rspec", "~> 2.10.0"
|
|
20
|
+
s.add_dependency "mongoid", "~> 2.4"
|
|
21
|
+
s.add_dependency "bson_ext", "~> 1.6"
|
|
61
22
|
end
|
|
62
|
-
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
require 'helper'
|
|
1
|
+
require 'spec_helper'
|
|
3
2
|
|
|
4
3
|
class User
|
|
5
4
|
include Mongoid::Document
|
|
6
5
|
include Mongoid::Document::Taggable
|
|
7
6
|
field :name
|
|
8
|
-
belongs_to :
|
|
7
|
+
belongs_to :organization
|
|
9
8
|
end
|
|
10
9
|
|
|
11
|
-
class
|
|
10
|
+
class Organization
|
|
12
11
|
include Mongoid::Document
|
|
13
12
|
field :name
|
|
14
13
|
has_many :users
|
|
@@ -27,7 +26,7 @@ describe "A Taggable model" do
|
|
|
27
26
|
tag_list = "linux, tucuman, free software"
|
|
28
27
|
tags = tag_list.split(',').map{ |tag| tag.strip}.flatten
|
|
29
28
|
@user.tag_list = tag_list
|
|
30
|
-
|
|
29
|
+
tags.should == @user.tags
|
|
31
30
|
end
|
|
32
31
|
end
|
|
33
32
|
|
|
@@ -40,8 +39,8 @@ describe "A Taggable model with tags assigned" do
|
|
|
40
39
|
end
|
|
41
40
|
|
|
42
41
|
it "should be able to find tagged_with objects" do
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
@user.should == User.tagged_with('linux').first
|
|
43
|
+
@user.should == User.tagged_with(['tucuman', 'free software']).first
|
|
45
44
|
end
|
|
46
45
|
|
|
47
46
|
it "should be able to find tagged_with objects if more than one object is present" do
|
|
@@ -49,8 +48,8 @@ describe "A Taggable model with tags assigned" do
|
|
|
49
48
|
user2.tag_list = "linux"
|
|
50
49
|
user2.save
|
|
51
50
|
tagged_with_list = User.tagged_with('linux')
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
tagged_with_list.include?(@user).should be_true
|
|
52
|
+
tagged_with_list.include?(user2).should be_true
|
|
54
53
|
end
|
|
55
54
|
|
|
56
55
|
it "should return all_tags per Model class" do
|
|
@@ -60,7 +59,7 @@ describe "A Taggable model with tags assigned" do
|
|
|
60
59
|
{:name=>"linux", :count=>2},
|
|
61
60
|
{:name=>"tucuman", :count=>1}
|
|
62
61
|
]
|
|
63
|
-
|
|
62
|
+
expected_tag_list.should == all_tags_for_users
|
|
64
63
|
end
|
|
65
64
|
|
|
66
65
|
after do
|
|
@@ -70,36 +69,36 @@ end
|
|
|
70
69
|
|
|
71
70
|
describe "A Taggable model with scope" do
|
|
72
71
|
before do
|
|
73
|
-
@
|
|
74
|
-
@user_1 = @
|
|
75
|
-
@user_2 = @
|
|
76
|
-
@
|
|
77
|
-
@user_3 = @
|
|
78
|
-
@user_4 = @
|
|
72
|
+
@organization_1 = Organization.create(name: 'Qualica')
|
|
73
|
+
@user_1 = @organization_1.users.create(name: 'User1', tag_list: "ubuntu, linux, tucuman")
|
|
74
|
+
@user_2 = @organization_1.users.create(name: 'User2', tag_list: "ubuntu, linux, tucuman")
|
|
75
|
+
@organization_2 = Organization.create(name: 'Microsoft')
|
|
76
|
+
@user_3 = @organization_2.users.create(name: 'User3', tag_list: 'microsoft, windows, tucuman')
|
|
77
|
+
@user_4 = @organization_2.users.create(name: 'User4', tag_list: 'ubuntu, linux, tucuman')
|
|
79
78
|
end
|
|
80
79
|
|
|
81
80
|
it "should return scoped tags when passing one option" do
|
|
82
|
-
results = User.scoped_tags(
|
|
83
|
-
|
|
81
|
+
results = User.scoped_tags(organization_id: @organization_1.id)
|
|
82
|
+
results.empty?.should be_false
|
|
84
83
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
results.include?( {:name => "linux", :count => 2 } ).should be_true
|
|
85
|
+
results.include?( {:name => "ubuntu", :count => 2 } ).should be_true
|
|
86
|
+
results.include?( {:name => "tucuman", :count => 2 } ).should be_true
|
|
88
87
|
|
|
89
|
-
results = User.scoped_tags(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
88
|
+
results = User.scoped_tags(organization_id: @organization_2.id)
|
|
89
|
+
results.empty?.should be_false
|
|
90
|
+
results.include?( {:name =>"linux", :count => 1 } ).should be_true
|
|
91
|
+
results.include?( {:name => "microsoft", :count => 1 } ).should be_true
|
|
92
|
+
results.include?( {:name => "windows", :count => 1 } ).should be_true
|
|
93
|
+
results.include?( {:name => "tucuman", :count => 2 } ).should be_true
|
|
95
94
|
end
|
|
96
95
|
|
|
97
96
|
it "should return scoped tags when passing more than one option" do
|
|
98
|
-
results = User.scoped_tags(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
results = User.scoped_tags(organization_id: @organization_1.id, name: @user_1.name)
|
|
98
|
+
results.empty?.should be_false
|
|
99
|
+
results.include?( {:name => "linux", :count => 1 } ).should be_true
|
|
100
|
+
results.include?( {:name => "ubuntu", :count => 1 } ).should be_true
|
|
101
|
+
results.include?( {:name => "tucuman", :count => 1 } ).should be_true
|
|
103
102
|
end
|
|
104
103
|
|
|
105
104
|
after do
|
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
|
@@ -1,84 +1,73 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mongoid-simple-tags
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.6
|
|
4
5
|
prerelease:
|
|
5
|
-
version: 0.0.5
|
|
6
6
|
platform: ruby
|
|
7
|
-
authors:
|
|
7
|
+
authors:
|
|
8
8
|
- chebyte
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
name: mongoid
|
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
|
12
|
+
date: 2012-07-02 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: rspec
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
19
17
|
none: false
|
|
20
|
-
requirements:
|
|
21
|
-
- -
|
|
22
|
-
- !ruby/object:Gem::Version
|
|
23
|
-
version: 2.
|
|
24
|
-
type: :
|
|
18
|
+
requirements:
|
|
19
|
+
- - ~>
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 2.10.0
|
|
22
|
+
type: :development
|
|
25
23
|
prerelease: false
|
|
26
|
-
version_requirements:
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: bson_ext
|
|
29
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
30
25
|
none: false
|
|
31
|
-
requirements:
|
|
32
|
-
- -
|
|
33
|
-
- !ruby/object:Gem::Version
|
|
34
|
-
version:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
- !ruby/object:Gem::Dependency
|
|
39
|
-
name: bundler
|
|
40
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
|
26
|
+
requirements:
|
|
27
|
+
- - ~>
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: 2.10.0
|
|
30
|
+
- !ruby/object:Gem::Dependency
|
|
31
|
+
name: mongoid
|
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
|
41
33
|
none: false
|
|
42
|
-
requirements:
|
|
34
|
+
requirements:
|
|
43
35
|
- - ~>
|
|
44
|
-
- !ruby/object:Gem::Version
|
|
45
|
-
version:
|
|
46
|
-
type: :
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '2.4'
|
|
38
|
+
type: :runtime
|
|
47
39
|
prerelease: false
|
|
48
|
-
version_requirements:
|
|
49
|
-
- !ruby/object:Gem::Dependency
|
|
50
|
-
name: jeweler
|
|
51
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
52
41
|
none: false
|
|
53
|
-
requirements:
|
|
42
|
+
requirements:
|
|
54
43
|
- - ~>
|
|
55
|
-
- !ruby/object:Gem::Version
|
|
56
|
-
version:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
- !ruby/object:Gem::Dependency
|
|
61
|
-
name: mongoid
|
|
62
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '2.4'
|
|
46
|
+
- !ruby/object:Gem::Dependency
|
|
47
|
+
name: bson_ext
|
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
|
63
49
|
none: false
|
|
64
|
-
requirements:
|
|
65
|
-
- -
|
|
66
|
-
- !ruby/object:Gem::Version
|
|
67
|
-
version:
|
|
50
|
+
requirements:
|
|
51
|
+
- - ~>
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '1.6'
|
|
68
54
|
type: :runtime
|
|
69
55
|
prerelease: false
|
|
70
|
-
version_requirements:
|
|
71
|
-
|
|
72
|
-
|
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
+
none: false
|
|
58
|
+
requirements:
|
|
59
|
+
- - ~>
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '1.6'
|
|
62
|
+
description: basic and simple tagging system for mongoid using map-reduce function
|
|
63
|
+
email:
|
|
64
|
+
- maurotorres@gmail.com
|
|
73
65
|
executables: []
|
|
74
|
-
|
|
75
66
|
extensions: []
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
files:
|
|
81
|
-
- .document
|
|
67
|
+
extra_rdoc_files: []
|
|
68
|
+
files:
|
|
69
|
+
- .gitignore
|
|
70
|
+
- .rspec
|
|
82
71
|
- Gemfile
|
|
83
72
|
- Gemfile.lock
|
|
84
73
|
- LICENSE.txt
|
|
@@ -87,38 +76,32 @@ files:
|
|
|
87
76
|
- VERSION
|
|
88
77
|
- lib/mongoid-simple-tags.rb
|
|
89
78
|
- mongoid-simple-tags.gemspec
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
licenses:
|
|
95
|
-
- MIT
|
|
79
|
+
- spec/mongoid-simple-tags_spec.rb
|
|
80
|
+
- spec/spec_helper.rb
|
|
81
|
+
homepage: https://github.com/chebyte/mongoid-simple-tags
|
|
82
|
+
licenses: []
|
|
96
83
|
post_install_message:
|
|
97
84
|
rdoc_options: []
|
|
98
|
-
|
|
99
|
-
require_paths:
|
|
85
|
+
require_paths:
|
|
100
86
|
- lib
|
|
101
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
87
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
88
|
none: false
|
|
103
|
-
requirements:
|
|
104
|
-
- -
|
|
105
|
-
- !ruby/object:Gem::Version
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
- 0
|
|
109
|
-
version: "0"
|
|
110
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
|
+
requirements:
|
|
90
|
+
- - ! '>='
|
|
91
|
+
- !ruby/object:Gem::Version
|
|
92
|
+
version: '0'
|
|
93
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
94
|
none: false
|
|
112
|
-
requirements:
|
|
113
|
-
- -
|
|
114
|
-
- !ruby/object:Gem::Version
|
|
115
|
-
version:
|
|
95
|
+
requirements:
|
|
96
|
+
- - ! '>='
|
|
97
|
+
- !ruby/object:Gem::Version
|
|
98
|
+
version: '0'
|
|
116
99
|
requirements: []
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
rubygems_version: 1.5.2
|
|
100
|
+
rubyforge_project: mongoid-simple-tags
|
|
101
|
+
rubygems_version: 1.8.23
|
|
120
102
|
signing_key:
|
|
121
103
|
specification_version: 3
|
|
122
|
-
summary:
|
|
123
|
-
test_files:
|
|
124
|
-
|
|
104
|
+
summary: MongoID simple tags for RAILS
|
|
105
|
+
test_files:
|
|
106
|
+
- spec/mongoid-simple-tags_spec.rb
|
|
107
|
+
- spec/spec_helper.rb
|
data/.document
DELETED
data/test/helper.rb
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
require 'rubygems'
|
|
2
|
-
require 'bundler'
|
|
3
|
-
begin
|
|
4
|
-
Bundler.setup(:default, :development)
|
|
5
|
-
rescue Bundler::BundlerError => e
|
|
6
|
-
$stderr.puts e.message
|
|
7
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
|
8
|
-
exit e.status_code
|
|
9
|
-
end
|
|
10
|
-
require 'minitest/autorun'
|
|
11
|
-
require 'minitest/spec'
|
|
12
|
-
|
|
13
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
14
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
15
|
-
require 'mongoid'
|
|
16
|
-
require 'mongoid-simple-tags'
|
|
17
|
-
|
|
18
|
-
Mongoid.configure do |config|
|
|
19
|
-
config.master = Mongo::Connection.new.db("mongoid_simple_tags_test")
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
|