Skip to content

Commit cbecd43

Browse files
committed
Added version guard against the default gem
1 parent 52c15f0 commit cbecd43

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ruby2_keywords.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
version = IO.popen(%W[git -C #{__dir__} describe --tags --match v[0-9]*], &:read)[/\Av?(\d+(?:\.\d+)*)/, 1]
2+
abort "Version must not reach 1" if version[/\d+/].to_i >= 1
23

34
Gem::Specification.new do |s|
45
s.name = "ruby2_keywords"

0 commit comments

Comments
 (0)