sprout 1.0.22.pre → 1.0.23.pre

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/README.textile CHANGED
@@ -1,16 +1,14 @@
1
1
  h1. IMPORTANT NOTE
2
2
 
3
- The mainline of this repository represents the next major release of Sprouts which involves a nearly complete rewrite.
3
+ <font color="red">The mainline of this repository represents the next major release of Sprouts which involves a nearly complete rewrite.
4
4
 
5
- To see, or edit the source code for the currently-released code, please check out the "0.7.241-release branch":http://github.com/lukebayes/project-sprouts/tree/0.7.241-release.
5
+ To see, or edit the source code for the currently-released code, please check out the "0.7.241-release branch":http://github.com/lukebayes/project-sprouts/tree/0.7.241-release.</font>
6
6
 
7
7
  h1. Project Sprouts
8
8
 
9
- Project Sprouts is an open-source, cross-platform project generation and configuration tool for ActionScript 2, ActionScript 3, and Flex projects.
9
+ Project Sprouts is an open-source, cross-platform project generation and configuration tool for whatever technology you use. At the time of this writing, we have support for ActionScript 2, ActionScript 3, Flex and AIR projects.
10
10
 
11
- Project Sprouts provides everything you need to get up and running with SWF development instantly. The only prerequisites are Ruby and RubyGems.
12
-
13
- Sprouts includes support for project and code templates, automated build scripts, remote managed libraries, and automatic installation of dependencies like the Flash VM and a variety of compilers and tools.
11
+ Sprouts includes support for project and code templates, automated build scripts, remote managed libraries, and automatic installation of executable dependencies like runtimes, compilers and other utilities.
14
12
 
15
13
  Sprouts works on OS X, Windows XP, Windows Vista and many flavors of *nix (including Solaris thanks to lots of patience from Armaghan Chaudhary).
16
14
 
@@ -23,113 +21,18 @@ h3. Installation
23
21
  <pre><code>gem install sprout</code></pre>
24
22
  _(If prompted, select the appropriate gem for your platform.)_
25
23
 
26
- h3. Getting Started
27
-
28
- Open a terminal and enter the following commands:
29
-
30
- Create a new ActionScript 3 project and move into it:
31
-
32
- <pre><code>sprout -n as3 SomeProject
33
- cd SomeProject</code></pre>
34
-
35
- Resolve all dependencies, compile and launch the SWF:
36
-
37
- <pre><code>rake</code></pre>
38
-
39
- Generate a new class, test case and test suite:
40
-
41
- <pre><code>script/generate utils.MathUtil</code></pre>
42
-
43
- Compile and launch the test harness:
44
-
45
- <pre><code>rake test</code></pre>
46
-
47
- Compile a SWC file:
48
-
49
- <pre><code>rake swc</code></pre>
50
-
51
- Generate documentation using "AsDoc":http://labs.adobe.com/wiki/index.php/ASDoc:
52
-
53
- <pre><code>rake doc</code></pre>
54
-
55
- Execute the test harness, emit a JUnit-compatible test results document, and close the Flash Player when complete or after encountering an uncaught exception:
56
-
57
- <pre><code>rake cruise</code></pre>
58
-
59
- Display all available Rake tasks:
60
-
61
- <pre><code>rake -T</code></pre>
62
-
63
- h3. Some Simple, Sample Rake Tasks
64
-
65
- Sprouts brings the power of the "Rake":http://martinfowler.com/articles/rake.html build language to SWF development. Rake is similar to Make and Ant, but harnesses the full power and flexibility of Ruby to help us describe the structure and automate the behavior of any build, from the simplest to the most complex.
66
-
67
- Following are some simple examples of the Rake tasks that Sprouts provides:
68
-
69
- _"The Default Rakefile - Expanded":http://gist.github.com/221569_
70
-
71
- _"An example of the erb_resolver Rake task":http://gist.github.com/306334_
72
-
73
- _ActionScript 3 and MXML Projects:_
74
-
75
- <pre><code>mxmlc :debug do |t|
76
- t.input = 'src/SomeProject.as'
77
- t.output = 'bin/SomeProject.swf'
78
- end
79
-
80
- compc :deploy do |t|
81
- t.input = 'src/SomeProject.as'
82
- t.output = 'bin/SomeProject.swc'
83
- end
84
-
85
- asdoc :doc do |t|
86
- t.doc_classes = 'SomeProject'
87
- t.source_path = 'src'
88
- end
89
-
90
- flashplayer :run do |t|
91
- t.swf = 'bin/SomeProject.swf'
92
- end
93
- </code></pre>
94
-
95
- _ActionScript 2 Projects:_
96
-
97
- <pre><code>swfmill :skin do |t|
98
- t.input = 'assets/skins/SomeProjectSkin'
99
- t.output = 'assets/skins/SomeProjectSkin.swf'
100
- end
101
-
102
- mtasc :debug => :skin do |t|
103
- t.main = true
104
- t.header = '800:600:24'
105
- t.input = 'src/SomeProject.as'
106
- t.output = 'bin/SomeProject.swf'
107
- end
108
-
109
- flashplayer :run do |t|
110
- t.swf = 'bin/SomeProject.swf'
111
- end
112
- </code></pre>
24
+ To get started with Sprouts in Flash, follow the directions provided by the "Flash SDK":http://github.com/lukebayes/sprout-flashsdk.
113
25
 
114
26
  h3. Some Links
115
27
 
116
28
  * "Web Site":http://projectsprouts.org
117
- * "File a Bug":http://github.com/lukebayes/project-sprouts/issues
118
29
  * "See the Documentation":http://projectsprouts.org/rdoc
119
30
  * "Meet the Community":http://groups.google.com/group/projectsprouts
120
31
 
121
- h1. Contributing
122
-
123
- * Fork this git repository
124
- * Clone your forked version with write-access
125
- * cd to your local copy
126
- * Run "bundle install"
127
- * Run "rake test"
128
-
129
32
  h3. MIT License
130
33
 
131
34
  <pre>
132
- Copyright (c) 2007, 2008, 2009 Pattern Park
35
+ Copyright (c) 2007-2010 Pattern Park
133
36
 
134
37
  Permission is hereby granted, free of charge, to any person obtaining
135
38
  a copy of this software and associated documentation files (the
@@ -261,8 +261,8 @@ module Sprout
261
261
  @option_parser = OptionParser.new
262
262
  @default_prefix = DEFAULT_PREFIX
263
263
  @default_short_prefix = DEFAULT_SHORT_PREFIX
264
- initialize_parameters
265
264
  initialize_defaults
265
+ initialize_parameters
266
266
  end
267
267
 
268
268
  def parse! commandline_options
@@ -6,7 +6,7 @@ module Sprout
6
6
  module VERSION #:nodoc:
7
7
  MAJOR = 1
8
8
  MINOR = 0
9
- TINY = 22
9
+ TINY = 23
10
10
  RELEASE = 'pre'
11
11
 
12
12
  STRING = [MAJOR, MINOR, TINY, RELEASE].join('.')
@@ -2,6 +2,8 @@
2
2
  class ExecutableSuperclass
3
3
  include Sprout::Executable
4
4
 
5
+ set :default_prefix, '---'
6
+
5
7
  add_param :superclass_param, String
6
8
  end
7
9
 
@@ -17,13 +17,13 @@ class ExecutableTest < Test::Unit::TestCase
17
17
  should "add subclass params after those added by superclass" do
18
18
  @subclassed.superclass_param = 'A.txt'
19
19
  @subclassed.subclass_param = 'B.txt'
20
- assert_equal '--superclass-param=A.txt --subclass-param=B.txt', @subclassed.to_shell
20
+ assert_equal '---superclass-param=A.txt ---subclass-param=B.txt', @subclassed.to_shell
21
21
  end
22
22
 
23
23
  should "accept boolean param" do
24
24
  @tool.boolean_param = true
25
25
  assert @tool.boolean_param
26
- assert_equal "--boolean-param", @tool.to_shell
26
+ assert_equal "---boolean-param", @tool.to_shell
27
27
  end
28
28
 
29
29
  should "serialize to a hash" do
@@ -41,7 +41,7 @@ class ExecutableTest < Test::Unit::TestCase
41
41
  should "accept a string param" do
42
42
  @tool.string_param = "string1"
43
43
  assert_equal "string1", @tool.string_param
44
- assert_equal "--string-param=string1", @tool.to_shell
44
+ assert_equal "---string-param=string1", @tool.to_shell
45
45
  end
46
46
 
47
47
  should "not share parameter values across instances" do
@@ -57,7 +57,7 @@ class ExecutableTest < Test::Unit::TestCase
57
57
  @tool.strings_param << 'string2'
58
58
 
59
59
  assert_equal ['string1', 'string2'], @tool.strings_param
60
- assert_equal "--strings-param+=string1 --strings-param+=string2", @tool.to_shell
60
+ assert_equal "---strings-param+=string1 ---strings-param+=string2", @tool.to_shell
61
61
  end
62
62
 
63
63
  should "accept number param" do
@@ -213,7 +213,7 @@ class ExecutableTest < Test::Unit::TestCase
213
213
  t.input = 'test/fixtures/executable/src/Main.as'
214
214
  end
215
215
  assert_equal 'bin/SomeFile.swf', @tool.output
216
- assert_equal "--output=bin/SomeFile.swf --source-path+=test/fixtures/executable/src test/fixtures/executable/src/Main.as", @tool.to_shell
216
+ assert_equal "-output=bin/SomeFile.swf -source-path+=test/fixtures/executable/src test/fixtures/executable/src/Main.as", @tool.to_shell
217
217
  end
218
218
  end
219
219
 
@@ -225,7 +225,7 @@ class ExecutableTest < Test::Unit::TestCase
225
225
  t.input = 'test/fixtures/executable/src/Main.as'
226
226
  end
227
227
  assert_equal 'bin/SomeFile.swf', @tool.output
228
- assert_equal "--output=bin/SomeFile.swf --source-path+=test/fixtures/executable/src test/fixtures/executable/src/Main.as", @tool.to_shell
228
+ assert_equal "-output=bin/SomeFile.swf -source-path+=test/fixtures/executable/src test/fixtures/executable/src/Main.as", @tool.to_shell
229
229
  end
230
230
  end
231
231
 
@@ -233,7 +233,7 @@ class ExecutableTest < Test::Unit::TestCase
233
233
  as_a_unix_system do
234
234
  @tool.debug = true
235
235
  @tool.source_path << "test/fixtures/executable/src"
236
- assert_equal "--debug --source-path+=test/fixtures/executable/src", @tool.to_shell
236
+ assert_equal "-debug -source-path+=test/fixtures/executable/src", @tool.to_shell
237
237
  end
238
238
  end
239
239
 
@@ -15,6 +15,8 @@ class FakeOtherExecutableTask
15
15
  add_param :strings_param, Strings
16
16
  add_param :urls_param, Urls
17
17
 
18
+ set :default_prefix, '---'
19
+
18
20
  add_param_alias :sp, :strings_param
19
21
  end
20
22
 
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 22
8
+ - 23
9
9
  - pre
10
- version: 1.0.22.pre
10
+ version: 1.0.23.pre
11
11
  platform: ruby
12
12
  authors:
13
13
  - Luke Bayes
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-05 00:00:00 -07:00
18
+ date: 2010-07-08 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -196,7 +196,6 @@ files:
196
196
  - bin/sprout-suite
197
197
  - bin/sprout-test
198
198
  - bin/sprout-tool
199
- - CHANGELOG.md
200
199
  - Gemfile
201
200
  - lib/sprout/archive_unpacker.rb
202
201
  - lib/sprout/base.rb
data/CHANGELOG.md DELETED
@@ -1,10 +0,0 @@
1
- ## 0.8.0 (April 10, 2010)
2
-
3
- Features:
4
-
5
- - Created branch and buildable project foundation
6
- - Added rcov, flog and flay tasks to rakefile
7
- - Brought over the user, platform, process_runner and associated fixtures and tests
8
-
9
- Bugfixes:
10
-