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 +4 -4
- data/lib/henry/container/version.rb +1 -1
- data/lib/henry/container.rb +1 -1
- data/lib/henry/task/rspec_task.rb +8 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5ad3f441bee3c7035e4b221df5aa545e27e6218
|
4
|
+
data.tar.gz: a70b0308bdf6c8abc99c376d6137db67bc1c7d06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d48160e14569a828193a3ec9fd94161950937e7c9c0427f35392809dae5008b3e26171e549fbf931735bae6c6acf1ca2c6655f454e211c19222597d2234f980
|
7
|
+
data.tar.gz: 634251e6cc34b78ea5fc1f1d53e5343a7952bb22469ceee7ab6d7caa9c29bb6ef7dd89a318a202b771a9a5ffc3a42d4d74e572f6f5cda381177505443167cb93
|
data/lib/henry/container.rb
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2013-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|