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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a25661b4f6d4209aaadbbbe942c01de427978e23420c95bbb165b6dcd49b4e5e
4
- data.tar.gz: 68c801a5b14ac59fddd4c15c60d4b6057d6ccf6c02bead0b28449f5c0ed9a69d
3
+ metadata.gz: d60ff0a998d517c1815441df2175ece954e6bcb7d97eec9f74f01600240819dc
4
+ data.tar.gz: 3e47056d08fb9452810f53d8203391710111c21ea178252473c902d04851028c
5
5
  SHA512:
6
- metadata.gz: 84b1238e1fbe7937eae3757424481b80b0ccfd78233d841ea89ce2415c5fbd00407334650abff55cdbc8a964a3bb50ed078a24817b754b11dfb1efd1a8f9eeaf
7
- data.tar.gz: f5b54a8c2a1635d669379c052ad123d8aa1c21a4f1c67cf999fc0446c1333cf2fe6f09e7369012946ca3f42121e03bae316e4556d85add021b34e52f6575683b
6
+ metadata.gz: 2375cb83e42449be314a41ca339480456f4ea6645e7fb28a0eacb919525f9d9c8eb3f74580638911dd14ad8eceb03253659d5f19cb5abb054e1e72afeefae067
7
+ data.tar.gz: 87333f2d3512cf46d03437b04d1a77fa0a4f33b6b83245a9ae0da612ba8e9ca3da75a0ec12131f463db5bd70ce0d14468bccd99c80ec1c3c56544872ef06bbd0
@@ -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.7] - 2020-03-28
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/easy_tagscompare/v0.2.6...HEAD
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', '< 6.2'
35
- spec.add_runtime_dependency 'activesupport', '>= 5.0', '< 6.2'
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", "~> 5.1.0"
16
- gem "activesupport", "~> 5.1.0"
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", "~> 5.2.0"
16
- gem "activesupport", "~> 5.2.0"
15
+ gem "activerecord", "~> 7.1.0"
16
+ gem "activesupport", "~> 7.1.0"
17
17
 
18
18
  gemspec path: "../"
@@ -16,7 +16,7 @@ module EasyTags
16
16
  def parse(tag_list_string)
17
17
  return [] if tag_list_string.to_s.empty?
18
18
 
19
- tag_list_string.to_s.split(/,/).map(&:strip)
19
+ tag_list_string.to_s.split(',').map(&:strip)
20
20
  end
21
21
  end
22
22
  end
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EasyTags
4
- VERSION = '0.2.7'
4
+ VERSION = '0.2.8'
5
5
  end
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.7
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: 2022-03-28 00:00:00.000000000 Z
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: '6.2'
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: '6.2'
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: '6.2'
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: '6.2'
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.9
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