as3signals 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/CHANGELOG.textile +51 -0
  2. data/Gemfile +6 -0
  3. data/MIT-LICENSE.txt +22 -0
  4. data/README.textile +43 -0
  5. data/Rakefile +52 -0
  6. data/as3-signals.as3proj +87 -0
  7. data/as3-signals.docproj +9 -0
  8. data/as3signals.gemspec +24 -0
  9. data/build-asunit.properties +7 -0
  10. data/build-asunit.xml +34 -0
  11. data/build.properties +20 -0
  12. data/build.xml +53 -0
  13. data/lib/as3signals.rb +15 -0
  14. data/src/org/osflash/signals/DeluxeSignal.as +260 -0
  15. data/src/org/osflash/signals/IDeluxeSignal.as +34 -0
  16. data/src/org/osflash/signals/IDispatcher.as +15 -0
  17. data/src/org/osflash/signals/ISignal.as +44 -0
  18. data/src/org/osflash/signals/ISignalOwner.as +13 -0
  19. data/src/org/osflash/signals/Signal.as +206 -0
  20. data/src/org/osflash/signals/events/GenericEvent.as +44 -0
  21. data/src/org/osflash/signals/events/IBubbleEventHandler.as +14 -0
  22. data/src/org/osflash/signals/events/IEvent.as +27 -0
  23. data/src/org/osflash/signals/natives/INativeDispatcher.as +34 -0
  24. data/src/org/osflash/signals/natives/NativeMappedSignal.as +230 -0
  25. data/src/org/osflash/signals/natives/NativeRelaySignal.as +71 -0
  26. data/src/org/osflash/signals/natives/NativeSignal.as +176 -0
  27. data/tests/org/osflash/signals/AllTests.as +44 -0
  28. data/tests/org/osflash/signals/AllTestsRunner.as +19 -0
  29. data/tests/org/osflash/signals/AmbiguousRelationshipTest.as +60 -0
  30. data/tests/org/osflash/signals/DeluxeSignalAmbiguousRelationshipTest.as +60 -0
  31. data/tests/org/osflash/signals/DeluxeSignalDispatchExtraArgsTest.as +43 -0
  32. data/tests/org/osflash/signals/DeluxeSignalDispatchNoArgsTest.as +55 -0
  33. data/tests/org/osflash/signals/DeluxeSignalDispatchNonEventTest.as +67 -0
  34. data/tests/org/osflash/signals/DeluxeSignalSplitInterfacesTest.as +41 -0
  35. data/tests/org/osflash/signals/DeluxeSignalTest.as +134 -0
  36. data/tests/org/osflash/signals/DeluxeSignalWithBubblingEventTest.as +129 -0
  37. data/tests/org/osflash/signals/DeluxeSignalWithCustomEventTest.as +84 -0
  38. data/tests/org/osflash/signals/DeluxeSignalWithGenericEventTest.as +190 -0
  39. data/tests/org/osflash/signals/GenericEventTest.as +62 -0
  40. data/tests/org/osflash/signals/PriorityListenersTest.as +68 -0
  41. data/tests/org/osflash/signals/RedispatchedEventTest.as +51 -0
  42. data/tests/org/osflash/signals/SignalDispatchArgsTest.as +74 -0
  43. data/tests/org/osflash/signals/SignalDispatchNoArgsTest.as +55 -0
  44. data/tests/org/osflash/signals/SignalDispatchNonEventTest.as +81 -0
  45. data/tests/org/osflash/signals/SignalSplitInterfacesTest.as +47 -0
  46. data/tests/org/osflash/signals/SignalTest.as +267 -0
  47. data/tests/org/osflash/signals/SignalWithCustomEventTest.as +107 -0
  48. data/tests/org/osflash/signals/natives/AmbiguousRelationshipInNativeSignalTest.as +63 -0
  49. data/tests/org/osflash/signals/natives/NativeMappedSignalBoundaryUseTest.as +100 -0
  50. data/tests/org/osflash/signals/natives/NativeMappedSignalDefaultsTest.as +78 -0
  51. data/tests/org/osflash/signals/natives/NativeMappedSignalFunctionArgTest.as +148 -0
  52. data/tests/org/osflash/signals/natives/NativeMappedSignalFunctionNoArgsTest.as +95 -0
  53. data/tests/org/osflash/signals/natives/NativeMappedSignalObjectArgTest.as +85 -0
  54. data/tests/org/osflash/signals/natives/NativeRelaySignalTest.as +174 -0
  55. data/tests/org/osflash/signals/natives/NativeSignalTest.as +312 -0
  56. metadata +152 -0
data/CHANGELOG.textile ADDED
@@ -0,0 +1,51 @@
1
+ h2. AS3 Signals Changelog:
2
+
3
+ h3. v0.7 - Bubblap - 2010-05-27
4
+
5
+ h4. API Changes
6
+ * Added NativeMappedSignal class from "Brian Heylin":http://github.com/brianheylin, with great "test coverage":http://github.com/brianheylin/as3-signals/tree/master/tests/org/osflash/signals/natives/.
7
+ ** Addresses "#16 - Add ability to map native events to signals":http://github.com/robertpenner/as3-signals/issues/closed#issue/16
8
+ * DeluxeSignal has a simpler way to continue bubbling without re-dispatching the event.
9
+ ** IBubbleEventHandler.onEventBubbled() now returns true/false to continue/cancel bubbling.
10
+ ** Thanks to "secoif":http://github.com/secoif for the original code and "dehash":http://www.dehash.com/?p=241h for helping with the merge.
11
+ * ISignal and IDeluxeSignal: add(), addOnce() and remove() now return the listener.
12
+ ** Thanks to "sammyt":http://github.com/sammyt for the contribution with unit tests.
13
+
14
+ h4. Fixes
15
+ * Improved error message for Signal.dispatch() with too few arguments.
16
+
17
+ h4. Test Changes
18
+ * The test suite is migrated to a newer version of AsUnit 4.
19
+ ** Tests now receive an IAsync using [Inject]. No more Asyncleton!
20
+ ** The migration pattern can be seen in "commit f6878.":http://github.com/robertpenner/as3-signals/commit/f6878dbbff95e0bd7832cc2d1cc2e7d55fb18098
21
+ ** AllTestsRunner uses a "new composition pattern":http://github.com/robertpenner/as3-signals/commit/866a99570152b7399aa34839fd5c30789db67f3c instead of inheritance.
22
+ ** Many thanks to "Luke Bayes":http://github.com/lukebayes and the "Bay Area Computer Club":http://github.com/bayareacomputerclub.
23
+ * Added more tests for argument dispatching and consolidated in SignalDispatchArgsTest.
24
+
25
+ h3. v0.6 - GreenDay - 2010-03-17
26
+
27
+ h4. API Changes
28
+ * "#15 - IDeluxeSignal and NativeSignal now have valueClasses property":http://github.com/robertpenner/as3-signals/issues/closed#issue/15
29
+
30
+ h4. Fixes
31
+ * "#14 - NativeSignal.addOnce() can't be reused after native event dispatched":http://github.com/robertpenner/as3-signals/issues/closed#issue/14
32
+
33
+ h4. Implementation Changes
34
+ * Optimized listeners array cloning to use slice(), which is faster than concat().
35
+ * Optimized dispatch() by moving the cloning of listeners to add(), addOnce(), and remove().
36
+ * Signal.removeAll() now uses remove() on every listener, instead of fast array clearing. This is intended to avoid possible issues with subclass overrides (as happened before with NativeRelaySignal.remove()).
37
+ * Renamed createListenerRelationship() to registerListener().
38
+ * Consolidated add() and addOnce() logic in registerListener().
39
+ * Removed onceListeners Dictionary from DeluxeSignal and NativeSignal.
40
+ * DeluxeSignal and NativeSignal are now more unified in their "once listeners" internal implementations.
41
+ * Removed an extra semicolon which made FDT cry (thanks "vitch":http://github.com/vitch).
42
+
43
+ h4. Test Changes
44
+ * Removed async [Test] metadata because AsUnit 4 no longer uses it.
45
+ * Updated the AsUnit 4 SWC to newer version which avoids slowdown of Timers in Flash Player 10.1.
46
+ * Added tests for ambiguous relationships in Signal.
47
+ * Added tests for adding a listener during a dispatch().
48
+
49
+ h3. v0.5 - GlassHalfFull - 2010-02-08
50
+
51
+ * Added versioning to the Ant build, starting at 0.5.
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
4
+
5
+ gem 'sprout', '>= 1.0.26.pre'
6
+ gem 'asunit4'
data/MIT-LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2009 Robert Penner
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
data/README.textile ADDED
@@ -0,0 +1,43 @@
1
+
2
+ h1. The AS3-Signals Sprout Gem
3
+
4
+ h4. requires sprout, v >= 1.0.26.pre
5
+
6
+ Robert Penner's AS3-Signals ActionScript 3 source wrapped in a Sprout::Specification for implementation into a sprout project and Gem::Specification for distribution as a gem.
7
+
8
+ This sprout gem includes the AS3-Signals source code forked from github.com/robertpenner/as3-signals. As a sprout, the source code will be copied to lib/as3-signals of your sprout project.
9
+
10
+ h3. Installation
11
+
12
+ Intended for use with a project using Project Sprouts.
13
+
14
+ See information concerning Project Sprouts here:
15
+ * "http://github.com/lukebayes/project-sprouts" http://github.com/lukebayes/project-sprouts
16
+ * "http://github.com/lukebayes/sprout-flashsdk" http://github.com/lukebayes/sprout-flashsdk
17
+
18
+ Add the AS3-Signals gem to your Gemfile:
19
+
20
+ <pre><code>gem "as3signals"</code></pre>
21
+
22
+ Add the AS3-Signals library dependency to your Rakefile:
23
+
24
+ <pre><code>library :as3signals</code></pre>
25
+
26
+ Enter this shell command to resolve gem dependency:
27
+
28
+ <pre><code>bundle install</code></pre>
29
+
30
+ h3. Ruby Gem
31
+
32
+ The gem can be installed independently of a project entering this command:
33
+
34
+ <pre><code>gem install as3signals</code></pre>
35
+
36
+ h3. Additional links
37
+
38
+ * "AS3-Signals on GitHub":http://github.com/robertpenner/as3signals
39
+ * "Sprouts Site":http://projectsprouts.org
40
+ * "Sprouts on Github":http://github.com/lukebayes/project-sprouts
41
+ * "flashsdk sprout on Github":http://github.com/lukebayes/sprout-flashsdk
42
+ * "Sprouts Community":http://groups.google.com/group/projectsprouts
43
+
data/Rakefile ADDED
@@ -0,0 +1,52 @@
1
+ require 'bundler'
2
+ require 'lib/as3signals'
3
+ Bundler::GemHelper.install_tasks
4
+
5
+ # testing disabled for now. do actual as3 testing in the origin
6
+
7
+ # library :asunit4
8
+ #
9
+ # asunit_home = ENV['ASUNIT_HOME'] || File.dirname(__FILE__) + '/../AsUnit-bacc/asunit-4.0'
10
+ #
11
+ # def apply_as3_meta_data_args(t)
12
+ # [
13
+ # "After",
14
+ # "AfterClass",
15
+ # "Before",
16
+ # "BeforeClass",
17
+ # "Ignore",
18
+ # "Inject",
19
+ # "RunWith",
20
+ # "Suite",
21
+ # "Test"
22
+ # ].each do |arg|
23
+ # t.keep_as3_metadata << arg
24
+ # end
25
+ # end
26
+ #
27
+ # mxmlc "bin/AS3SignalsRunner.swf" do |t|
28
+ # t.default_size = '1000 500'
29
+ # t.input = 'tests/org/osflash/signals/AllTestsRunner.as'
30
+ # #t.allow_source_path_overlap = true
31
+ # t.source_path << 'src'
32
+ # t.source_path << 'tests'
33
+ # t.library_path << 'libs/asunit4-alpha.swc'
34
+ # t.gem_version = '3.3.1'
35
+ # end
36
+ #
37
+ # mxmlc "bin/AS3SignalsAsUnitRunner.swf" do |t|
38
+ # t.default_size = '1000 500'
39
+ # t.input = 'tests/org/osflash/signals/AllTestsRunner.as'
40
+ # t.source_path << 'src'
41
+ # t.library_path << "#{asunit_home}/lib/Reflection.swc"
42
+ # t.source_path << "#{asunit_home}/src"
43
+ # t.gem_version = '3.3.1'
44
+ # apply_as3_meta_data_args(t)
45
+ # end
46
+ #
47
+ # desc "Run the Test Harness"
48
+ # flashplayer :test => 'bin/AS3SignalsRunner.swf'
49
+ #
50
+ # desc "Run the Test Harness against AsUnit source"
51
+ # flashplayer :test_asunit => 'bin/AS3SignalsAsUnitRunner.swf'
52
+ #
@@ -0,0 +1,87 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <project>
3
+ <!-- Output SWF options -->
4
+ <output>
5
+ <movie disabled="False" />
6
+ <movie input="" />
7
+ <movie path="bin\AllTestsRunner.swf" />
8
+ <movie fps="30" />
9
+ <movie width="1000" />
10
+ <movie height="600" />
11
+ <movie version="10" />
12
+ <movie background="#FFFFFF" />
13
+ </output>
14
+ <!-- Other classes to be compiled into your SWF -->
15
+ <classpaths>
16
+ <class path="src" />
17
+ <class path="tests" />
18
+ </classpaths>
19
+ <!-- Build options -->
20
+ <build>
21
+ <option accessible="False" />
22
+ <option allowSourcePathOverlap="False" />
23
+ <option benchmark="False" />
24
+ <option es="False" />
25
+ <option locale="" />
26
+ <option loadConfig="" />
27
+ <option optimize="False" />
28
+ <option showActionScriptWarnings="True" />
29
+ <option showBindingWarnings="True" />
30
+ <option showDeprecationWarnings="True" />
31
+ <option showUnusedTypeSelectorWarnings="True" />
32
+ <option strict="True" />
33
+ <option useNetwork="True" />
34
+ <option useResourceBundleMetadata="True" />
35
+ <option warnings="True" />
36
+ <option verboseStackTraces="False" />
37
+ <option linkReport="" />
38
+ <option loadExterns="" />
39
+ <option staticLinkRSL="True" />
40
+ <option additional="" />
41
+ <option compilerConstants="" />
42
+ <option customSDK="" />
43
+ </build>
44
+ <!-- SWC Include Libraries -->
45
+ <includeLibraries>
46
+ <!-- example: <element path="..." /> -->
47
+ </includeLibraries>
48
+ <!-- SWC Libraries -->
49
+ <libraryPaths>
50
+ <element path="libs" />
51
+ </libraryPaths>
52
+ <!-- External Libraries -->
53
+ <externalLibraryPaths>
54
+ <!-- example: <element path="..." /> -->
55
+ </externalLibraryPaths>
56
+ <!-- Runtime Shared Libraries -->
57
+ <rslPaths>
58
+ <!-- example: <element path="..." /> -->
59
+ </rslPaths>
60
+ <!-- Intrinsic Libraries -->
61
+ <intrinsics>
62
+ <!-- example: <element path="..." /> -->
63
+ </intrinsics>
64
+ <!-- Assets to embed into the output SWF -->
65
+ <library>
66
+ <!-- example: <asset path="..." id="..." update="..." glyphs="..." mode="..." place="..." sharepoint="..." /> -->
67
+ </library>
68
+ <!-- Class files to compile (other referenced classes will automatically be included) -->
69
+ <compileTargets>
70
+ <compile path="tests\org\osflash\signals\AllTestsRunner.as" />
71
+ </compileTargets>
72
+ <!-- Paths to exclude from the Project Explorer tree -->
73
+ <hiddenPaths>
74
+ <hidden path=".git" />
75
+ <hidden path="bin" />
76
+ <hidden path="libs" />
77
+ </hiddenPaths>
78
+ <!-- Executed before build -->
79
+ <preBuildCommand />
80
+ <!-- Executed after build -->
81
+ <postBuildCommand alwaysRun="False" />
82
+ <!-- Other project options -->
83
+ <options>
84
+ <option showHiddenPaths="True" />
85
+ <option testMovie="NewTab" />
86
+ </options>
87
+ </project>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <docProject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3
+ <pageTitle>as3-signals</pageTitle>
4
+ <classPaths>src</classPaths>
5
+ <sourcesList />
6
+ <outputDirectory>docs</outputDirectory>
7
+ <activeCompiler>1</activeCompiler>
8
+ <extraOptions>--library-path libs/</extraOptions>
9
+ </docProject>
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require 'lib/as3signals'
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = AS3Signals::NAME
6
+ s.version = AS3Signals::VERSION
7
+ # s.platform = Gem::Platform::RUBY
8
+ # s.authors = ["TODO: Write your name"]
9
+ s.email = ["amoslanka@gmail.com"]
10
+ s.homepage = "http://www.github.com/amoslanka/sprout-as3-signals"
11
+ s.summary = %q{AS3-Signals ActionScript 3 source wrapped in a Sprout::Specification for implementation into a sprout project and Gem::Specification for distribution as a gem.}
12
+ # s.description = %q{TODO: Write a gem description}
13
+
14
+ # s.files = `git ls-files`.split("\n")
15
+ # s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ # s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
+ s.require_paths = ["lib"]
18
+
19
+ s.files = FileList['lib/**/*.rb', 'bin/*', 'build/*', 'examples/**/*', 'src/**/*', '[A-Za-z0-9]*', 'tests/**/*'].to_a
20
+
21
+ s.add_dependency 'sprout', '>= 1.0.26.pre'
22
+ s.add_development_dependency 'asunit4'
23
+
24
+ end
@@ -0,0 +1,7 @@
1
+ tests.output=${output.dir}/${ant.project.name}-tests.swf
2
+ test.lib=${libs.dir}/asunit4-alpha.swc
3
+ test.main=${tests.dir}/${package.dir}/AllTestsRunner.as
4
+
5
+ flex.config=${FLEX_HOME}/frameworks/flex-config.xml
6
+ flex.lib=${FLEX_HOME}/frameworks/libs
7
+ flextask.jar=${FLEX_HOME}/ant/lib/flexTasks.jar
data/build-asunit.xml ADDED
@@ -0,0 +1,34 @@
1
+ <project name="as3-signals" basedir="." default="test">
2
+
3
+ <!-- Set up a prefix for all environment variables. -->
4
+ <property environment="env."/>
5
+ <fail unless="env.FLEX_HOME" message="FLEX_HOME needs to be defined as an environment variable or in the Ant build." />
6
+ <!-- Copy Flex SDK location from environment variable. This can be set manually instead. -->
7
+ <property name="FLEX_HOME" value="${env.FLEX_HOME}" />
8
+ <property file="build.properties"/>
9
+ <property file="build-asunit.properties"/>
10
+
11
+ <target name="test">
12
+
13
+ <taskdef resource="flexTasks.tasks" classpath="${flextask.jar}" />
14
+
15
+ <mxmlc file="${test.main}" output="${tests.output}"
16
+ incremental="true" debug="false"
17
+ static-link-runtime-shared-libraries="true">
18
+ <source-path path-element="${src.dir}" />
19
+ <source-path path-element="${tests.dir}"/>
20
+ <load-config filename="${flex.config}" />
21
+ <library-path dir="${flex.lib}" append="true">
22
+ <include name="flex.swc" />
23
+ </library-path>
24
+ <library-path dir="${libs.dir}" append="true">
25
+ <include name="*.swc" />
26
+ </library-path>
27
+ </mxmlc>
28
+
29
+ <exec executable="open" os="Mac OS X">
30
+ <arg line='-a "flash player" ${tests.output}' />
31
+ </exec>
32
+
33
+ </target>
34
+ </project>
data/build.properties ADDED
@@ -0,0 +1,20 @@
1
+ # Properties file for build.xml
2
+ project.name=as3-signals
3
+ project.title=AS3 Signals
4
+
5
+ # Version number for current releases
6
+ ver.num=v0.7
7
+ project.name.versioned=${project.name}-${ver.num}
8
+
9
+ # Build locations
10
+ src.dir=${basedir}/src
11
+ package.dir=org/osflash/signals
12
+ tests.dir=${basedir}/tests
13
+ libs.dir=${basedir}/libs
14
+ output.dir=${basedir}/bin
15
+ docs.dir=${basedir}/docs
16
+ output.swc=${output.dir}/${project.name.versioned}.swc
17
+
18
+ # Project links
19
+ as3signals.project.link=http://github.com/robertpenner/as3-signals
20
+
data/build.xml ADDED
@@ -0,0 +1,53 @@
1
+ <project name="as3-signals" basedir="." default="swc">
2
+
3
+ <!-- Set up a prefix for all environment variables. -->
4
+ <property environment="env."/>
5
+ <fail unless="env.FLEX_HOME" message="FLEX_HOME needs to be defined as an environment variable or in the Ant build." />
6
+ <!-- Copy Flex SDK location from environment variable. This can be set manually instead. -->
7
+ <property name="FLEX_HOME" value="${env.FLEX_HOME}" />
8
+ <property file="build.properties"/>
9
+
10
+ <target name="swc" depends="" description="Compile AS3 code into a SWC">
11
+ <echo>Using Flex SDK at: ${FLEX_HOME}</echo>
12
+
13
+ <java jar="${FLEX_HOME}/lib/compc.jar" dir="." fork="true" failonerror="true">
14
+ <arg value="+flexlib=${FLEX_HOME}/frameworks" />
15
+ <arg value="-incremental=true" />
16
+
17
+ <arg value="-source-path+=${src.dir}" />
18
+
19
+ <!-- Include all classes in this path. -->
20
+ <arg value="-include-sources=${src.dir}/${package.dir}" />
21
+
22
+ <!-- Link in classes from swc library (only those used). -->
23
+ <!--<arg value="-library-path+=${libs.dir}" />-->
24
+
25
+ <arg value="-output=${output.swc}" />
26
+ </java>
27
+
28
+ </target>
29
+
30
+ <target name="clean-asdoc">
31
+ <delete dir="${docs.dir}" failOnError="false" includeEmptyDirs="true"/>
32
+ <mkdir dir="${docs.dir}"/>
33
+ </target>
34
+
35
+ <!-- Build Documentation -->
36
+ <target name="asdoc" depends="swc,clean-asdoc" description="Create API docs for ${project.title}">
37
+ <echo>Generating ASDOC documentation...</echo>
38
+ <tstamp>
39
+ <format property="docgen.time" pattern="MM/dd/yyyy hh:mm aa" unit="hour"/>
40
+ </tstamp>
41
+ <java jar="${FLEX_HOME}/lib/asdoc.jar" dir="${FLEX_HOME}/frameworks" fork="true" failonerror="true">
42
+ <!--<arg line="-external-library-path ${libs.dir}"/>-->
43
+ <arg line="-doc-sources ${src.dir}/${package.dir}"/>
44
+ <arg line="-source-path ${src.dir}"/>
45
+ <arg line="-output ${docs.dir}"/>
46
+ <arg line="-window-title '${project.title} ${ver.num}'"/>
47
+ <arg line="-main-title '${project.title} ${ver.num}'"/>
48
+ <arg line="-footer '${project.title} - Documentation generated at: ${docgen.time}'"/>
49
+ </java>
50
+ <echo>ASDOC documentation generated successfully</echo>
51
+ </target>
52
+
53
+ </project>
data/lib/as3signals.rb ADDED
@@ -0,0 +1,15 @@
1
+ require 'sprout'
2
+
3
+ module AS3Signals
4
+ NAME = "as3signals"
5
+ VERSION = "0.7.0"
6
+ end
7
+
8
+ Sprout::Specification.new do |s|
9
+ s.name = AS3Signals::NAME
10
+ s.version = AS3Signals::VERSION
11
+ s.add_file_target do |t|
12
+ t.platform = :universal
13
+ t.add_library :src, "../src"
14
+ end
15
+ end