Skip to content

Commit

Permalink
Tweak versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
BGMP committed Feb 20, 2022
1 parent e29629f commit edd58c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ task default: %i[package version]

task :package do
zipfile_name = "#{RVATracks::NAME}.zip"
File.delete(zipfile_name) if File.exist?(zipfile_name)

puts "Packaging into #{zipfile_name} ..."

exclude = %w[. .. Gemfile Gemfile.lock Rakefile .git .gitignore .idea data.rb README.md]
Expand Down
7 changes: 5 additions & 2 deletions data.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# frozen_string_literal: true

TIME = Time.now
NOW = Time.now

module RVATracks
NAME = 'rva_tracks'
DESCRIPTION = "Re-Volt America's Tracks Pack"
VERSION = "#{TIME.year.digits[0]}#{TIME.year.digits[1]}.#{TIME.month}#{TIME.day}"
YEAR = "#{NOW.year.digits[0]}#{NOW.year.digits[1]}"
MONTH = NOW.month < 10 ? "0#{NOW.month}" : NOW.month.to_s
DAY = NOW.day < 10 ? "0#{NOW.day}" : NOW.day.to_s
VERSION = "#{YEAR}.#{MONTH}#{DAY}"
URL = 'https://distribute.revolt-america.com/rva/rva_tracks.zip'
end

0 comments on commit edd58c0

Please sign in to comment.