herodot 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/herodot/commands.rb +6 -0
- data/lib/herodot/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: 889ec3c6c65c2052c4171a48b30b2768094defc6
|
4
|
+
data.tar.gz: fce17954a730070afbd210ba3fd6838edacb520b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 885dfbdfe82891872825f646e3c3ef6267d90fd8b07d31876afc73f3b5f2a18b0a0c2001686cb86150e934d8c476194b1da42179e62c89c80c53399ac8eaa0c3
|
7
|
+
data.tar.gz: 8cbb20433cc8af7f2fa1361ebb8b05d373fd17cb5a60f6d8a95e59eb87f5453d32e7f4113a2fcbc4c6fd8f6bf78957c2d184a8bf8764bcdc2f4c2402f6b5c02f
|
data/README.md
CHANGED
@@ -58,7 +58,7 @@ To use this feature set up a link with
|
|
58
58
|
|
59
59
|
$ herodot link
|
60
60
|
|
61
|
-
You are then guided through the process of linking. When using JIRA or
|
61
|
+
You are then guided through the process of linking. When using JIRA, Github, or GitLab with tickety-tick, this should be rather self-explaining, but you can also set up a custom tracker if you are using something different. Just choose `other` and add a URL, to which issue numbers can be appended and a Ruby style regular expression, to cut out the issue number out of your branches.
|
62
62
|
|
63
63
|
The result will be written into a `.herodot.yml` file in the current or specified directory.
|
64
64
|
|
data/lib/herodot/commands.rb
CHANGED
@@ -37,6 +37,7 @@ class Herodot::Commands
|
|
37
37
|
menu.prompt = 'What tracker do you want to link to?'
|
38
38
|
menu.choice(:jira) { link_jira(path) }
|
39
39
|
menu.choice(:github) { link_github(path) }
|
40
|
+
menu.choice(:gitlab) { link_gitlab(path) }
|
40
41
|
menu.choices(:other) { link_other(path) }
|
41
42
|
menu.default = :other
|
42
43
|
end
|
@@ -53,6 +54,11 @@ class Herodot::Commands
|
|
53
54
|
Herodot::ProjectLink.link(path, "https://github.com/#{handle}/issues/", '\\d+')
|
54
55
|
end
|
55
56
|
|
57
|
+
def self.link_gitlab(path)
|
58
|
+
handle = ask('GitLab handle (something/something for https://gitlab.com/something/something)?')
|
59
|
+
Herodot::ProjectLink.link(path, "https://gitlab.com/#{handle}/issues/", '\\d+')
|
60
|
+
end
|
61
|
+
|
56
62
|
def self.link_other(path)
|
57
63
|
url = ask('URL to issue tracker:')
|
58
64
|
pattern = ask('Ticket regex pattern (ruby):')
|
data/lib/herodot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: herodot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bitcrowd
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|