Sha256: bbb82a832ea2acee0dd7c6905fd5f243fc44a28b08bb36a907511643895d6713
Contents?: true
Size: 506 Bytes
Versions: 4
Compression:
Stored size: 506 Bytes
Contents
# Use `fast .version_up` to rewrite the version file Fast.shortcut :version_up do rewrite_file('(casgn nil VERSION (str _)', 'lib/timescaledb/version.rb') do |node| target = node.children.last.loc.expression pieces = target.source.split('.').map(&:to_i) pieces.reverse.each_with_index do |fragment, i| if fragment < 9 pieces[-(i + 1)] = fragment + 1 break else pieces[-(i + 1)] = 0 end end replace(target, "'#{pieces.join('.')}'") end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
timescaledb-0.2.6 | Fastfile |
timescaledb-0.2.5 | Fastfile |
timescaledb-0.2.4 | Fastfile |
timescaledb-0.2.3 | Fastfile |