git-story-workflow 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/git-story-workflow.gemspec +4 -4
- data/lib/git/story/app.rb +1 -16
- data/lib/git/story/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9b121392b31f4acd013e0de7dba5e85468280d89decdc25fce8598dedc32cb5
|
4
|
+
data.tar.gz: 87fe905fec7cfe951cf3295dd8adc571ad394eea76205ac393dbc0d87641afbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44a5e75342705155a8d8cd17be417235dbb33ae5887c239047626beebbe4e85b15f18d12736d8a51f198417beeeab55322e27621936a6d9763d98dfa6f8c6a46
|
7
|
+
data.tar.gz: aacb3eae438b9c999878c708e934f40cf89f70820b2ce87fcf593b94cc7dc405fc39e264e6e27908c773b984bb546405ef57d50a4a57e6571ccd7f30937a02dd
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.7.0
|
data/git-story-workflow.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: git-story-workflow 0.
|
2
|
+
# stub: git-story-workflow 0.7.0 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "git-story-workflow".freeze
|
6
|
-
s.version = "0.
|
6
|
+
s.version = "0.7.0"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|
10
10
|
s.authors = ["Florian Frank".freeze]
|
11
|
-
s.date = "2019-
|
11
|
+
s.date = "2019-04-11"
|
12
12
|
s.description = "Gem abstracting a git workflow\u2026".freeze
|
13
13
|
s.email = "flori@ping.de".freeze
|
14
14
|
s.executables = ["git-story".freeze]
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.homepage = "http://flori.github.com/git-story-workflow".freeze
|
18
18
|
s.licenses = ["Apache-2.0".freeze]
|
19
19
|
s.rdoc_options = ["--title".freeze, "Git-story-workflow".freeze, "--main".freeze, "README.md".freeze]
|
20
|
-
s.rubygems_version = "3.0.
|
20
|
+
s.rubygems_version = "3.0.3".freeze
|
21
21
|
s.summary = "Gem abstracting a git workflow".freeze
|
22
22
|
s.test_files = ["spec/git/story/app_spec.rb".freeze, "spec/spec_helper.rb".freeze]
|
23
23
|
|
data/lib/git/story/app.rb
CHANGED
@@ -112,25 +112,12 @@ class Git::Story::App
|
|
112
112
|
"Getting #{url.inspect} => #{e.class}: #{e}".red
|
113
113
|
end
|
114
114
|
|
115
|
-
command doc: '[BRANCH] display docker build status of branch, -n SECONDS refreshes'
|
116
|
-
def docker_status
|
117
|
-
url = nil
|
118
|
-
watch do
|
119
|
-
auth_token = complex_config.story.semaphore_auth_token
|
120
|
-
project = complex_config.story.semaphore_docker_project
|
121
|
-
url = "https://semaphoreci.com/api/v1/projects/#{project}/docker/status?auth_token=#{auth_token}"
|
122
|
-
Git::Story::SemaphoreResponse.get(url, debug: @debug)
|
123
|
-
end
|
124
|
-
rescue => e
|
125
|
-
"Getting #{url.inspect} => #{e.class}: #{e}".red
|
126
|
-
end
|
127
|
-
|
128
115
|
command doc: '[SERVER] display deploy status of branch, -n SECONDS refreshes'
|
129
116
|
def deploy_status(server = complex_config.story.semaphore_default_server)
|
130
117
|
url = nil
|
131
118
|
watch do
|
132
119
|
auth_token = complex_config.story.semaphore_auth_token
|
133
|
-
project = complex_config.story.
|
120
|
+
project = complex_config.story.semaphore_test_project
|
134
121
|
url = "https://semaphoreci.com/api/v1/projects/#{project}/servers/#{server}?auth_token=#{auth_token}"
|
135
122
|
server = Git::Story::SemaphoreResponse.get(url, debug: @debug)
|
136
123
|
deploys = server.deploys
|
@@ -161,8 +148,6 @@ class Git::Story::App
|
|
161
148
|
[
|
162
149
|
"Test Status".bold,
|
163
150
|
test_status(branch) || 'n/a',
|
164
|
-
"Docker Status".bold,
|
165
|
-
docker_status || 'n/a',
|
166
151
|
"Deploy Status".bold,
|
167
152
|
deploy_status || 'n/a',
|
168
153
|
] * "\n\n"
|
data/lib/git/story/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-story-workflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
191
|
- !ruby/object:Gem::Version
|
192
192
|
version: '0'
|
193
193
|
requirements: []
|
194
|
-
rubygems_version: 3.0.
|
194
|
+
rubygems_version: 3.0.3
|
195
195
|
signing_key:
|
196
196
|
specification_version: 4
|
197
197
|
summary: Gem abstracting a git workflow
|