File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ namespace :vox do
1111 puts "Setting version to #{ version } "
1212
1313 data = File . read ( 'lib/facter/version.rb' )
14- new_data = data . sub ( /VERSION = '\d +\. \d +\. \d +'/ , "VERSION = '#{ version } '" )
15- raise 'Failed to update version in lib/facter/version.rb' if data == new_data
14+ new_data = data . sub ( /VERSION = '\d +\. \d +\. \d +( \. rc \d +)? '/ , "VERSION = '#{ version } '" )
15+ warn 'Failed to update version in lib/facter/version.rb' if data == new_data
1616
1717 File . write ( 'lib/facter/version.rb' , new_data )
1818
1919 data = File . read ( 'openfact.gemspec' )
20- new_data = data . sub ( /(spec.version *=) '\d +\. \d +\. \d +'/ , "\\ 1 '#{ version } '" )
21- raise 'Failed to update version in openfact.gemspec' if data == new_data
20+ new_data = data . sub ( /(spec.version *=) '\d +\. \d +\. \d +( \. rc \d +)? '/ , "\\ 1 '#{ version } '" )
21+ warn 'Failed to update version in openfact.gemspec' if data == new_data
2222
2323 File . write ( 'openfact.gemspec' , new_data )
2424 end
You can’t perform that action at this time.
0 commit comments