sprout 0.7.221-mswin32 → 0.7.223-mswin32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sprout might be problematic. Click here for more details.
- data/bin/sprout +5 -0
- data/lib/sprout.rb +7 -0
- data/lib/sprout/version.rb +1 -1
- metadata +2 -2
data/bin/sprout
CHANGED
@@ -43,6 +43,9 @@ Create a new ActionScript 3.0 project named 'SomeProject':
|
|
43
43
|
Create a new ActionScript 2.0 project named 'OtherProject':
|
44
44
|
#{File.basename($0)} -n as2 OtherProject
|
45
45
|
|
46
|
+
Create a new MXML project named 'SomeProject':
|
47
|
+
#{File.basename($0)} -n mxml SomeProject
|
48
|
+
|
46
49
|
Remove all Sprout gems and cached files:
|
47
50
|
#{File.basename($0)} -R
|
48
51
|
|
@@ -88,6 +91,8 @@ BANNER
|
|
88
91
|
OPTIONS[:project_name] = ARGV.pop
|
89
92
|
if(OPTIONS[:project_name] == "=")
|
90
93
|
fail_with(opts, "Invalid project name #{OPTIONS[:project_name]}")
|
94
|
+
elsif(OPTIONS[:project_name] =~ /Test$/)
|
95
|
+
fail_with(opts, "Your project name should not match /Test$/ as this will quickly cause problems when generating test cases and test suites")
|
91
96
|
end
|
92
97
|
else
|
93
98
|
fail_with(opts, "You must provide a sprout name argument such as, '-n as2' or '-n as3'")
|
data/lib/sprout.rb
CHANGED
@@ -426,9 +426,16 @@ EOF
|
|
426
426
|
end
|
427
427
|
|
428
428
|
def self.project_name=(name) # :nodoc:
|
429
|
+
validate_name(name)
|
429
430
|
@@project_name = name
|
430
431
|
end
|
431
432
|
|
433
|
+
def self.validate_name(name)
|
434
|
+
if(name =~ /Test$/)
|
435
|
+
raise UsageError.new('Your project name should not include Test as this will cause problems when generating test cases and test suites')
|
436
|
+
end
|
437
|
+
end
|
438
|
+
|
432
439
|
# Return the current project_name assuming someone has already set it, otherwise return an empty string
|
433
440
|
def self.project_name
|
434
441
|
@@project_name ||= ''
|
data/lib/sprout/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.223
|
5
5
|
platform: mswin32
|
6
6
|
authors:
|
7
7
|
- Luke Bayes
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-30 00:00:00 -04:00
|
13
13
|
default_executable: sprout
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|