make_taggable 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.dummyrc +17 -0
- data/.github/workflows/ci.yml +158 -0
- data/.gitignore +2 -1
- data/CONTRIBUTING.md +5 -31
- data/README.md +3 -8
- data/Rakefile +2 -0
- data/gemfiles/rails_5.gemfile +9 -0
- data/gemfiles/rails_6.gemfile +9 -0
- data/gemfiles/rails_6_1.gemfile +9 -0
- data/gemfiles/rails_master.gemfile +9 -0
- data/lib/make_taggable.rb +1 -1
- data/lib/make_taggable/tag.rb +1 -1
- data/lib/make_taggable/version.rb +1 -1
- data/lib/tasks/setup_test_db.rake +5 -3
- data/make_taggable.gemspec +13 -10
- metadata +27 -218
- data/.github/workflows/mysql_tests.yml +0 -56
- data/.github/workflows/pg_tests.yml +0 -56
- data/.github/workflows/sqlite_tests.yml +0 -47
- data/.github/workflows/standardrb-check.yml +0 -37
- data/.standard.yml +0 -18
- data/.standard_todo.yml +0 -5
- data/LICENSE.txt +0 -21
- data/spec/dummy/README.md +0 -0
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/config/manifest.js +0 -2
- data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
- data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
- data/spec/dummy/app/controllers/application_controller.rb +0 -2
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/jobs/application_job.rb +0 -7
- data/spec/dummy/app/mailers/application_mailer.rb +0 -4
- data/spec/dummy/app/models/altered_inheriting_taggable_model.rb +0 -5
- data/spec/dummy/app/models/application_record.rb +0 -3
- data/spec/dummy/app/models/cached_model.rb +0 -3
- data/spec/dummy/app/models/cached_model_with_array.rb +0 -5
- data/spec/dummy/app/models/columns_override_model.rb +0 -5
- data/spec/dummy/app/models/company.rb +0 -15
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/models/inheriting_taggable_model.rb +0 -4
- data/spec/dummy/app/models/market.rb +0 -2
- data/spec/dummy/app/models/non_standard_id_taggable_model.rb +0 -8
- data/spec/dummy/app/models/ordered_taggable_model.rb +0 -4
- data/spec/dummy/app/models/other_cached_model.rb +0 -3
- data/spec/dummy/app/models/other_taggable_model.rb +0 -4
- data/spec/dummy/app/models/student.rb +0 -4
- data/spec/dummy/app/models/taggable_model.rb +0 -14
- data/spec/dummy/app/models/taggable_model_with_json.rb +0 -6
- data/spec/dummy/app/models/untaggable_model.rb +0 -3
- data/spec/dummy/app/models/user.rb +0 -3
- data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
- data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/bin/setup +0 -33
- data/spec/dummy/config.ru +0 -5
- data/spec/dummy/config/application.rb +0 -13
- data/spec/dummy/config/boot.rb +0 -5
- data/spec/dummy/config/cable.yml +0 -10
- data/spec/dummy/config/credentials.yml.enc +0 -1
- data/spec/dummy/config/database.yml +0 -7
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -52
- data/spec/dummy/config/environments/production.rb +0 -105
- data/spec/dummy/config/environments/test.rb +0 -49
- data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/cors.rb +0 -16
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/initializers/mime_types.rb +0 -4
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -33
- data/spec/dummy/config/master.key +0 -1
- data/spec/dummy/config/mysql_database.yml.ci +0 -8
- data/spec/dummy/config/pg_database.yml.ci +0 -8
- data/spec/dummy/config/puma.rb +0 -38
- data/spec/dummy/config/routes.rb +0 -3
- data/spec/dummy/config/spring.rb +0 -6
- data/spec/dummy/config/storage.yml +0 -34
- data/spec/dummy/db/migrate/020201119220853_create_taggable_models.rb +0 -8
- data/spec/dummy/db/migrate/020201119221037_create_columns_override_models.rb +0 -9
- data/spec/dummy/db/migrate/020201119221121_create_non_standard_id_taggable_models.rb +0 -8
- data/spec/dummy/db/migrate/020201119221228_create_untaggable_models.rb +0 -8
- data/spec/dummy/db/migrate/020201119221247_create_cached_models.rb +0 -9
- data/spec/dummy/db/migrate/020201119221314_create_other_cached_models.rb +0 -11
- data/spec/dummy/db/migrate/020201119221343_create_companies.rb +0 -7
- data/spec/dummy/db/migrate/020201119221416_create_users.rb +0 -7
- data/spec/dummy/db/migrate/020201119221434_create_other_taggable_models.rb +0 -8
- data/spec/dummy/db/migrate/020201119221507_create_ordered_taggable_models.rb +0 -8
- data/spec/dummy/db/migrate/020201119221530_create_cache_methods_injected_models.rb +0 -7
- data/spec/dummy/db/migrate/020201119221629_create_other_cached_with_array_models.rb +0 -11
- data/spec/dummy/db/migrate/020201119221746_create_taggable_model_with_jsons.rb +0 -9
- data/spec/dummy/lib/tasks/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/robots.txt +0 -1
- data/spec/dummy/storage/.keep +0 -0
- data/spec/dummy/test/channels/application_cable/connection_test.rb +0 -11
- data/spec/dummy/test/controllers/.keep +0 -0
- data/spec/dummy/test/fixtures/.keep +0 -0
- data/spec/dummy/test/fixtures/files/.keep +0 -0
- data/spec/dummy/test/integration/.keep +0 -0
- data/spec/dummy/test/mailers/.keep +0 -0
- data/spec/dummy/test/models/.keep +0 -0
- data/spec/dummy/test/test_helper.rb +0 -13
- data/spec/dummy/vendor/.keep +0 -0
- data/spec/make_taggable/acts_as_tagger_spec.rb +0 -112
- data/spec/make_taggable/caching_spec.rb +0 -123
- data/spec/make_taggable/default_parser_spec.rb +0 -45
- data/spec/make_taggable/dirty_spec.rb +0 -140
- data/spec/make_taggable/generic_parser_spec.rb +0 -13
- data/spec/make_taggable/make_taggable_spec.rb +0 -260
- data/spec/make_taggable/related_spec.rb +0 -93
- data/spec/make_taggable/single_table_inheritance_spec.rb +0 -220
- data/spec/make_taggable/tag_list_spec.rb +0 -169
- data/spec/make_taggable/tag_spec.rb +0 -135
- data/spec/make_taggable/taggable_spec.rb +0 -804
- data/spec/make_taggable/tagger_spec.rb +0 -149
- data/spec/make_taggable/tagging_spec.rb +0 -115
- data/spec/make_taggable/tags_helper_spec.rb +0 -43
- data/spec/make_taggable/utils_spec.rb +0 -22
- data/spec/make_taggable_spec.rb +0 -5
- data/spec/spec_helper.rb +0 -16
- data/spec/support/array.rb +0 -9
- data/spec/support/helpers.rb +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a7fdfad7146eb2661c6bad8dd120e29ae36a964434e60658598d91ccff7906e
|
4
|
+
data.tar.gz: e4922ea84a7201b91d253401396ce08711906d29cf18f93c973ba1165f91d4dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7cd676d93f080ff89753d584e0935a04e605403149fac56c180f5a4293cf7a8fa9f4ced6142ba77009bc68dc9d4dcc1430aba85ac1074578460af36deb1142b
|
7
|
+
data.tar.gz: 2d587f9276d813b08e430ca65212e7bbc698dd0563ddb083c412456f5569f9bca74297552edaa27cc29f1a1bde645bd0f3f35c41e36d61467d3fff0055d4bb13
|
data/.dummyrc
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
--skip-bootsnap
|
2
|
+
--skip-webpack
|
3
|
+
--skip-action-cable
|
4
|
+
--skip-spring
|
5
|
+
--skip-coffee
|
6
|
+
--skip-turbolinks
|
7
|
+
--skip-listen
|
8
|
+
--skip-action-text
|
9
|
+
--skip-active-storage
|
10
|
+
--skip-action-cable
|
11
|
+
--skip-action-mailer
|
12
|
+
--skip-action-mailbox
|
13
|
+
--skip-active-job
|
14
|
+
--skip-javascript
|
15
|
+
--skip-test
|
16
|
+
|
17
|
+
--template=spec/template/test_app_template.rb
|
@@ -0,0 +1,158 @@
|
|
1
|
+
---
|
2
|
+
name: CI
|
3
|
+
|
4
|
+
on:
|
5
|
+
pull_request:
|
6
|
+
branches:
|
7
|
+
- '*'
|
8
|
+
push:
|
9
|
+
branches:
|
10
|
+
- master
|
11
|
+
jobs:
|
12
|
+
# STANDARD RB
|
13
|
+
standard:
|
14
|
+
runs-on: ubuntu-latest
|
15
|
+
strategy:
|
16
|
+
matrix:
|
17
|
+
ruby: ['3.0']
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@v2
|
20
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
21
|
+
uses: ruby/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby }}
|
24
|
+
bundler-cache: true
|
25
|
+
|
26
|
+
- name: Run StandardRB
|
27
|
+
run: bundle exec standardrb --format progress
|
28
|
+
|
29
|
+
|
30
|
+
# SQLITE
|
31
|
+
sqlite:
|
32
|
+
runs-on: ubuntu-latest
|
33
|
+
strategy:
|
34
|
+
matrix:
|
35
|
+
ruby: ['2.6', '2.7', '3.0']
|
36
|
+
gemfile:
|
37
|
+
- rails_5
|
38
|
+
- rails_6
|
39
|
+
- rails_6_1
|
40
|
+
- rails_master
|
41
|
+
exclude:
|
42
|
+
- ruby: '3.0'
|
43
|
+
gemfile: rails_5
|
44
|
+
# Rails 7 requires Ruby 2.7 or higher
|
45
|
+
- ruby: '2.6'
|
46
|
+
gemfile: rails_master
|
47
|
+
env:
|
48
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
49
|
+
BUNDLE_PATH_RELATIVE_TO_CWD: true
|
50
|
+
|
51
|
+
steps:
|
52
|
+
- uses: actions/checkout@v2
|
53
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
54
|
+
uses: ruby/setup-ruby@v1
|
55
|
+
with:
|
56
|
+
ruby-version: ${{ matrix.ruby }}
|
57
|
+
bundler-cache: true
|
58
|
+
|
59
|
+
- name: Run tests
|
60
|
+
env:
|
61
|
+
RAILS_ENV: test
|
62
|
+
run: |
|
63
|
+
bundle exec rake create_test_app
|
64
|
+
bundle exec rake
|
65
|
+
|
66
|
+
|
67
|
+
# MYSQL
|
68
|
+
mysql:
|
69
|
+
runs-on: ubuntu-latest
|
70
|
+
strategy:
|
71
|
+
matrix:
|
72
|
+
ruby: ['2.6', '2.7', '3.0']
|
73
|
+
gemfile:
|
74
|
+
- rails_5
|
75
|
+
- rails_6
|
76
|
+
- rails_6_1
|
77
|
+
- rails_master
|
78
|
+
exclude:
|
79
|
+
- ruby: '3.0'
|
80
|
+
gemfile: rails_5
|
81
|
+
# Rails 7 requires Ruby 2.7 or higher
|
82
|
+
- ruby: '2.6'
|
83
|
+
gemfile: rails_master
|
84
|
+
env:
|
85
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
86
|
+
BUNDLE_PATH_RELATIVE_TO_CWD: true
|
87
|
+
|
88
|
+
services:
|
89
|
+
mysql:
|
90
|
+
image: mysql:8
|
91
|
+
env:
|
92
|
+
MYSQL_ROOT_PASSWORD: password
|
93
|
+
MSQL_DATABASE: test
|
94
|
+
ports: ['3306:3306']
|
95
|
+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
96
|
+
|
97
|
+
steps:
|
98
|
+
- uses: actions/checkout@v2
|
99
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
100
|
+
uses: ruby/setup-ruby@v1
|
101
|
+
with:
|
102
|
+
ruby-version: ${{ matrix.ruby }}
|
103
|
+
bundler-cache: true
|
104
|
+
|
105
|
+
- name: Run tests
|
106
|
+
env:
|
107
|
+
DATABASE_URL: mysql2://root:password@127.0.0.1:3306/test
|
108
|
+
RAILS_ENV: test
|
109
|
+
run: |
|
110
|
+
bundle exec rake create_test_app
|
111
|
+
bundle exec rake
|
112
|
+
|
113
|
+
|
114
|
+
# POSTGRES
|
115
|
+
postgres:
|
116
|
+
runs-on: ubuntu-latest
|
117
|
+
strategy:
|
118
|
+
matrix:
|
119
|
+
ruby: ['2.6', '2.7', '3.0']
|
120
|
+
gemfile:
|
121
|
+
- rails_5
|
122
|
+
- rails_6
|
123
|
+
- rails_6_1
|
124
|
+
- rails_master
|
125
|
+
exclude:
|
126
|
+
- ruby: '3.0'
|
127
|
+
gemfile: rails_5
|
128
|
+
# Rails 7 requires Ruby 2.7 or higher
|
129
|
+
- ruby: '2.6'
|
130
|
+
gemfile: rails_master
|
131
|
+
env:
|
132
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
133
|
+
BUNDLE_PATH_RELATIVE_TO_CWD: true
|
134
|
+
|
135
|
+
services:
|
136
|
+
postgres:
|
137
|
+
image: postgres:12
|
138
|
+
env:
|
139
|
+
POSTGRES_USER: postgres
|
140
|
+
POSTGRES_PASSWORD: password
|
141
|
+
POSTGRES_DB: test
|
142
|
+
ports: ['5432:5432']
|
143
|
+
|
144
|
+
steps:
|
145
|
+
- uses: actions/checkout@v2
|
146
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
147
|
+
uses: ruby/setup-ruby@v1
|
148
|
+
with:
|
149
|
+
ruby-version: ${{ matrix.ruby }}
|
150
|
+
bundler-cache: true
|
151
|
+
|
152
|
+
- name: Run tests
|
153
|
+
env:
|
154
|
+
DATABASE_URL: postgres://postgres:password@localhost:5432/test
|
155
|
+
RAILS_ENV: test
|
156
|
+
run: |
|
157
|
+
bundle exec rake create_test_app
|
158
|
+
bundle exec rake
|
data/.gitignore
CHANGED
data/CONTRIBUTING.md
CHANGED
@@ -1,21 +1,8 @@
|
|
1
|
-
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
2
|
-
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
3
|
-
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
|
4
|
-
|
5
|
-
- [How to contribute:](#how-to-contribute)
|
6
|
-
- [Bug reports / Issues](#bug-reports--issues)
|
7
|
-
- [Code](#code)
|
8
|
-
- [Commit Messages](#commit-messages)
|
9
|
-
- [About Pull Requests (PR's)](#about-pull-requests-prs)
|
10
|
-
- [Documentation](#documentation)
|
11
|
-
|
12
|
-
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
13
|
-
|
14
1
|
# How to contribute:
|
15
2
|
|
16
3
|
## Bug reports / Issues
|
17
4
|
|
18
|
-
* Is something broken or not working as expected? Check for an existing issue or [create a new one](https://github.com/
|
5
|
+
* Is something broken or not working as expected? Check for an existing issue or [create a new one](https://github.com/MatthewKennedy/make_taggable/issues/new)
|
19
6
|
* IMPORTANT: Include the version of the gem, if you've install from git, what Ruby and Rails you are running, etc.
|
20
7
|
|
21
8
|
## Code
|
@@ -23,15 +10,14 @@
|
|
23
10
|
1. [Fork and clone the repo](https://help.github.com/articles/fork-a-repo)
|
24
11
|
2. Install the gem dependencies: `bundle install`
|
25
12
|
3. Make the changes you want and back them up with tests.
|
26
|
-
|
27
|
-
|
28
|
-
|
13
|
+
4. Run the tests](https://github.com/MatthewKennedy/make_taggable#testing)
|
14
|
+
5. Update the CHANGELOG.md file with your changes and give yourself credit
|
15
|
+
6. Commit and create a pull request with details as to what has been changed and why
|
29
16
|
* Use well-described, small (atomic) commits.
|
30
17
|
* Include links to any relevant github issues.
|
31
18
|
* *Don't* change the VERSION file.
|
32
|
-
6. Extra Credit: [Confirm it runs and tests pass on the rubies specified in the travis config](.travis.yml). I will otherwise confirm it runs on these.
|
33
19
|
|
34
|
-
How I handle pull requests:
|
20
|
+
## How I handle pull requests:
|
35
21
|
|
36
22
|
* If the tests pass and the pull request looks good, I will merge it.
|
37
23
|
* If the pull request needs to be changed,
|
@@ -40,18 +26,6 @@ How I handle pull requests:
|
|
40
26
|
* by force pushing to it
|
41
27
|
* I can make any changes myself and manually merge the code in.
|
42
28
|
|
43
|
-
### Commit Messages
|
44
|
-
|
45
|
-
* [A Note About Git Commit Messages](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
|
46
|
-
* [http://stopwritingramblingcommitmessages.com/](http://stopwritingramblingcommitmessages.com/)
|
47
|
-
* [ThoughtBot style guide](https://github.com/thoughtbot/guides/tree/master/style#git)
|
48
|
-
|
49
|
-
### About Pull Requests (PR's)
|
50
|
-
|
51
|
-
* [All Your Open Source Code Are Belong To Us](http://www.benjaminfleischer.com/2013/07/30/all-your-open-source-code-are-belong-to-us/)
|
52
|
-
* [Using Pull Requests](https://help.github.com/articles/using-pull-requests)
|
53
|
-
* [Github pull requests made easy](http://www.element84.com/github-pull-requests-made-easy.html)
|
54
|
-
|
55
29
|
## Documentation
|
56
30
|
|
57
31
|
* Update the wiki
|
data/README.md
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
# MakeTaggable
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/make_taggable.svg)](https://badge.fury.io/rb/make_taggable)
|
3
|
-
![
|
4
|
-
![MySQL Tests](https://github.com/MatthewKennedy/make_taggable/workflows/MySQL%20Tests/badge.svg)
|
5
|
-
![SQLite Tests](https://github.com/MatthewKennedy/make_taggable/workflows/SQLite%20Tests/badge.svg)
|
6
|
-
![Standard Rb](https://github.com/MatthewKennedy/make_taggable/workflows/Standard%20Rb/badge.svg)
|
3
|
+
![CI](https://github.com/MatthewKennedy/make_taggable/workflows/CI/badge.svg)
|
7
4
|
|
8
|
-
MakeTaggable is a
|
9
|
-
|
10
|
-
All credit goes to those who contributed to Acts-As-Taggable-On: Michael Bleigh & Joost Baaij.
|
5
|
+
MakeTaggable is a tagging gem for Rails applications that allows custom tagging along dynamic contexts.
|
11
6
|
|
12
7
|
## Installation
|
13
8
|
|
@@ -519,4 +514,4 @@ List of valued contributors From Acts-As-Taggable-On: [Check them all](https://g
|
|
519
514
|
|
520
515
|
|
521
516
|
## License
|
522
|
-
This gem is available as open source under the terms of the [MIT License](https://github.com/MatthewKennedy/make_taggable/blob/master/LICENSE.
|
517
|
+
This gem is available as open source under the terms of the [MIT License](https://github.com/MatthewKennedy/make_taggable/blob/master/LICENSE.md).
|
data/Rakefile
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
|
+
require "rails/dummy/tasks"
|
2
3
|
|
3
4
|
import "./lib/tasks/tags_collate_utf8.rake"
|
4
5
|
|
@@ -6,6 +7,7 @@ APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__)
|
|
6
7
|
|
7
8
|
require "rspec/core/rake_task"
|
8
9
|
RSpec::Core::RakeTask.new(:spec)
|
10
|
+
|
9
11
|
task default: :spec
|
10
12
|
|
11
13
|
load "lib/tasks/setup_test_db.rake"
|
data/lib/make_taggable.rb
CHANGED
@@ -60,7 +60,7 @@ module MakeTaggable
|
|
60
60
|
def self.glue
|
61
61
|
setting = @configuration.delimiter
|
62
62
|
delimiter = setting.is_a?(Array) ? setting[0] : setting
|
63
|
-
delimiter.
|
63
|
+
delimiter.end_with?(" ") ? delimiter : "#{delimiter} "
|
64
64
|
end
|
65
65
|
|
66
66
|
class Configuration
|
data/lib/make_taggable/tag.rb
CHANGED
@@ -7,7 +7,7 @@ module MakeTaggable
|
|
7
7
|
|
8
8
|
### VALIDATIONS:
|
9
9
|
validates_presence_of :name
|
10
|
-
validates_uniqueness_of :name, if: :validates_name_uniqueness
|
10
|
+
validates_uniqueness_of :name, if: :validates_name_uniqueness?, case_sensitive: true
|
11
11
|
validates_length_of :name, maximum: 255
|
12
12
|
|
13
13
|
# Monkey patch this method if don't need name uniqueness validation
|
@@ -1,6 +1,8 @@
|
|
1
1
|
require "fileutils"
|
2
2
|
|
3
|
-
desc "
|
4
|
-
task :
|
5
|
-
|
3
|
+
desc "Create a test app"
|
4
|
+
task :create_test_app do
|
5
|
+
ENV["RAILS_ENV"] = "test"
|
6
|
+
ENV["ENGINE"] = "make_taggable_engine"
|
7
|
+
Rake::Task["dummy:app"].invoke
|
6
8
|
end
|
data/make_taggable.gemspec
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require "make_taggable/version"
|
1
|
+
require_relative "lib/make_taggable/version"
|
4
2
|
|
5
3
|
Gem::Specification.new do |spec|
|
6
4
|
spec.name = "make_taggable"
|
@@ -16,19 +14,19 @@ Gem::Specification.new do |spec|
|
|
16
14
|
spec.homepage = "https://github.com/MatthewKennedy/make_taggable"
|
17
15
|
spec.license = "MIT"
|
18
16
|
|
19
|
-
if File.exist?("UPGRADING.md")
|
20
|
-
spec.post_install_message = File.read("UPGRADING.md")
|
21
|
-
end
|
22
|
-
|
23
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
24
18
|
spec.metadata["source_code_uri"] = spec.homepage
|
25
19
|
spec.metadata["changelog_uri"] = "https://github.com/MatthewKennedy/make_taggable/blob/master/CHANGELOG.md"
|
26
20
|
|
27
|
-
spec.files =
|
28
|
-
|
21
|
+
spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
|
22
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.bindir = "exe"
|
26
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
27
|
spec.require_paths = ["lib"]
|
30
28
|
|
31
|
-
spec.add_dependency "rails", ">= 5.2.0", "<=
|
29
|
+
spec.add_dependency "rails", ">= 5.2.0", "<= 7.5.0"
|
32
30
|
|
33
31
|
spec.add_development_dependency "appraisal", "~> 2.3.0"
|
34
32
|
spec.add_development_dependency "mysql2", "~> 0.5.0"
|
@@ -37,4 +35,9 @@ Gem::Specification.new do |spec|
|
|
37
35
|
spec.add_development_dependency "rspec-rails", "~> 4.0.0"
|
38
36
|
spec.add_development_dependency "standard", "~> 0.10.0"
|
39
37
|
spec.add_development_dependency "sqlite3", "~> 1.4.0"
|
38
|
+
spec.add_development_dependency "rails-dummy"
|
39
|
+
|
40
|
+
if File.exist?("UPGRADING.md")
|
41
|
+
spec.post_install_message = File.read("UPGRADING.md")
|
42
|
+
end
|
40
43
|
end
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: make_taggable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Kennedy
|
8
8
|
- Michael Bleigh
|
9
9
|
- Joost Baaij
|
10
10
|
autorequire:
|
11
|
-
bindir:
|
11
|
+
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-03-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 5.2.0
|
22
22
|
- - "<="
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version:
|
24
|
+
version: 7.5.0
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
version: 5.2.0
|
32
32
|
- - "<="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 7.5.0
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: appraisal
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,6 +130,20 @@ dependencies:
|
|
130
130
|
- - "~>"
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: 1.4.0
|
133
|
+
- !ruby/object:Gem::Dependency
|
134
|
+
name: rails-dummy
|
135
|
+
requirement: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
type: :development
|
141
|
+
prerelease: false
|
142
|
+
version_requirements: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
133
147
|
description: MakeTaggable is a fork of Acts-As-Taggable-On with code updates & fresh
|
134
148
|
migrations
|
135
149
|
email:
|
@@ -138,21 +152,16 @@ executables: []
|
|
138
152
|
extensions: []
|
139
153
|
extra_rdoc_files: []
|
140
154
|
files:
|
141
|
-
- ".
|
142
|
-
- ".github/workflows/
|
143
|
-
- ".github/workflows/sqlite_tests.yml"
|
144
|
-
- ".github/workflows/standardrb-check.yml"
|
155
|
+
- ".dummyrc"
|
156
|
+
- ".github/workflows/ci.yml"
|
145
157
|
- ".gitignore"
|
146
158
|
- ".rspec"
|
147
|
-
- ".standard.yml"
|
148
|
-
- ".standard_todo.yml"
|
149
159
|
- Appraisals
|
150
160
|
- CHANGELOG.md
|
151
161
|
- CODE_OF_CONDUCT.md
|
152
162
|
- CONTRIBUTING.md
|
153
163
|
- Gemfile
|
154
164
|
- LICENSE.md
|
155
|
-
- LICENSE.txt
|
156
165
|
- README.md
|
157
166
|
- Rakefile
|
158
167
|
- UPGRADING.md
|
@@ -163,6 +172,10 @@ files:
|
|
163
172
|
- db/migrate/3_change_tag_name_collation_mysql.rb
|
164
173
|
- db/migrate/4_add_index_to_tags.rb
|
165
174
|
- db/migrate/5_add_index_to_taggings.rb
|
175
|
+
- gemfiles/rails_5.gemfile
|
176
|
+
- gemfiles/rails_6.gemfile
|
177
|
+
- gemfiles/rails_6_1.gemfile
|
178
|
+
- gemfiles/rails_master.gemfile
|
166
179
|
- lib/make_taggable.rb
|
167
180
|
- lib/make_taggable/default_parser.rb
|
168
181
|
- lib/make_taggable/engine.rb
|
@@ -189,108 +202,6 @@ files:
|
|
189
202
|
- lib/tasks/setup_test_db.rake
|
190
203
|
- lib/tasks/tags_collate_utf8.rake
|
191
204
|
- make_taggable.gemspec
|
192
|
-
- spec/dummy/README.md
|
193
|
-
- spec/dummy/Rakefile
|
194
|
-
- spec/dummy/app/assets/config/manifest.js
|
195
|
-
- spec/dummy/app/channels/application_cable/channel.rb
|
196
|
-
- spec/dummy/app/channels/application_cable/connection.rb
|
197
|
-
- spec/dummy/app/controllers/application_controller.rb
|
198
|
-
- spec/dummy/app/controllers/concerns/.keep
|
199
|
-
- spec/dummy/app/jobs/application_job.rb
|
200
|
-
- spec/dummy/app/mailers/application_mailer.rb
|
201
|
-
- spec/dummy/app/models/altered_inheriting_taggable_model.rb
|
202
|
-
- spec/dummy/app/models/application_record.rb
|
203
|
-
- spec/dummy/app/models/cached_model.rb
|
204
|
-
- spec/dummy/app/models/cached_model_with_array.rb
|
205
|
-
- spec/dummy/app/models/columns_override_model.rb
|
206
|
-
- spec/dummy/app/models/company.rb
|
207
|
-
- spec/dummy/app/models/concerns/.keep
|
208
|
-
- spec/dummy/app/models/inheriting_taggable_model.rb
|
209
|
-
- spec/dummy/app/models/market.rb
|
210
|
-
- spec/dummy/app/models/non_standard_id_taggable_model.rb
|
211
|
-
- spec/dummy/app/models/ordered_taggable_model.rb
|
212
|
-
- spec/dummy/app/models/other_cached_model.rb
|
213
|
-
- spec/dummy/app/models/other_taggable_model.rb
|
214
|
-
- spec/dummy/app/models/student.rb
|
215
|
-
- spec/dummy/app/models/taggable_model.rb
|
216
|
-
- spec/dummy/app/models/taggable_model_with_json.rb
|
217
|
-
- spec/dummy/app/models/untaggable_model.rb
|
218
|
-
- spec/dummy/app/models/user.rb
|
219
|
-
- spec/dummy/app/views/layouts/mailer.html.erb
|
220
|
-
- spec/dummy/app/views/layouts/mailer.text.erb
|
221
|
-
- spec/dummy/bin/rails
|
222
|
-
- spec/dummy/bin/rake
|
223
|
-
- spec/dummy/bin/setup
|
224
|
-
- spec/dummy/config.ru
|
225
|
-
- spec/dummy/config/application.rb
|
226
|
-
- spec/dummy/config/boot.rb
|
227
|
-
- spec/dummy/config/cable.yml
|
228
|
-
- spec/dummy/config/credentials.yml.enc
|
229
|
-
- spec/dummy/config/database.yml
|
230
|
-
- spec/dummy/config/environment.rb
|
231
|
-
- spec/dummy/config/environments/development.rb
|
232
|
-
- spec/dummy/config/environments/production.rb
|
233
|
-
- spec/dummy/config/environments/test.rb
|
234
|
-
- spec/dummy/config/initializers/application_controller_renderer.rb
|
235
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
236
|
-
- spec/dummy/config/initializers/cors.rb
|
237
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
238
|
-
- spec/dummy/config/initializers/inflections.rb
|
239
|
-
- spec/dummy/config/initializers/mime_types.rb
|
240
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
241
|
-
- spec/dummy/config/locales/en.yml
|
242
|
-
- spec/dummy/config/master.key
|
243
|
-
- spec/dummy/config/mysql_database.yml.ci
|
244
|
-
- spec/dummy/config/pg_database.yml.ci
|
245
|
-
- spec/dummy/config/puma.rb
|
246
|
-
- spec/dummy/config/routes.rb
|
247
|
-
- spec/dummy/config/spring.rb
|
248
|
-
- spec/dummy/config/storage.yml
|
249
|
-
- spec/dummy/db/migrate/020201119220853_create_taggable_models.rb
|
250
|
-
- spec/dummy/db/migrate/020201119221037_create_columns_override_models.rb
|
251
|
-
- spec/dummy/db/migrate/020201119221121_create_non_standard_id_taggable_models.rb
|
252
|
-
- spec/dummy/db/migrate/020201119221228_create_untaggable_models.rb
|
253
|
-
- spec/dummy/db/migrate/020201119221247_create_cached_models.rb
|
254
|
-
- spec/dummy/db/migrate/020201119221314_create_other_cached_models.rb
|
255
|
-
- spec/dummy/db/migrate/020201119221343_create_companies.rb
|
256
|
-
- spec/dummy/db/migrate/020201119221416_create_users.rb
|
257
|
-
- spec/dummy/db/migrate/020201119221434_create_other_taggable_models.rb
|
258
|
-
- spec/dummy/db/migrate/020201119221507_create_ordered_taggable_models.rb
|
259
|
-
- spec/dummy/db/migrate/020201119221530_create_cache_methods_injected_models.rb
|
260
|
-
- spec/dummy/db/migrate/020201119221629_create_other_cached_with_array_models.rb
|
261
|
-
- spec/dummy/db/migrate/020201119221746_create_taggable_model_with_jsons.rb
|
262
|
-
- spec/dummy/lib/tasks/.keep
|
263
|
-
- spec/dummy/log/.keep
|
264
|
-
- spec/dummy/public/robots.txt
|
265
|
-
- spec/dummy/storage/.keep
|
266
|
-
- spec/dummy/test/channels/application_cable/connection_test.rb
|
267
|
-
- spec/dummy/test/controllers/.keep
|
268
|
-
- spec/dummy/test/fixtures/.keep
|
269
|
-
- spec/dummy/test/fixtures/files/.keep
|
270
|
-
- spec/dummy/test/integration/.keep
|
271
|
-
- spec/dummy/test/mailers/.keep
|
272
|
-
- spec/dummy/test/models/.keep
|
273
|
-
- spec/dummy/test/test_helper.rb
|
274
|
-
- spec/dummy/vendor/.keep
|
275
|
-
- spec/make_taggable/acts_as_tagger_spec.rb
|
276
|
-
- spec/make_taggable/caching_spec.rb
|
277
|
-
- spec/make_taggable/default_parser_spec.rb
|
278
|
-
- spec/make_taggable/dirty_spec.rb
|
279
|
-
- spec/make_taggable/generic_parser_spec.rb
|
280
|
-
- spec/make_taggable/make_taggable_spec.rb
|
281
|
-
- spec/make_taggable/related_spec.rb
|
282
|
-
- spec/make_taggable/single_table_inheritance_spec.rb
|
283
|
-
- spec/make_taggable/tag_list_spec.rb
|
284
|
-
- spec/make_taggable/tag_spec.rb
|
285
|
-
- spec/make_taggable/taggable_spec.rb
|
286
|
-
- spec/make_taggable/tagger_spec.rb
|
287
|
-
- spec/make_taggable/tagging_spec.rb
|
288
|
-
- spec/make_taggable/tags_helper_spec.rb
|
289
|
-
- spec/make_taggable/utils_spec.rb
|
290
|
-
- spec/make_taggable_spec.rb
|
291
|
-
- spec/spec_helper.rb
|
292
|
-
- spec/support/array.rb
|
293
|
-
- spec/support/helpers.rb
|
294
205
|
homepage: https://github.com/MatthewKennedy/make_taggable
|
295
206
|
licenses:
|
296
207
|
- MIT
|
@@ -318,110 +229,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
318
229
|
- !ruby/object:Gem::Version
|
319
230
|
version: '0'
|
320
231
|
requirements: []
|
321
|
-
rubygems_version: 3.
|
232
|
+
rubygems_version: 3.2.3
|
322
233
|
signing_key:
|
323
234
|
specification_version: 4
|
324
235
|
summary: Advanced Tagging For Rails
|
325
|
-
test_files:
|
326
|
-
- spec/dummy/README.md
|
327
|
-
- spec/dummy/Rakefile
|
328
|
-
- spec/dummy/app/assets/config/manifest.js
|
329
|
-
- spec/dummy/app/channels/application_cable/channel.rb
|
330
|
-
- spec/dummy/app/channels/application_cable/connection.rb
|
331
|
-
- spec/dummy/app/controllers/application_controller.rb
|
332
|
-
- spec/dummy/app/controllers/concerns/.keep
|
333
|
-
- spec/dummy/app/jobs/application_job.rb
|
334
|
-
- spec/dummy/app/mailers/application_mailer.rb
|
335
|
-
- spec/dummy/app/models/altered_inheriting_taggable_model.rb
|
336
|
-
- spec/dummy/app/models/application_record.rb
|
337
|
-
- spec/dummy/app/models/cached_model.rb
|
338
|
-
- spec/dummy/app/models/cached_model_with_array.rb
|
339
|
-
- spec/dummy/app/models/columns_override_model.rb
|
340
|
-
- spec/dummy/app/models/company.rb
|
341
|
-
- spec/dummy/app/models/concerns/.keep
|
342
|
-
- spec/dummy/app/models/inheriting_taggable_model.rb
|
343
|
-
- spec/dummy/app/models/market.rb
|
344
|
-
- spec/dummy/app/models/non_standard_id_taggable_model.rb
|
345
|
-
- spec/dummy/app/models/ordered_taggable_model.rb
|
346
|
-
- spec/dummy/app/models/other_cached_model.rb
|
347
|
-
- spec/dummy/app/models/other_taggable_model.rb
|
348
|
-
- spec/dummy/app/models/student.rb
|
349
|
-
- spec/dummy/app/models/taggable_model.rb
|
350
|
-
- spec/dummy/app/models/taggable_model_with_json.rb
|
351
|
-
- spec/dummy/app/models/untaggable_model.rb
|
352
|
-
- spec/dummy/app/models/user.rb
|
353
|
-
- spec/dummy/app/views/layouts/mailer.html.erb
|
354
|
-
- spec/dummy/app/views/layouts/mailer.text.erb
|
355
|
-
- spec/dummy/bin/rails
|
356
|
-
- spec/dummy/bin/rake
|
357
|
-
- spec/dummy/bin/setup
|
358
|
-
- spec/dummy/config.ru
|
359
|
-
- spec/dummy/config/application.rb
|
360
|
-
- spec/dummy/config/boot.rb
|
361
|
-
- spec/dummy/config/cable.yml
|
362
|
-
- spec/dummy/config/credentials.yml.enc
|
363
|
-
- spec/dummy/config/database.yml
|
364
|
-
- spec/dummy/config/environment.rb
|
365
|
-
- spec/dummy/config/environments/development.rb
|
366
|
-
- spec/dummy/config/environments/production.rb
|
367
|
-
- spec/dummy/config/environments/test.rb
|
368
|
-
- spec/dummy/config/initializers/application_controller_renderer.rb
|
369
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
370
|
-
- spec/dummy/config/initializers/cors.rb
|
371
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
372
|
-
- spec/dummy/config/initializers/inflections.rb
|
373
|
-
- spec/dummy/config/initializers/mime_types.rb
|
374
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
375
|
-
- spec/dummy/config/locales/en.yml
|
376
|
-
- spec/dummy/config/master.key
|
377
|
-
- spec/dummy/config/mysql_database.yml.ci
|
378
|
-
- spec/dummy/config/pg_database.yml.ci
|
379
|
-
- spec/dummy/config/puma.rb
|
380
|
-
- spec/dummy/config/routes.rb
|
381
|
-
- spec/dummy/config/spring.rb
|
382
|
-
- spec/dummy/config/storage.yml
|
383
|
-
- spec/dummy/db/migrate/020201119220853_create_taggable_models.rb
|
384
|
-
- spec/dummy/db/migrate/020201119221037_create_columns_override_models.rb
|
385
|
-
- spec/dummy/db/migrate/020201119221121_create_non_standard_id_taggable_models.rb
|
386
|
-
- spec/dummy/db/migrate/020201119221228_create_untaggable_models.rb
|
387
|
-
- spec/dummy/db/migrate/020201119221247_create_cached_models.rb
|
388
|
-
- spec/dummy/db/migrate/020201119221314_create_other_cached_models.rb
|
389
|
-
- spec/dummy/db/migrate/020201119221343_create_companies.rb
|
390
|
-
- spec/dummy/db/migrate/020201119221416_create_users.rb
|
391
|
-
- spec/dummy/db/migrate/020201119221434_create_other_taggable_models.rb
|
392
|
-
- spec/dummy/db/migrate/020201119221507_create_ordered_taggable_models.rb
|
393
|
-
- spec/dummy/db/migrate/020201119221530_create_cache_methods_injected_models.rb
|
394
|
-
- spec/dummy/db/migrate/020201119221629_create_other_cached_with_array_models.rb
|
395
|
-
- spec/dummy/db/migrate/020201119221746_create_taggable_model_with_jsons.rb
|
396
|
-
- spec/dummy/lib/tasks/.keep
|
397
|
-
- spec/dummy/log/.keep
|
398
|
-
- spec/dummy/public/robots.txt
|
399
|
-
- spec/dummy/storage/.keep
|
400
|
-
- spec/dummy/test/channels/application_cable/connection_test.rb
|
401
|
-
- spec/dummy/test/controllers/.keep
|
402
|
-
- spec/dummy/test/fixtures/.keep
|
403
|
-
- spec/dummy/test/fixtures/files/.keep
|
404
|
-
- spec/dummy/test/integration/.keep
|
405
|
-
- spec/dummy/test/mailers/.keep
|
406
|
-
- spec/dummy/test/models/.keep
|
407
|
-
- spec/dummy/test/test_helper.rb
|
408
|
-
- spec/dummy/vendor/.keep
|
409
|
-
- spec/make_taggable/acts_as_tagger_spec.rb
|
410
|
-
- spec/make_taggable/caching_spec.rb
|
411
|
-
- spec/make_taggable/default_parser_spec.rb
|
412
|
-
- spec/make_taggable/dirty_spec.rb
|
413
|
-
- spec/make_taggable/generic_parser_spec.rb
|
414
|
-
- spec/make_taggable/make_taggable_spec.rb
|
415
|
-
- spec/make_taggable/related_spec.rb
|
416
|
-
- spec/make_taggable/single_table_inheritance_spec.rb
|
417
|
-
- spec/make_taggable/tag_list_spec.rb
|
418
|
-
- spec/make_taggable/tag_spec.rb
|
419
|
-
- spec/make_taggable/taggable_spec.rb
|
420
|
-
- spec/make_taggable/tagger_spec.rb
|
421
|
-
- spec/make_taggable/tagging_spec.rb
|
422
|
-
- spec/make_taggable/tags_helper_spec.rb
|
423
|
-
- spec/make_taggable/utils_spec.rb
|
424
|
-
- spec/make_taggable_spec.rb
|
425
|
-
- spec/spec_helper.rb
|
426
|
-
- spec/support/array.rb
|
427
|
-
- spec/support/helpers.rb
|
236
|
+
test_files: []
|