MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / write_version

Method write_version

rake_tasks/common.rb:52–55  ·  view source on GitHub ↗
(binding, new_version)

Source from the content-addressed store, hash-verified

50 end
51
52 def self.write_version(binding, new_version)
53 text = File.read(VERSION_FILE).sub(/^(\s*"#{binding}": ")[^"]+(")/, "\\1#{new_version}\\2")
54 File.write(VERSION_FILE, text)
55 end
56
57 def self.updated_version(current, desired = nil, nightly = nil)
58 if !desired.nil? && desired != 'nightly'

Callers

nothing calls this directly

Calls 2

readMethod · 0.65
writeMethod · 0.45

Tested by

no test coverage detected