sprout 1.0.32.pre → 1.0.35.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/Gemfile +2 -1
- data/Gemfile.lock +4 -2
- data/README.textile +12 -13
- data/VERSION +1 -0
- data/doc/Dir.html +288 -0
- data/doc/Rake/Task.html +184 -0
- data/doc/Sprout.html +144 -0
- data/doc/Sprout/ArchiveUnpacker.html +1246 -0
- data/doc/Sprout/Base.html +126 -0
- data/doc/Sprout/Base/ClassMethods.html +434 -0
- data/doc/Sprout/Concern.html +353 -0
- data/doc/Sprout/Daemon.html +166 -0
- data/doc/Sprout/Daemon/ClassMethods.html +244 -0
- data/doc/Sprout/Daemon/InstanceMethods.html +601 -0
- data/doc/Sprout/Errors.html +101 -0
- data/doc/Sprout/Errors/ArchiveUnpackerError.html +125 -0
- data/doc/Sprout/Errors/DestinationExistsError.html +133 -0
- data/doc/Sprout/Errors/DuplicateMemberError.html +132 -0
- data/doc/Sprout/Errors/ExecutableError.html +125 -0
- data/doc/Sprout/Errors/ExecutableRegistrationError.html +132 -0
- data/doc/Sprout/Errors/ExecutionError.html +121 -0
- data/doc/Sprout/Errors/GeneratorError.html +125 -0
- data/doc/Sprout/Errors/InvalidArgumentError.html +132 -0
- data/doc/Sprout/Errors/LoadError.html +121 -0
- data/doc/Sprout/Errors/MissingArgumentError.html +132 -0
- data/doc/Sprout/Errors/MissingExecutableError.html +132 -0
- data/doc/Sprout/Errors/MissingGeneratorError.html +132 -0
- data/doc/Sprout/Errors/MissingTemplateError.html +132 -0
- data/doc/Sprout/Errors/ProcessRunnerError.html +121 -0
- data/doc/Sprout/Errors/RemoteFileLoaderError.html +110 -0
- data/doc/Sprout/Errors/SproutError.html +114 -0
- data/doc/Sprout/Errors/UnknownArchiveType.html +122 -0
- data/doc/Sprout/Errors/UsageError.html +121 -0
- data/doc/Sprout/Errors/ValidationError.html +121 -0
- data/doc/Sprout/Errors/VersionRequirementNotMetError.html +121 -0
- data/doc/Sprout/Executable.html +173 -0
- data/doc/Sprout/Executable/Boolean.html +483 -0
- data/doc/Sprout/Executable/ClassMethods.html +417 -0
- data/doc/Sprout/Executable/CollectionParam.html +483 -0
- data/doc/Sprout/Executable/FileParam.html +484 -0
- data/doc/Sprout/Executable/Files.html +292 -0
- data/doc/Sprout/Executable/InstanceMethods.html +2006 -0
- data/doc/Sprout/Executable/Number.html +141 -0
- data/doc/Sprout/Executable/Param.html +2818 -0
- data/doc/Sprout/Executable/ParameterFactory.html +232 -0
- data/doc/Sprout/Executable/Path.html +223 -0
- data/doc/Sprout/Executable/Paths.html +253 -0
- data/doc/Sprout/Executable/StringParam.html +213 -0
- data/doc/Sprout/Executable/Strings.html +167 -0
- data/doc/Sprout/Executable/Url.html +160 -0
- data/doc/Sprout/Executable/Urls.html +170 -0
- data/doc/Sprout/FileTarget.html +1109 -0
- data/doc/Sprout/Generator.html +689 -0
- data/doc/Sprout/Generator/Base.html +1626 -0
- data/doc/Sprout/Generator/Command.html +690 -0
- data/doc/Sprout/Generator/DirectoryManifest.html +476 -0
- data/doc/Sprout/Generator/FileManifest.html +572 -0
- data/doc/Sprout/Generator/Manifest.html +377 -0
- data/doc/Sprout/Generator/TemplateManifest.html +196 -0
- data/doc/Sprout/GeneratorGenerator.html +1018 -0
- data/doc/Sprout/Library.html +1141 -0
- data/doc/Sprout/LibraryGenerator.html +309 -0
- data/doc/Sprout/Log.html +496 -0
- data/doc/Sprout/MXMLC.html +6373 -0
- data/doc/Sprout/Platform.html +714 -0
- data/doc/Sprout/ProcessRunner.html +1352 -0
- data/doc/Sprout/ProgressBar.html +376 -0
- data/doc/Sprout/ProgressBarImpl.html +2119 -0
- data/doc/Sprout/ProgressBarManager.html +434 -0
- data/doc/Sprout/ProgressBarOutputStream.html +416 -0
- data/doc/Sprout/RDocParser.html +211 -0
- data/doc/Sprout/RemoteFileLoader.html +172 -0
- data/doc/Sprout/RemoteFileTarget.html +679 -0
- data/doc/Sprout/ReversedProgressBar.html +194 -0
- data/doc/Sprout/RubyFeature.html +155 -0
- data/doc/Sprout/RubyFeature/ClassMethods.html +1065 -0
- data/doc/Sprout/RubyGenerator.html +764 -0
- data/doc/Sprout/Specification.html +767 -0
- data/doc/Sprout/System.html +191 -0
- data/doc/Sprout/System/BaseSystem.html +1455 -0
- data/doc/Sprout/System/JavaSystem.html +122 -0
- data/doc/Sprout/System/OSXSystem.html +335 -0
- data/doc/Sprout/System/ThreadMock.html +193 -0
- data/doc/Sprout/System/UnixSystem.html +584 -0
- data/doc/Sprout/System/VistaSystem.html +251 -0
- data/doc/Sprout/System/WinNixSystem.html +325 -0
- data/doc/Sprout/System/WinSystem.html +571 -0
- data/doc/Sprout/ToolGenerator.html +931 -0
- data/doc/Sprout/VERSION.html +128 -0
- data/doc/SproutTestCase.html +1412 -0
- data/doc/String.html +286 -0
- data/doc/_index.html +1035 -0
- data/doc/class_list.html +36 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +53 -0
- data/doc/css/style.css +310 -0
- data/doc/file.README.html +96 -0
- data/doc/file.archive_unpacker.html +288 -0
- data/doc/file.base.html +208 -0
- data/doc/file.base_system.html +278 -0
- data/doc/file.boolean.html +135 -0
- data/doc/file.collection_param.html +139 -0
- data/doc/file.command.html +126 -0
- data/doc/file.concern.html +136 -0
- data/doc/file.daemon.html +309 -0
- data/doc/file.dir.html +76 -0
- data/doc/file.directory_manifest.html +122 -0
- data/doc/file.errors.html +147 -0
- data/doc/file.executable.html +638 -0
- data/doc/file.file_manifest.html +109 -0
- data/doc/file.file_param.html +120 -0
- data/doc/file.file_target.html +140 -0
- data/doc/file.files.html +85 -0
- data/doc/file.generator.html +296 -0
- data/doc/file.generator_class.html +72 -0
- data/doc/file.generator_generator.html +137 -0
- data/doc/file.generator_test.html +92 -0
- data/doc/file.generator_test_helper.html +67 -0
- data/doc/file.java_system.html +62 -0
- data/doc/file.library.html +291 -0
- data/doc/file.library_generator.html +74 -0
- data/doc/file.log.html +100 -0
- data/doc/file.manifest.html +67 -0
- data/doc/file.mxmlc.html +740 -0
- data/doc/file.number.html +67 -0
- data/doc/file.osx_system.html +79 -0
- data/doc/file.param.html +491 -0
- data/doc/file.parameter_factory.html +119 -0
- data/doc/file.path.html +81 -0
- data/doc/file.paths.html +80 -0
- data/doc/file.platform.html +124 -0
- data/doc/file.process_runner.html +224 -0
- data/doc/file.progress_bar.html +390 -0
- data/doc/file.rdoc_parser.html +145 -0
- data/doc/file.remote_file_loader.html +117 -0
- data/doc/file.remote_file_target.html +176 -0
- data/doc/file.ruby_base.html +64 -0
- data/doc/file.ruby_feature.html +244 -0
- data/doc/file.ruby_generator.html +118 -0
- data/doc/file.ruby_input.html +62 -0
- data/doc/file.ruby_test_case.html +78 -0
- data/doc/file.ruby_test_helper.html +61 -0
- data/doc/file.specification.html +248 -0
- data/doc/file.sprout.html +64 -0
- data/doc/file.sprout_test_case.html +280 -0
- data/doc/file.string.html +72 -0
- data/doc/file.string_param.html +76 -0
- data/doc/file.strings.html +71 -0
- data/doc/file.system.html +86 -0
- data/doc/file.template_manifest.html +67 -0
- data/doc/file.tool.html +92 -0
- data/doc/file.tool_generator.html +90 -0
- data/doc/file.unix_system.html +128 -0
- data/doc/file.url.html +71 -0
- data/doc/file.urls.html +70 -0
- data/doc/file.version.html +71 -0
- data/doc/file.vista_system.html +69 -0
- data/doc/file.win_nix_system.html +88 -0
- data/doc/file.win_system.html +129 -0
- data/doc/file_list.html +230 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +96 -0
- data/doc/js/app.js +202 -0
- data/doc/js/full_list.js +149 -0
- data/doc/js/jquery.js +154 -0
- data/doc/method_list.html +3355 -0
- data/doc/top-level-namespace.html +192 -0
- data/lib/sprout/archive_unpacker.rb +203 -137
- data/lib/sprout/base.rb +38 -11
- data/lib/sprout/concern.rb +51 -0
- data/lib/sprout/daemon.rb +256 -0
- data/lib/sprout/executable.rb +40 -11
- data/lib/sprout/executable/boolean.rb +47 -1
- data/lib/sprout/executable/collection_param.rb +33 -1
- data/lib/sprout/executable/file_param.rb +16 -3
- data/lib/sprout/executable/files.rb +5 -0
- data/lib/sprout/executable/number.rb +5 -1
- data/lib/sprout/executable/param.rb +232 -16
- data/lib/sprout/executable/parameter_factory.rb +39 -1
- data/lib/sprout/executable/path.rb +7 -1
- data/lib/sprout/executable/paths.rb +6 -1
- data/lib/sprout/executable/string_param.rb +8 -1
- data/lib/sprout/executable/strings.rb +7 -1
- data/lib/sprout/executable/url.rb +8 -1
- data/lib/sprout/executable/urls.rb +7 -1
- data/lib/sprout/file_target.rb +11 -11
- data/lib/sprout/generator.rb +244 -0
- data/lib/sprout/generator/base.rb +0 -94
- data/lib/sprout/generators/generator/generator_generator.rb +35 -1
- data/lib/sprout/generators/generator/templates/generator_class.rb +3 -3
- data/lib/sprout/library.rb +75 -0
- data/lib/sprout/log.rb +11 -12
- data/lib/sprout/process_runner.rb +29 -9
- data/lib/sprout/remote_file_target.rb +20 -9
- data/lib/sprout/system/base_system.rb +11 -3
- data/lib/sprout/test/sprout_test_case.rb +1 -0
- data/lib/sprout/version.rb +7 -11
- data/rakefile.rb +7 -12
- data/script/add_param_handler.rb +43 -0
- data/sprout.gemspec +2 -3
- data/test/fixtures/executable/fdb.rb +764 -0
- data/test/fixtures/executable/flex3sdk_gem/fdb +60 -0
- data/test/fixtures/executable/mxmlc.rb +9 -11
- data/test/unit/daemon_test.rb +61 -0
- data/test/unit/process_runner_test.rb +21 -0
- data/test/unit/remote_file_target_test.rb +45 -11
- data/test/unit/sprout_test_helper.rb +1 -1
- metadata +210 -29
@@ -0,0 +1,60 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
class FakeFDB
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
str = "Adobe fdb (Flash Player Debugger) [build 16076]\n"
|
7
|
+
str << "Copyright (c) 2004-2007 Adobe, Inc. All rights reserved.\n"
|
8
|
+
str << "(fdb) "
|
9
|
+
printf str
|
10
|
+
gather_input
|
11
|
+
end
|
12
|
+
|
13
|
+
def gather_input
|
14
|
+
$stdout.flush
|
15
|
+
command = $stdin.gets.chomp!
|
16
|
+
if command == "run"
|
17
|
+
handle_run
|
18
|
+
elsif command == "continue"
|
19
|
+
handle_continue
|
20
|
+
elsif command == "kill"
|
21
|
+
handle_kill
|
22
|
+
elsif command == "quit"
|
23
|
+
handle_quit
|
24
|
+
else
|
25
|
+
puts ""
|
26
|
+
raise "Don't know how to respond to #{command}"
|
27
|
+
end
|
28
|
+
gather_input
|
29
|
+
end
|
30
|
+
|
31
|
+
def handle_run
|
32
|
+
str = "Waiting for Player to connect\n"
|
33
|
+
str << "Player connected; session starting.\n"
|
34
|
+
str << "Set breakpoints and then type 'continue' to resume the session.\n"
|
35
|
+
str = "[SWF] Users:lbayes:Projects:AsUnit-P2:asunit-4.0:bin:AsUnitRunner.swf - 226,833 bytes after decompression\n"
|
36
|
+
str << "(fdb) "
|
37
|
+
printf str
|
38
|
+
end
|
39
|
+
|
40
|
+
def handle_continue
|
41
|
+
str = "Breakpoint 1, AsUnitRunner() at AsUnitRunner.as:12\n"
|
42
|
+
str << "12 core = new TextCore();\n"
|
43
|
+
str << "(fdb) "
|
44
|
+
printf str
|
45
|
+
end
|
46
|
+
|
47
|
+
def handle_kill
|
48
|
+
printf "Kill the program being debugged? (y or n) "
|
49
|
+
end
|
50
|
+
|
51
|
+
def handle_quit
|
52
|
+
puts ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
|
53
|
+
puts ">> EXITING NOW!"
|
54
|
+
exit
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
|
59
|
+
fdb = FakeFDB.new
|
60
|
+
|
@@ -433,12 +433,7 @@ module Sprout
|
|
433
433
|
# You run the mxmlc compiler multiple times to create SWF files for more than one locale,
|
434
434
|
# with only the locale option changing.
|
435
435
|
#
|
436
|
-
#
|
437
|
-
# plus the token {locale}, in the source-path; for example:
|
438
|
-
#
|
439
|
-
# mxmlc -locale en_EN -source-path locale/{locale} -file-specs MainApp.mxml
|
440
|
-
#
|
441
|
-
# For more information, see Localizing Flex Applicationsin (http://livedocs.adobe.com/flex/2/docs/00000898.html#129288) Flex 2 Developer's Guide.
|
436
|
+
# For more information, see Localizing Flex Applications in (http://livedocs.adobe.com/flex/2/docs/00000898.html#129288) Flex 2 Developer's Guide.
|
442
437
|
#
|
443
438
|
add_param :locale, String
|
444
439
|
|
@@ -512,13 +507,16 @@ module Sprout
|
|
512
507
|
add_param_alias :rsl, :runtime_shared_libraries
|
513
508
|
|
514
509
|
##
|
515
|
-
#
|
516
|
-
#
|
517
|
-
#
|
510
|
+
# Runtime shared library path.
|
511
|
+
#
|
512
|
+
# t.runtime_shared_library_path << "[path-element] [rsl-url] [policy-file-url]"
|
513
|
+
#
|
514
|
+
# @see Sprout::MXMLC#rslp
|
515
|
+
#
|
518
516
|
add_param :runtime_shared_library_path, Strings
|
519
517
|
|
520
518
|
##
|
521
|
-
# Alias for runtime_shared_library_path
|
519
|
+
# Alias for #runtime_shared_library_path
|
522
520
|
#
|
523
521
|
add_param_alias :rslp, :runtime_shared_library_path
|
524
522
|
|
@@ -660,7 +658,7 @@ module Sprout
|
|
660
658
|
set :default_prefix, '-'
|
661
659
|
|
662
660
|
##
|
663
|
-
# The default gem name
|
661
|
+
# The default gem name
|
664
662
|
#
|
665
663
|
set :pkg_name, 'flex4sdk'
|
666
664
|
|
@@ -0,0 +1,61 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'fixtures/executable/fdb'
|
3
|
+
|
4
|
+
class DaemonTest < Test::Unit::TestCase
|
5
|
+
include SproutTestCase
|
6
|
+
|
7
|
+
context "a new daemon delegate" do
|
8
|
+
|
9
|
+
setup do
|
10
|
+
# Uncomment to see actual output:
|
11
|
+
#Sprout::Log.debug = false
|
12
|
+
configure_fdb_fake
|
13
|
+
end
|
14
|
+
|
15
|
+
should "execute without shell params" do
|
16
|
+
@fdb = Sprout::FDB.new
|
17
|
+
@fdb.run
|
18
|
+
@fdb.break "AsUnitRunner:12"
|
19
|
+
@fdb.continue
|
20
|
+
@fdb.kill
|
21
|
+
@fdb.confirm
|
22
|
+
@fdb.quit
|
23
|
+
@fdb.execute
|
24
|
+
end
|
25
|
+
|
26
|
+
should "execute from rake task" do
|
27
|
+
f = fdb :fdb_debug do |t|
|
28
|
+
t.run
|
29
|
+
t.break "AsUnitRunner:12"
|
30
|
+
t.continue
|
31
|
+
t.kill
|
32
|
+
t.confirm
|
33
|
+
t.quit
|
34
|
+
end
|
35
|
+
|
36
|
+
f.execute
|
37
|
+
|
38
|
+
# NOTE: If this call raises, then the
|
39
|
+
# Executable.update_rake_task_name method
|
40
|
+
# must have changed, and the Daemon override
|
41
|
+
# is no longer preventing non-File tasks
|
42
|
+
# from being added to the CLEAN collection.
|
43
|
+
#
|
44
|
+
# Adding this as a message to the error would
|
45
|
+
# not display for some reason...
|
46
|
+
assert_equal 0, CLEAN.size
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
50
|
+
|
51
|
+
private
|
52
|
+
|
53
|
+
def configure_fdb_fake
|
54
|
+
# Comment the following and install the flashsdk
|
55
|
+
# to run test against actual fdb:
|
56
|
+
@fdb_fake = File.join(fixtures, 'executable', 'flex3sdk_gem', 'fdb')
|
57
|
+
path_response = OpenStruct.new(:path => @fdb_fake)
|
58
|
+
Sprout::Executable.expects(:load).with(:fdb, 'flex4', '>= 4.1.0.pre').returns path_response
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
@@ -76,6 +76,27 @@ class ProcessRunnerTest < Test::Unit::TestCase
|
|
76
76
|
@runner.execute_win32("dir")
|
77
77
|
end
|
78
78
|
|
79
|
+
should "attempt to load win32-open 3 gem on Ruby 1.8.6" do
|
80
|
+
@runner.stubs(:ruby_version).returns('1.8.6')
|
81
|
+
@runner.expects(:open3_popen3_block).never
|
82
|
+
@runner.expects(:win32_open3_block)
|
83
|
+
@runner.execute_win32('ls')
|
84
|
+
end
|
85
|
+
|
86
|
+
should "attempt to load win32-open 3 gem on Ruby 1.8.7" do
|
87
|
+
@runner.stubs(:ruby_version).returns('1.8.7')
|
88
|
+
@runner.expects(:open3_popen3_block).never
|
89
|
+
@runner.expects(:win32_open3_block)
|
90
|
+
@runner.execute_win32('ls')
|
91
|
+
end
|
92
|
+
|
93
|
+
should "NOT load win32-open 3 gem on Ruby 1.9.2" do
|
94
|
+
@runner.stubs(:ruby_version).returns('1.9.2')
|
95
|
+
@runner.expects(:win32_open3_block).never
|
96
|
+
@runner.expects(:open3_popen3_block)
|
97
|
+
@runner.execute_win32('ls')
|
98
|
+
end
|
99
|
+
|
79
100
|
end
|
80
101
|
|
81
102
|
|
@@ -57,25 +57,57 @@ class RemoteFileTargetTest < Test::Unit::TestCase
|
|
57
57
|
t.add_executable :echochamber, 'bin/echochamber.sh'
|
58
58
|
end
|
59
59
|
|
60
|
-
@unpacked_file = File.join(temp_cache, 'unpacked')
|
61
|
-
@target.stubs(:unpacked_file).returns @unpacked_file
|
62
|
-
|
63
60
|
@downloaded_file = File.join(temp_cache, 'downloaded.zip')
|
64
61
|
@target.stubs(:downloaded_file).returns @downloaded_file
|
65
62
|
|
66
|
-
|
63
|
+
@unpacked_file = File.join(temp_cache, 'unpacked')
|
64
|
+
|
65
|
+
|
66
|
+
downloaded_bytes = File.join(fixtures, 'remote_file_target', 'echochamber-test.zip')
|
67
67
|
@archive_bytes = File.open(downloaded_bytes, 'rb').read
|
68
68
|
|
69
|
+
@env_path = File.join(fixtures, 'env_path')
|
70
|
+
|
69
71
|
@target.stubs(:download_archive).returns @archive_bytes
|
70
|
-
|
72
|
+
end
|
71
73
|
|
72
74
|
teardown do
|
73
|
-
|
75
|
+
remove_file File.join(fixtures, 'sprout')
|
76
|
+
ENV['ECHOCHAMBER'] = nil
|
77
|
+
ENV['ECHOCHAMBER_1_PRE'] = nil
|
78
|
+
ENV['SPROUT_ECHOCHAMBER'] = nil
|
79
|
+
ENV['SPROUT_ECHOCHAMBER_1_PRE'] = nil
|
80
|
+
end
|
81
|
+
|
82
|
+
context "that is identified by environment var" do
|
83
|
+
should "use the provided path" do
|
84
|
+
ENV["ECHOCHAMBER"] = @env_path
|
85
|
+
assert_equal @env_path, @target.unpacked_file
|
86
|
+
end
|
87
|
+
|
88
|
+
should "use the provided path with version" do
|
89
|
+
ENV["ECHOCHAMBER"] = File.join(@env_path, 'WRONG')
|
90
|
+
ENV["ECHOCHAMBER_1_0_PRE"] = @env_path
|
91
|
+
assert_equal @env_path, @target.unpacked_file
|
92
|
+
end
|
93
|
+
|
94
|
+
should "use sprout prefixed env first if found" do
|
95
|
+
ENV["SPROUT_ECHOCHAMBER"] = @env_path
|
96
|
+
ENV["ECHOCHAMBER"] = File.join(@env_path, 'WRONG')
|
97
|
+
assert_equal @env_path, @target.unpacked_file
|
98
|
+
end
|
99
|
+
|
100
|
+
should "load from env path if available" do
|
101
|
+
end
|
74
102
|
end
|
75
103
|
|
76
104
|
context "that has already been UNPACKED" do
|
77
105
|
should "not be DOWNLOADED or unpacked" do
|
78
|
-
|
106
|
+
FileUtils.mkdir_p @unpacked_file
|
107
|
+
create_file File.join(@unpacked_file, 'content')
|
108
|
+
@target.stubs(:unpacked_file).returns @unpacked_file
|
109
|
+
|
110
|
+
@target.expects(:prompt_for_md5_failure).never
|
79
111
|
@target.expects(:download_archive).never
|
80
112
|
@target.expects(:unpack_archive).never
|
81
113
|
@target.resolve
|
@@ -84,7 +116,8 @@ class RemoteFileTargetTest < Test::Unit::TestCase
|
|
84
116
|
|
85
117
|
context "that had an unpack failure" do
|
86
118
|
should "still unpack the file" do
|
87
|
-
|
119
|
+
@target.stubs(:unpacked_file).returns @unpacked_file
|
120
|
+
# Create the expected unpacked_file:
|
88
121
|
FileUtils.mkdir_p @unpacked_file
|
89
122
|
@target.stubs('should_unpack?').returns true
|
90
123
|
@target.expects(:unpack_archive)
|
@@ -93,7 +126,6 @@ class RemoteFileTargetTest < Test::Unit::TestCase
|
|
93
126
|
end
|
94
127
|
|
95
128
|
context "that has been DOWNLOADED, but not UNPACKED" do
|
96
|
-
|
97
129
|
should "not unpack if md5 doesn't match, and user responds in negative" do
|
98
130
|
@target.stubs('should_unpack?').returns false
|
99
131
|
@target.expects(:unpack_archive).never
|
@@ -101,6 +133,7 @@ class RemoteFileTargetTest < Test::Unit::TestCase
|
|
101
133
|
end
|
102
134
|
|
103
135
|
should "unpack but not download" do
|
136
|
+
@target.stubs(:unpacked_file).returns @unpacked_file
|
104
137
|
@target.stubs('should_unpack?').returns true
|
105
138
|
@target.resolve
|
106
139
|
assert_not_empty @unpacked_file
|
@@ -109,8 +142,9 @@ class RemoteFileTargetTest < Test::Unit::TestCase
|
|
109
142
|
|
110
143
|
context "that has not yet been DOWNLOADED, or UNPACKED" do
|
111
144
|
should "download and unpack the remote archive" do
|
112
|
-
|
113
|
-
|
145
|
+
@target.stubs(:unpacked_file).returns @unpacked_file
|
146
|
+
@target.stubs('should_unpack?').returns true
|
147
|
+
#@target.expects(:download_archive)
|
114
148
|
#@target.expects(:unpack_archive)
|
115
149
|
@target.resolve
|
116
150
|
|
@@ -9,7 +9,7 @@ Bundler.setup :default, :development
|
|
9
9
|
require 'shoulda'
|
10
10
|
require 'mocha'
|
11
11
|
|
12
|
-
lib = File.join(File.dirname(__FILE__), '..', '..', 'lib')
|
12
|
+
lib = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
|
13
13
|
$:.unshift lib unless $:.include? lib
|
14
14
|
|
15
15
|
require 'sprout'
|
metadata
CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 35
|
9
9
|
- pre
|
10
|
-
version: 1.0.
|
10
|
+
version: 1.0.35.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-
|
18
|
+
date: 2010-12-22 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -48,24 +48,9 @@ dependencies:
|
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: rdoc
|
53
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
-
none: false
|
55
|
-
requirements:
|
56
|
-
- - ">="
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
segments:
|
59
|
-
- 2
|
60
|
-
- 5
|
61
|
-
- 8
|
62
|
-
version: 2.5.8
|
63
|
-
type: :runtime
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: *id003
|
66
51
|
- !ruby/object:Gem::Dependency
|
67
52
|
name: rubyzip
|
68
|
-
requirement: &
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
69
54
|
none: false
|
70
55
|
requirements:
|
71
56
|
- - "="
|
@@ -77,10 +62,10 @@ dependencies:
|
|
77
62
|
version: 0.9.4
|
78
63
|
type: :runtime
|
79
64
|
prerelease: false
|
80
|
-
version_requirements: *
|
65
|
+
version_requirements: *id003
|
81
66
|
- !ruby/object:Gem::Dependency
|
82
67
|
name: archive-tar-minitar
|
83
|
-
requirement: &
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
84
69
|
none: false
|
85
70
|
requirements:
|
86
71
|
- - "="
|
@@ -92,10 +77,10 @@ dependencies:
|
|
92
77
|
version: 0.5.2
|
93
78
|
type: :runtime
|
94
79
|
prerelease: false
|
95
|
-
version_requirements: *
|
80
|
+
version_requirements: *id004
|
96
81
|
- !ruby/object:Gem::Dependency
|
97
82
|
name: open4
|
98
|
-
requirement: &
|
83
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
99
84
|
none: false
|
100
85
|
requirements:
|
101
86
|
- - ">="
|
@@ -107,9 +92,22 @@ dependencies:
|
|
107
92
|
version: 0.9.6
|
108
93
|
type: :runtime
|
109
94
|
prerelease: false
|
95
|
+
version_requirements: *id005
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: yard
|
98
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
99
|
+
none: false
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
segments:
|
104
|
+
- 0
|
105
|
+
version: "0"
|
106
|
+
type: :development
|
107
|
+
prerelease: false
|
110
108
|
version_requirements: *id006
|
111
109
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
110
|
+
name: RedCloth
|
113
111
|
requirement: &id007 !ruby/object:Gem::Requirement
|
114
112
|
none: false
|
115
113
|
requirements:
|
@@ -122,7 +120,7 @@ dependencies:
|
|
122
120
|
prerelease: false
|
123
121
|
version_requirements: *id007
|
124
122
|
- !ruby/object:Gem::Dependency
|
125
|
-
name:
|
123
|
+
name: shoulda
|
126
124
|
requirement: &id008 !ruby/object:Gem::Requirement
|
127
125
|
none: false
|
128
126
|
requirements:
|
@@ -135,7 +133,7 @@ dependencies:
|
|
135
133
|
prerelease: false
|
136
134
|
version_requirements: *id008
|
137
135
|
- !ruby/object:Gem::Dependency
|
138
|
-
name:
|
136
|
+
name: mocha
|
139
137
|
requirement: &id009 !ruby/object:Gem::Requirement
|
140
138
|
none: false
|
141
139
|
requirements:
|
@@ -148,7 +146,7 @@ dependencies:
|
|
148
146
|
prerelease: false
|
149
147
|
version_requirements: *id009
|
150
148
|
- !ruby/object:Gem::Dependency
|
151
|
-
name:
|
149
|
+
name: flay
|
152
150
|
requirement: &id010 !ruby/object:Gem::Requirement
|
153
151
|
none: false
|
154
152
|
requirements:
|
@@ -161,7 +159,7 @@ dependencies:
|
|
161
159
|
prerelease: false
|
162
160
|
version_requirements: *id010
|
163
161
|
- !ruby/object:Gem::Dependency
|
164
|
-
name:
|
162
|
+
name: flog
|
165
163
|
requirement: &id011 !ruby/object:Gem::Requirement
|
166
164
|
none: false
|
167
165
|
requirements:
|
@@ -174,7 +172,7 @@ dependencies:
|
|
174
172
|
prerelease: false
|
175
173
|
version_requirements: *id011
|
176
174
|
- !ruby/object:Gem::Dependency
|
177
|
-
name:
|
175
|
+
name: heckle
|
178
176
|
requirement: &id012 !ruby/object:Gem::Requirement
|
179
177
|
none: false
|
180
178
|
requirements:
|
@@ -186,6 +184,19 @@ dependencies:
|
|
186
184
|
type: :development
|
187
185
|
prerelease: false
|
188
186
|
version_requirements: *id012
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: rcov
|
189
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
190
|
+
none: false
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
segments:
|
195
|
+
- 0
|
196
|
+
version: "0"
|
197
|
+
type: :development
|
198
|
+
prerelease: false
|
199
|
+
version_requirements: *id013
|
189
200
|
description: Project Sprouts gives you access to beautiful generators and easily customized templates, automated build scripts, distributed libraries and simple system configuration
|
190
201
|
email: projectsprouts@googlegroups.com
|
191
202
|
executables:
|
@@ -208,11 +219,175 @@ files:
|
|
208
219
|
- bin/sprout-suite
|
209
220
|
- bin/sprout-test
|
210
221
|
- bin/sprout-tool
|
222
|
+
- doc/_index.html
|
223
|
+
- doc/class_list.html
|
224
|
+
- doc/css/common.css
|
225
|
+
- doc/css/full_list.css
|
226
|
+
- doc/css/style.css
|
227
|
+
- doc/Dir.html
|
228
|
+
- doc/file.archive_unpacker.html
|
229
|
+
- doc/file.base.html
|
230
|
+
- doc/file.base_system.html
|
231
|
+
- doc/file.boolean.html
|
232
|
+
- doc/file.collection_param.html
|
233
|
+
- doc/file.command.html
|
234
|
+
- doc/file.concern.html
|
235
|
+
- doc/file.daemon.html
|
236
|
+
- doc/file.dir.html
|
237
|
+
- doc/file.directory_manifest.html
|
238
|
+
- doc/file.errors.html
|
239
|
+
- doc/file.executable.html
|
240
|
+
- doc/file.file_manifest.html
|
241
|
+
- doc/file.file_param.html
|
242
|
+
- doc/file.file_target.html
|
243
|
+
- doc/file.files.html
|
244
|
+
- doc/file.generator.html
|
245
|
+
- doc/file.generator_class.html
|
246
|
+
- doc/file.generator_generator.html
|
247
|
+
- doc/file.generator_test.html
|
248
|
+
- doc/file.generator_test_helper.html
|
249
|
+
- doc/file.java_system.html
|
250
|
+
- doc/file.library.html
|
251
|
+
- doc/file.library_generator.html
|
252
|
+
- doc/file.log.html
|
253
|
+
- doc/file.manifest.html
|
254
|
+
- doc/file.mxmlc.html
|
255
|
+
- doc/file.number.html
|
256
|
+
- doc/file.osx_system.html
|
257
|
+
- doc/file.param.html
|
258
|
+
- doc/file.parameter_factory.html
|
259
|
+
- doc/file.path.html
|
260
|
+
- doc/file.paths.html
|
261
|
+
- doc/file.platform.html
|
262
|
+
- doc/file.process_runner.html
|
263
|
+
- doc/file.progress_bar.html
|
264
|
+
- doc/file.rdoc_parser.html
|
265
|
+
- doc/file.README.html
|
266
|
+
- doc/file.remote_file_loader.html
|
267
|
+
- doc/file.remote_file_target.html
|
268
|
+
- doc/file.ruby_base.html
|
269
|
+
- doc/file.ruby_feature.html
|
270
|
+
- doc/file.ruby_generator.html
|
271
|
+
- doc/file.ruby_input.html
|
272
|
+
- doc/file.ruby_test_case.html
|
273
|
+
- doc/file.ruby_test_helper.html
|
274
|
+
- doc/file.specification.html
|
275
|
+
- doc/file.sprout.html
|
276
|
+
- doc/file.sprout_test_case.html
|
277
|
+
- doc/file.string.html
|
278
|
+
- doc/file.string_param.html
|
279
|
+
- doc/file.strings.html
|
280
|
+
- doc/file.system.html
|
281
|
+
- doc/file.template_manifest.html
|
282
|
+
- doc/file.tool.html
|
283
|
+
- doc/file.tool_generator.html
|
284
|
+
- doc/file.unix_system.html
|
285
|
+
- doc/file.url.html
|
286
|
+
- doc/file.urls.html
|
287
|
+
- doc/file.version.html
|
288
|
+
- doc/file.vista_system.html
|
289
|
+
- doc/file.win_nix_system.html
|
290
|
+
- doc/file.win_system.html
|
291
|
+
- doc/file_list.html
|
292
|
+
- doc/frames.html
|
293
|
+
- doc/index.html
|
294
|
+
- doc/js/app.js
|
295
|
+
- doc/js/full_list.js
|
296
|
+
- doc/js/jquery.js
|
297
|
+
- doc/method_list.html
|
298
|
+
- doc/Rake/Task.html
|
299
|
+
- doc/Sprout/ArchiveUnpacker.html
|
300
|
+
- doc/Sprout/Base/ClassMethods.html
|
301
|
+
- doc/Sprout/Base.html
|
302
|
+
- doc/Sprout/Concern.html
|
303
|
+
- doc/Sprout/Daemon/ClassMethods.html
|
304
|
+
- doc/Sprout/Daemon/InstanceMethods.html
|
305
|
+
- doc/Sprout/Daemon.html
|
306
|
+
- doc/Sprout/Errors/ArchiveUnpackerError.html
|
307
|
+
- doc/Sprout/Errors/DestinationExistsError.html
|
308
|
+
- doc/Sprout/Errors/DuplicateMemberError.html
|
309
|
+
- doc/Sprout/Errors/ExecutableError.html
|
310
|
+
- doc/Sprout/Errors/ExecutableRegistrationError.html
|
311
|
+
- doc/Sprout/Errors/ExecutionError.html
|
312
|
+
- doc/Sprout/Errors/GeneratorError.html
|
313
|
+
- doc/Sprout/Errors/InvalidArgumentError.html
|
314
|
+
- doc/Sprout/Errors/LoadError.html
|
315
|
+
- doc/Sprout/Errors/MissingArgumentError.html
|
316
|
+
- doc/Sprout/Errors/MissingExecutableError.html
|
317
|
+
- doc/Sprout/Errors/MissingGeneratorError.html
|
318
|
+
- doc/Sprout/Errors/MissingTemplateError.html
|
319
|
+
- doc/Sprout/Errors/ProcessRunnerError.html
|
320
|
+
- doc/Sprout/Errors/RemoteFileLoaderError.html
|
321
|
+
- doc/Sprout/Errors/SproutError.html
|
322
|
+
- doc/Sprout/Errors/UnknownArchiveType.html
|
323
|
+
- doc/Sprout/Errors/UsageError.html
|
324
|
+
- doc/Sprout/Errors/ValidationError.html
|
325
|
+
- doc/Sprout/Errors/VersionRequirementNotMetError.html
|
326
|
+
- doc/Sprout/Errors.html
|
327
|
+
- doc/Sprout/Executable/Boolean.html
|
328
|
+
- doc/Sprout/Executable/ClassMethods.html
|
329
|
+
- doc/Sprout/Executable/CollectionParam.html
|
330
|
+
- doc/Sprout/Executable/FileParam.html
|
331
|
+
- doc/Sprout/Executable/Files.html
|
332
|
+
- doc/Sprout/Executable/InstanceMethods.html
|
333
|
+
- doc/Sprout/Executable/Number.html
|
334
|
+
- doc/Sprout/Executable/Param.html
|
335
|
+
- doc/Sprout/Executable/ParameterFactory.html
|
336
|
+
- doc/Sprout/Executable/Path.html
|
337
|
+
- doc/Sprout/Executable/Paths.html
|
338
|
+
- doc/Sprout/Executable/StringParam.html
|
339
|
+
- doc/Sprout/Executable/Strings.html
|
340
|
+
- doc/Sprout/Executable/Url.html
|
341
|
+
- doc/Sprout/Executable/Urls.html
|
342
|
+
- doc/Sprout/Executable.html
|
343
|
+
- doc/Sprout/FileTarget.html
|
344
|
+
- doc/Sprout/Generator/Base.html
|
345
|
+
- doc/Sprout/Generator/Command.html
|
346
|
+
- doc/Sprout/Generator/DirectoryManifest.html
|
347
|
+
- doc/Sprout/Generator/FileManifest.html
|
348
|
+
- doc/Sprout/Generator/Manifest.html
|
349
|
+
- doc/Sprout/Generator/TemplateManifest.html
|
350
|
+
- doc/Sprout/Generator.html
|
351
|
+
- doc/Sprout/GeneratorGenerator.html
|
352
|
+
- doc/Sprout/Library.html
|
353
|
+
- doc/Sprout/LibraryGenerator.html
|
354
|
+
- doc/Sprout/Log.html
|
355
|
+
- doc/Sprout/MXMLC.html
|
356
|
+
- doc/Sprout/Platform.html
|
357
|
+
- doc/Sprout/ProcessRunner.html
|
358
|
+
- doc/Sprout/ProgressBar.html
|
359
|
+
- doc/Sprout/ProgressBarImpl.html
|
360
|
+
- doc/Sprout/ProgressBarManager.html
|
361
|
+
- doc/Sprout/ProgressBarOutputStream.html
|
362
|
+
- doc/Sprout/RDocParser.html
|
363
|
+
- doc/Sprout/RemoteFileLoader.html
|
364
|
+
- doc/Sprout/RemoteFileTarget.html
|
365
|
+
- doc/Sprout/ReversedProgressBar.html
|
366
|
+
- doc/Sprout/RubyFeature/ClassMethods.html
|
367
|
+
- doc/Sprout/RubyFeature.html
|
368
|
+
- doc/Sprout/RubyGenerator.html
|
369
|
+
- doc/Sprout/Specification.html
|
370
|
+
- doc/Sprout/System/BaseSystem.html
|
371
|
+
- doc/Sprout/System/JavaSystem.html
|
372
|
+
- doc/Sprout/System/OSXSystem.html
|
373
|
+
- doc/Sprout/System/ThreadMock.html
|
374
|
+
- doc/Sprout/System/UnixSystem.html
|
375
|
+
- doc/Sprout/System/VistaSystem.html
|
376
|
+
- doc/Sprout/System/WinNixSystem.html
|
377
|
+
- doc/Sprout/System/WinSystem.html
|
378
|
+
- doc/Sprout/System.html
|
379
|
+
- doc/Sprout/ToolGenerator.html
|
380
|
+
- doc/Sprout/VERSION.html
|
381
|
+
- doc/Sprout.html
|
382
|
+
- doc/SproutTestCase.html
|
383
|
+
- doc/String.html
|
384
|
+
- doc/top-level-namespace.html
|
211
385
|
- Gemfile
|
212
386
|
- Gemfile.lock
|
213
387
|
- lib/sprout/archive_unpacker.rb
|
214
388
|
- lib/sprout/base.rb
|
215
389
|
- lib/sprout/concern.rb
|
390
|
+
- lib/sprout/daemon.rb
|
216
391
|
- lib/sprout/dir.rb
|
217
392
|
- lib/sprout/errors.rb
|
218
393
|
- lib/sprout/executable/boolean.rb
|
@@ -236,6 +411,7 @@ files:
|
|
236
411
|
- lib/sprout/generator/file_manifest.rb
|
237
412
|
- lib/sprout/generator/manifest.rb
|
238
413
|
- lib/sprout/generator/template_manifest.rb
|
414
|
+
- lib/sprout/generator.rb
|
239
415
|
- lib/sprout/generators/generator/generator_generator.rb
|
240
416
|
- lib/sprout/generators/generator/templates/generator_class.rb
|
241
417
|
- lib/sprout/generators/generator/templates/generator_executable
|
@@ -283,6 +459,7 @@ files:
|
|
283
459
|
- MIT-LICENSE
|
284
460
|
- rakefile.rb
|
285
461
|
- README.textile
|
462
|
+
- script/add_param_handler.rb
|
286
463
|
- script/console
|
287
464
|
- script/destroy
|
288
465
|
- script/generate
|
@@ -299,6 +476,8 @@ files:
|
|
299
476
|
- test/fixtures/examples/rakefile.rb
|
300
477
|
- test/fixtures/executable/echochamber_gem/bin/echochamber
|
301
478
|
- test/fixtures/executable/echochamber_gem/echo_chamber.rb
|
479
|
+
- test/fixtures/executable/fdb.rb
|
480
|
+
- test/fixtures/executable/flex3sdk_gem/fdb
|
302
481
|
- test/fixtures/executable/flex3sdk_gem/flex3sdk.rb
|
303
482
|
- test/fixtures/executable/flex3sdk_gem/mxmlc
|
304
483
|
- test/fixtures/executable/flex3sdk_gem/mxmlc.bat
|
@@ -354,6 +533,7 @@ files:
|
|
354
533
|
- test/fixtures/user/mxmlc_crlf
|
355
534
|
- test/unit/archive_unpacker_test.rb
|
356
535
|
- test/unit/boolean_param_test.rb
|
536
|
+
- test/unit/daemon_test.rb
|
357
537
|
- test/unit/executable_option_parser_test.rb
|
358
538
|
- test/unit/executable_param_test.rb
|
359
539
|
- test/unit/executable_test.rb
|
@@ -390,6 +570,7 @@ files:
|
|
390
570
|
- test/unit/vista_system_test.rb
|
391
571
|
- test/unit/win_nix_system_test.rb
|
392
572
|
- test/unit/win_system_test.rb
|
573
|
+
- VERSION
|
393
574
|
has_rdoc: true
|
394
575
|
homepage: http://projectsprouts.org
|
395
576
|
licenses: []
|