henry-container 0.1.58 → 0.1.59

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: d820eb7cc8df7229c435ef14cd6459a8f2c8848e
4
- data.tar.gz: 2e8166a51a118947ba06bb6a57a3f1f148addce4
3
+ metadata.gz: d5ad3f441bee3c7035e4b221df5aa545e27e6218
4
+ data.tar.gz: a70b0308bdf6c8abc99c376d6137db67bc1c7d06
5
5
  SHA512:
6
- metadata.gz: 0fcb44539fc4185c98935bad2ac4d9d5f048109035a66077757ecba438fd4b768190c55f6af8055564423cdb3447003de452856af89eb96a97edca75fbf9c5fc
7
- data.tar.gz: e0cafb86e38b5ddcc401b27fb8600a5d09d9f122a6c002842695bdc27c0bcb39ada7c6642d1e3eb7b976f6320e988fcb1aaae4048ecf3c83595d94c6096b7c14
6
+ metadata.gz: 9d48160e14569a828193a3ec9fd94161950937e7c9c0427f35392809dae5008b3e26171e549fbf931735bae6c6acf1ca2c6655f454e211c19222597d2234f980
7
+ data.tar.gz: 634251e6cc34b78ea5fc1f1d53e5343a7952bb22469ceee7ab6d7caa9c29bb6ef7dd89a318a202b771a9a5ffc3a42d4d74e572f6f5cda381177505443167cb93
@@ -3,7 +3,7 @@ module Henry
3
3
  class Container
4
4
 
5
5
  # Current Gem version
6
- VERSION = ENV['gem_version'] || '0.1.58'
6
+ VERSION = ENV['gem_version'] || '0.1.59'
7
7
 
8
8
  end
9
9
 
@@ -117,7 +117,7 @@ LOGO
117
117
  RESULT
118
118
  when :task then
119
119
  puts <<TASK
120
- --- [Task Execution #{data[:index]}/#{data[:total]} ]
120
+ --- [ Task Execution #{data[:index]}/#{data[:total]} ]
121
121
  TASK
122
122
  end
123
123
  end
@@ -68,7 +68,7 @@ module Henry
68
68
  RSpec::Core::RakeTask.new do |t|
69
69
  if self.data.options
70
70
  t.pattern = self.data.options['pattern'] || 'spec/*'
71
- t.rspec_opts = "#{self.custom_options} #{extended_context['options']}"
71
+ t.rspec_opts = "#{self.custom_options(extended_context['options']||{})}"
72
72
  else
73
73
  t.pattern = 'spec/*'
74
74
  t.rspec_opts = "#{self.default_options} #{extended_context['options']}"
@@ -81,10 +81,11 @@ module Henry
81
81
  protected
82
82
 
83
83
  # Returns the custom rspec_opts that user may have passed.
84
+ # @param [Hash] extended_options set of extended options.
84
85
  #
85
86
  # @return [String]
86
- def custom_options
87
- "#{self.format_options} #{self.tags_options} #{self.report_options}"
87
+ def custom_options(extended_options={})
88
+ "#{self.format_options} #{self.tags_options(extended_options)} #{self.report_options}"
88
89
  end
89
90
 
90
91
  # Returns the default rspec_opts.
@@ -93,6 +94,7 @@ module Henry
93
94
  def default_options
94
95
  "--color --format documentation --format documentation --out #{OUT_PATH}"
95
96
  end
97
+
96
98
 
97
99
  # Returns the rspec_opts related with formatting.
98
100
  #
@@ -104,10 +106,10 @@ module Henry
104
106
  # Returns the rspec_opts related with tags to be run.
105
107
  #
106
108
  # @return [String]
107
- def tags_options
108
- return '' if self.data.options['tags'].nil?
109
+ def tags_options(extended_options={})
110
+ return '' if self.data.options['tags'].nil? && extended_options['tags'].nil?
109
111
 
110
- self.data.options['tags'].collect do |tag|
112
+ ((self.data.options['tags']||[])+(extended_options['tags']||[])).collect do |tag|
111
113
  "--tag #{tag}"
112
114
  end.join(' ')
113
115
  end
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.58
4
+ version: 0.1.59
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-10-09 00:00:00.000000000 Z
11
+ date: 2013-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake