henry-container 0.0.37 → 0.0.38

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ BANNER
21
21
  opt :"out-dir", "Custom dir path where the results will be written", :default => '.'
22
22
  opt :in, "Custom name for the input file.", :default => 'in.henry'
23
23
  opt :"in-dir", "Custom dir path where the input will be read from.", :default => '.'
24
- opt :hints, "Custom name for the task hints (tasks to be executed) file.", :default => 'task.hints'
24
+ opt :hints, "Custom name for the task hints (tasks to be executed) file.", :default => 'hints.henry'
25
25
  opt :"hints-dir", "Custom dir path where the task hints (tasks to be executed) will be read from.", :default => '.'
26
26
  end
27
27
 
data/bin/release.sh ADDED
@@ -0,0 +1,17 @@
1
+ gem_version=$1
2
+
3
+ if [[ $gem_version == "" ]]; then
4
+ echo "Explicitar nuemero de versión!"
5
+ exit 1
6
+ fi
7
+
8
+ gem build henry-container.gemspec
9
+ gem push henry-container-${gem_version}.gem
10
+ gem inabox henry-container-${gem_version}.gem
11
+
12
+ rm henry-container-${gem_version}.gem
13
+
14
+ git pull origin develop
15
+ git push origin develop
16
+ git tag -a -m "henry-container-${gem_version}" henry-container-${gem_version}
17
+ git push --tags
@@ -9,7 +9,7 @@ Gem::Specification.new do |gem|
9
9
  gem.homepage = "http://henry.despegar.it"
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
12
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
12
+ gem.executables = ['henry-ruby-container']
13
13
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
14
  gem.name = "henry-container"
15
15
  gem.require_paths = ["lib"]
@@ -3,7 +3,7 @@ module Henry
3
3
  class Container
4
4
 
5
5
  # Current Gem version
6
- VERSION = '0.0.37'
6
+ VERSION = '0.0.38'
7
7
 
8
8
  end
9
9
 
@@ -116,16 +116,23 @@ module Henry
116
116
 
117
117
  # Returns de task hints (tasks to be executed) or an empty array if they are not defined.
118
118
  #
119
- # @return [<String>] the task hints
119
+ # @return [<String>] the task hints.
120
120
  def task_hints
121
- @task_hints ||= self.load_task_hints
121
+ self.hints["tasks"] || []
122
+ end
123
+
124
+ # Returns de hints or an empty Hash if they are not defined.
125
+ #
126
+ # @return [Hash] the hints.
127
+ def hints
128
+ @hints ||= self.load_hints
122
129
  end
123
130
 
124
131
  # Loads and parses the @opts[:hints] params, if they exists.
125
132
  #
126
- # @return [<String>] the execution params.
127
- def load_task_hints
128
- return [] unless File.exists?(self.hints_file_path)
133
+ # @return [Hash] the hints:w
134
+ def load_hints
135
+ return {} unless File.exists?(self.hints_file_path)
129
136
 
130
137
  JSON.parse(File.read(self.hints_file_path))
131
138
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: henry-container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.37
4
+ version: 0.0.38
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -120,6 +120,7 @@ files:
120
120
  - Gemfile
121
121
  - Rakefile
122
122
  - bin/henry-ruby-container
123
+ - bin/release.sh
123
124
  - henry-container.gemspec
124
125
  - henry-context.yml.sample
125
126
  - in.henry.sample