Skip to content

Commit b741245

Browse files
committed
🎨 Upgrade dev dependencies
- Improve documentation
1 parent 5c6122b commit b741245

File tree

8 files changed

+13
-7
lines changed

8 files changed

+13
-7
lines changed

Gemfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ platform :mri do
2727

2828
# Dev Console - Binding.pry - Irb replacement
2929
gem "pry", "~> 0.14" # ruby >= 2.0
30-
31-
gem "reek", "~> 6.4"
3230
end
3331

3432
# Security Audit

Gemfile.lock

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ GEM
123123
rspec-expectations (3.13.4)
124124
diff-lcs (>= 1.2.0, < 2.0)
125125
rspec-support (~> 3.13.0)
126-
rspec-mocks (3.13.3)
126+
rspec-mocks (3.13.4)
127127
diff-lcs (>= 1.2.0, < 2.0)
128128
rspec-support (~> 3.13.0)
129129
rspec-support (3.13.3)
130-
rubocop (1.75.4)
130+
rubocop (1.75.5)
131131
json (~> 2.3)
132132
language_server-protocol (~> 3.17.0.2)
133133
lint_roller (~> 1.1.0)
@@ -252,10 +252,11 @@ DEPENDENCIES
252252
reek (~> 6.4)
253253
rspec (~> 3.13)
254254
rspec-block_is_expected (~> 1.0)
255+
rubocop (~> 1.73, >= 1.73.2)
255256
rubocop-lts (~> 8.1, >= 8.1.1)
256257
rubocop-packaging (~> 0.5, >= 0.5.2)
257258
rubocop-rspec (~> 3.2)
258-
standard (>= 1.35.1, != 1.42.0, != 1.41.1)
259+
standard (~> 1.47)
259260
stone_checksums (~> 1.0)
260261
version_gem!
261262
yard (~> 0.9, >= 0.9.37)

gemfiles/modular/style.gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
# We run rubocop on the latest version of Ruby,
44
# but in support of the oldest supported version of Ruby
55

6+
gem "reek", "~> 6.4"
7+
gem "rubocop", "~> 1.73", ">= 1.73.2"
68
gem "rubocop-lts", "~> 8.1", ">= 8.1.1" # Linting for Ruby >= 2.2
79
gem "rubocop-packaging", "~> 0.5", ">= 0.5.2"
810
gem "rubocop-rspec", "~> 3.2"
9-
gem "standard", ">= 1.35.1", "!= 1.41.1", "!= 1.42.0"
11+
gem "standard", "~> 1.47"
1012

1113
# Std Lib extractions
1214
gem "benchmark", "~> 0.4" # Removed from Std Lib in Ruby 3.5

lib/version_gem/epoch.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def extended(base)
1818
end
1919
end
2020

21+
# Tweak the basic API so it will support Epoch Semantic Versioning
2122
module OverloadApiForEpoch
2223
# *** OVERLOAD METHODS FROM API ***
2324
#

lib/version_gem/error.rb

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

33
module VersionGem
4+
# Errors raised by VersionGem will be of this class
45
class Error < RuntimeError; end
56
end

lib/version_gem/rspec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
end
6060
end
6161

62+
# This one is more Epoch ;)
6263
RSpec.shared_examples_for("an Epoch Version module") do |version_mod|
6364
it "is introspectable" do
6465
aggregate_failures "introspectable api" do

lib/version_gem/ruby.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ module VersionGem
55
module Ruby
66
RUBY_VER = ::Gem::Version.new(RUBY_VERSION)
77

8+
# Check if the current Ruby version is greater than or equal to the given version
89
def gte_minimum_version?(version, engine = "ruby")
910
RUBY_VER >= ::Gem::Version.new(version) && ::RUBY_ENGINE == engine
1011
end
1112
module_function :gte_minimum_version?
1213

14+
# Check if the current Ruby version (MAJOR.MINOR) is equal to the given version
1315
def actual_minor_version?(major, minor, engine = "ruby")
1416
major.to_i == RUBY_VER.segments[0] &&
1517
minor.to_i == RUBY_VER.segments[1] &&

version_gem.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Gem::Specification.new do |spec|
4747

4848
spec.files = Dir[
4949
# Files (alphabetical)
50-
"lib/**/*"
50+
"lib/**/*",
5151
]
5252
# Automatically included with gem package, no need to list again in files.
5353
spec.extra_rdoc_files = Dir[

0 commit comments

Comments
 (0)