prima-twig 0.0.20 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/twig-pick-issue +9 -6
- data/lib/prima_twig.rb +9 -0
- 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: 96f36942ca7da51fc17f77aa6cf697a6f2207d89
|
4
|
+
data.tar.gz: ba5075367af7d6966e738114ab58d0c95214ea07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67e188457cccaaf6cc50d64da04eeb7fd71245a36afd8917af614c3413f34950d1783fadb3169a980ff0c0695f892997bd1ac6e03d9f30c2b41370e255805835
|
7
|
+
data.tar.gz: a53e5f13a047c8588477e499a8b324b3799b3304e308901b81a75481769ce285c81ac62340b8f34bb2f2b6ea7745eff176aa85f166cbb95247dbab4b9eb0986b
|
data/bin/twig-pick-issue
CHANGED
@@ -41,7 +41,7 @@ class PickIssue
|
|
41
41
|
def execute!
|
42
42
|
unless @prima.is_clean?
|
43
43
|
puts 'hai dei file non committati...non posso continuare'.red
|
44
|
-
|
44
|
+
exit(1)
|
45
45
|
end
|
46
46
|
|
47
47
|
issues = @prima.gh.list_issues('primait/prima')
|
@@ -54,21 +54,24 @@ class PickIssue
|
|
54
54
|
branch_name << "-#{issue_number}"
|
55
55
|
branch_name = @prima.clean_branch_name branch_name
|
56
56
|
|
57
|
-
|
58
|
-
|
57
|
+
base_branch = 'dev'
|
58
|
+
puts "creo branch con nome #{branch_name} da #{base_branch}"
|
59
|
+
@prima.rugged.branches.create(branch_name, base_branch)
|
59
60
|
@prima.twig.set_branch_property(branch_name, 'issue', issue_number)
|
60
61
|
@prima.rugged.checkout(branch_name)
|
61
62
|
end
|
62
63
|
|
63
64
|
def choose_issue(issues)
|
64
65
|
choose do |menu|
|
65
|
-
|
66
66
|
menu.prompt = 'Pick an issue: '.cyan
|
67
|
+
menu.shell = true
|
67
68
|
|
68
69
|
issues.each do |issue|
|
69
70
|
milestone = issue.milestone
|
70
|
-
|
71
|
-
|
71
|
+
issue_number = "##{issue.number}".green
|
72
|
+
title = @prima.reduce_size(issue.title, 100).light_blue
|
73
|
+
msg = "#{issue_number} - #{title}"
|
74
|
+
msg << " [#{milestone.title}]".blue unless milestone.nil?
|
72
75
|
menu.choice(msg) {issue.number}
|
73
76
|
end
|
74
77
|
end
|
data/lib/prima_twig.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prima-twig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matteo Giachino
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-06-
|
13
|
+
date: 2015-06-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: twig
|