easy_tags 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +25 -13
- data/.rubocop.yml +4 -0
- data/Appraisals +10 -10
- data/CHANGELOG.md +7 -2
- data/easy_tags.gemspec +2 -2
- data/gemfiles/{activerecord_5.1.gemfile → activerecord_7.0.gemfile} +2 -2
- data/gemfiles/{activerecord_5.2.gemfile → activerecord_7.1.gemfile} +2 -2
- data/lib/easy_tags/parsers/default.rb +1 -1
- data/lib/easy_tags/taggable_context_methods.rb +2 -0
- data/lib/easy_tags/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d60ff0a998d517c1815441df2175ece954e6bcb7d97eec9f74f01600240819dc
|
4
|
+
data.tar.gz: 3e47056d08fb9452810f53d8203391710111c21ea178252473c902d04851028c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2375cb83e42449be314a41ca339480456f4ea6645e7fb28a0eacb919525f9d9c8eb3f74580638911dd14ad8eceb03253659d5f19cb5abb054e1e72afeefae067
|
7
|
+
data.tar.gz: 87333f2d3512cf46d03437b04d1a77fa0a4f33b6b83245a9ae0da612ba8e9ca3da75a0ec12131f463db5bd70ce0d14468bccd99c80ec1c3c56544872ef06bbd0
|
data/.github/workflows/ci.yml
CHANGED
@@ -12,15 +12,6 @@ jobs:
|
|
12
12
|
fail-fast: false
|
13
13
|
matrix:
|
14
14
|
include:
|
15
|
-
- gemfile: activerecord_5.1
|
16
|
-
ruby: 2.5
|
17
|
-
|
18
|
-
- gemfile: activerecord_5.2
|
19
|
-
ruby: 2.5
|
20
|
-
|
21
|
-
- gemfile: activerecord_5.2
|
22
|
-
ruby: 2.6
|
23
|
-
|
24
15
|
- gemfile: activerecord_6.0
|
25
16
|
ruby: 2.6
|
26
17
|
|
@@ -39,6 +30,18 @@ jobs:
|
|
39
30
|
- gemfile: activerecord_6.1
|
40
31
|
ruby: 3.0
|
41
32
|
|
33
|
+
- gemfile: activerecord_7.0
|
34
|
+
ruby: 3.1
|
35
|
+
|
36
|
+
- gemfile: activerecord_7.0
|
37
|
+
ruby: 3.2
|
38
|
+
|
39
|
+
- gemfile: activerecord_7.0
|
40
|
+
ruby: 3.1
|
41
|
+
|
42
|
+
- gemfile: activerecord_7.0
|
43
|
+
ruby: 3.2
|
44
|
+
|
42
45
|
name: ${{ matrix.gemfile }}, ruby ${{ matrix.ruby }}
|
43
46
|
|
44
47
|
steps:
|
@@ -58,12 +61,21 @@ jobs:
|
|
58
61
|
- name: Run tests
|
59
62
|
run: bundle exec rspec
|
60
63
|
|
61
|
-
- name: Rubocop
|
62
|
-
run: bundle exec rubocop
|
63
|
-
|
64
64
|
- name: Report to Code Climate
|
65
65
|
uses: paambaati/codeclimate-action@v3.0.0
|
66
66
|
env:
|
67
67
|
CC_TEST_REPORTER_ID: c7f705db7f3e2658ca529a196cd65b724f6b674a7ed6ac2e01928135babdac35
|
68
68
|
with:
|
69
|
-
coverageCommand: bundle exec rspec # TODO: this should not be needed, but can't make it work
|
69
|
+
coverageCommand: bundle exec rspec # TODO: this should not be needed, but can't make it work
|
70
|
+
|
71
|
+
rubocop_check:
|
72
|
+
runs-on: ubuntu-latest
|
73
|
+
steps:
|
74
|
+
- uses: actions/checkout@v2
|
75
|
+
- name: Set up Ruby
|
76
|
+
uses: ruby/setup-ruby@v1
|
77
|
+
with:
|
78
|
+
ruby-version: '3.2'
|
79
|
+
bundler-cache: true
|
80
|
+
- name: Rubocop
|
81
|
+
run: bundle exec rubocop
|
data/.rubocop.yml
CHANGED
@@ -5,6 +5,7 @@ AllCops:
|
|
5
5
|
Exclude:
|
6
6
|
- gemfiles/**/*
|
7
7
|
- vendor/bundle/**/*
|
8
|
+
TargetRubyVersion: 2.5
|
8
9
|
|
9
10
|
Layout/IndentationConsistency:
|
10
11
|
EnforcedStyle: indented_internal_methods
|
@@ -29,6 +30,9 @@ RSpec/NestedGroups:
|
|
29
30
|
RSpec/MessageSpies:
|
30
31
|
Enabled: false
|
31
32
|
|
33
|
+
Metrics/MethodLength:
|
34
|
+
Max: 10
|
35
|
+
|
32
36
|
Metrics/BlockLength:
|
33
37
|
Exclude:
|
34
38
|
- Rakefile
|
data/Appraisals
CHANGED
@@ -1,15 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
appraise 'activerecord-5.1' do
|
4
|
-
gem 'activerecord', '~> 5.1.0'
|
5
|
-
gem 'activesupport', '~> 5.1.0'
|
6
|
-
end
|
7
|
-
|
8
|
-
appraise 'activerecord-5.2' do
|
9
|
-
gem 'activerecord', '~> 5.2.0'
|
10
|
-
gem 'activesupport', '~> 5.2.0'
|
11
|
-
end
|
12
|
-
|
13
3
|
appraise 'activerecord-6.0' do
|
14
4
|
gem 'activerecord', '~> 6.0.0'
|
15
5
|
gem 'activesupport', '~> 6.0.0'
|
@@ -19,3 +9,13 @@ appraise 'activerecord-6.1' do
|
|
19
9
|
gem 'activerecord', '~> 6.1.0'
|
20
10
|
gem 'activesupport', '~> 6.1.0'
|
21
11
|
end
|
12
|
+
|
13
|
+
appraise 'activerecord-7.0' do
|
14
|
+
gem 'activerecord', '~> 7.0.0'
|
15
|
+
gem 'activesupport', '~> 7.0.0'
|
16
|
+
end
|
17
|
+
|
18
|
+
appraise 'activerecord-7.1' do
|
19
|
+
gem 'activerecord', '~> 7.1.0'
|
20
|
+
gem 'activesupport', '~> 7.1.0'
|
21
|
+
end
|
data/CHANGELOG.md
CHANGED
@@ -6,7 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
-
## [0.2.
|
9
|
+
## [0.2.8] - 2023-12-12
|
10
|
+
### Added
|
11
|
+
- Rails 7.0 and 7.1 support (@jwilsjustin)
|
12
|
+
|
13
|
+
## [0.2.7] - 2022-03-28
|
10
14
|
### Added
|
11
15
|
- Rails 6.1 support
|
12
16
|
|
@@ -42,7 +46,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
42
46
|
## [0.1.0] - 2019-07-15
|
43
47
|
Initial release
|
44
48
|
|
45
|
-
[Unreleased]: https://github.com/iiwo/
|
49
|
+
[Unreleased]: https://github.com/iiwo/easy_tags/compare/v0.2.8...HEAD
|
50
|
+
[0.2.8]: https://github.com/iiwo/easy_tags/compare/v0.2.7...v0.2.8
|
46
51
|
[0.2.7]: https://github.com/iiwo/easy_tags/compare/v0.2.6...v0.2.7
|
47
52
|
[0.2.6]: https://github.com/iiwo/easy_tags/compare/v0.2.5...v0.2.6
|
48
53
|
[0.2.5]: https://github.com/iiwo/easy_tags/compare/v0.2.4...v0.2.5
|
data/easy_tags.gemspec
CHANGED
@@ -31,6 +31,6 @@ Gem::Specification.new do |spec|
|
|
31
31
|
|
32
32
|
spec.required_ruby_version = ['>= 2.5.0', '<= 4.0.0']
|
33
33
|
|
34
|
-
spec.add_runtime_dependency 'activerecord', '>= 5.0', '<
|
35
|
-
spec.add_runtime_dependency 'activesupport', '>= 5.0', '<
|
34
|
+
spec.add_runtime_dependency 'activerecord', '>= 5.0', '< 8'
|
35
|
+
spec.add_runtime_dependency 'activesupport', '>= 5.0', '< 8'
|
36
36
|
end
|
@@ -12,7 +12,7 @@ gem "rubocop-rspec", require: false
|
|
12
12
|
gem "simplecov"
|
13
13
|
gem "simplecov-console"
|
14
14
|
gem "sqlite3"
|
15
|
-
gem "activerecord", "~>
|
16
|
-
gem "activesupport", "~>
|
15
|
+
gem "activerecord", "~> 7.0.0"
|
16
|
+
gem "activesupport", "~> 7.0.0"
|
17
17
|
|
18
18
|
gemspec path: "../"
|
@@ -12,7 +12,7 @@ gem "rubocop-rspec", require: false
|
|
12
12
|
gem "simplecov"
|
13
13
|
gem "simplecov-console"
|
14
14
|
gem "sqlite3"
|
15
|
-
gem "activerecord", "~>
|
16
|
-
gem "activesupport", "~>
|
15
|
+
gem "activerecord", "~> 7.1.0"
|
16
|
+
gem "activesupport", "~> 7.1.0"
|
17
17
|
|
18
18
|
gemspec path: "../"
|
@@ -16,6 +16,7 @@ module EasyTags
|
|
16
16
|
# def bees_list=
|
17
17
|
class TaggableContextMethods
|
18
18
|
class << self
|
19
|
+
# rubocop:disable Metrics/MethodLength
|
19
20
|
def inject(class_instance:, context:)
|
20
21
|
class_instance.class_eval <<-RUBY, __FILE__, __LINE__ + 1 # rubocop:disable Style/DocumentDynamicEvalDefinition
|
21
22
|
has_many(
|
@@ -57,6 +58,7 @@ module EasyTags
|
|
57
58
|
end
|
58
59
|
RUBY
|
59
60
|
end
|
61
|
+
# rubocop:enable Metrics/MethodLength
|
60
62
|
end
|
61
63
|
end
|
62
64
|
end
|
data/lib/easy_tags/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iwo Dziechciarow
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '5.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '8'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '5.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '8'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: activesupport
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: '5.0'
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '8'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
version: '5.0'
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '8'
|
53
53
|
description: Easy tagging for Rails
|
54
54
|
email:
|
55
55
|
- iiwo@o2.pl
|
@@ -73,10 +73,10 @@ files:
|
|
73
73
|
- bin/console
|
74
74
|
- bin/setup
|
75
75
|
- easy_tags.gemspec
|
76
|
-
- gemfiles/activerecord_5.1.gemfile
|
77
|
-
- gemfiles/activerecord_5.2.gemfile
|
78
76
|
- gemfiles/activerecord_6.0.gemfile
|
79
77
|
- gemfiles/activerecord_6.1.gemfile
|
78
|
+
- gemfiles/activerecord_7.0.gemfile
|
79
|
+
- gemfiles/activerecord_7.1.gemfile
|
80
80
|
- lib/easy_tags.rb
|
81
81
|
- lib/easy_tags/dirty_methods.rb
|
82
82
|
- lib/easy_tags/generators/default.rb
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
rubygems_version: 3.2.
|
124
|
+
rubygems_version: 3.2.33
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: EasyTags allows you to tag a single model on several contexts
|