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 CHANGED
@@ -1,4 +1,4 @@
1
1
  source :gemcutter
2
- source 'http://gems.despegar.it'
2
+ source 'http://crossselling.servers.despegar.it'
3
3
 
4
4
  gemspec
@@ -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-beta')
20
+ gem.add_dependency('rspec')
21
21
  gem.add_dependency('minitest-reporters')
22
22
  gem.add_dependency('colorize')
23
23
  gem.add_dependency('trollop')
@@ -3,7 +3,7 @@ module Henry
3
3
  class Container
4
4
 
5
5
  # Current Gem version
6
- VERSION = '0.0.60'
6
+ VERSION = '0.0.61'
7
7
 
8
8
  end
9
9
 
@@ -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 @#{tag.split(',').join(',@')}"
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.to_s).gsub(' ', '_')
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.to_s).gsub(' ', '_')
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.60
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-10 00:00:00.000000000 Z
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-beta
47
+ name: rspec
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements: