henry-container 0.1.55 → 0.1.56

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: 8ed5f635ba7153a1c77e24cbb61ff82de1fe2d81
4
- data.tar.gz: 662b4be26b6733ed791ee65430f1e57880e63673
3
+ metadata.gz: 34257245024380b753b29c0e637c561b7bf82b86
4
+ data.tar.gz: 8eb7aaa1f953d0e7439d20a02108eb4d302bb33a
5
5
  SHA512:
6
- metadata.gz: 8021e81b4615c7a179792c75cb9de8e7f002e65af7e24adcabf97f96be66f5242867a61a056613a2bf0e5efed835fdddc55d75b958fa80743a7d7e6864c4fd50
7
- data.tar.gz: 1b491467ae8cd2cb7986288690ae9cd3a6be6d3934b43ff89916b11774356b47be84e8f104520278911520bc1528abd1dfdacf08395c406c1c3bc611b3070308
6
+ metadata.gz: 5c17cf24b9718cd13217612794fd0069741ed58bcc4c0877f15aae53da2c8993ee265b3a8429c26840d8045393e3d646f088c76f57ad94580a91de94c50c997e
7
+ data.tar.gz: a9078715270cc8dacf6c31026015cd7bbc11e718f09b1f60962e5f0477c5c4e31c964394783037de439d842352d5383bb76bb668a62afd2f0014f4ea74c15bac
@@ -3,7 +3,7 @@ module Henry
3
3
  class Container
4
4
 
5
5
  # Current Gem version
6
- VERSION = ENV['gem_version'] || '0.1.55'
6
+ VERSION = ENV['gem_version'] || '0.1.56'
7
7
 
8
8
  end
9
9
 
@@ -75,9 +75,9 @@ module Henry
75
75
  Rake.application.clear
76
76
  Cucumber::Rake::Task.new do |t|
77
77
  if self.data.options
78
- t.cucumber_opts = "#{self.custom_options} #{extended_context['options']}"
78
+ t.cucumber_opts = self.custom_options(extended_context['options'])
79
79
  else
80
- t.cucumber_opts = "#{self.default_options()} #{extended_context['options']}"
80
+ t.cucumber_opts = self.default_options()
81
81
  end
82
82
  end
83
83
 
@@ -86,9 +86,10 @@ module Henry
86
86
 
87
87
  # Returns the custom cucumber_opts that user may have passed.
88
88
  #
89
+ # @param [Hash] extended_options set of extended options.
89
90
  # @return [String]
90
- def custom_options
91
- "#{self.format_options} #{self.tags_options} #{self.report_options} #{self.rerun_options} #{self.misc_options}"
91
+ def custom_options(extended_options={})
92
+ "#{self.format_options} #{self.tags_options(extended_options)} #{self.report_options} #{self.rerun_options} #{self.misc_options}"
92
93
  end
93
94
 
94
95
  # Returns the miscellaneous cucumber_opts.
@@ -114,11 +115,12 @@ module Henry
114
115
 
115
116
  # Returns the cucumber_opts related with tags to be run.
116
117
  #
118
+ #
117
119
  # @return [String]
118
- def tags_options
119
- return '' if self.data.options['tags'].nil?
120
+ def tags_options(extended_options={})
121
+ return '' if self.data.options['tags'].nil? && extended_options['tags'].nil?
120
122
 
121
- self.data.options['tags'].collect do |tag|
123
+ ((self.data.options['tags']||[])+(extended_options['tags']||[])).collect do |tag|
122
124
  "--tags #{tag.gsub(/(,?~?)(\w+)/, '\1@\2')}"
123
125
  end.join(' ')
124
126
  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.1.55
4
+ version: 0.1.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Decurnex