Skip to content

Commit 419eef7

Browse files
committed
🔧 Simplify spec.version
1 parent c39f4e8 commit 419eef7

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ PATH
5151
PATH
5252
remote: ../prism-merge
5353
specs:
54-
prism-merge (1.1.6)
54+
prism-merge (2.0.0)
5555
ast-merge (~> 1.0)
5656
prism (~> 1.6)
5757
version_gem (~> 1.1, >= 1.1.9)
@@ -503,7 +503,7 @@ CHECKSUMS
503503
prawn (2.5.0) sha256=f4e20e3b4f30bf5b9ae37dad15eb421831594553aa930b2391b0fa0a99c43cb6
504504
prettyprint (0.2.0) sha256=2bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193
505505
prism (1.6.0) sha256=bfc0281a81718c4872346bc858dc84abd3a60cae78336c65ad35c8fbff641c6b
506-
prism-merge (1.1.6)
506+
prism-merge (2.0.0)
507507
psych (5.3.0) sha256=8976a41ae29ea38c88356e862629345290347e3bfe27caf654f7c5a920e95eeb
508508
psych-merge (1.0.0)
509509
public_suffix (7.0.0) sha256=f7090b5beb0e56f9f10d79eed4d5fbe551b3b425da65877e075dad47a6a1b095

commonmarker-merge.gemspec

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,9 @@
11
# coding: utf-8
22
# frozen_string_literal: true
33

4-
gem_version =
5-
if RUBY_VERSION >= "3.1" # rubocop:disable Gemspec/RubyVersionGlobalsUsage
6-
# Loading Version into an anonymous module allows version.rb to get code coverage from SimpleCov!
7-
# See: https://github.com/simplecov-ruby/simplecov/issues/557#issuecomment-2630782358
8-
# See: https://github.com/panorama-ed/memo_wise/pull/397
9-
Module.new.tap { |mod| Kernel.load("#{__dir__}/lib/commonmarker/merge/version.rb", mod) }::Commonmarker::Merge::Version::VERSION
10-
else
11-
# NOTE: Use __FILE__ or __dir__ until removal of Ruby 1.x support
12-
# __dir__ introduced in Ruby 1.9.1
13-
# lib = File.expand_path("../lib", __FILE__)
14-
lib = File.expand_path("lib", __dir__)
15-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
16-
require "commonmarker/merge/version"
17-
Commonmarker::Merge::Version::VERSION
18-
end
19-
204
Gem::Specification.new do |spec|
215
spec.name = "commonmarker-merge"
22-
spec.version = gem_version
6+
spec.version = Module.new.tap { |mod| Kernel.load("#{__dir__}/lib/commonmarker/merge/version.rb", mod) }::Commonmarker::Merge::Version::VERSION
237
spec.authors = ["Peter H. Boling"]
248
spec.email = ["floss@galtzo.com"]
259

0 commit comments

Comments
 (0)