trello_flow 3.3.0 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trello_flow/branch.rb +15 -3
- data/lib/trello_flow/cleanup.rb +1 -1
- data/lib/trello_flow/main.rb +1 -1
- data/lib/trello_flow/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: 19a0bf9f2105eb2217b4419e6ccef937dea8a9d5
|
4
|
+
data.tar.gz: c11eabeccf68b1f9a9bd100755f302f8db907f22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf6bef0ee316d24f24ccf785207f59d936500ca0bf63719548efe98489957e49e7380fe27875ba350a3ededea45b01d7a8ddeaef684452808ac249d067415642
|
7
|
+
data.tar.gz: e70cec90f67003397cd3ac86d5d0dc56c9d39625eeeee4d37b333ef635ea9a4185e6e28ac48fdc2465199d6ebd24851cb3f506a66deb8cb881d7d3f3dc2870c4
|
data/lib/trello_flow/branch.rb
CHANGED
@@ -11,8 +11,8 @@ module TrelloFlow
|
|
11
11
|
new Cli.read("git rev-parse --abbrev-ref HEAD")
|
12
12
|
end
|
13
13
|
|
14
|
-
def self.from_card(card)
|
15
|
-
new("#{
|
14
|
+
def self.from_card(user:, card:)
|
15
|
+
new("#{user.initials.downcase}.#{card.to_param}.#{current.target}.#{card.short_link}")
|
16
16
|
end
|
17
17
|
|
18
18
|
def checkout
|
@@ -36,7 +36,11 @@ module TrelloFlow
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def target
|
39
|
-
|
39
|
+
if legacy_naming?
|
40
|
+
name_parts.first
|
41
|
+
else
|
42
|
+
name_parts[-2] || name
|
43
|
+
end
|
40
44
|
end
|
41
45
|
|
42
46
|
private
|
@@ -50,5 +54,13 @@ module TrelloFlow
|
|
50
54
|
def card_short_link
|
51
55
|
name[/\.(\w+)$/, 1]
|
52
56
|
end
|
57
|
+
|
58
|
+
def legacy_naming?
|
59
|
+
name_parts.size == 3
|
60
|
+
end
|
61
|
+
|
62
|
+
def name_parts
|
63
|
+
@_name_parts ||= name.split(".")
|
64
|
+
end
|
53
65
|
end
|
54
66
|
end
|
data/lib/trello_flow/cleanup.rb
CHANGED
data/lib/trello_flow/main.rb
CHANGED
data/lib/trello_flow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trello_flow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Balvig
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|