File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
1
# coding: utf-8
2
2
3
- bigdecimal_version = '3.1.0.dev'
4
-
5
3
Gem ::Specification . new do |s |
6
4
s . name = "bigdecimal"
7
- s . version = bigdecimal_version
5
+ s . version = "3.1.0.dev"
8
6
s . authors = [ "Kenta Murata" , "Zachary Scott" , "Shigeo Kobayashi" ]
9
7
s . email = [ "mrkn@mrkn.jp" ]
10
8
Original file line number Diff line number Diff line change 3
3
4
4
def check_bigdecimal_version ( gemspec_path )
5
5
message "checking RUBY_BIGDECIMAL_VERSION... "
6
-
7
- bigdecimal_version =
8
- IO . readlines ( gemspec_path )
9
- . grep ( /\A bigdecimal_version\s +=\s +/ ) [ 0 ] [ /\' ([^\' ]+)\' / , 1 ]
6
+ bigdecimal_version = File . read ( gemspec_path ) . match ( /^\s *s\. version\s +=\s +['"]([^'"]+)['"]\s *$/ ) [ 1 ]
10
7
11
8
version_components = bigdecimal_version . split ( '.' )
12
9
bigdecimal_version = version_components [ 0 , 3 ] . join ( '.' )
You can’t perform that action at this time.
0 commit comments