henry-container 0.1.73 → 0.1.74

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e025a1f057d853efad97921cd4be2401dcc3697
4
- data.tar.gz: 3b10cb9257dba500469ec21dde8ce4e345bd9772
3
+ metadata.gz: e25175bb46a0e8a48d71fb4c3349be99e5b79bee
4
+ data.tar.gz: 66c167f8d5e3366e64dde99a0c6340b6f55e4635
5
5
  SHA512:
6
- metadata.gz: 6874052787081610a39e81b66a7fb26c5ddbd98b580afc88c0739f22ad718707f0760d794002793a2deb6632633a60b4f863bd764e36990561c20ef7e7abb326
7
- data.tar.gz: a3254b84e2d9463b9fe7ec293864b8fdeaf35fe321c8e5faa7a4b2bcae3e2eace2556720a6dade3051b3d6392eaa20a0493656a6ba410affb4af021b3593398a
6
+ metadata.gz: f1ee1ef4c795d5561ec917f07117e29b9455c32e032bfab2b955489c0e668e8cbf69f33a40d1502256f10dea328d71674d9df2e9457babd065dc59617302d25c
7
+ data.tar.gz: 56965c8a9ecc3d09483bbcbd710e7e68f7b74e33e17c6818d6837b07eaa1100e1b0319c42962b1fa8b1383b5c9b9b3779bbb2f96ca31be667e955ab332eb6904
data/bin/release.sh CHANGED
@@ -1,11 +1,5 @@
1
- gem_version=$1
2
-
3
- if [[ $gem_version == "" ]]; then
4
- echo "Explicitar nuemero de versión!"
5
- exit 1
6
- fi
7
-
8
1
  gem build henry-container.gemspec
2
+ gem_version=$(ls | grep henry-container- | awk 'BEGIN {FS = "-"}{print $3}' | awk 'BEGIN {FS = ".gem"}{print $1}')
9
3
  gem push henry-container-${gem_version}.gem
10
4
  gem inabox henry-container-${gem_version}.gem
11
5
 
@@ -19,6 +19,7 @@ Gem::Specification.new do |gem|
19
19
  gem.add_dependency('rake')
20
20
  gem.add_dependency('cucumber')
21
21
  gem.add_dependency('rspec', '~> 2')
22
+ gem.add_dependency('minitest', '~> 4.0')
22
23
  gem.add_dependency('minitest-reporters')
23
24
  gem.add_dependency('colorize')
24
25
  gem.add_dependency('trollop')
@@ -3,7 +3,7 @@ module Henry
3
3
  class Container
4
4
 
5
5
  # Current Gem version
6
- VERSION = ENV['gem_version'] || '0.1.73'
6
+ VERSION = ENV['gem_version'] || '0.1.74'
7
7
 
8
8
  end
9
9
 
@@ -19,25 +19,28 @@ module Henry
19
19
 
20
20
  # Executes the Task and returns its results.
21
21
  def execute
22
- begin
23
- Rake.application[self.application_name].invoke
24
-
25
- self.execution.code = 'OK'
26
- self.execution.message = 'OK'
27
- self.execution.output = File.open(self.out_path, 'r').read
28
- self.execution.log = self.logger.log_as_hash
22
+ begin
23
+ begin
24
+ Rake.application[self.application_name].invoke
25
+
26
+ self.execution.code = 'OK'
27
+ self.execution.message = 'OK'
28
+ self.execution.output = File.open(self.out_path, 'r').read
29
+ self.execution.log = self.logger.log_as_hash
30
+
31
+ rescue Exception => e
32
+ self.execution.code = 'ERROR'
33
+ self.execution.message = e.message
34
+ self.execution.output = File.open(self.out_path, 'r').read
35
+ self.execution.backtrace = e.backtrace
36
+ self.execution.log = self.logger.log_as_hash
37
+ end
29
38
  rescue Errno::ENOENT => e
30
39
  self.execution.code = 'ERROR'
31
40
  self.execution.message = e.message
32
41
  self.execution.output = 'Output file missing, please check the task logs.'
33
42
  self.execution.backtrace = e.backtrace
34
43
  self.execution.log = self.logger.log_as_hash
35
- rescue Exception => e
36
- self.execution.code = 'ERROR'
37
- self.execution.message = e.message
38
- self.execution.output = File.open(self.out_path, 'r').read
39
- self.execution.backtrace = e.backtrace
40
- self.execution.log = self.logger.log_as_hash
41
44
  end
42
45
  end
43
46
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: henry-container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.73
4
+ version: 0.1.74
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Decurnex
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-26 00:00:00.000000000 Z
11
+ date: 2014-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '4.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '4.0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: minitest-reporters
57
71
  requirement: !ruby/object:Gem::Requirement