spicycode-micronaut 0.1.6.1 → 0.1.6.8
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'rake/gempackagetask'
|
|
3
3
|
require 'rubygems/specification'
|
4
4
|
|
5
5
|
GEM = "micronaut"
|
6
|
-
GEM_VERSION = "0.1.6.
|
6
|
+
GEM_VERSION = "0.1.6.8"
|
7
7
|
AUTHOR = "Chad Humphries"
|
8
8
|
EMAIL = "chad@spicycode.com"
|
9
9
|
HOMEPAGE = "http://spicycode.com"
|
@@ -85,4 +85,4 @@ end
|
|
85
85
|
|
86
86
|
|
87
87
|
task :default => 'coverage'
|
88
|
-
task :clobber_package => 'clean_coverage'
|
88
|
+
task :clobber_package => 'clean_coverage'
|
@@ -102,21 +102,12 @@ module Micronaut
|
|
102
102
|
|
103
103
|
def find_modules(group)
|
104
104
|
extra_modules.select do |include_or_extend, mod, options|
|
105
|
-
options.all? do |
|
106
|
-
|
107
|
-
when Hash
|
108
|
-
value.all? { |k, v| group.metadata[key][k] == v }
|
109
|
-
when Regexp
|
110
|
-
group.metadata[key] =~ value
|
111
|
-
when Proc
|
112
|
-
value.call(group.metadata[key]) rescue false
|
113
|
-
else
|
114
|
-
group.metadata[key] == value
|
115
|
-
end
|
105
|
+
options.all? do |filter_on, filter|
|
106
|
+
Micronaut.world.apply_condition(filter_on, filter, group.metadata)
|
116
107
|
end
|
117
108
|
end
|
118
109
|
end
|
119
|
-
|
110
|
+
|
120
111
|
def filter_run(options={})
|
121
112
|
@filter = options
|
122
113
|
end
|
@@ -135,18 +126,10 @@ module Micronaut
|
|
135
126
|
|
136
127
|
def find_before_or_after(desired_type, desired_each_or_all, group)
|
137
128
|
before_and_afters.select do |type, each_or_all, options, block|
|
138
|
-
type == desired_type &&
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
value.all? { |k, v| group.metadata[key][k] == v }
|
143
|
-
when Regexp
|
144
|
-
group.metadata[key] =~ value
|
145
|
-
when Proc
|
146
|
-
value.call(group.metadata[key]) rescue false
|
147
|
-
else
|
148
|
-
group.metadata[key] == value
|
149
|
-
end
|
129
|
+
type == desired_type &&
|
130
|
+
each_or_all == desired_each_or_all &&
|
131
|
+
options.all? do |filter_on, filter|
|
132
|
+
Micronaut.world.apply_condition(filter_on, filter, group.metadata)
|
150
133
|
end
|
151
134
|
end.map { |type, each_or_all, options, block| block }
|
152
135
|
end
|
@@ -108,9 +108,9 @@ module Micronaut
|
|
108
108
|
return "" if backtrace.nil?
|
109
109
|
cleansed = backtrace.map { |line| backtrace_line(line) }.compact
|
110
110
|
original_file = example.behaviour.metadata[:behaviour][:file_path].split(':').first.strip
|
111
|
-
|
112
|
-
|
113
|
-
|
111
|
+
cleansed = cleansed.select do |line|
|
112
|
+
line.split(':').first.downcase == original_file.downcase
|
113
|
+
end
|
114
114
|
# we really just want it to remove the last line if there are more than 1 lines, as it is always
|
115
115
|
# junk
|
116
116
|
cleansed.empty? ? backtrace : cleansed
|
@@ -94,7 +94,7 @@ module Micronaut
|
|
94
94
|
output.puts "Pending:"
|
95
95
|
pending_examples.each do |pending_example, message|
|
96
96
|
output.puts "\n #{pending_example.behaviour}\n - #{pending_example.description}"
|
97
|
-
output.puts grey(" # #{pending_example.
|
97
|
+
output.puts grey(" # #{pending_example.metadata[:caller]}")
|
98
98
|
end
|
99
99
|
end
|
100
100
|
output.flush
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spicycode-micronaut
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.6.
|
4
|
+
version: 0.1.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chad Humphries
|
@@ -9,7 +9,7 @@ autorequire: micronaut
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-12-
|
12
|
+
date: 2008-12-24 00:00:00 -08:00
|
13
13
|
default_executable: micronaut
|
14
14
|
dependencies: []
|
15
15
|
|