motion-redgreen 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,10 +2,17 @@ module Motion; module Project
2
2
  class Config
3
3
  alias :original_spec_files :spec_files
4
4
  def spec_files
5
- [
6
- File.expand_path(redgreen_style_config),
5
+ red_green_style_config_file = File.expand_path(redgreen_style_config)
6
+ return original_spec_files if original_spec_files.include? red_green_style_config_file
7
+
8
+ index = original_spec_files.find_index do |file|
9
+ file.include? "/lib/motion/spec.rb"
10
+ end
11
+
12
+ original_spec_files.insert(index + 1, *[
13
+ red_green_style_config_file,
7
14
  File.expand_path(File.dirname(__FILE__) + '/spec_setup.rb')
8
- ] + original_spec_files
15
+ ])
9
16
  end
10
17
 
11
18
  attr_accessor :redgreen_style
@@ -1,5 +1 @@
1
- class String
2
- def method_missing(sym, *args, &block)
3
- Term::ANSIColor.send(sym) { self } rescue super
4
- end
5
- end
1
+ String.send :include, Term::ANSIColor
@@ -1,5 +1,5 @@
1
1
  module Motion
2
2
  module Redgreen
3
- VERSION = "0.0.2"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-redgreen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-22 00:00:00.000000000 Z
12
+ date: 2012-07-11 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: RedGreen support for RubyMotion
15
15
  email: