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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47210cf5317cca524e9519a983cc37f6d51f9434
4
- data.tar.gz: a70cf7144148edc5ec91725816af393467c6d24d
3
+ metadata.gz: 889ec3c6c65c2052c4171a48b30b2768094defc6
4
+ data.tar.gz: fce17954a730070afbd210ba3fd6838edacb520b
5
5
  SHA512:
6
- metadata.gz: d8590a06ba8a42afcbf55dc4911797bcda422d4b71f5d9eb78a7f9f5e813f5f1fe1af1a009311d3e32727d0652571d7011de70593fbc9413fc1d5aa20a60e730
7
- data.tar.gz: 9750bb7f4d5d46c13c5667e240b177f617a830173f69f54a5f2779299b45a0b8d09ab57c35233c3571e2f0f8c932581d3c9efabc822c457fb0f5e4b13646b53a
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 Github 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.
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
 
@@ -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):')
@@ -1,3 +1,3 @@
1
1
  module Herodot
2
- VERSION = '0.1.9'.freeze
2
+ VERSION = '0.1.10'.freeze
3
3
  end
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.9
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-08 00:00:00.000000000 Z
11
+ date: 2017-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler