We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37ff0d8 commit 74b34c6Copy full SHA for 74b34c6
Rakefile
@@ -255,15 +255,15 @@ def check_gem_list_existence(version)
255
end
256
257
def check_version(version)
258
- if !(version =~ /\d\.\d\.\d/)
+ if !(version =~ /(\d).(\d).(\d)(.rc(\d))?/)
259
raise "Must specify a valid version (e.g., x.y.z)"
260
261
262
263
def current_version
264
f = File.open("lib/mongo/version.rb")
265
str = f.read
266
- str =~ /VERSION\s+=\s+([.\d"]+)$/
+ str =~ /VERSION\s+=\s+([.\drc"]+)$/
267
return $1
268
269
0 commit comments