skylight 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e263d7e1080db2243929478e4ab47e57cdb84c23
4
- data.tar.gz: d9c7c72fceb7d13d119c348a3140f4272d5a1268
3
+ metadata.gz: 105d68740021ca155e6ec59ee20f1ec1ff573adf
4
+ data.tar.gz: 8a22e7652fdbd11ccce601c0a01bb4fbfce04b5f
5
5
  SHA512:
6
- metadata.gz: 38c23124462a1d155c896444ddf373eeb9746e9fa7842ffdbc4cc2925b35c10339cc9e1577ca2ddf52303ed95f3c671cb672fb055323a03fd576b12a643468c0
7
- data.tar.gz: 1e3a43b629cccec1d191d5ecf561ea55907fc0a6908fba66d5f4798d3c97d2bebc4aba0f6bcb7118fcb77ba4fbeb4d772258f9ba12a15689b1943c3a040c6530
6
+ metadata.gz: 0f02ebef671a0bd6659f6a676dee1d575ff0eb1127b2b5abeadfbadf8afedf1dcb0d1c44d94aff4c7b3f916d3c8768cfb9f00efea5d9b6c8f23624036448cf76
7
+ data.tar.gz: 87f36f9d25661fb9f4c686256a331ccad82476c1a65e1b885046bd05bc512826ff2b2ab31fee240306bfb9debad08b45d05383205137f13deda11c5d8fd8a640
@@ -1,3 +1,7 @@
1
+ ## 1.4.2 (October 11, 2017)
2
+
3
+ * [BUGFIX] For experimental deploy tracking support, resolve an error that occurred if the Git SHA and description were not set.
4
+
1
5
  ## 1.4.1 (October 10, 2017)
2
6
 
3
7
  * [BUGFIX] Fix an issue that would prevent the daemon from starting up on FreeBSD.
@@ -1,5 +1,6 @@
1
1
  require 'json'
2
2
  require 'uri'
3
+ require 'skylight/util/logging'
3
4
 
4
5
  module Skylight
5
6
  module Util
@@ -40,13 +41,21 @@ module Skylight
40
41
  URI.encode_www_form(
41
42
  timestamp: timestamp,
42
43
  deploy_id: id.to_s[0..100], # Keep this sane
43
- git_sha: git_sha[0..40], # A valid SHA will never exceed 40
44
- description: description[0..255]) # Avoid massive descriptions
44
+ git_sha: git_sha ? git_sha[0..40] : nil, # A valid SHA will never exceed 40
45
+ description: description ? description[0..255] : nil) # Avoid massive descriptions
45
46
  end
46
47
 
47
48
  end
48
49
 
49
50
  class DefaultDeploy < EmptyDeploy
51
+ include Logging
52
+
53
+ def initialize(*)
54
+ super
55
+ if description && !id
56
+ warn "The configured deploy will be ignored as an id or git_sha must be provided."
57
+ end
58
+ end
50
59
 
51
60
  def id
52
61
  config.get(:'deploy.id') || git_sha
@@ -1,4 +1,4 @@
1
1
  module Skylight
2
- VERSION = '1.4.1'
2
+ VERSION = '1.4.2'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skylight
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tilde, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-10 00:00:00.000000000 Z
11
+ date: 2017-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport