spicycode-micronaut 0.1.7.3 → 0.1.7.4

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.7.3"
6
+ GEM_VERSION = "0.1.7.4"
7
7
  AUTHOR = "Chad Humphries"
8
8
  EMAIL = "chad@spicycode.com"
9
9
  HOMEPAGE = "http://spicycode.com"
@@ -97,20 +97,14 @@ module Micronaut
97
97
  $stdout
98
98
  end
99
99
 
100
+ # RJS I think we should rename include/extend so they don't conflict or confuse with the ruby builtin
101
+ # maybe register_include, setup_include, add_include, or just _include ?
100
102
  def include(mod, options={})
101
- if options.empty?
102
- Micronaut::Behaviour.send(:include, mod)
103
- else
104
- include_or_extend_modules << [:include, mod, options]
105
- end
103
+ include_or_extend_modules << [:include, mod, options]
106
104
  end
107
105
 
108
106
  def extend(mod, options={})
109
- if options.empty?
110
- Micronaut::Behaviour.send(:extend, mod)
111
- else
112
- include_or_extend_modules << [:extend, mod, options]
113
- end
107
+ include_or_extend_modules << [:extend, mod, options]
114
108
  end
115
109
 
116
110
  def find_modules(group)
@@ -17,6 +17,7 @@ module Micronaut
17
17
 
18
18
  if filter
19
19
  @behaviours_to_run = filter_behaviours
20
+ # RJS the line below is very confusing and looks like a dupe of the line below it -- is it dead code or does it serve a purpose?
20
21
  behaviours_to_run.size == 0 && Micronaut.configuration.run_all_when_everything_filtered?
21
22
  if @behaviours_to_run.size == 0 && Micronaut.configuration.run_all_when_everything_filtered?
22
23
  puts "No behaviours were matched by #{filter.inspect}, running all"
@@ -24,7 +25,7 @@ module Micronaut
24
25
  @behaviours_to_run = @behaviours
25
26
  @behaviours.each { |b| b.examples_to_run.replace(b.examples) }
26
27
  else
27
- puts "Run filtered using #{filter.inspect}"
28
+ Micronaut.configuration.output.puts "Run filtered using #{filter.inspect}"
28
29
  end
29
30
  else
30
31
  @behaviours_to_run = @behaviours
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.7.3
4
+ version: 0.1.7.4
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-29 00:00:00 -08:00
12
+ date: 2008-12-30 00:00:00 -08:00
13
13
  default_executable: micronaut
14
14
  dependencies: []
15
15