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.
- data/bin/henry-ruby-container +1 -1
- data/bin/release.sh +17 -0
- data/henry-container.gemspec +1 -1
- data/lib/henry/container/version.rb +1 -1
- data/lib/henry/container.rb +12 -5
- metadata +2 -1
data/bin/henry-ruby-container
CHANGED
@@ -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 => '
|
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
|
data/henry-container.gemspec
CHANGED
@@ -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 =
|
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"]
|
data/lib/henry/container.rb
CHANGED
@@ -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
|
-
|
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 [
|
127
|
-
def
|
128
|
-
return
|
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.
|
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
|