prima-twig 0.30.6 → 0.30.7

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/twig-feature +1 -1
  3. data/lib/command.rb +4 -3
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 486ce560eaf180f7209a21bc68a09a87959c8f1b
4
- data.tar.gz: 47e8c9ed3b1242cda684cb51f54cfbbb32360edc
3
+ metadata.gz: e6266b5299a6a98370521a273ed5e601ebd4916c
4
+ data.tar.gz: cbe4dd29c95767751d72ac1fe7eebe407a0bd648
5
5
  SHA512:
6
- metadata.gz: 2912b557b92d990893fad72c705f0257d0dfa325e1d3838beeca1ff9d5d9a1bafb07e0b3cee7eff903b018edbc69d6694b3fc10e77743a2437d9f0c502aaef92
7
- data.tar.gz: b20fadc501f9a107ccfd357e9e0efce02433e50b731daa04beabd7ce6ecc91f7d3c538be5a64f56c8508f4320936186c0e314b0888c3fbb79f15a7605abd6dab
6
+ metadata.gz: 3cceab7eef63b46a5349803d5b1d3c6dc413d5f644aaebed028781a312af13d400a7345a516fa7e2d37c498b03edf00aa0149dfdaafb0895ba624ef7c56dd748
7
+ data.tar.gz: 5e13f7cf662f1ccb1d4a92825c4453bb6171973b583f33a711949cfe137ae5e8146dfba26d3c7ea32372a2e99e385a523207951117d33b3c44c0bc4d032a8ff8
data/bin/twig-feature CHANGED
@@ -16,7 +16,7 @@ class Release
16
16
  def initialize
17
17
  @prima = Prima.new
18
18
  output 'Controllo se ci sono aggiornamenti da fare...'
19
- stop_unless `gem outdated`.lines.grep(/^prima-twig \(.*\)/).empty?, 'Devi aggiornare la gemma prima-twig!'.red
19
+ stop_unless `gem outdated`.lines.grep(/^prima-twig \(.*\)/).empty?, 'Gemma prima-twig aggiornata, lancia nuovamente il comando'.red, 'gem update prima-twig'
20
20
  @cf = Aws::CloudFormation::Client.new
21
21
  @alb = Aws::ElasticLoadBalancingV2::Client.new
22
22
  @ec2 = Aws::EC2::Client.new
data/lib/command.rb CHANGED
@@ -18,7 +18,7 @@ module Command
18
18
  puts 'twig binaries > '.black + msg
19
19
  end
20
20
 
21
- def stop_if(check, msg)
21
+ def stop_if(check, msg, command = 'echo > /dev/null')
22
22
  if check
23
23
  output_msg =
24
24
  case msg
@@ -29,6 +29,7 @@ module Command
29
29
  else
30
30
  msg
31
31
  end
32
+ system command
32
33
  puts 'there was a problem > '.red + output_msg
33
34
  exit(1)
34
35
  end
@@ -57,8 +58,8 @@ module Command
57
58
  end
58
59
  end
59
60
 
60
- def stop_unless(check, msg)
61
- stop_if !check, msg
61
+ def stop_unless(check, msg, command = 'echo > /dev/null')
62
+ stop_if !check, msg, command
62
63
  end
63
64
 
64
65
  # executes command and returns properly colored output
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.30.6
4
+ version: 0.30.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino
@@ -131,14 +131,14 @@ dependencies:
131
131
  name: rubyflare
132
132
  requirement: !ruby/object:Gem::Requirement
133
133
  requirements:
134
- - - ">="
134
+ - - "~>"
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  type: :runtime
138
138
  prerelease: false
139
139
  version_requirements: !ruby/object:Gem::Requirement
140
140
  requirements:
141
- - - ">="
141
+ - - "~>"
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  - !ruby/object:Gem::Dependency