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.
- data/lib/motion-redgreen/config.rb +10 -3
- data/lib/motion-redgreen/string.rb +1 -5
- data/lib/motion-redgreen/version.rb +1 -1
- metadata +2 -2
@@ -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
|
-
|
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
|
-
]
|
15
|
+
])
|
9
16
|
end
|
10
17
|
|
11
18
|
attr_accessor :redgreen_style
|
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
|
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-
|
12
|
+
date: 2012-07-11 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: RedGreen support for RubyMotion
|
15
15
|
email:
|