acts-as-taggable-on 3.0.1 → 3.0.2
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.
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
OGMwZTUwZGZkYzg3ZGRhM2E3ZWNhYjU1MjE4OGFhYjU5MTk2NTAwMg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MmE0ZDlhNmE2ZjRjY2RiNGU3YjVlMzE1MGQwMjVhMzhhZDA5ZmYzMQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YmI2YTcwNGFhMWFhN2U4YmQ1NjYwNzE0NjY0Nzc4MDZjN2E5NGY1ZjJlZDkz
|
10
|
+
OWExZTIxNTkzYWM2ZTAwNjE2ZDRmMzk1NDc3NDU1ZTU2ZGIzZThkNWNhZGQy
|
11
|
+
ODJlNWM0MThiNjFkYmY3NTRiNTYxYzU5ZmQxYmU3Mjc4MWYxNjM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZTE4ZGVmYTZlMTlkMWE1OTY5OGQxYTE5ZmNmYWE3NDJhNTZmZjcyZTEyMzI1
|
14
|
+
OGU1YTFiOTNhNTliZTliYjhmMzcwMDg4ZTBjY2M0MjcwZTYxMzg4NTY4OGQw
|
15
|
+
MDU0ZmNlOTlhODkyOTk4NmYyNGJhZGM1NDIyZTQ1MzkxMmJiNWE=
|
data/CHANGELOG.md
CHANGED
@@ -4,7 +4,7 @@ Each change should fall into categories that would affect whether the release is
|
|
4
4
|
|
5
5
|
As such, a _Feature_ would map to either major or minor. A _bug fix_ to a patch. And _misc_ is either minor or patch, the difference being kind of fuzzy for the purposes of history. Adding tests would be patch level.
|
6
6
|
|
7
|
-
### Master [changes](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.0.
|
7
|
+
### Master [changes](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.0.2...master)
|
8
8
|
|
9
9
|
* Breaking Changes
|
10
10
|
* Features
|
@@ -19,6 +19,10 @@ As such, a _Feature_ would map to either major or minor. A _bug fix_ to a patch.
|
|
19
19
|
* [@seuros #453 Test against Ruby 2.1 on Travis CI](https://github.com/mbleigh/acts-as-taggable-on/pull/453)
|
20
20
|
* [@takashi #454 Clarify example in docs](https://github.com/mbleigh/acts-as-taggable-on/pull/454)
|
21
21
|
|
22
|
+
### [3.0.2 / 2014-03-12](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.0.1...v3.0.2)
|
23
|
+
|
24
|
+
* [@mikehale #486 Match_all respects context. Backport of #487](https://github.com/mbleigh/acts-as-taggable-on/pull/486)
|
25
|
+
|
22
26
|
### [3.0.1 / 2014-01-08](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.0.0...v3.0.1)
|
23
27
|
|
24
28
|
* Fixes
|
@@ -185,6 +185,7 @@ module ActsAsTaggableOn::Taggable
|
|
185
185
|
" ON #{taggings_alias}.taggable_id = #{quote}#{table_name}#{quote}.#{primary_key}" +
|
186
186
|
" AND #{taggings_alias}.taggable_type = #{quote_value(base_class.name, nil)}"
|
187
187
|
|
188
|
+
joins << " AND " + sanitize_sql(["#{taggings_alias}.context = ?", context.to_s]) if context
|
188
189
|
|
189
190
|
group_columns = ActsAsTaggableOn::Tag.using_postgresql? ? grouped_column_names_for(self) : "#{table_name}.#{primary_key}"
|
190
191
|
group = group_columns
|
@@ -411,6 +411,14 @@ describe "Taggable" do
|
|
411
411
|
TaggableModel.tagged_with("fitter, happier", :match_all => true).to_a.should == [steve]
|
412
412
|
end
|
413
413
|
|
414
|
+
it "should be able to find tagged with only the matching tags for a context" do
|
415
|
+
bob = TaggableModel.create(:name => "Bob", :tag_list => "lazy, happier", :skill_list => "ruby, rails, css")
|
416
|
+
frank = TaggableModel.create(:name => "Frank", :tag_list => "fitter, happier, inefficient", :skill_list => "css")
|
417
|
+
steve = TaggableModel.create(:name => 'Steve', :tag_list => "fitter, happier", :skill_list => "ruby, rails, css")
|
418
|
+
|
419
|
+
TaggableModel.tagged_with("css", :on => :skills, :match_all => true).to_a.should == [frank]
|
420
|
+
end
|
421
|
+
|
414
422
|
it "should be able to find tagged with some excluded tags" do
|
415
423
|
bob = TaggableModel.create(:name => "Bob", :tag_list => "happier, lazy")
|
416
424
|
frank = TaggableModel.create(:name => "Frank", :tag_list => "happier")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts-as-taggable-on
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bleigh
|
@@ -9,13 +9,13 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-03-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - '>='
|
18
|
+
- - ! '>='
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '3'
|
21
21
|
- - <
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
|
-
- - '>='
|
28
|
+
- - ! '>='
|
29
29
|
- !ruby/object:Gem::Version
|
30
30
|
version: '3'
|
31
31
|
- - <
|
@@ -35,14 +35,14 @@ dependencies:
|
|
35
35
|
name: sqlite3
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - '>='
|
38
|
+
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
type: :development
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - '>='
|
45
|
+
- - ! '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
- !ruby/object:Gem::Dependency
|
@@ -63,14 +63,14 @@ dependencies:
|
|
63
63
|
name: pg
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - '>='
|
66
|
+
- - ! '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
type: :development
|
70
70
|
prerelease: false
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - '>='
|
73
|
+
- - ! '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
- !ruby/object:Gem::Dependency
|
@@ -105,14 +105,14 @@ dependencies:
|
|
105
105
|
name: ammeter
|
106
106
|
requirement: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - '>='
|
108
|
+
- - ! '>='
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
type: :development
|
112
112
|
prerelease: false
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - '>='
|
115
|
+
- - ! '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
description: With ActsAsTaggableOn, you can tag a single model on several contexts,
|
@@ -181,30 +181,25 @@ homepage: https://github.com/mbleigh/acts-as-taggable-on
|
|
181
181
|
licenses:
|
182
182
|
- MIT
|
183
183
|
metadata: {}
|
184
|
-
post_install_message:
|
185
|
-
|
186
|
-
|
187
|
-
Re-run the migrations generator
|
188
|
-
|
189
|
-
rake acts_as_taggable_on_engine:install:migrations
|
190
|
-
|
191
|
-
It will create any new migrations and skip existing ones
|
184
|
+
post_install_message: ! "When upgrading\n\nRe-run the migrations generator\n\n rake
|
185
|
+
acts_as_taggable_on_engine:install:migrations\n\nIt will create any new migrations
|
186
|
+
and skip existing ones\n"
|
192
187
|
rdoc_options: []
|
193
188
|
require_paths:
|
194
189
|
- lib
|
195
190
|
required_ruby_version: !ruby/object:Gem::Requirement
|
196
191
|
requirements:
|
197
|
-
- - '>='
|
192
|
+
- - ! '>='
|
198
193
|
- !ruby/object:Gem::Version
|
199
194
|
version: '0'
|
200
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
201
196
|
requirements:
|
202
|
-
- - '>='
|
197
|
+
- - ! '>='
|
203
198
|
- !ruby/object:Gem::Version
|
204
199
|
version: '0'
|
205
200
|
requirements: []
|
206
201
|
rubyforge_project:
|
207
|
-
rubygems_version: 2.
|
202
|
+
rubygems_version: 2.2.2
|
208
203
|
signing_key:
|
209
204
|
specification_version: 4
|
210
205
|
summary: Advanced tagging for Rails.
|