ptlog 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,10 +4,10 @@ Capistrano::Configuration.instance(:must_exist).load do
4
4
  namespace :ptlog do
5
5
  desc "Generates changelog"
6
6
  task :changes do
7
- # put PTLog::ChangeLog.generate.to_html, "#{release_path}/public/changelog.html"
7
+ raise 'not implemented yet'
8
8
  end
9
9
 
10
- desc "Generates release file. RESTART=(true|false) option could be specified (by default is false)"
10
+ desc "Generates release file. RESTART=(true|false) option could be specified (by default is true)"
11
11
  task :release do
12
12
  put PTLog::Release.generate, "#{release_path}/version.json"
13
13
  end
data/lib/ptlog/release.rb CHANGED
@@ -3,7 +3,11 @@ require 'git'
3
3
  module PTLog
4
4
  class Release
5
5
  def self.generate
6
- JSON.dump({ :restart => ( ENV['RESTART'] || false ), :version => (`git describe --always`).strip })
6
+ JSON.dump({
7
+ restart: ( ENV.fetch('RESTART', 'true') == 'true' ),
8
+ version: (`git describe --always`).strip,
9
+ ts: Time.now.to_i
10
+ })
7
11
  end
8
12
  end
9
13
  end
data/lib/ptlog/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module PTLog
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ptlog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: