spicycode-micronaut 0.1.8.5 → 0.1.9.0

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.
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'rubygems/specification'
4
4
  require 'lib/micronaut/rake_task'
5
5
 
6
6
  GEM = "micronaut"
7
- GEM_VERSION = "0.1.8.5"
7
+ GEM_VERSION = "0.1.9.0"
8
8
  AUTHOR = "Chad Humphries"
9
9
  EMAIL = "chad@spicycode.com"
10
10
  HOMEPAGE = "http://github.com/spicycode/micronaut"
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.8.5
4
+ version: 0.1.9.0
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: 2009-01-05 00:00:00 -08:00
12
+ date: 2009-01-10 00:00:00 -08:00
13
13
  default_executable: micronaut
14
14
  dependencies: []
15
15
 
@@ -28,9 +28,6 @@ files:
28
28
  - README.markdown
29
29
  - RSPEC-LICENSE
30
30
  - Rakefile
31
- - lib/autotest
32
- - lib/autotest/discover.rb
33
- - lib/autotest/micronaut.rb
34
31
  - lib/micronaut
35
32
  - lib/micronaut/behaviour.rb
36
33
  - lib/micronaut/configuration.rb
@@ -1,3 +0,0 @@
1
- Autotest.add_discovery do
2
- "micronaut" if File.directory?('examples')
3
- end
@@ -1,44 +0,0 @@
1
- require 'autotest'
2
-
3
- Autotest.add_hook :initialize do |at|
4
- at.clear_mappings
5
-
6
- at.add_mapping(%r%^examples/.*_example.rb$%) { |filename, _|
7
- filename
8
- }
9
-
10
- at.add_mapping(%r%^lib/(.*)\.rb$%) { |filename, m|
11
- ["examples/lib/#{m[1]}_example.rb"]
12
- }
13
-
14
- at.add_mapping(%r%^examples/(example_helper|shared/.*)\.rb$%) {
15
- at.files_matching %r%^examples/.*_example\.rb$%
16
- }
17
- end
18
-
19
- class MicronautCommandError < StandardError; end
20
-
21
- class Autotest::Micronaut < Autotest
22
-
23
- def initialize
24
- super
25
- self.failed_results_re = /^\d+\)\n(?:\e\[\d*m)?(?:.*?Error in )?'([^\n]*)'(?: FAILED)?(?:\e\[\d*m)?\n(.*?)\n\n/m
26
- self.completed_re = /\n(?:\e\[\d*m)?\d* examples?/m
27
- end
28
-
29
- def consolidate_failures(failed)
30
- filters = new_hash_of_arrays
31
- failed.each do |spec, trace|
32
- if trace =~ /\n(\.\/)?(.*example\.rb):[\d]+:\Z?/
33
- filters[$2] << spec
34
- end
35
- end
36
- return filters
37
- end
38
-
39
- def make_test_cmd(files_to_test)
40
- return '' if files_to_test.size == 0
41
- "bin/micronaut #{files_to_test.keys.sort.join(' ')}"
42
- end
43
-
44
- end