henry-container 0.0.60 → 0.0.61
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/henry-container.gemspec +1 -1
- data/lib/henry/container/version.rb +1 -1
- data/lib/henry/task/cucumber_task.rb +5 -2
- data/lib/henry/task/rspec_task.rb +4 -1
- metadata +3 -3
data/Gemfile
CHANGED
data/henry-container.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
|
18
18
|
gem.add_dependency('rake')
|
19
19
|
gem.add_dependency('cucumber')
|
20
|
-
gem.add_dependency('rspec
|
20
|
+
gem.add_dependency('rspec')
|
21
21
|
gem.add_dependency('minitest-reporters')
|
22
22
|
gem.add_dependency('colorize')
|
23
23
|
gem.add_dependency('trollop')
|
@@ -15,6 +15,9 @@ module Henry
|
|
15
15
|
# The reports path template.
|
16
16
|
REPORTS_DIR = '.henry/reports/${FORMAT}'
|
17
17
|
|
18
|
+
# Default time format to be used in the reports filepath.
|
19
|
+
TIME_FORMAT = '%Y-%m-%dT%H%M%S'
|
20
|
+
|
18
21
|
# Executes the CucumberTask and returns its results.
|
19
22
|
def execute
|
20
23
|
begin
|
@@ -90,7 +93,7 @@ module Henry
|
|
90
93
|
return '' if self.data.options['tags'].nil?
|
91
94
|
|
92
95
|
self.data.options['tags'].collect do |tag|
|
93
|
-
"--tags
|
96
|
+
"--tags #{tag.gsub(/(,?~?)(\w+)/, '\1@\2')}"
|
94
97
|
end.join(' ')
|
95
98
|
end
|
96
99
|
|
@@ -140,7 +143,7 @@ module Henry
|
|
140
143
|
# @param [String] file_name the report file name.
|
141
144
|
# @returns [String] the report file name.
|
142
145
|
def report_file_name(file_name)
|
143
|
-
file_name.gsub(/\${[A-Z_]+}/, '${TASK_NAME}' => self.name, '${DATE}' => DateTime.now.
|
146
|
+
file_name.gsub(/\${[A-Z_]+}/, '${TASK_NAME}' => self.name, '${DATE}' => DateTime.now.strftime(TIME_FORMAT)).gsub(' ', '_')
|
144
147
|
end
|
145
148
|
|
146
149
|
# Interpolates and returns the reports directory for the given format.
|
@@ -15,6 +15,9 @@ module Henry
|
|
15
15
|
# The reports path template.
|
16
16
|
REPORTS_DIR = '.henry/reports/${FORMAT}'
|
17
17
|
|
18
|
+
# Default time format to be used in the reports filepath.
|
19
|
+
TIME_FORMAT = '%Y-%m-%dT%H%M%S'
|
20
|
+
|
18
21
|
# Executes the Task and returns its results.
|
19
22
|
def execute
|
20
23
|
begin
|
@@ -114,7 +117,7 @@ module Henry
|
|
114
117
|
# @param [String] file_name the report file name.
|
115
118
|
# @returns [String] the report file name.
|
116
119
|
def report_file_name(file_name)
|
117
|
-
file_name.gsub(/\${[A-Z_]+}/, '${TASK_NAME}' => self.name, '${DATE}' => DateTime.now.
|
120
|
+
file_name.gsub(/\${[A-Z_]+}/, '${TASK_NAME}' => self.name, '${DATE}' => DateTime.now.strftime(TIME_FORMAT)).gsub(' ', '_')
|
118
121
|
end
|
119
122
|
|
120
123
|
# Interpolates and returns the reports directory for the given format.
|
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.61
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
-
name: rspec
|
47
|
+
name: rspec
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|