GithubHelp home page GithubHelp logo

lukebayes / project-sprouts Goto Github PK

View Code? Open in Web Editor NEW
201.0 10.0 37.0 35.39 MB

Project Sprouts is an open-source, cross-platform project generation and configuration tool for ActionScript 2, ActionScript 3, Adobe AIR Flash and Flex projects

Home Page: http://projectsprouts.org/

License: MIT License

Ruby 97.87% HTML 2.13%

project-sprouts's Introduction

IMPORTANT NOTE

The mainline of this repository represents the next major release of Sprouts which involves a nearly complete rewrite.

To see, or edit the source code for the currently-released version (0.7.x), please check out the release branch.

Project Sprouts

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.

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.

Sprouts works on OS X, Windows XP, Windows Vista and many flavors of *nix (including Solaris thanks to lots of patience from Armaghan Chaudhary).

Installation

  1. Install Ruby (>= v 1.9.2)
  2. Install RubyGems (>= v 1.3.7)
  3. Install the Sprout gem:
gem install sprout

To get started with Sprouts in Flash, follow the directions provided by the Flash SDK.

Some Links

MIT License

Copyright (c) 2007-2011 Pattern Park

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

project-sprouts's People

Contributors

alimills avatar clintmod avatar dima avatar horneberh avatar kristoferjoseph avatar lukebayes avatar nfisher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

project-sprouts's Issues

sprout -n as3 Test gives an error

C:\projects>sprout -n as3 Test

Creating new project 'Test' with as3
C:/Ruby/lib/ruby/gems/1.8/gems/rubigen-1.3.3/lib/rubigen/base.rb:
168:in record' : can't convert nil into String (TypeError) from C:/Ruby/lib/ruby/gems/1.8/gems/rubigen-1.3.3/lib/rubigen/ manifest.r b:20:ininitialize'
from C:/Ruby/lib/ruby/gems/1.8/gems/rubigen-1.3.3/lib/rubigen/
base.rb:16
8:in new' from C:/Ruby/lib/ruby/gems/1.8/gems/rubigen-1.3.3/lib/rubigen/ base.rb:16 8:inrecord'
from C:/Ruby/lib/ruby/gems/1.8/gems/sprout-as3-bundle-1.0.30/
lib/sprout/
generators/project/project_generator.rb:5:in manifest' from (eval):3:insend'
from (eval):3:in manifest' from C:/Ruby/lib/ruby/gems/1.8/gems/rubigen-1.3.3/lib/rubigen/ commands.r b:41:ininvoke!'
from C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.213-x86-mswin32/
lib/sprou
t.rb:142:in generate' from C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.213-x86-mswin32/ bin/sprou t:120 from C:/Ruby/bin/sprout:19:inload'
from C:/Ruby/bin/sprout:19

MXMLCHelper causes very strange things

The MXMLHelper initializes the tasks.

This means that if I define two tasks using the helper methods like so:

debug :taska do |t|
  t.library_path << my_path
end
debug :taskb do |t|
  t.library_path << my_path
end

.. and I define a project_model with that path, then I will get 3 copies of the library_path. Plus, if I run taskb, taska will still initialize and run. And since "debug" invokes a "flashplayer" task, that flashplayer task will be reused for each subsequent task.

Maybe I'm missing something but this doesn't seem like it's working right.

Should MXMLCHelper be a module instead of a wrapper? I think the fact that it initializes the task is the problem.

As it stands, I can't have more than one task use the helper methods "debug, document", etc. If I do, I start getting very strange results: some tasks are run that I didn't want to run, some tasks I'm trying to run aren't run at all.

Any ideas?

test_increment_revision(GitTaskTest): MissingSourceFile: no such file to load -- git

If I am in the root directory of git clone "project-sprouts", and I run "rake package", I get this along the way:

Error:
test_increment_revision(GitTaskTest):
MissingSourceFile: no such file to load -- git

... I think there is a dependency on the "git" gem and on the "mocha" gem in the tests.

Which brings me to another issue: When I run "rake package", it runs the tests too, which it shouldn't, and the tests require other gems, so there's a big ol circular dependency thingy so it only really works right if you already have everything installed.

I'm working on making the local gem installations work, I just got the whole ENV thing set up.

Best,
Lance

Make RemoteFileLoader support redirects

I’d like to publish the asunit packages directly from a github tag like this:

http://github.com/lukebayes/asunit/downloads

But the RemoteFileLoader chokes because the file actually downloaded isn’t the same name as the one requested. This shouldn’t matter.

script/generate test in AS2 project creates AS3 test case

hi,

to reproduce:
sprout -n as2 SomeProject
cd SomeProject/
script/generate test utils.MathUtil
rake test

I'm getting

Execute: mtasc -cp src -cp test -cp lib/asunit25 -main -out bin/SomeProjectRunner.swf -swf assets/skins/SomeProjectSkin.swf test/SomeProjectRunner.as
rake aborted!
[ERROR] test/utils/MathUtilTest.as:1: characters 0-7 : parse error Unexpected package

"Unable to determine home path environment variable." Rake failure on Windows XP

added by: http://code.google.com/u/jeffshadap/

What steps will reproduce the problem?

1) install sprouts

2) E:\sprots>sprout -n as3 someproject

3) E:\sprouts>rake

expected: Sprouts logo

instead:

rake aborted!
Unable to determine home path environment variable.
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.2/lib/rake.rb:2398:in
`win32_system_dir’
(See full trace by running task with —trace)


My HOME path is set to C:\

E:\sprots>set HOME

HOME=C:\

HOMEDRIVE=C:

HOMEPATH=\Documents and Settings\Jeff

FYI....first time users... The first time you run Rake the system will download FLEX SDK if you do not have it installed.

4.0.3: 100% |....................| 1.5MB 30.1KB/s Time: 00:00:50
Just and FYI, my link is slow and after I got around the STACK overflow issue, I ran 'rake' as described in the documents. Rake noticed I did not have FLEX SDK installed and started to download it, THANKS. I do need it, but was not expecting the download as it was not mentioned anywhere in the docs.

Loading gem [sprout-flex3sdk-tool] from http://gems.rubyforge.org with its de
pendencies
Successfully installed sprout-flex3sdk-tool-3.3.1
1 gem installed
Installing ri documentation for sprout-flex3sdk-tool-3.3.1...
Installing RDoc documentation for sprout-flex3sdk-tool-3.3.1...
flex_sdk_3.zip: 48% |......... | 57.5MB 32.6KB/s ETA: 00:32:37

[ERROR] command line: Error: default arguments may not be interspersed with other options

What steps will reproduce the problem?
1. On a windows system, create a new sprouts project and include a space in
the project name such as: sprout -n as3 “My Project”
2. Run rake on the project
3. The following error is thrown: [ERROR] command line: Error: default
arguments may not be interspersed with other options.

What is the expected output? What do you see instead?
I expect that the project will build, instead I am presented with the error
mentioned above (full trace output listed below).

What version of the product are you using? On what operating system?
Version: sprout 0.7.183
OS: Windows XP

Please provide any additional information below.
Below is the full trace output from the error:

C:\DOCUME~1\ktyacke\MYDOCU~1\FLEXBU~2\test project>rake —trace
(in C:/DOCUME~1/ktyacke/MYDOCU~1/FLEXBU~2/test project)
\ Invoke default (first_time)
\ Invoke debug (first_time)
\ Invoke run_bin/test project-debug.swf (first_time)
\ Invoke bin/test project-debug.swf (first_time)
\ Invoke src/test project.as (first_time, not_needed)
\ Invoke src/test projectRunner.as (first_time, not_needed)
\ Invoke assets/skins (first_time, not_needed)
\ Invoke assets/skins/test project (first_time, not_needed)
\ Invoke assets/skins/test project/ProjectSprouts.png (first_time, not_needed)
\ Invoke assets/skins/test projectSkin.as (first_time, not_needed)

> > Execute: mxmlc.exe -default-background-color=#FFFFFF
> > -default-frame-rate=24 -default-size 970 550 -output=bin/test
> > project-debug.swf -source-path+=src -source-path+=assets
> > -verbose-stacktraces=true -warnings=true src/test project.as
> > rake aborted!
> > [ERROR] command line: Error: default arguments may not be interspersed with
> > other options

Use ‘mxmlc -help’ for information about using the command line.
C:/xampp/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.183-x86-mswin32/lib/sprout/user.rb:207:in
`execute’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.183-x86-mswin32/lib/sprout/user.rb:97:in
`execute’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.183-x86-mswin32/lib/sprout/tasks/tool_task.rb:122:in
`execute’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/sprout-as3-bundle-0.2.3/lib/sprout/tasks/mxmlc_task.rb:721:in
`execute’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in
`invoke_with_call_chain’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
`synchronize’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
`invoke_with_call_chain’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in
`invoke_prerequisites’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in`send’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in
`invoke_prerequisites’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in
`invoke_with_call_chain’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
`synchronize’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
`invoke_with_call_chain’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in
`invoke_prerequisites’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in`send’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in
`invoke_prerequisites’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in
`invoke_with_call_chain’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
`synchronize’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
`invoke_with_call_chain’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in
`invoke_prerequisites’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in`send’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in
`invoke_prerequisites’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in
`invoke_with_call_chain’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
`synchronize’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
`invoke_with_call_chain’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in`invoke’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in
`invoke_task’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in`top_level’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in`top_level’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
`standard_exception_handling’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in`top_level’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
`standard_exception_handling’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run’
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
C:/xampp/ruby/bin/rake:19:in`load’
C:/xampp/ruby/bin/rake:19

Tool tasks (like the Flex SDK) should check for environment variables first

The sprout.spec could add an additional field like env_names = ['FLEX_HOME', 'SPROUT_FLEX_HOME'] or some such thing.

Then the code path that looks for the downloaded bundle would instead check for this value.

Users could set these environmental vars in their Rakefile - especially if they want to check dependencies into a 'vendor' folder.

md5 check of flash_player_10_l fails

When doing a fresh install on linux using the instructions at
http://projectsprouts.org/index.html

I get the following message
"""
The MD5 Sum of the downloaded file (5ade3e2da573296197d53082740b39ab) does not match what was expected (5cdc90a1b1dcda0ae5a87aae0a8fdd7b).
"""
saying "yes" to the install is a big no-no since it means you are instaling an untrusted binary file.

Unnecessary dependence on rubigen version fails install

Rubigen version match is currently set to 1.3.3 exactly, and I have (and need, for other things) 1.5.2. When I hacked the gem specifications file to say >=1.3.3, everything worked fine using 1.5.2.
Maybe this should be the default?

C:\projects>sprout -n as3 MyTest creates a folder name My omitting Test

C:\projects>sprout -n as3 MyTest

Creating new project 'MyTest' with as3
create My
create My/assets/skins/MyTest
create My/bin
create My/lib
create My/script
create My/src
create My/test
create My/assets/skins/MyTest/ProjectSprouts.png
create My/rakefile.rb
create My/README.txt
create My/script/generate.rb
create My/assets/skins/MyTestSkin.as
create My/src/My.as
create My/src/MyRunner.as
create My/src/MyXMLRunner.as

Flash Player Task gets relaunched if closed too quickly

The rb-appscript feature that attempts to focus the newly-launched
flashplayer uses the ‘activate’ AppleScript Application command, but the
old command actually checked System Events.processes, looking for a running
Flash Player application, and then set ‘foremost = true’ on that process.

The new call to activate will actually re-launch the Flash Player if it has
already been closed rather than simply failing.

Figure out how to set the frontmost application using rb-appscript.

script/generate ignores standard rails generator options

Reported by hob.spillane, Mar 02, 2009
What steps will reproduce the problem?
1. run “script/generate class class util.TestUtil”
2. modify TestUtil in some way (just add a space somewhere)
3. run “script/generate class -s util.TestUtil”

What is the expected output? What do you see instead?

-s should tell the generator to skip TestUtil if it already exists, but
running the command in step 3 does not prevent the following message:
“overwrite test/com/workday/ui/flex/util/TestUtilTest.as? [Ynaiqd]”

What version of the product are you using? On what operating system?
sprout 0.7.206 on Windows Vista

Please provide any additional information below.
Additionally there’s a mistake in the usage information obtained by running
“script/generate -h”. The usage statement says: “Usage:
script/generate.rb [options] packagename.ClassName.”

Putting the -s option in place of [options] generates an error: “Couldn’t
find ‘-s’ generator.”

Standard Rails usage is to have [options] after the generator name. Usage
should probably read as follows: “Usage: script/generate.rb generator
[options] packagename.ClassName.”

Newbie issues. I just followed all instructions and got "Stack Level Too Deep" in get_implicit_project_path

Hi all, Sorry for the interruption, I just downloaded Ruby, Gems 1.3.5, and Sprouts and when I tried to create a new project I got the following error. Any help is much appreciated.

Larry

c:\Ruby\projects>sprout -n as3 1stProject

Creating new project '1stProject' with as3
C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.223/lib/sprout.rb:478:in get_implicit _project_path': stack level too deep (SystemStackError) from C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.223/lib/sprout.rb:486:in get_implicit_project_path'
from C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.223/lib/sprout.rb:454:in
project_path' from C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.223/lib/sprout/generator/ base_mixins.rb:75:ininitialize'
from C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.223/lib/sprout/generator/
named_base.rb:35:in initialize' from C:/Ruby/lib/ruby/gems/1.8/gems/rubigen-1.5.2/lib/rubigen/lookup.rb: 165:innew'
from C:/Ruby/lib/ruby/gems/1.8/gems/rubigen-1.5.2/lib/rubigen/lookup.rb:
165:in instance' from C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.223/lib/sprout.rb:144:in generate'
from C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.223/bin/sprout:125
from C:/Ruby/bin/sprout:19:in `load'
from C:/Ruby/bin/sprout:19

Running rake for the first time does nothing

Hi,

I just found out about sprout and I must say it's exactly what I'm looking for.
But something is going wrong and I can't figure out what.

Running rake only opens the flash player.
According to the getting started tut I should see a compiled swf with the sprout logo.

I'm running Snow Leopard 10.6.1, rubygems 1.3.5 and the latest rubyEE.
What could be wrong?

ENV['SPROUT_HOME'] Not defined

I just git cloned the project and am running "rake package", and it's failing in a few of the bundles/tools because SPROUT_HOME is not defined.

How do I get it defined?

all tasks are run, even if I just want one

$ rake app
APP
compile

desc 'Compile and debug the application'
debug :app do |t|
  p "APP"
  t.input = "app/flex/#{FLEX_APP_NAME}.mxml"
  t.output = "bin/#{FLEX_DEBUG_APP_NAME}.swf"
  t.link_report = "#{LINK_REPORT}"
  t.verbose_stacktraces = false
end

mxmlc :compile do |t|
  p "compile"
  t.gem_name = FLEX_GEM
  t.input = "app/flex/#{PRE_APP_NAME}.mxml"
  t.output = "bin/#{PRE_APP_DEBUG_NAME}.swf"
  t.link_report = LINK_REPORT
  t.namespace = NAMESPACE
  t.library_path = LIBRARIES
end

task :flashlog do |t|
  p "flashlog"
end

It doesn't do that with pure "task :my_task do ...". Is it supposed to do this?

Dump rubyzip and fix arbitrary corrupted unpack tasks for Windows users.

The rubyzip library fails on a 'dup' operation on Windows machines regularly (for some users, every time).

C:\Documents and Settings\cvavra\My Documents\projects\sprout\secondProject>rake --trace
(in C:/Documents and Settings/cvavra/My Documents/projects/sprout/secondProject)
rake aborted!
can't dup NilClass
C:/Ruby/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:1132:in dup' C:/Ruby/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:1132:indup'
C:/Ruby/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:1132:in map' C:/Ruby/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:1132:indup'
C:/Ruby/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:1368:in initialize' C:/Ruby/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:1379:innew'
C:/Ruby/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:1379:in open' C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.211-x86-mswin32/lib/sprout/archive_unpacker.rb:67:inunpack_zip'
C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.211-x86-mswin32/lib/sprout/archive_unpacker.rb:36:in unpack_archive' C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.211-x86-mswin32/lib/sprout/remote_file_target.rb:147:ininstall'
C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.211-x86-mswin32/lib/sprout/remote_file_target.rb:80:in resolve' C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.211-x86-mswin32/lib/sprout/builder.rb:29:inbuild'
C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.211-x86-mswin32/lib/sprout/builder.rb:20:in each' C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.211-x86-mswin32/lib/sprout/builder.rb:20:inbuild'
C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.211-x86-mswin32/lib/sprout.rb:299:in sprout' C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.211-x86-mswin32/lib/sprout.rb:249:inget_executable'
C:/Ruby/lib/ruby/gems/1.8/gems/sprout-as3-bundle-1.0.24/lib/sprout/tasks/asdoc_task.rb:264:in validate_templates' C:/Ruby/lib/ruby/gems/1.8/gems/sprout-as3-bundle-1.0.24/lib/sprout/tasks/asdoc_task.rb:240:indefine'
C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.211-x86-mswin32/lib/sprout/tasks/tool_task.rb:60:in define_task' C:/Ruby/lib/ruby/gems/1.8/gems/sprout-as3-bundle-1.0.24/lib/sprout/tasks/asdoc_task.rb:331:inasdoc'
C:/Ruby/lib/ruby/gems/1.8/gems/sprout-as3-bundle-1.0.24/lib/sprout/tasks/mxmlc_document.rb:25:in initialize' C:/Ruby/lib/ruby/gems/1.8/gems/sprout-as3-bundle-1.0.24/lib/sprout/tasks/mxmlc_document.rb:43:innew'
C:/Ruby/lib/ruby/gems/1.8/gems/sprout-as3-bundle-1.0.24/lib/sprout/tasks/mxmlc_document.rb:43:in document' C:/Documents and Settings/cvavra/My Documents/projects/sprout/secondProject/rakefile.rb:41 C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:2149:inload'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:2149:in raw_load_rakefile' C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1897:inload_rakefile'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in standard_exception_handling' C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1896:inload_rakefile'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1880:in run' C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:instandard_exception_handling'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in run' C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31 C:/Ruby/bin/rake:19:inload'
C:/Ruby/bin/rake:19

Fix install on vanilla Leopard system

Leopard comes with ruby and gem installed by default. This issue may apply outside of OS X, but as of today I was having trouble installing Project Sprouts on my Mac system. I followed instructions but still ran into some problems.

  • Latest version of gem
    To upgrade the default Leopard version of 1.0.1 to something more recent, use the following command:
    sudo gem update --system

When trying to install with v1.0.1 of gem, I received errors that hoe-2.2.0 was not found (404) from rubyforge. Maybe this fix can be reflected in the README and docs. Also there may be some way to tell the sprout install to require a specific version of gem.

  • net-ssh and net-sftp
    I had to manually update these after upgrading gem and installing sprout. I was trying to create an as2 project and received the following error:
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
    gems/1.8/gems/net-sftp-1.1.0/lib/net/sftp.rb:37: undefined method
    `register_service' for Net::SSH:Module (NoMethodError)

I fixed/worked around this via the command: sudo gem install net-ssh net-sftp

Refer to this thread for more info: http://groups.google.com/group/projectsprouts/browse_thread/thread/3cc781529dd34aa2

Thanks,
Dave

mxmlc task doesn't use project_model

if I just use mxmlc by itself, I have to redefine the library paths and namespaces.

If I just debug, it uses the project_model data, from mxmlchelper

What is up with the packaging? Now I need win32-open3

OK this whole process is getting to bug me....The instructions said get Ruby, get Ruby Gems and get Project-sprouts. Then I have to edit config.nt to get the STACK size right so rake will run. Then I needed FLEX, now I have to start figuring out all the windows requirements. the available win-opens I found all require a compiler and do not detect the ones I have installed, so now I guess I need to expose my compilers to the Ruby environment. What a waist of time. Please update the instructions to include all steps required from scratch.

C:\Users\Larry L. Jaxn\MyProject>rake
(in C:/Users/Larry L. Jaxn/MyProject)

Execute: mxmlc.exe -default-background-color=#FFFFFF -default-frame-rate=24 -
default-size 970 550 -output=bin/MyProject-debug.swf -source-path+=src -source-p
ath+=assets -verbose-stacktraces=true -warnings=true src/MyProject.as
rake aborted!
Could not find RubyGem win32-open3 (= 0.2.5)

Projects with punctuation don't get parsed properly.

What steps will reproduce the problem?
1. sprout -n as3 someproject.com

What is the expected output? What do you see instead?

Project created in ‘someproject.com’

What version of the product are you using? On what operating system?

sprout 0.7.183 OS X Tiger

library_path issues

If I do this:

m.library_path = [
"/Users/Lance/Desktop/sample/lib/mate.swc",
"/Users/Lance/Desktop/sample/lib/restfulx.swc",
"/Users/Lance/Desktop/sample/lib/urlkit.swc"
]

It works fine, but there's duplication in the library-path arguments:

Execute: mxmlc...
-library-path+=/Users/Lance/Desktop/sample/lib/mate.swc
-library-path+=/Users/Lance/Desktop/sample/lib/restfulx.swc
-library-path+=/Users/Lance/Desktop/sample/lib/urlkit.swc
-library-path+=/Users/Lance/Desktop/sample/lib/mate.swc
-library-path+=/Users/Lance/Desktop/sample/lib/restfulx.swc
-library-path+=/Users/Lance/Desktop/sample/lib/urlkit.swc

But if it has spaces, it doesn't work:

m.library_path = [
"/Users/Lance/Documents/Flex\ Builder\ 3/mate/bin/mate.swc",
"/Users/Lance/Documents/Flex\ Builder\ 3/restfulx/bin/restfulx.swc",
"/Users/Lance/Documents/Flex\ Builder\ 3/urlkit/bin/urlkit.swc"
]

[ERROR] command line: Error: default arguments may not be interspersed with other options

Any ideas? It has to do with the spaces but I haven't figured it out.

Lance

Add a task for launching and closing browser(s)

This task should work similarly to the flashplayer task, but instead of
launching the desktop flashplayer, it should launch a browser.

It will need to close the browser upon request in order to be useful for
continuous integration environments.

read from stderr first while excecuting flash complier

I have a project I'm trying to build with sprout. It generates a lot of warnings. "rake debug" was freezing up. I think it's because sprout reads from stdout first, but with a lot of warning the stderr buffer fills up and the compiler blocks waiting to write to stderr. I toyed with trying to figure out how to do non blocking reads from stdout/stderr, but apparently popen4 was supposed to fix this. But it doesn't.

Simpler fix: read from stderr first. It looks stdout never has a lot of data on it.

Sprouts does not work on ruby 1.9.1

Sprouts (0.7.223) does not run on ruby 1.9.1. this is due to rubyzip being a 3 year old unmaintained project and depending on ftools (and possibly other reasons.)

Compile issues for as2 projects on Linux

What steps will reproduce the problem?
1. Create new as2 project
2. Attempt to compile
3. [ERROR] Directory ‘std’ containing MTASC class headers cannot be found :
Please install it or set classpath using ‘-cp’ so it can be found.
4. Add MTASC std and std8 libraries to classpath in rakefile.rb
5. Attempt to compile
6. [ERROR]
/home/username/.sprouts/cache/tool/mtasc-tool/tgz/std8/flash/geom/Point.as:10:
characters 10-13 : parse error Unexpected add
7. Add t.version = 8 to rakefile.rb compile task
8. Compiles fine

What version of the product are you using? On what operating system?
sprout 0.7.170 on Ubuntu 8.04

Mac OS X Configuration: flashlog.txt not created automatically

(added by scott mcmillin) I’ve done two installs now (myself and fellow developer) and both times had
to manually create both the flashlog.txt file and the containing directory
called Logs. Would be nice if this were created automatically for new installs.

Error: undefined method 'sort_obj' when trying to rake

I did a fresh install of Ruby 1.8.6 and Sprouts on a new machine today. When I tried to create a new AS3 project, I got an error "undefined method 'sort_obj'". Same thing when trying to rake an older AS2 project. Here's the full trace from the AS2 failure:

rake --trace

rake aborted!
undefined method sort_obj' for #<Gem::Specification:0x43f85b4> c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout/generator/base_mixins.rb:52:insprout_search'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in sort_by' c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout/generator/base_mixins.rb:52:ineach'
c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout/generator/base_mixins.rb:52:in sort_by' c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout/generator/base_mixins.rb:52:insprout_search'
c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout.rb:331:in find_gem_spec' c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout.rb:277:insprout'
c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout.rb:469:in sprout' C:/Users/robert.penner/Documents/scratchpad/sprouts/Merch/rakefile.rb:4 c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2359:inload'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2359:in raw_load_rakefile' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1993:inload_rakefile'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in standard_exception_handling' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1992:inload_rakefile'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1976:in run' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:instandard_exception_handling'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in run' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake:31 c:/ruby/bin/rake:16:inload'
c:/ruby/bin/rake:16

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.