dpl-pages 1.9.1.travis.2711.5 → 1.9.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.
- checksums.yaml +5 -5
- data/lib/dpl/provider/pages.rb +4 -4
- metadata +9 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: d19ad254c97abef0d8d9ceca49ec416667b44aea
|
|
4
|
+
data.tar.gz: b597de82b4db5604fe2866558b183a7d5b99c4c1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1cfdeccea317aa55d56709682698156ee01f96cb1b70975a70f44f4bb8287873cad99400f603a135163f1d9887996fbd5049077ae94861329e1acd52a7d61e8b
|
|
7
|
+
data.tar.gz: 180901f2ee33e8533c37630b36d4cdb217c21ddb0577d9b49d2eea381cf60eb5eb07f2262a00311f65a1dd54d8942aab75b27f8f60cae4e8fe67c91572856fea
|
data/lib/dpl/provider/pages.rb
CHANGED
|
@@ -95,7 +95,7 @@ module DPL
|
|
|
95
95
|
|
|
96
96
|
return @api if @api
|
|
97
97
|
|
|
98
|
-
api_opts = { :access_token =>
|
|
98
|
+
api_opts = { :access_token => gh_token }
|
|
99
99
|
api_opts[:api_endpoint] = @gh_url == 'github.com' ? "https://api.github.com/" : "https://#{@gh_url}/api/v3/"
|
|
100
100
|
|
|
101
101
|
@api = Octokit::Client.new(api_opts)
|
|
@@ -136,7 +136,7 @@ module DPL
|
|
|
136
136
|
end
|
|
137
137
|
|
|
138
138
|
print_step "Trying to clone a single branch #{@target_branch} from existing repo..."
|
|
139
|
-
unless context.shell "git clone --quiet --branch='#{@target_branch}' --depth=1 '#{
|
|
139
|
+
unless context.shell "git clone --quiet --branch='#{@target_branch}' --depth=1 '#{gh_remote_url}' '#{target_dir}' > /dev/null 2>&1"
|
|
140
140
|
# if such branch doesn't exist at remote, init it from scratch
|
|
141
141
|
print_step "Cloning #{@target_branch} branch failed"
|
|
142
142
|
Dir.mkdir(target_dir) # Restore dir destroyed by failed `git clone`
|
|
@@ -155,7 +155,7 @@ module DPL
|
|
|
155
155
|
end
|
|
156
156
|
|
|
157
157
|
def identify_preferred_committer
|
|
158
|
-
if @committer_from_gh and
|
|
158
|
+
if @committer_from_gh and gh_token
|
|
159
159
|
return (user.name or @gh_name), (user.email or @gh_email)
|
|
160
160
|
end
|
|
161
161
|
return @gh_name, @gh_email
|
|
@@ -180,7 +180,7 @@ module DPL
|
|
|
180
180
|
|
|
181
181
|
def github_deploy
|
|
182
182
|
print_step "Doing the git push (workdir: #{Dir.pwd})..."
|
|
183
|
-
unless context.shell "git push#{@git_push_opts} --quiet '#{
|
|
183
|
+
unless context.shell "git push#{@git_push_opts} --quiet '#{gh_remote_url}' '#{@target_branch}':'#{@target_branch}' > /dev/null 2>&1"
|
|
184
184
|
error "Couldn't push the build to #{@gh_ref}:#{@target_branch}"
|
|
185
185
|
end
|
|
186
186
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dpl-pages
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.1
|
|
4
|
+
version: 1.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Konstantin Haase
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-03-
|
|
11
|
+
date: 2018-03-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dpl
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.9.1
|
|
19
|
+
version: 1.9.1
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - '='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 1.9.1
|
|
26
|
+
version: 1.9.1
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: octokit
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -160,13 +160,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
160
160
|
version: '2.2'
|
|
161
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
requirements:
|
|
163
|
-
- - "
|
|
163
|
+
- - ">="
|
|
164
164
|
- !ruby/object:Gem::Version
|
|
165
|
-
version:
|
|
165
|
+
version: '0'
|
|
166
166
|
requirements: []
|
|
167
167
|
rubyforge_project:
|
|
168
|
-
rubygems_version: 2.
|
|
168
|
+
rubygems_version: 2.6.13
|
|
169
169
|
signing_key:
|
|
170
170
|
specification_version: 4
|
|
171
171
|
summary: deploy tool
|
|
172
|
-
test_files:
|
|
172
|
+
test_files:
|
|
173
|
+
- spec/provider/pages_spec.rb
|