acts-as-taggable-on 6.0.0 → 7.0.0
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 +4 -4
- data/.travis.yml +23 -7
- data/Appraisals +8 -0
- data/CHANGELOG.md +188 -140
- data/README.md +12 -3
- data/acts-as-taggable-on.gemspec +2 -2
- data/db/migrate/1_acts_as_taggable_on_migration.rb +8 -7
- data/db/migrate/2_add_missing_unique_indices.rb +8 -8
- data/db/migrate/3_add_taggings_counter_cache_to_tags.rb +3 -3
- data/db/migrate/4_add_missing_taggable_index.rb +2 -2
- data/db/migrate/5_change_collation_for_tag_names.rb +1 -1
- data/db/migrate/6_add_missing_indexes_on_taggings.rb +9 -9
- data/gemfiles/activerecord_5.0.gemfile +2 -4
- data/gemfiles/activerecord_5.1.gemfile +2 -4
- data/gemfiles/activerecord_5.2.gemfile +2 -4
- data/gemfiles/activerecord_6.0.gemfile +21 -0
- data/gemfiles/activerecord_6.1.gemfile +23 -0
- data/lib/acts-as-taggable-on.rb +6 -2
- data/lib/acts_as_taggable_on/tag.rb +10 -19
- data/lib/acts_as_taggable_on/taggable/cache.rb +38 -34
- data/lib/acts_as_taggable_on/taggable/collection.rb +8 -6
- data/lib/acts_as_taggable_on/taggable/core.rb +11 -5
- data/lib/acts_as_taggable_on/taggable/tag_list_type.rb +4 -0
- data/lib/acts_as_taggable_on/taggable/tagged_with_query/query_base.rb +4 -4
- data/lib/acts_as_taggable_on/tagger.rb +1 -1
- data/lib/acts_as_taggable_on/tagging.rb +3 -1
- data/lib/acts_as_taggable_on/utils.rb +4 -0
- data/lib/acts_as_taggable_on/version.rb +1 -2
- data/spec/acts_as_taggable_on/acts_as_taggable_on_spec.rb +4 -12
- data/spec/acts_as_taggable_on/caching_spec.rb +16 -10
- data/spec/acts_as_taggable_on/single_table_inheritance_spec.rb +12 -7
- data/spec/acts_as_taggable_on/taggable_spec.rb +10 -10
- data/spec/acts_as_taggable_on/tagger_spec.rb +2 -2
- data/spec/internal/app/models/altered_inheriting_taggable_model.rb +2 -0
- data/spec/internal/app/models/cached_model_with_array.rb +6 -0
- data/spec/internal/app/models/columns_override_model.rb +5 -0
- data/spec/internal/app/models/company.rb +1 -1
- data/spec/internal/app/models/inheriting_taggable_model.rb +2 -0
- data/spec/internal/app/models/market.rb +1 -1
- data/spec/internal/app/models/non_standard_id_taggable_model.rb +1 -1
- data/spec/internal/app/models/student.rb +2 -0
- data/spec/internal/app/models/taggable_model.rb +1 -0
- data/spec/internal/app/models/user.rb +1 -1
- data/spec/internal/db/schema.rb +11 -5
- data/spec/spec_helper.rb +0 -1
- data/spec/support/database.rb +4 -4
- metadata +19 -11
- data/spec/internal/app/models/models.rb +0 -90
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a719de5e742725a409d676059cc39e90875c07e1684f56fc6a00d970d4e1ffd
|
|
4
|
+
data.tar.gz: 8ae1467d822b80e8cd37a4e3e584d5e5467161625ab7b95ae4cc2db0de3cf6fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 67cb7da1b6efea8ce6652c60475b8977605577dd91efe4f7a07757a1a98c46ad024c57f47657a240690301927fe85f5dfb380411b20ddfa7860ef148536abe97
|
|
7
|
+
data.tar.gz: ffffd0d8a13f94fa8880914d20a165855dd9f019ea6c64d94439c44262b29a94381eb879c8e1273552b8856a7457a818364768c4a82740a6ff1dd7486eb67dc0
|
data/.travis.yml
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
language: ruby
|
|
2
2
|
cache: bundler
|
|
3
3
|
|
|
4
|
+
addons:
|
|
5
|
+
postgresql: '10'
|
|
6
|
+
|
|
7
|
+
services:
|
|
8
|
+
- mysql
|
|
9
|
+
- postgresql
|
|
10
|
+
|
|
4
11
|
rvm:
|
|
5
|
-
-
|
|
6
|
-
- 2.5
|
|
7
|
-
- 2.
|
|
12
|
+
- 2.7.0
|
|
13
|
+
- 2.6.5
|
|
14
|
+
- 2.5.5
|
|
15
|
+
- 2.4.6
|
|
8
16
|
- 2.3.7
|
|
9
|
-
- 2.2.7
|
|
10
17
|
|
|
11
18
|
env:
|
|
12
19
|
- DB=sqlite3
|
|
@@ -17,13 +24,13 @@ gemfile:
|
|
|
17
24
|
- gemfiles/activerecord_5.2.gemfile
|
|
18
25
|
- gemfiles/activerecord_5.1.gemfile
|
|
19
26
|
- gemfiles/activerecord_5.0.gemfile
|
|
20
|
-
|
|
21
|
-
|
|
27
|
+
- gemfiles/activerecord_6.0.gemfile
|
|
28
|
+
- gemfiles/activerecord_6.1.gemfile
|
|
22
29
|
|
|
23
30
|
bundler_args: '--without local_development --jobs 3 --retry 3'
|
|
24
31
|
|
|
25
32
|
before_install:
|
|
26
|
-
|
|
33
|
+
- gem install bundler
|
|
27
34
|
|
|
28
35
|
script: bundle exec rake
|
|
29
36
|
|
|
@@ -31,3 +38,12 @@ matrix:
|
|
|
31
38
|
allow_failures:
|
|
32
39
|
- rvm: ruby-head
|
|
33
40
|
fast_finish: true
|
|
41
|
+
exclude:
|
|
42
|
+
- rvm: 2.3.7
|
|
43
|
+
gemfile: gemfiles/activerecord_6.0.gemfile
|
|
44
|
+
- rvm: 2.4.6
|
|
45
|
+
gemfile: gemfiles/activerecord_6.0.gemfile
|
|
46
|
+
- rvm: 2.3.7
|
|
47
|
+
gemfile: gemfiles/activerecord_6.1.gemfile
|
|
48
|
+
- rvm: 2.4.6
|
|
49
|
+
gemfile: gemfiles/activerecord_6.1.gemfile
|
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,128 +1,170 @@
|
|
|
1
|
-
Changes are below categorized as
|
|
1
|
+
Changes are below categorized as follows:
|
|
2
|
+
- Breaking Changes
|
|
3
|
+
- Features
|
|
4
|
+
- Fixes
|
|
5
|
+
- Performance
|
|
6
|
+
- Misc
|
|
7
|
+
- Documentation
|
|
2
8
|
|
|
3
|
-
Each change should fall into categories that would affect whether the release is major (breaking changes), minor (new behavior), or patch (bug fix). See [semver](http://semver.org/) and [pessimistic versioning](http://guides.rubygems.org/patterns/#pessimistic_version_constraint)
|
|
9
|
+
Each change should fall into categories that would affect whether the release is major (breaking changes), minor (new behavior), or patch (bug fix). See [semver](http://semver.org/) and [pessimistic versioning](http://guides.rubygems.org/patterns/#pessimistic_version_constraint).
|
|
4
10
|
|
|
5
|
-
As such,
|
|
11
|
+
As such, _Breaking Changes_ are major. _Features_ would map to either major or minor. _Fixes_, _Performance_, and _Misc_ are either minor or patch, the difference being kind of fuzzy for the purposes of history. Adding _Documentation_ (including tests) would be patch level.
|
|
6
12
|
|
|
7
|
-
### [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
### [v7.0.0) / 2020-12-31](https://github.com/mbleigh/acts-as-taggable-on/compare/v6.5.0...v7.0.0)
|
|
14
|
+
* Features
|
|
15
|
+
* [@kvokka Rails 6.1 support](https://github.com/mbleigh/acts-as-taggable-on/pull/1013)
|
|
16
|
+
* Fixes
|
|
17
|
+
* [@nbulaj Add support for Ruby 2.7 and it's kwargs](https://github.com/mbleigh/acts-as-taggable-on/pull/910)
|
|
18
|
+
* [@Andythurlow @endorfin case sensitivity fix for tagged_with](https://github.com/mbleigh/acts-as-taggable-on/pull/965)
|
|
19
|
+
|
|
20
|
+
### [6.5.0 / 2019-11-07](https://github.com/mbleigh/acts-as-taggable-on/compare/v6.0.0...v6.5.0)
|
|
21
|
+
|
|
22
|
+
* Features
|
|
23
|
+
* [@mizukami234 @junmoka Make table names configurable](https://github.com/mbleigh/acts-as-taggable-on/pull/910)
|
|
24
|
+
* [@damianlegawiec Rails 6.0.0.beta1 support](https://github.com/mbleigh/acts-as-taggable-on/pull/937)
|
|
25
|
+
* Fixes
|
|
26
|
+
* [@tonyta Avoid overriding user-defined columns cache methods](https://github.com/mbleigh/acts-as-taggable-on/pull/911)
|
|
27
|
+
* [@hengwoon tags_count only need to join on the taggable's table if using STI](https://github.com/mbleigh/acts-as-taggable-on/pull/904)
|
|
28
|
+
* [@bduran82 Avoid unnecessary queries when finding or creating tags](https://github.com/mbleigh/acts-as-taggable-on/pull/839)
|
|
29
|
+
* [@iiwo simplify relation options syntax](https://github.com/mbleigh/acts-as-taggable-on/pull/940)
|
|
30
|
+
* Misc
|
|
31
|
+
* [@gssbzn Remove legacy code for an empty query and replace it with ` ActiveRecord::none`](https://github.com/mbleigh/acts-as-taggable-on/pull/906)
|
|
32
|
+
* [@iiwo remove unneeded spec case](https://github.com/mbleigh/acts-as-taggable-on/pull/941)
|
|
33
|
+
* Documentation
|
|
34
|
+
* [@tonyta Cleanup CHANGELOG.md formatting and references](https://github.com/mbleigh/acts-as-taggable-on/pull/913)
|
|
35
|
+
|
|
36
|
+
### [6.0.0 / 2018-06-19](https://github.com/mbleigh/acts-as-taggable-on/compare/v5.0.0...v6.0.0)
|
|
37
|
+
|
|
38
|
+
* Breaking Changes
|
|
39
|
+
* [@Fodoj Drop support for Rails 4.2](https://github.com/mbleigh/acts-as-taggable-on/pull/887)
|
|
40
|
+
|
|
41
|
+
* Features
|
|
42
|
+
* [@CalvertYang Add support for uuid primary keys](https://github.com/mbleigh/acts-as-taggable-on/pull/898)
|
|
43
|
+
* [@Fodoj Support Rails 5.2](https://github.com/mbleigh/acts-as-taggable-on/pull/887)
|
|
44
|
+
|
|
45
|
+
* Fixes
|
|
46
|
+
* [@tekniklr matches_attribute was not being used in tag_match_type](https://github.com/mbleigh/acts-as-taggable-on/issues/869)
|
|
15
47
|
|
|
16
48
|
### [5.0.0 / 2017-05-18](https://github.com/mbleigh/acts-as-taggable-on/compare/v4.0.0...v5.0.0)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
*
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
|
|
50
|
+
* Breaking Changes
|
|
51
|
+
* [@seuros Drop support for old version of ActiveRecord and Ruby and prepare rel](https://github.com/mbleigh/acts-as-taggable-on/pull/828)
|
|
52
|
+
|
|
53
|
+
* Features
|
|
54
|
+
* [@rbritom Tagged with rewrite](https://github.com/mbleigh/acts-as-taggable-on/pull/829)
|
|
55
|
+
* [@fearenales Due to database collisions, retry finding or creating a tag](https://github.com/mbleigh/acts-as-taggable-on/pull/809)
|
|
56
|
+
* [@brilyuhns Add owner_tags method to taggable](https://github.com/mbleigh/acts-as-taggable-on/pull/771)
|
|
57
|
+
* [@brilyuhns upport array of contexts in owner_tags_on method](https://github.com/mbleigh/acts-as-taggable-on/pull/771)
|
|
58
|
+
* [@brilyuhns Add specs for owner_tags_on and owner_tags methods](https://github.com/mbleigh/acts-as-taggable-on/pull/771)
|
|
59
|
+
|
|
60
|
+
* Fixes
|
|
61
|
+
* [@rbritom bump ruby versions for travis](https://github.com/mbleigh/acts-as-taggable-on/pull/825)
|
|
62
|
+
* [@mnrk Fixed Rails 5.1 deprecation message, has_many needs String value for](https://github.com/mbleigh/acts-as-taggable-on/pull/813)
|
|
63
|
+
* [@ProGM ProGM Adding a test to demonstrate the bug](https://github.com/mbleigh/acts-as-taggable-on/pull/806)
|
|
64
|
+
* [@ProGM ProGM Ensure that `caching_tag_list_on?` is injected before using it](https://github.com/mbleigh/acts-as-taggable-on/pull/806)
|
|
65
|
+
* [@ProGM ProGM Fix insert query for postgresql. Move schema definition in schema.rb](https://github.com/mbleigh/acts-as-taggable-on/pull/806)
|
|
66
|
+
* [@amatsuda assigned but unused variable - any](https://github.com/mbleigh/acts-as-taggable-on/pull/787)
|
|
67
|
+
* [@gmcnaughton Fix incorrect call of 'self.class' on methods which are already class](https://github.com/mbleigh/acts-as-taggable-on/pull/782)
|
|
68
|
+
* [@gmcnaughton Fixed #712 (incompatibility with ActiveRecord::Sanitization#quoted_id)](https://github.com/mbleigh/acts-as-taggable-on/pull/782)
|
|
69
|
+
* [@arpitchauhan Guard against indexes already existing](https://github.com/mbleigh/acts-as-taggable-on/pull/779)
|
|
70
|
+
* [@arpitchauhan Rename migration to avoid conflicts](https://github.com/mbleigh/acts-as-taggable-on/pull/774)
|
|
71
|
+
* [@lukeasrodgers "Bugfix `TagList#concat` with non-duplicates."](https://github.com/mbleigh/acts-as-taggable-on/pull/729)
|
|
72
|
+
* [@fabn Revert "Added missed indexes."](https://github.com/mbleigh/acts-as-taggable-on/pull/709)
|
|
73
|
+
|
|
74
|
+
* Documentation
|
|
75
|
+
* [@logicminds Adds a table of contents to the readme and contributing files](https://github.com/mbleigh/acts-as-taggable-on/pull/803)
|
|
76
|
+
* [@ashishg-qburst Fix typo in README](https://github.com/mbleigh/acts-as-taggable-on/pull/800)
|
|
77
|
+
* [@praveenangyan Update README.md](https://github.com/mbleigh/acts-as-taggable-on/pull/798)
|
|
78
|
+
* [@colemerrick update finding tagged objects in readme](https://github.com/mbleigh/acts-as-taggable-on/pull/794)
|
|
79
|
+
* [@jaredbeck Help people upgrade to 4.0.0](https://github.com/mbleigh/acts-as-taggable-on/pull/784)
|
|
80
|
+
* [@vasinov Update README.md](https://github.com/mbleigh/acts-as-taggable-on/pull/776)
|
|
45
81
|
|
|
46
82
|
### [4.0.0 / 2016-08-08](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.5.0...v4.0.0)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
* [@
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
* [@
|
|
57
|
-
* [@
|
|
58
|
-
* [@
|
|
59
|
-
* [@
|
|
60
|
-
* [@
|
|
61
|
-
* [@
|
|
62
|
-
* [@
|
|
63
|
-
* [@
|
|
64
|
-
* [@
|
|
65
|
-
* [@
|
|
66
|
-
* [@
|
|
67
|
-
* [@
|
|
83
|
+
|
|
84
|
+
* Breaking Changes
|
|
85
|
+
* [@krzysiek1507 drop support for Ruby < 2](https://github.com/mbleigh/acts-as-taggable-on/pull/758)
|
|
86
|
+
* [@krzysiek1507 drop support for Rails < 4](https://github.com/mbleigh/acts-as-taggable-on/pull/757)
|
|
87
|
+
|
|
88
|
+
* Features
|
|
89
|
+
* [@jessieay Rails 5](https://github.com/mbleigh/acts-as-taggable-on/pull/763)
|
|
90
|
+
|
|
91
|
+
* Fixes
|
|
92
|
+
* [@rikettsie #623 collation parameter is ignored if it generates an exception](https://github.com/mbleigh/acts-as-taggable-on/pull/650)
|
|
93
|
+
* [@bwvoss References working parser in deprectation warning](https://github.com/mbleigh/acts-as-taggable-on/pull/659)
|
|
94
|
+
* [@jh125486 Updated tagging_contexts to include dynamic contexts](https://github.com/mbleigh/acts-as-taggable-on/pull/660)
|
|
95
|
+
* [@jh125486 Fixed wildcard test (postgres returning rows with unexpected order)](https://github.com/mbleigh/acts-as-taggable-on/pull/660)
|
|
96
|
+
* [@FlowerWrong Add rails 5.0.0 alpha support, not hack rails <5](https://github.com/mbleigh/acts-as-taggable-on/pull/673)
|
|
97
|
+
* [@ryanfox1985 Added missed indexes.](https://github.com/mbleigh/acts-as-taggable-on/pull/682)
|
|
98
|
+
* [@zapnap scope tags to specific tagging](https://github.com/mbleigh/acts-as-taggable-on/pull/697)
|
|
99
|
+
* [@amatsuda method redefined](https://github.com/mbleigh/acts-as-taggable-on/pull/715)
|
|
100
|
+
* [@klacointe Rails 5: Tagger is optional in Tagging relation](https://github.com/mbleigh/acts-as-taggable-on/pull/720)
|
|
101
|
+
* [@mark-jacobs Update clean! method to use case insensitive uniq! when strict_case_match false](https://github.com/mbleigh/acts-as-taggable-on/commit/90c86994b70a399b8b1cbc0ae88835e14d6aadfc)
|
|
102
|
+
* [@lukeasrodgers BugFix flackey time test](https://github.com/mbleigh/acts-as-taggable-on/pull/727)
|
|
103
|
+
* [@pcupueran Add rspec tests for context scopes for tagging_spec](https://github.com/mbleigh/acts-as-taggable-on/pull/740)
|
|
104
|
+
* [@emerson-h Remove existing selects from relation](https://github.com/mbleigh/acts-as-taggable-on/pull/743)
|
|
105
|
+
* [@keerthisiv fix issue with custom delimiter](https://github.com/mbleigh/acts-as-taggable-on/pull/748)
|
|
106
|
+
* [@priyank-gupta specify tag table name for mysql collation query](https://github.com/mbleigh/acts-as-taggable-on/pull/760)
|
|
68
107
|
* [@seuros Remove warning messages](https://github.com/mbleigh/acts-as-taggable-on/commit/cda08c764b07a18b8582b948d1c5b3910a376965)
|
|
69
|
-
* [@rbritom
|
|
70
|
-
* [@rbritom
|
|
71
|
-
* [@rbritom
|
|
72
|
-
* [@seuros Remove more deprecations
|
|
73
|
-
* [@lukeasrodgers
|
|
74
|
-
* [@seuros
|
|
75
|
-
* [@rbritom
|
|
76
|
-
* [@rbritom
|
|
77
|
-
*[@rbritom add index on down method . ](https://github.com/mbleigh/acts-as-taggable-on/pull/767)
|
|
108
|
+
* [@rbritom Fix migration, #references already adds index](https://github.com/mbleigh/acts-as-taggable-on/commit/95f743010954b6b738a6e8c17315112c878f7a81)
|
|
109
|
+
* [@rbritom Fix deprecation warning](https://github.com/mbleigh/acts-as-taggable-on/commit/62e4a6fa74ae3faed615683cd3ad5b5cdacf5c96)
|
|
110
|
+
* [@rbritom fix scope array arguments](https://github.com/mbleigh/acts-as-taggable-on/commit/a415a8d6367b2e91bd7e363589135f953929b8cc)
|
|
111
|
+
* [@seuros Remove more deprecations](https://github.com/mbleigh/acts-as-taggable-on/commit/05794170f64f8bf250b34d2d594e368721009278)
|
|
112
|
+
* [@lukeasrodgers Bugfix `TagList#concat` with non-duplicates.](https://github.com/mbleigh/acts-as-taggable-on/commit/2c6214f0ddf8c6440ab81eec04d1fbf9d97c8826)
|
|
113
|
+
* [@seuros clean! should return self.](https://github.com/mbleigh/acts-as-taggable-on/commit/c739422f56f8ff37e3f321235e74997422a1c980)
|
|
114
|
+
* [@rbritom renable appraisals](https://github.com/mbleigh/acts-as-taggable-on/commit/0ca1f1c5b059699c683a28b522e86a3d5cd7639e)
|
|
115
|
+
* [@rbritom remove index conditionally on up method.](https://github.com/mbleigh/acts-as-taggable-on/commit/9cc580e7f88164634eb10c8826e5b30ea0e00544)
|
|
116
|
+
* [@rbritom add index on down method . ](https://github.com/mbleigh/acts-as-taggable-on/pull/767)
|
|
78
117
|
* [@rbritom remove index conditionally on up method](https://github.com/mbleigh/acts-as-taggable-on/commit/9cc580e7f88164634eb10c8826e5b30ea0e00544)
|
|
79
118
|
|
|
80
|
-
|
|
119
|
+
* Documentation
|
|
81
120
|
* [@logicminds Adds table of contents using doctoc utility](https://github.com/mbleigh/acts-as-taggable-on/pull/803)
|
|
82
|
-
* [@jamesprior
|
|
121
|
+
* [@jamesprior Changing ActsAsTaggable to ActsAsTaggableOn](https://github.com/mbleigh/acts-as-taggable-on/pull/637)
|
|
83
122
|
* [@markgandolfo Update README.md](https://github.com/mbleigh/acts-as-taggable-on/pull/645))
|
|
84
123
|
* [@snowblink Update release date for 3.5.0](https://github.com/mbleigh/acts-as-taggable-on/pull/647)
|
|
85
|
-
* [@AlexVPopov Update README.md
|
|
124
|
+
* [@AlexVPopov Update README.md](https://github.com/mbleigh/acts-as-taggable-on/pull/671)
|
|
86
125
|
* [@schnmudgal README.md, Improve documentation for Tag Ownership](https://github.com/mbleigh/acts-as-taggable-on/pull/706)
|
|
87
126
|
|
|
88
127
|
### [3.5.0 / 2015-03-03](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.4.4...v3.5.0)
|
|
89
128
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
*Misc
|
|
93
|
-
* [@pcupueran Add rspec test for tagging_spec completeness]()
|
|
129
|
+
* Fixes
|
|
130
|
+
* [@rikettsie Fixed collation for MySql via rake rule or config parameter](https://github.com/mbleigh/acts-as-taggable-on/pull/634)
|
|
94
131
|
|
|
95
|
-
|
|
132
|
+
* Misc
|
|
133
|
+
* [@pcupueran Add rspec test for tagging_spec completeness]()
|
|
96
134
|
|
|
97
|
-
|
|
98
|
-
* [@d4rky-pl Add context constraint to find_related_* methods](https://github.com/mbleigh/acts-as-taggable-on/pull/629)
|
|
135
|
+
### [3.4.4 / 2015-02-11](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.4.3...v3.4.4)
|
|
99
136
|
|
|
137
|
+
* Fixes
|
|
138
|
+
* [@d4rky-pl Add context constraint to find_related_* methods](https://github.com/mbleigh/acts-as-taggable-on/pull/629)
|
|
100
139
|
|
|
101
140
|
### [3.4.3 / 2014-09-26](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.4.2...v3.4.3)
|
|
102
141
|
|
|
103
|
-
|
|
104
|
-
|
|
142
|
+
* Fixes
|
|
143
|
+
* [@warp clears column cache on reset_column_information resolves](https://github.com/mbleigh/acts-as-taggable-on/issues/621)
|
|
105
144
|
|
|
106
145
|
### [3.4.2 / 2014-09-26](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.4.1...v3.4.2)
|
|
107
146
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
147
|
+
* Fixes
|
|
148
|
+
* [@stiff fixed tagged_with :any in postgresql](https://github.com/mbleigh/acts-as-taggable-on/pull/570)
|
|
149
|
+
* [@jerefrer fixed encoding in mysql](https://github.com/mbleigh/acts-as-taggable-on/pull/588)
|
|
150
|
+
* [@markedmondson Ensure taggings context aliases are maintained when joining multiple taggables](https://github.com/mbleigh/acts-as-taggable-on/pull/589)
|
|
112
151
|
|
|
113
152
|
### [3.4.1 / 2014-09-01](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.4.0...v3.4.1)
|
|
114
|
-
|
|
115
|
-
|
|
153
|
+
|
|
154
|
+
* Fixes
|
|
155
|
+
* [@konukhov fix owned ordered taggable bug](https://github.com/mbleigh/acts-as-taggable-on/pull/585)
|
|
116
156
|
|
|
117
157
|
### [3.4.0 / 2014-08-29](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.3.0...v3.4.0)
|
|
118
158
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
*
|
|
125
|
-
|
|
159
|
+
* Features
|
|
160
|
+
* [@ProGM Support for custom parsers for tags](https://github.com/mbleigh/acts-as-taggable-on/pull/579)
|
|
161
|
+
* [@lolaodelola #577 Popular feature](https://github.com/mbleigh/acts-as-taggable-on/pull/577)
|
|
162
|
+
|
|
163
|
+
* Fixes
|
|
164
|
+
* [@twalpole Update for rails edge (4.2)](https://github.com/mbleigh/acts-as-taggable-on/pull/583)
|
|
165
|
+
|
|
166
|
+
* Performance
|
|
167
|
+
* [@ashanbrown #584 Use pluck instead of select](https://github.com/mbleigh/acts-as-taggable-on/pull/584)
|
|
126
168
|
|
|
127
169
|
### [3.3.0 / 2014-07-08](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.2.6...v3.3.0)
|
|
128
170
|
|
|
@@ -131,12 +173,11 @@ As such, a _Feature_ would map to either major or minor. A _bug fix_ to a patch.
|
|
|
131
173
|
|
|
132
174
|
* Fixes
|
|
133
175
|
* [@tonytonyjan #560 Fix for `ActsAsTaggableOn.remove_unused_tags` doesn't work](https://github.com/mbleigh/acts-as-taggable-on/pull/560)
|
|
134
|
-
* [@
|
|
176
|
+
* [@TheLarkInn #555 Fix for `tag_cloud` helper to generate correct css tags](https://github.com/mbleigh/acts-as-taggable-on/pull/555)
|
|
135
177
|
|
|
136
178
|
* Performance
|
|
137
179
|
* [@pcai #556 Add back taggables index in the taggins table](https://github.com/mbleigh/acts-as-taggable-on/pull/556)
|
|
138
180
|
|
|
139
|
-
|
|
140
181
|
### [3.2.6 / 2014-05-28](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.2.5...v3.2.6)
|
|
141
182
|
|
|
142
183
|
* Fixes
|
|
@@ -146,13 +187,11 @@ As such, a _Feature_ would map to either major or minor. A _bug fix_ to a patch.
|
|
|
146
187
|
* [@seuros Remove actionpack dependency](https://github.com/mbleigh/acts-as-taggable-on/commit/5d20e0486c892fbe21af42fdcd79d0b6ebe87ed4)
|
|
147
188
|
* [@seuros #547 Add tests for update_attributes](https://github.com/mbleigh/acts-as-taggable-on/issues/547)
|
|
148
189
|
|
|
149
|
-
|
|
150
190
|
### [3.2.5 / 2014-05-25](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.2.4...v3.2.5)
|
|
151
191
|
|
|
152
192
|
* Fixes
|
|
153
193
|
* [@seuros #546 Fix autoload bug. Now require engine file instead of autoloading it](https://github.com/mbleigh/acts-as-taggable-on/issues/546)
|
|
154
194
|
|
|
155
|
-
|
|
156
195
|
### [3.2.4 / 2014-05-24](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.2.3...v3.2.4)
|
|
157
196
|
|
|
158
197
|
* Fixes
|
|
@@ -164,13 +203,11 @@ As such, a _Feature_ would map to either major or minor. A _bug fix_ to a patch.
|
|
|
164
203
|
* [@seuros #543 Introduce lazy loading](https://github.com/mbleigh/acts-as-taggable-on/pull/543)
|
|
165
204
|
* [@seuros #541 Deprecate ActsAsTaggableOn::Utils](https://github.com/mbleigh/acts-as-taggable-on/pull/541)
|
|
166
205
|
|
|
167
|
-
|
|
168
206
|
### [3.2.3 / 2014-05-16](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.2.2...v3.2.3)
|
|
169
207
|
|
|
170
208
|
* Fixes
|
|
171
209
|
* [@seuros #540 Fix for tags removal (it was affecting all records with the same tag)](https://github.com/mbleigh/acts-as-taggable-on/pull/540)
|
|
172
|
-
* [@
|
|
173
|
-
|
|
210
|
+
* [@akicho8 #535 Fix for `options` Hash passed to methods from being deleted by those methods](https://github.com/mbleigh/acts-as-taggable-on/pull/535)
|
|
174
211
|
|
|
175
212
|
### [3.2.2 / 2014-05-07](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.2.1...v3.2.2)
|
|
176
213
|
|
|
@@ -184,7 +221,6 @@ As such, a _Feature_ would map to either major or minor. A _bug fix_ to a patch.
|
|
|
184
221
|
* [@seuros #526 Delete outdated benchmark script](https://github.com/mbleigh/acts-as-taggable-on/pull/526)
|
|
185
222
|
* [@seuros #525 Fix tests so that they pass with MySQL](https://github.com/mbleigh/acts-as-taggable-on/pull/525)
|
|
186
223
|
|
|
187
|
-
|
|
188
224
|
### [3.2.1 / 2014-05-06](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.2.0...v3.2.1)
|
|
189
225
|
|
|
190
226
|
* Misc
|
|
@@ -193,47 +229,54 @@ As such, a _Feature_ would map to either major or minor. A _bug fix_ to a patch.
|
|
|
193
229
|
* [@seuros #523 Introduce database_cleaner in specs](https://github.com/mbleigh/acts-as-taggable-on/pull/523)
|
|
194
230
|
* [@seuros #520 Tag_list cleanup](https://github.com/mbleigh/acts-as-taggable-on/pull/520)
|
|
195
231
|
|
|
196
|
-
|
|
197
232
|
### [3.2.0 / 2014-05-01](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.1.1...v3.2.0)
|
|
198
233
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
234
|
+
* Breaking Changes
|
|
235
|
+
* ActsAsTaggableOn::Tag is not extend with ActsAsTaggableOn::Utils anymore
|
|
236
|
+
|
|
237
|
+
* Features
|
|
238
|
+
* [@ches #413 Hook to support STI subclasses of Tag in save_tags](https://github.com/mbleigh/acts-as-taggable-on/pull/413)
|
|
239
|
+
|
|
240
|
+
* Fixes
|
|
241
|
+
* [@jdelStrother #515 Rename Compatibility methods to reduce chance of conflicts](https://github.com/mbleigh/acts-as-taggable-on/pull/515)
|
|
242
|
+
* [@seuros #512 fix for << method](https://github.com/mbleigh/acts-as-taggable-on/pull/512)
|
|
243
|
+
* [@sonots #510 fix IN subquery error for mysql](https://github.com/mbleigh/acts-as-taggable-on/pull/510)
|
|
244
|
+
* [@jonseaberg #499 fix for race condition when multiple processes try to add the same tag](https://github.com/mbleigh/acts-as-taggable-on/pull/499)
|
|
245
|
+
* [@leklund #496 Fix for distinct and postgresql json columns errors](https://github.com/mbleigh/acts-as-taggable-on/pull/496)
|
|
246
|
+
* [@thatbettina & @plexus #394 Multiple quoted tags](https://github.com/mbleigh/acts-as-taggable-on/pull/394)
|
|
247
|
+
|
|
248
|
+
* Performance
|
|
249
|
+
|
|
250
|
+
* Misc
|
|
251
|
+
* [@seuros #511 Rspec 3](https://github.com/mbleigh/acts-as-taggable-on/pull/511)
|
|
213
252
|
|
|
214
253
|
### [3.1.0 / 2014-03-31](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.0.1...v3.1.0)
|
|
215
254
|
|
|
216
255
|
* Fixes
|
|
217
256
|
* [@mikehale #487 Match_all respects context](https://github.com/mbleigh/acts-as-taggable-on/pull/487)
|
|
257
|
+
|
|
218
258
|
* Performance
|
|
219
259
|
* [@dgilperez #390 Add taggings counter cache](https://github.com/mbleigh/acts-as-taggable-on/pull/390)
|
|
260
|
+
|
|
220
261
|
* Misc
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
262
|
+
* [@jonseaberg Add missing indexes to schema used in specs #474](https://github.com/mbleigh/acts-as-taggable-on/pull/474)
|
|
263
|
+
* [@seuros Specify Ruby >= 1.9.3 required in gemspec](https://github.com/mbleigh/acts-as-taggable-on/pull/502)
|
|
264
|
+
* [@kiasaki Add missing quotes to code example](https://github.com/mbleigh/acts-as-taggable-on/pull/501)
|
|
224
265
|
|
|
225
266
|
### [3.1.0.rc1 / 2014-02-26](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.0.1...v3.1.0.rc1)
|
|
226
267
|
|
|
227
268
|
* Features
|
|
228
|
-
* [@
|
|
269
|
+
* [@Burkazoid #467 Add :order_by_matching_tag_count option](https://github.com/mbleigh/acts-as-taggable-on/pull/469)
|
|
270
|
+
|
|
229
271
|
* Fixes
|
|
230
272
|
* [@rafael #406 Dirty attributes not correctly derived](https://github.com/mbleigh/acts-as-taggable-on/pull/406)
|
|
231
|
-
* [@
|
|
273
|
+
* [@BenZhang #440 Did not respect strict_case_match](https://github.com/mbleigh/acts-as-taggable-on/pull/440)
|
|
232
274
|
* [@znz #456 Fix breaking encoding of tag](https://github.com/mbleigh/acts-as-taggable-on/pull/456)
|
|
233
275
|
* [@rgould #417 Let '.count' work when tagged_with is accompanied by a group clause](https://github.com/mbleigh/acts-as-taggable-on/pull/417)
|
|
234
276
|
* [@developer88 #461 Move 'Distinct' out of select string and use .uniq instead](https://github.com/mbleigh/acts-as-taggable-on/pull/461)
|
|
235
277
|
* [@gerard-leijdekkers #473 Fixed down migration index name](https://github.com/mbleigh/acts-as-taggable-on/pull/473)
|
|
236
278
|
* [@leo-souza #498 Use database's lower function for case-insensitive match](https://github.com/mbleigh/acts-as-taggable-on/pull/498)
|
|
279
|
+
|
|
237
280
|
* Misc
|
|
238
281
|
* [@billychan #463 Thread safe support](https://github.com/mbleigh/acts-as-taggable-on/pull/463)
|
|
239
282
|
* [@billychan #386 Add parse:true instructions to README](https://github.com/mbleigh/acts-as-taggable-on/pull/386)
|
|
@@ -246,8 +289,9 @@ As such, a _Feature_ would map to either major or minor. A _bug fix_ to a patch.
|
|
|
246
289
|
|
|
247
290
|
* Fixes
|
|
248
291
|
* [@rafael #406 Dirty attributes not correctly derived](https://github.com/mbleigh/acts-as-taggable-on/pull/406)
|
|
249
|
-
* [@
|
|
292
|
+
* [@BenZhang #440 Did not respect strict_case_match](https://github.com/mbleigh/acts-as-taggable-on/pull/440)
|
|
250
293
|
* [@znz #456 Fix breaking encoding of tag](https://github.com/mbleigh/acts-as-taggable-on/pull/456)
|
|
294
|
+
|
|
251
295
|
* Misc
|
|
252
296
|
* [@billychan #386 Add parse:true instructions to README](https://github.com/mbleigh/acts-as-taggable-on/pull/386)
|
|
253
297
|
* [@seuros #449 Improve README/UPGRADING/post install docs](https://github.com/mbleigh/acts-as-taggable-on/pull/449)
|
|
@@ -259,26 +303,28 @@ As such, a _Feature_ would map to either major or minor. A _bug fix_ to a patch.
|
|
|
259
303
|
|
|
260
304
|
* Breaking Changes
|
|
261
305
|
* No longer supports Ruby 1.8.
|
|
306
|
+
|
|
262
307
|
* Features
|
|
263
308
|
* Supports Rails 4.1.
|
|
309
|
+
|
|
264
310
|
* Misc (TODO: expand)
|
|
265
|
-
* [
|
|
266
|
-
* [rsl #367](https://github.com/mbleigh/acts-as-taggable-on/pull/367)
|
|
267
|
-
* [ktdreyer #383](https://github.com/mbleigh/acts-as-taggable-on/pull/383)
|
|
268
|
-
* [cwoodcox #346](https://github.com/mbleigh/acts-as-taggable-on/pull/346)
|
|
269
|
-
* [mrb #421](https://github.com/mbleigh/acts-as-taggable-on/pull/421)
|
|
270
|
-
* [bf4 #430](https://github.com/mbleigh/acts-as-taggable-on/pull/430)
|
|
271
|
-
* [sanemat #368](https://github.com/mbleigh/acts-as-taggable-on/pull/368)
|
|
272
|
-
* [bf4 #343](https://github.com/mbleigh/acts-as-taggable-on/pull/343)
|
|
273
|
-
* [marclennox #429](https://github.com/mbleigh/acts-as-taggable-on/pull/429)
|
|
274
|
-
* [shekibobo #403](https://github.com/mbleigh/acts-as-taggable-on/pull/403)
|
|
275
|
-
* [ches ktdreyer #410](https://github.com/mbleigh/acts-as-taggable-on/pull/410)
|
|
276
|
-
* [makaroni4 #371](https://github.com/mbleigh/acts-as-taggable-on/pull/371)
|
|
277
|
-
* [kenzai
|
|
278
|
-
* [bf4 joelcogen shekibobo aaronchi #438](https://github.com/mbleigh/acts-as-taggable-on/pull/438)
|
|
279
|
-
* [seuros #442](https://github.com/mbleigh/acts-as-taggable-on/pull/442)
|
|
280
|
-
* [bf4 #445](https://github.com/mbleigh/acts-as-taggable-on/pull/445)
|
|
281
|
-
* [
|
|
311
|
+
* [@zquestz #359](https://github.com/mbleigh/acts-as-taggable-on/pull/359)
|
|
312
|
+
* [@rsl #367](https://github.com/mbleigh/acts-as-taggable-on/pull/367)
|
|
313
|
+
* [@ktdreyer #383](https://github.com/mbleigh/acts-as-taggable-on/pull/383)
|
|
314
|
+
* [@cwoodcox #346](https://github.com/mbleigh/acts-as-taggable-on/pull/346)
|
|
315
|
+
* [@mrb #421](https://github.com/mbleigh/acts-as-taggable-on/pull/421)
|
|
316
|
+
* [@bf4 #430](https://github.com/mbleigh/acts-as-taggable-on/pull/430)
|
|
317
|
+
* [@sanemat #368](https://github.com/mbleigh/acts-as-taggable-on/pull/368)
|
|
318
|
+
* [@bf4 #343](https://github.com/mbleigh/acts-as-taggable-on/pull/343)
|
|
319
|
+
* [@marclennox #429](https://github.com/mbleigh/acts-as-taggable-on/pull/429)
|
|
320
|
+
* [@shekibobo #403](https://github.com/mbleigh/acts-as-taggable-on/pull/403)
|
|
321
|
+
* [@ches @ktdreyer #410](https://github.com/mbleigh/acts-as-taggable-on/pull/410)
|
|
322
|
+
* [@makaroni4 #371](https://github.com/mbleigh/acts-as-taggable-on/pull/371)
|
|
323
|
+
* [kenzai @davidstosik @awt #431](https://github.com/mbleigh/acts-as-taggable-on/pull/431)
|
|
324
|
+
* [@bf4 @joelcogen @shekibobo @aaronchi #438](https://github.com/mbleigh/acts-as-taggable-on/pull/438)
|
|
325
|
+
* [@seuros #442](https://github.com/mbleigh/acts-as-taggable-on/pull/442)
|
|
326
|
+
* [@bf4 #445](https://github.com/mbleigh/acts-as-taggable-on/pull/445)
|
|
327
|
+
* [@eagletmt #446](https://github.com/mbleigh/acts-as-taggable-on/pull/446)
|
|
282
328
|
|
|
283
329
|
### 3.0.0.rc2 [changes](https://github.com/mbleigh/acts-as-taggable-on/compare/fork-v3.0.0.rc1...fork-v3.0.0.rc2)
|
|
284
330
|
|
|
@@ -287,5 +333,7 @@ As such, a _Feature_ would map to either major or minor. A _bug fix_ to a patch.
|
|
|
287
333
|
### [2.4.1 / 2013-05-07](https://github.com/mbleigh/acts-as-taggable-on/compare/v2.4.0...v2.4.1)
|
|
288
334
|
|
|
289
335
|
* Features
|
|
336
|
+
|
|
290
337
|
* Fixes
|
|
338
|
+
|
|
291
339
|
* Misc
|
data/README.md
CHANGED
|
@@ -57,7 +57,7 @@ was used.
|
|
|
57
57
|
To use it, add it to your Gemfile:
|
|
58
58
|
|
|
59
59
|
```ruby
|
|
60
|
-
gem 'acts-as-taggable-on', '~>
|
|
60
|
+
gem 'acts-as-taggable-on', '~> 6.0'
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
and bundle:
|
|
@@ -103,8 +103,8 @@ Setup
|
|
|
103
103
|
|
|
104
104
|
```ruby
|
|
105
105
|
class User < ActiveRecord::Base
|
|
106
|
-
|
|
107
|
-
acts_as_taggable_on :skills, :interests
|
|
106
|
+
acts_as_taggable_on :tags
|
|
107
|
+
acts_as_taggable_on :skills, :interests #You can also configure multiple tag types per model
|
|
108
108
|
end
|
|
109
109
|
|
|
110
110
|
class UsersController < ApplicationController
|
|
@@ -121,6 +121,7 @@ Add and remove a single tag
|
|
|
121
121
|
```ruby
|
|
122
122
|
@user.tag_list.add("awesome") # add a single tag. alias for <<
|
|
123
123
|
@user.tag_list.remove("awesome") # remove a single tag
|
|
124
|
+
@user.save # save to persist tag_list
|
|
124
125
|
```
|
|
125
126
|
|
|
126
127
|
Add and remove multiple tags in an array
|
|
@@ -128,6 +129,7 @@ Add and remove multiple tags in an array
|
|
|
128
129
|
```ruby
|
|
129
130
|
@user.tag_list.add("awesome", "slick")
|
|
130
131
|
@user.tag_list.remove("awesome", "slick")
|
|
132
|
+
@user.save
|
|
131
133
|
```
|
|
132
134
|
|
|
133
135
|
You can also add and remove tags in format of String. This would
|
|
@@ -486,6 +488,13 @@ If you would like to have an exact match covering special characters with MySql:
|
|
|
486
488
|
ActsAsTaggableOn.force_binary_collation = true
|
|
487
489
|
```
|
|
488
490
|
|
|
491
|
+
If you would like to specify table names:
|
|
492
|
+
|
|
493
|
+
```ruby
|
|
494
|
+
ActsAsTaggableOn.tags_table = 'aato_tags'
|
|
495
|
+
ActsAsTaggableOn.taggings_table = 'aato_taggings'
|
|
496
|
+
```
|
|
497
|
+
|
|
489
498
|
If you want to change the default delimiter (it defaults to ','). You can also pass in an array of delimiters such as ([',', '|']):
|
|
490
499
|
|
|
491
500
|
```ruby
|