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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/skylight/util/deploy.rb +11 -2
- data/lib/skylight/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 105d68740021ca155e6ec59ee20f1ec1ff573adf
|
4
|
+
data.tar.gz: 8a22e7652fdbd11ccce601c0a01bb4fbfce04b5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f02ebef671a0bd6659f6a676dee1d575ff0eb1127b2b5abeadfbadf8afedf1dcb0d1c44d94aff4c7b3f916d3c8768cfb9f00efea5d9b6c8f23624036448cf76
|
7
|
+
data.tar.gz: 87f36f9d25661fb9f4c686256a331ccad82476c1a65e1b885046bd05bc512826ff2b2ab31fee240306bfb9debad08b45d05383205137f13deda11c5d8fd8a640
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
data/lib/skylight/util/deploy.rb
CHANGED
@@ -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
|
data/lib/skylight/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|