rails-menu-manager 0.6.0 → 0.8.0

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: a66020465baf8336edae4c054d31162d9469c359e8beb1904b1af3eb4180ea13
4
- data.tar.gz: 17de76c2c9f5ecccbc63fa9370b0b4bcca6e935ea70f552a73b4d0dadc5f712b
3
+ metadata.gz: fc5f5f1b3d2a57ff33ac03d3d226f2a0ae7e83cba50872d621edcaae1d8c3901
4
+ data.tar.gz: 1edeeaab17daea2a6a2362ef12f24d07bd32b2a49d756a8247c134a74302877d
5
5
  SHA512:
6
- metadata.gz: accdfe6956c15c0b5e8ac219d41430c151904f3b7dd807e794ca34c18f2e7d7942796a6bda4ae34af662c181b9e3b21058b2f47041187e6b7e9bd1a1e226ab6e
7
- data.tar.gz: 326ac22a5f02bcc3709574b97ee1727bbb8665c7d93b1648828d7a11fb9d9d7c94b0503cfbe9436648b7e8081526040889e2be7652e1955cbec227045fa8bc68
6
+ metadata.gz: 39dde3581adddff30c8cab28b386f38c8e0beba0eb7deef23d23202d588d7a9c36817e12570d19e4bc5337a27c4f1b57b4f8433089e553d496ef29cef98d5346
7
+ data.tar.gz: 1109efc0c96e4da2293dfb430ee3440ba0664dfcd435e11acb064d2ec3fcd7a3c6d0eb3cc8a06d9007e3155ff66a014bb10b0d870c8a2a14cc012efea5787326
data/.gitlab-ci.yml CHANGED
@@ -1,12 +1,22 @@
1
1
  stages:
2
+ - security
2
3
  - build
3
4
  - test
4
5
  - codequality
5
- - security
6
+ - release
7
+
8
+ sast:
9
+ stage: security
10
+
11
+ dependency_scanning:
12
+ stage: security
13
+
14
+ secret_detection:
15
+ stage: security
6
16
 
7
17
  build:
8
18
  stage: build
9
- image: ruby:2.6
19
+ image: ruby:3.3
10
20
  script:
11
21
  - gem install bundler --no-document
12
22
  - bundle update
@@ -19,7 +29,7 @@ build:
19
29
  before_script:
20
30
  - ruby -v
21
31
  - echo "${RSPEC_RAILS_VERSION}"
22
- - gem install bundler -v "~>${BUNDLER_VERSION:-2.0}" --no-document
32
+ - gem install bundler -v "~>${BUNDLER_VERSION:-2.4}" --no-document
23
33
  - export BUNDLE_GEMFILE="spec/Gemfile"
24
34
  - bundle install --jobs=$(nproc) --path="../cache/bundle"
25
35
  - bundle list
@@ -30,81 +40,66 @@ build:
30
40
  paths:
31
41
  - cache/
32
42
 
33
- rspec-ruby2.5-rails5.0:
34
- <<: *rspec
35
- image: ruby:2.5
36
- variables:
37
- RSPEC_RAILS_VERSION: '5.0'
38
-
39
- rspec-ruby2.6-rails5.0:
40
- <<: *rspec
41
- image: ruby:2.6
42
- variables:
43
- RSPEC_RAILS_VERSION: '5.0'
44
-
45
- rspec-ruby2.5-rails5.1:
46
- <<: *rspec
47
- image: ruby:2.5
48
- variables:
49
- RSPEC_RAILS_VERSION: '5.1'
50
-
51
- rspec-ruby2.6-rails5.1:
52
- <<: *rspec
53
- image: ruby:2.6
54
- variables:
55
- RSPEC_RAILS_VERSION: '5.1'
56
-
57
- rspec-ruby2.5-rails5.2:
58
- <<: *rspec
59
- image: ruby:2.5
60
- variables:
61
- RSPEC_RAILS_VERSION: '5.2'
62
-
63
- rspec-ruby2.6-rails5.2:
43
+ rspec-ruby3.0-rails6.1:
64
44
  <<: *rspec
65
- image: ruby:2.6
45
+ image: ruby:3.0
66
46
  variables:
67
- RSPEC_RAILS_VERSION: '5.2'
47
+ RSPEC_RAILS_VERSION: "6.1"
68
48
 
69
- rspec-ruby2.5-rails6.0:
49
+ rspec-ruby3.0-rails7.0:
70
50
  <<: *rspec
71
- image: ruby:2.5
51
+ image: ruby:3.0
72
52
  variables:
73
- RSPEC_RAILS_VERSION: '6.0'
53
+ RSPEC_RAILS_VERSION: "7.0"
74
54
 
75
- rspec-ruby2.6-rails6.0:
55
+ rspec-ruby3.0-rails7.1:
76
56
  <<: *rspec
77
- image: ruby:2.6
57
+ image: ruby:3.0
78
58
  variables:
79
- RSPEC_RAILS_VERSION: '6.0'
59
+ RSPEC_RAILS_VERSION: "7.1"
80
60
 
81
- rspec-ruby2.5-rails6.1:
61
+ rspec-ruby3.2-rails7.1:
82
62
  <<: *rspec
83
- image: ruby:2.5
63
+ image: ruby:3.2
84
64
  variables:
85
- RSPEC_RAILS_VERSION: '6.1'
65
+ RSPEC_RAILS_VERSION: "7.1"
86
66
 
87
- rspec-ruby2.6-rails6.1:
67
+ rspec-ruby3.2-rails7.2:
88
68
  <<: *rspec
89
- image: ruby:2.6
69
+ image: ruby:3.2
90
70
  variables:
91
- RSPEC_RAILS_VERSION: '6.1'
71
+ RSPEC_RAILS_VERSION: "7.2"
92
72
 
93
- rspec-ruby2.7-rails7.0:
73
+ rspec-ruby3.3-rails7.2:
94
74
  <<: *rspec
95
- image: ruby:2.7
75
+ image: ruby:3.3
96
76
  variables:
97
- RSPEC_RAILS_VERSION: '7.0'
77
+ RSPEC_RAILS_VERSION: "7.2"
98
78
 
99
- rspec-ruby3.0-rails7.0:
79
+ rspec-ruby3.3-rails8.0:
100
80
  <<: *rspec
101
- image: ruby:3.0
81
+ image: ruby:3.3
102
82
  variables:
103
- RSPEC_RAILS_VERSION: '7.0'
83
+ RSPEC_RAILS_VERSION: "8.0"
104
84
 
105
85
  rubocop:
106
86
  stage: codequality
107
- image: ruby:2.6
87
+ image: ruby:3.0
108
88
  script:
109
- - gem install rubocop rubocop-performance --no-document
89
+ - gem install rubocop rubocop-performance rubocop-rails rubocop-rspec --no-document
110
90
  - rubocop
91
+
92
+ release:
93
+ stage: release
94
+ image: ruby:3.3
95
+ script:
96
+ - gem install bundler --no-document
97
+ - bundle update
98
+ - rake release
99
+ only:
100
+ - tags
101
+
102
+ include:
103
+ - template: Security/SAST.gitlab-ci.yml
104
+ - template: Security/Dependency-Scanning.gitlab-ci.yml
105
+ - template: Security/Secret-Detection.gitlab-ci.yml
data/.rubocop.yml CHANGED
@@ -1,8 +1,11 @@
1
1
  require:
2
2
  - rubocop-performance
3
+ - rubocop-rspec
4
+ - rubocop-rails
3
5
 
4
6
  AllCops:
5
- TargetRubyVersion: 2.5
7
+ TargetRubyVersion: 3.0
8
+ NewCops: disable
6
9
 
7
10
  Layout/HashAlignment:
8
11
  EnforcedHashRocketStyle: table
@@ -14,3 +17,6 @@ Layout/LineLength:
14
17
  Naming/FileName:
15
18
  Exclude:
16
19
  - 'lib/rails-menu-manager.rb'
20
+
21
+ RSpec/MultipleExpectations:
22
+ Max: 3
data/CHANGELOG.md CHANGED
@@ -7,6 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.8.0] - 2025-01-08
11
+
12
+ ### Added
13
+ - support for Rails 7.2 & 8.0
14
+
15
+ ### Changed
16
+
17
+ - CI: Use bundler 2.4
18
+ - CI: Use Ruby 3.0 for rubocop
19
+ - CI: Use Ruby 3.3 for build & release
20
+ - drop support for ruby < 3.0
21
+
22
+ ## [0.7.0] - 2023-10-29
23
+
24
+ ### Added
25
+
26
+ - support for Rails 7.1
27
+ - extend test matrix with ruby 3.2
28
+
29
+ ### Changed
30
+
31
+ - set supported ruby versions to >= 2.7.0 (required for rubocop, anyway legacy)
32
+ - set supported rails versions to >= 6.1.0
33
+
34
+ ### Removed
35
+
36
+ - support for Rails < 6.1
37
+ - support for Ruby < 2.7
38
+
10
39
  ## [0.6.0] - 2020-12-21
11
40
 
12
41
  ### Added
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsMenuManager
4
- VERSION = '0.6.0'
4
+ VERSION = '0.8.0'
5
5
  end
@@ -19,13 +19,15 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ['lib']
21
21
 
22
- spec.required_ruby_version = '>= 2.5.0'
22
+ spec.required_ruby_version = '>= 3.0.0'
23
23
 
24
- spec.add_dependency 'railties', '>= 5.0', '< 7.1'
24
+ spec.add_dependency 'railties', '>= 6.1', '< 8.1'
25
25
 
26
26
  spec.add_development_dependency 'bundler'
27
27
  spec.add_development_dependency 'rake'
28
28
  spec.add_development_dependency 'rspec'
29
29
  spec.add_development_dependency 'rubocop'
30
30
  spec.add_development_dependency 'rubocop-performance'
31
+ spec.add_development_dependency 'rubocop-rails'
32
+ spec.add_development_dependency 'rubocop-rspec'
31
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-menu-manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Schwab
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-21 00:00:00.000000000 Z
11
+ date: 2025-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '6.1'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.1'
22
+ version: '8.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '5.0'
29
+ version: '6.1'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.1'
32
+ version: '8.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -100,6 +100,34 @@ dependencies:
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: rubocop-rails
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: rubocop-rspec
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
103
131
  description: Simple menu manager for Rails.
104
132
  email:
105
133
  - me@ydkn.de
@@ -134,14 +162,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
134
162
  requirements:
135
163
  - - ">="
136
164
  - !ruby/object:Gem::Version
137
- version: 2.5.0
165
+ version: 3.0.0
138
166
  required_rubygems_version: !ruby/object:Gem::Requirement
139
167
  requirements:
140
168
  - - ">="
141
169
  - !ruby/object:Gem::Version
142
170
  version: '0'
143
171
  requirements: []
144
- rubygems_version: 3.2.32
172
+ rubygems_version: 3.5.22
145
173
  signing_key:
146
174
  specification_version: 4
147
175
  summary: Simple menu manager for Rails.