mongoid-tags 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +13 -0
- data/Gemfile +0 -4
- data/LICENSE.md +1 -1
- data/README.md +6 -3
- data/Rakefile +1 -0
- data/gemfiles/mongoid_4.Gemfile +4 -0
- data/gemfiles/mongoid_5.Gemfile +4 -0
- data/lib/mongoid/tags/version.rb +1 -1
- data/mongoid-tags.gemspec +5 -1
- data/test/integration_test.rb +1 -1
- data/test/mongoid.yml +6 -0
- data/test/test_helper.rb +4 -0
- metadata +58 -8
- data/CHANGELOG.md +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20edc410641cf609150b1c719a786077ddb81f46
|
4
|
+
data.tar.gz: 76e8f279f834314d93d2d910ff6ab9919fb2378a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2565b3d743c735affb26b306d722582bd60bb33161bfc7d33d2029cdaa0cc4a7fed0dbe78fb5812ec4b2ae935b468afec99cb403081cc88be6b40230767d6ca0
|
7
|
+
data.tar.gz: faca6df0ef2e88397f7fd9f21b7db43f2de93e5a942df91c389da24181bf9c3457e565bd041f9829448de974a1a884c39f730d1ad2138630f15d09789db51545
|
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/LICENSE.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# mongoid-tags
|
1
|
+
# mongoid-tags [![Build Status](https://travis-ci.org/haihappen/mongoid-tags.svg?branch=master)](https://travis-ci.org/haihappen/mongoid-tags)
|
2
2
|
|
3
3
|
Mongoid::Tags adds a simple tagging system to your Mongoid documents,
|
4
4
|
and allows you to query them using a boolean search syntax.
|
@@ -34,9 +34,12 @@ Document.tagged('(+foo +bar) baz')
|
|
34
34
|
|
35
35
|
# Documents tagged foo and bar, or foo and baz
|
36
36
|
Document.tagged('(+foo +bar)(+foo +baz)')
|
37
|
+
|
38
|
+
# Chaining calls
|
39
|
+
Document.where(published: true).tagged('foo').desc(:created_at)
|
37
40
|
```
|
38
41
|
|
39
|
-
Be sure to checkout test/integration_test.rb for more examples.
|
42
|
+
Be sure to checkout test/integration_test.rb for more examples.
|
40
43
|
|
41
44
|
## Contributing
|
42
45
|
|
@@ -50,6 +53,6 @@ Be sure to checkout test/integration_test.rb for more examples. By the way, `tag
|
|
50
53
|
|
51
54
|
(The MIT license)
|
52
55
|
|
53
|
-
Copyright (c) 2012-
|
56
|
+
Copyright (c) 2012-2015 Mario Uher
|
54
57
|
|
55
58
|
See LICENSE.md.
|
data/Rakefile
CHANGED
data/lib/mongoid/tags/version.rb
CHANGED
data/mongoid-tags.gemspec
CHANGED
@@ -18,6 +18,10 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
20
|
spec.add_dependency 'activesupport', '~> 4.0'
|
21
|
-
spec.add_dependency 'mongoid', '
|
21
|
+
spec.add_dependency 'mongoid', '>= 4.0.0', '<= 6.0.0'
|
22
22
|
spec.add_dependency 'treetop', '~> 1.5'
|
23
|
+
|
24
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
25
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
26
|
+
spec.add_development_dependency 'yard', '~> 0.8'
|
23
27
|
end
|
data/test/integration_test.rb
CHANGED
data/test/mongoid.yml
CHANGED
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Uher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -28,16 +28,22 @@ dependencies:
|
|
28
28
|
name: mongoid
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 4.0.0
|
34
|
+
- - "<="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 6.0.0
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
43
|
+
version: 4.0.0
|
44
|
+
- - "<="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 6.0.0
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: treetop
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +58,48 @@ dependencies:
|
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
60
|
version: '1.5'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: minitest
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '5.0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '5.0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rake
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '10.0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '10.0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: yard
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0.8'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0.8'
|
55
103
|
description: Mongoid::Tags adds a simple tagging system to your Mongoid documents,
|
56
104
|
and allows you to query them using a boolean search syntax.
|
57
105
|
email: uher.mario@gmail.com
|
@@ -60,12 +108,14 @@ extensions: []
|
|
60
108
|
extra_rdoc_files: []
|
61
109
|
files:
|
62
110
|
- ".gitignore"
|
111
|
+
- ".travis.yml"
|
63
112
|
- ".yardopts"
|
64
|
-
- CHANGELOG.md
|
65
113
|
- Gemfile
|
66
114
|
- LICENSE.md
|
67
115
|
- README.md
|
68
116
|
- Rakefile
|
117
|
+
- gemfiles/mongoid_4.Gemfile
|
118
|
+
- gemfiles/mongoid_5.Gemfile
|
69
119
|
- lib/mongoid/tags.rb
|
70
120
|
- lib/mongoid/tags.tt
|
71
121
|
- lib/mongoid/tags/version.rb
|
@@ -94,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
144
|
version: '0'
|
95
145
|
requirements: []
|
96
146
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.
|
147
|
+
rubygems_version: 2.5.0
|
98
148
|
signing_key:
|
99
149
|
specification_version: 4
|
100
150
|
summary: Simple tagging system with boolean search.
|
data/CHANGELOG.md
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# Not released
|
2
|
-
* Adds subqueries. See README.md for examples.
|
3
|
-
|
4
|
-
# 0.3.0 (February 12, 2014)
|
5
|
-
* Use Rake::FileList.
|
6
|
-
* Removes Gemfile warning.
|
7
|
-
* Simplifies tests a lot.
|
8
|
-
|
9
|
-
# 0.2.0 (December 31, 2012)
|
10
|
-
* Use require_relative.
|
11
|
-
|
12
|
-
# 0.1.1 (December 22, 2012)
|
13
|
-
* Updated gemspec.
|
14
|
-
|
15
|
-
# 0.1.0 (December 22, 2012)
|
16
|
-
* Added integration specs.
|
17
|
-
* Added more infos to README.md.
|
18
|
-
|
19
|
-
# 0.0.1 (December 22, 2012)
|
20
|
-
* First version.
|