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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/twig-pick-issue +4 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: faac5debb4e0436664e3771616fdc16111e70f03
4
- data.tar.gz: 46f661eadc6ef56128d755efe5e096246c21ebf6
3
+ metadata.gz: 3a772257dffa3bd743841faf877e72dcb3054e6f
4
+ data.tar.gz: 9b30881763e6ab8b444ccc4cd27b02afb450ed57
5
5
  SHA512:
6
- metadata.gz: 0cd884e0c8ee0ab21106661ba114ae98698393b2ea57fb935cc93390fbee10d35e0989c5ca625dcfff7bd3f7a525c5412ded19e29b1f3595419c6281c82cf2aa
7
- data.tar.gz: 5a6907d53035c2a91f09cb6edb791589aa8a8e1a800471217c4bef8f0a8ae17ba7e927e6af4537f86e5ed3640f5bcb2d374abea21eb15e87cb15e29b9d783aae
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 issue.empty? "Issue #{args[0].to_i} non trovata!"
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|
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.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino