Skip to content

Commit e938745

Browse files
committed
Update ruby gems, use rubocop-rake gem and add rubocop to default Rake tasks
1 parent a8d89f4 commit e938745

File tree

7 files changed

+71
-25
lines changed

7 files changed

+71
-25
lines changed

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require:
22
- rubocop-performance
33
- rubocop-rspec
4+
- rubocop-rake
45

56
AllCops:
67
TargetRubyVersion: 3.0.1

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### [1.0.9] 2024-02-18
2+
3+
Changes
4+
5+
- Update ruby gems.
6+
- Use rubocop-rake gem to run rubocop checks.
7+
- Add rubocop to default rake tasks in Rakefile.
8+
19
### [1.0.8] 2024-01-19
210

311
Changes

Gemfile.lock

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
immutable_struct_ex (1.0.8)
4+
immutable_struct_ex (1.0.9)
55

66
GEM
77
remote: https://rubygems.org/
@@ -11,7 +11,7 @@ GEM
1111
byebug (11.1.3)
1212
coderay (1.1.3)
1313
concurrent-ruby (1.2.3)
14-
diff-lcs (1.5.0)
14+
diff-lcs (1.5.1)
1515
docile (1.4.0)
1616
dry-configurable (1.1.0)
1717
dry-core (~> 1.0, < 2)
@@ -44,7 +44,7 @@ GEM
4444
language_server-protocol (3.17.0.3)
4545
method_source (1.0.0)
4646
parallel (1.24.0)
47-
parser (3.2.2.4)
47+
parser (3.3.0.5)
4848
ast (~> 2.4.1)
4949
racc
5050
pry (0.14.2)
@@ -56,31 +56,31 @@ GEM
5656
racc (1.7.3)
5757
rainbow (3.1.1)
5858
rake (13.1.0)
59-
reek (6.2.0)
59+
reek (6.3.0)
6060
dry-schema (~> 1.13.0)
61-
parser (~> 3.2.0)
61+
parser (~> 3.3.0)
6262
rainbow (>= 2.0, < 4.0)
6363
rexml (~> 3.1)
6464
regexp_parser (2.9.0)
6565
rexml (3.2.6)
66-
rspec (3.12.0)
67-
rspec-core (~> 3.12.0)
68-
rspec-expectations (~> 3.12.0)
69-
rspec-mocks (~> 3.12.0)
70-
rspec-core (3.12.2)
71-
rspec-support (~> 3.12.0)
72-
rspec-expectations (3.12.3)
66+
rspec (3.13.0)
67+
rspec-core (~> 3.13.0)
68+
rspec-expectations (~> 3.13.0)
69+
rspec-mocks (~> 3.13.0)
70+
rspec-core (3.13.0)
71+
rspec-support (~> 3.13.0)
72+
rspec-expectations (3.13.0)
7373
diff-lcs (>= 1.2.0, < 2.0)
74-
rspec-support (~> 3.12.0)
75-
rspec-mocks (3.12.6)
74+
rspec-support (~> 3.13.0)
75+
rspec-mocks (3.13.0)
7676
diff-lcs (>= 1.2.0, < 2.0)
77-
rspec-support (~> 3.12.0)
78-
rspec-support (3.12.1)
79-
rubocop (1.59.0)
77+
rspec-support (~> 3.13.0)
78+
rspec-support (3.13.0)
79+
rubocop (1.60.2)
8080
json (~> 2.3)
8181
language_server-protocol (>= 3.17.0)
8282
parallel (~> 1.10)
83-
parser (>= 3.2.2.4)
83+
parser (>= 3.3.0.2)
8484
rainbow (>= 2.2.2, < 4.0)
8585
regexp_parser (>= 1.8, < 3.0)
8686
rexml (>= 3.2.5, < 4.0)
@@ -96,6 +96,8 @@ GEM
9696
rubocop-performance (1.20.2)
9797
rubocop (>= 1.48.1, < 2.0)
9898
rubocop-ast (>= 1.30.0, < 2.0)
99+
rubocop-rake (0.6.0)
100+
rubocop (~> 1.0)
99101
rubocop-rspec (2.26.1)
100102
rubocop (~> 1.40)
101103
rubocop-capybara (~> 2.17)
@@ -108,7 +110,7 @@ GEM
108110
simplecov-html (0.12.3)
109111
simplecov_json_formatter (0.1.4)
110112
unicode-display_width (2.5.0)
111-
zeitwerk (2.6.12)
113+
zeitwerk (2.6.13)
112114

113115
PLATFORMS
114116
x86_64-darwin-19
@@ -124,6 +126,7 @@ DEPENDENCIES
124126
rspec (>= 3.10)
125127
rubocop (~> 1.35)
126128
rubocop-performance (~> 1.14, >= 1.14.3)
129+
rubocop-rake (~> 0.6.0)
127130
rubocop-rspec (~> 2.12, >= 2.12.1)
128131
simplecov (~> 0.22.0)
129132

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Ruby](https://github.com/gangelo/immutable_struct_ex/actions/workflows/ruby.yml/badge.svg)](https://github.com/gangelo/immutable_struct_ex/actions/workflows/ruby.yml)
2-
[![GitHub version](http://badge.fury.io/gh/gangelo%2Fimmutable_struct_ex.svg?refresh=6)](https://badge.fury.io/gh/gangelo%2Fimmutable_struct_ex)
3-
[![Gem Version](https://badge.fury.io/rb/immutable_struct_ex.svg?refresh=6)](https://badge.fury.io/rb/immutable_struct_ex)
2+
[![GitHub version](http://badge.fury.io/gh/gangelo%2Fimmutable_struct_ex.svg?refresh=7)](https://badge.fury.io/gh/gangelo%2Fimmutable_struct_ex)
3+
[![Gem Version](https://badge.fury.io/rb/immutable_struct_ex.svg?refresh=7)](https://badge.fury.io/rb/immutable_struct_ex)
44
[![](http://ruby-gem-downloads-badge.herokuapp.com/immutable_struct_ex?type=total)](http://www.rubydoc.info/gems/immutable_struct_ex/)
55
[![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/immutable_struct_ex/)
66
[![Report Issues](https://img.shields.io/badge/report-issues-red.svg)](https://github.com/gangelo/immutable_struct_ex/issues)

Rakefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# frozen_string_literal: true
22

3-
require 'bundler/gem_tasks'
4-
require 'rspec/core/rake_task'
3+
require "bundler/gem_tasks"
4+
require "rspec/core/rake_task"
55

66
RSpec::Core::RakeTask.new(:spec)
77

8-
task default: :spec
8+
require "rubocop/rake_task"
9+
10+
RuboCop::RakeTask.new
11+
12+
task default: %i[spec rubocop]

immutable_struct_ex.gemspec

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,37 @@ Gem::Specification.new do |spec|
3838
spec.add_development_dependency 'rspec', '>= 3.10'
3939
spec.add_development_dependency 'rubocop', '~> 1.35'
4040
spec.add_development_dependency 'rubocop-performance', '~> 1.14', '>= 1.14.3'
41+
spec.add_development_dependency 'rubocop-rake', '~> 0.6.0'
4142
spec.add_development_dependency 'rubocop-rspec', '~> 2.12', '>= 2.12.1'
4243
spec.add_development_dependency 'simplecov', '~> 0.22.0'
4344
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
45+
spec.post_install_message = <<~POST_INSTALL
46+
Thank you for installing immutable_struct_ex.
47+
48+
View the dsu README.md here: https://github.com/gangelo/immutable_struct_ex
49+
View the dsu CHANGELOG.md: https://github.com/gangelo/immutable_struct_ex/blob/main/CHANGELOG.md
50+
51+
*
52+
***
53+
*******
54+
*********
55+
***********************
56+
*****************
57+
*************
58+
******* *******
59+
***** *****
60+
*** ***
61+
** **
62+
63+
Using immutable_struct_ex? immutable_struct_ex is made available free of charge. Please consider giving this gem a STAR on GitHub as well as sharing it with your fellow developers on social media.
64+
65+
Knowing that immutable_struct_ex is being used and appreciated is a great motivator to continue developing and improving immutable_struct_ex.
66+
67+
>>> Star it on github: https://github.com/gangelo/immutable_struct_ex
68+
>>> Share on social media: https://rubygems.org/gems/immutable_struct_ex
69+
70+
Thank you!
71+
72+
<3 Gene
73+
POST_INSTALL
4474
end

lib/immutable_struct_ex/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module ImmutableStructEx
4-
VERSION = '1.0.8'
4+
VERSION = '1.0.9'
55
end

0 commit comments

Comments
 (0)