prima-twig 0.3.1 → 0.3.2
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 +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a772257dffa3bd743841faf877e72dcb3054e6f
|
|
4
|
+
data.tar.gz: 9b30881763e6ab8b444ccc4cd27b02afb450ed57
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f0873cf92a9c5be6c9e3cd066e6e59b62200389e120f8522db155bc19045114bad7ba757873ef6147c741015ca9c223b05227fdb6f53d11e94a1b8bcef2249f0
|
|
7
|
+
data.tar.gz: a1a378f3c0d3f145762f9109fcd243e7e97c7f893369f9dd225dc75ca581202ab6a26d962a169be310c84507771cddb9b7beb1618b19fd164cb18a62c8f3cf93
|
data/bin/twig-pick-issue
CHANGED
|
@@ -35,6 +35,8 @@ end
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
class PickIssue
|
|
38
|
+
include Command
|
|
39
|
+
|
|
38
40
|
def initialize
|
|
39
41
|
@prima = Prima.new
|
|
40
42
|
end
|
|
@@ -48,11 +50,12 @@ class PickIssue
|
|
|
48
50
|
issues = @prima.list_issues
|
|
49
51
|
|
|
50
52
|
issue_number = nil
|
|
53
|
+
args = ARGV.dup
|
|
51
54
|
if args[0] && args[0].to_i > 0
|
|
52
55
|
issues.keep_if do |issue|
|
|
53
56
|
issue.number == args[0].to_i
|
|
54
57
|
end
|
|
55
|
-
stop_if
|
|
58
|
+
stop_if issues.empty?, "Issue #{args[0].to_i} non trovata!"
|
|
56
59
|
issue_number = args[0].to_i
|
|
57
60
|
else
|
|
58
61
|
issues.delete_if do |issue|
|