git-story-workflow 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/VERSION +1 -1
- data/git-story-workflow.gemspec +4 -4
- data/lib/git/story/app.rb +27 -3
- data/lib/git/story/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0d96db4c44d5cd4fb385b923527dd7bf329d69d7
|
4
|
+
data.tar.gz: 4163367466affb792ba91078165b14a96e7d2511
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d71654977096c90b5b5dd88967c5f412f256d6fca9a68714984789aaaf509b5e38b2925e4b658a323b4aad5dc10feb43ce927942330486c14d0c808017f87ad0
|
7
|
+
data.tar.gz: c2a5cac775742ba5f70c1ff0b379c3a0d9cd9f51dc5045686dee4534d9c4ab1071e0e331fd7f2b52d48030f0441c06ab433f8bde94f5995941e5163b74572b58
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.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.3.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.3.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 = "
|
11
|
+
s.date = "2018-01-03"
|
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 = "2.
|
20
|
+
s.rubygems_version = "2.6.14".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
@@ -137,15 +137,26 @@ class Git::Story::App
|
|
137
137
|
else
|
138
138
|
cs.yellow
|
139
139
|
end
|
140
|
+
color_type =
|
141
|
+
case t = story.story_type
|
142
|
+
when 'bug'
|
143
|
+
t.red.bold
|
144
|
+
when 'feature'
|
145
|
+
t.yellow.bold
|
146
|
+
when 'chore'
|
147
|
+
t.white.bold
|
148
|
+
else
|
149
|
+
t
|
150
|
+
end
|
140
151
|
<<~end
|
141
|
-
Id: #{story.id}
|
152
|
+
Id: #{(?# + story.id.to_s).green}
|
142
153
|
Name: #{story.name.inspect.bold}
|
143
|
-
Type: #{
|
154
|
+
Type: #{color_type}
|
144
155
|
Estimate: #{story.estimate.to_s.yellow.bold}
|
145
156
|
State: #{color_state}
|
146
157
|
Branch: #{current_branch_checked?&.color('#ff5f00')}
|
158
|
+
Labels: #{story.labels.map(&:name).join(' ').on_color(91)}
|
147
159
|
Pivotal: #{story.url}
|
148
|
-
Labels: #{story.labels.map(&:name) * ?,}
|
149
160
|
Github: #{github_url(current_branch_checked?)}
|
150
161
|
end
|
151
162
|
end
|
@@ -258,6 +269,19 @@ class Git::Story::App
|
|
258
269
|
rescue Interrupt
|
259
270
|
end
|
260
271
|
|
272
|
+
command doc: '[BRANCH] open branch on github'
|
273
|
+
def github(branch = current(check: false))
|
274
|
+
system "open #{github_url(branch).inspect}"
|
275
|
+
end
|
276
|
+
|
277
|
+
command doc: '[BRANCH] open branch on github'
|
278
|
+
def pivotal(branch = current(check: true))
|
279
|
+
if story_id = branch&.[](/_(\d+)\z/, 1)&.to_i
|
280
|
+
story_url = fetch_story(story_id)&.url
|
281
|
+
system "open #{story_url}"
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
261
285
|
private
|
262
286
|
|
263
287
|
def normalize_name(name, max_size: nil)
|
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.3.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:
|
11
|
+
date: 2018-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
180
|
rubyforge_project:
|
181
|
-
rubygems_version: 2.
|
181
|
+
rubygems_version: 2.6.14
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Gem abstracting a git workflow
|