henry-container 0.0.50 → 0.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ module Henry
3
3
  class Container
4
4
 
5
5
  # Current Gem version
6
- VERSION = '0.0.50'
6
+ VERSION = '0.0.51'
7
7
 
8
8
  end
9
9
 
@@ -1,4 +1,5 @@
1
1
  require 'drb/drb'
2
+ require 'json'
2
3
 
3
4
  require 'henry/input'
4
5
  require 'henry/logger'
@@ -58,7 +58,7 @@ module Henry
58
58
  #
59
59
  # @return [String]
60
60
  def custom_options
61
- "#{self.format_options} #{self.report_options}"
61
+ "#{self.format_options} #{self.tags_options} #{self.report_options}"
62
62
  end
63
63
 
64
64
  # Returns the default rspec_opts.
@@ -74,6 +74,17 @@ module Henry
74
74
  def format_options
75
75
  "--format #{self.data.options['format'] || 'documentation'} --out #{OUT_PATH}"
76
76
  end
77
+
78
+ # Returns the rspec_opts related with tags to be run.
79
+ #
80
+ # @return [String]
81
+ def tags_options
82
+ return '' if self.data.options['tags'].nil?
83
+
84
+ self.data.options['tags'].collect do |tag|
85
+ "--tag #{tag}"
86
+ end.join(' ')
87
+ end
77
88
 
78
89
  # Returns the rspec_opts related with report paaths and formats.
79
90
  #
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.50
4
+ version: 0.0.51
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-08-27 00:00:00.000000000 Z
12
+ date: 2012-08-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake