Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updating

  • Loading branch information...
commit 3660d7d723e5c6bbad50b199e4702608f8660cf4 1 parent 390a6f1
@justinjmoses justinjmoses authored
View
8 Gemfile
@@ -0,0 +1,8 @@
+source "http://rubygems.org"
+
+if `uname`.strip == 'Darwin' and ENV["rvm_ruby_string"] != 'system'
+ Gem.platforms = [Gem::Platform::RUBY]
+end
+
+gem "rjb", "1.3.3"
+gem "buildr-as3", "0.2.28.pre"
View
58 Gemfile.lock
@@ -0,0 +1,58 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ atoulme-Antwrap (0.7.1)
+ rjb (>= 1.0.3)
+ builder (2.1.2)
+ buildr (1.4.6)
+ atoulme-Antwrap (= 0.7.1)
+ builder (= 2.1.2)
+ diff-lcs (= 1.1.2)
+ highline (= 1.5.1)
+ hoe (= 2.3.3)
+ json_pure (= 1.4.3)
+ minitar (= 0.5.3)
+ net-sftp (= 2.0.4)
+ net-ssh (= 2.0.23)
+ rake (= 0.8.7)
+ rjb (= 1.3.3)
+ rspec (= 2.1.0)
+ rspec-core (= 2.1.0)
+ rspec-expectations (= 2.1.0)
+ rspec-mocks (= 2.1.0)
+ rubyforge (= 2.0.3)
+ rubyzip (= 0.9.4)
+ xml-simple (= 1.0.12)
+ buildr-as3 (0.2.25.pre)
+ buildr (>= 1.4.6)
+ diff-lcs (1.1.2)
+ highline (1.5.1)
+ hoe (2.3.3)
+ rake (>= 0.8.7)
+ rubyforge (>= 1.0.4)
+ json_pure (1.4.3)
+ minitar (0.5.3)
+ net-sftp (2.0.4)
+ net-ssh (>= 2.0.9)
+ net-ssh (2.0.23)
+ rake (0.8.7)
+ rjb (1.3.3)
+ rspec (2.1.0)
+ rspec-core (~> 2.1.0)
+ rspec-expectations (~> 2.1.0)
+ rspec-mocks (~> 2.1.0)
+ rspec-core (2.1.0)
+ rspec-expectations (2.1.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.1.0)
+ rubyforge (2.0.3)
+ json_pure (>= 1.1.7)
+ rubyzip (0.9.4)
+ xml-simple (1.0.12)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ buildr-as3 (= 0.2.25.pre)
+ rjb (= 1.3.3)
View
34 build.xml
@@ -6,15 +6,16 @@
~ in accordance with the terms of the license agreement accompanying it.
-->
-<project name="SwiftSuspenders" basedir="." default="test">
+<project name="Swiftsuspenders" basedir="." default="test">
<!-- set up a prefix for all environment variables -->
<property environment="env."/>
<!-- System environment must contain FLEX_HOME variable that points to Flex SDK -->
- <property name="FLEX_HOME" location="${env.FLEX_HOME}"/>
-
- <!-- identify properties file -->
+ <!--<property name="FLEX_HOME" location="${env.FLEX_HOME}"/>-->
+ <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
+
+ <!-- identify properties file -->
<property file="build.properties"/>
<!-- Set up Flex and FlexUnit ant tasks -->
@@ -22,15 +23,15 @@
<target name="usage">
<echo message=""/>
- <echo message="SwiftSuspenders Build Usage"/>
+ <echo message="Swiftsuspenders Build Usage"/>
<echo message="-----------------------------------"/>
<echo message=""/>
<echo message="Available targets are:"/>
<echo message=""/>
- <echo message="test --> Build SwiftSuspenders SWC and run unit tests"/>
- <echo message="asdoc --> Build SwiftSuspenders SWC, test, and generate asdocs"/>
- <echo message="package --> Build SwiftSuspenders SWC, test, and create release zip"/>
- <echo message="compile --> Build SwiftSuspenders SWC"/>
+ <echo message="test --> Build Swiftsuspenders SWC and run unit tests"/>
+ <echo message="asdoc --> Build Swiftsuspenders SWC, test, and generate asdocs"/>
+ <echo message="package --> Build Swiftsuspenders SWC, test, and create release zip"/>
+ <echo message="compile --> Build Swiftsuspenders SWC"/>
<echo message="clean --> Remove all folders created by build script"/>
<echo message="init --> Clean and create build folders"/>
<echo message=""/>
@@ -129,21 +130,14 @@
</target>
<!-- Build Documentation -->
- <target name="asdoc" depends="test">
+ <target name="asdoc">
<echo>[create-docs] Generating ASDOC documentation</echo>
<tstamp>
<format property="docgen.time" pattern="MM/dd/yyyy hh:mm aa" unit="hour"/>
</tstamp>
-
- <java jar="${FLEX_HOME}/lib/asdoc.jar" dir="${FLEX_HOME}/frameworks" fork="true" failonerror="true">
- <arg line="-external-library-path ${lib.loc}"/>
- <arg line="-doc-sources ${main.src.loc}"/>
- <arg line="-source-path ${main.src.loc}"/>
- <arg line="-output ${doc.loc}"/>
- <arg line="-footer 'SwiftSuspenders ${swift.suspenders.version} - Documentation generated at: ${docgen.time}'" />
- <arg line="-window-title 'SwiftSuspenders ${swift.suspenders.version}'"/>
- <arg line="-main-title 'SwiftSuspenders ${swift.suspenders.version}'"/>
- </java>
+ <asdoc output="${doc.loc}" lenient="true" failonerror="true">
+ <doc-sources path-element="${main.src.loc}"/>
+ </asdoc>
<echo>[create-docs] ASDOC documentation generated successfully</echo>
</target>
View
BIN  build/support/app-domain-test-files/app-domain-support.swf
Binary file not shown
View
5 build/support/app-domain-test-files/build-app-domain-tests-support.sh
@@ -6,6 +6,9 @@
#
# The script expects the mxmlc compiler to be available in the shell's PATH.
+source ~/.bashrc
+shopt -s expand_aliases
+
cd `dirname $0`
#remove existing files
[ -e "app-domain-support.swf" ] && rm app-domain-support.swf
@@ -30,4 +33,4 @@ injectees=${injectees//".........test."/}
injectees=${injectees//".as,"/,}
#compile swf
-mxmlc -debug -source-path=../../../src,../../../test -output=app-domain-support.swf -static-link-runtime-shared-libraries=true -includes=$injectees ../../../test/org/swiftsuspenders/support/AppDomainSupportSWFSprite.as
+mxmlc -debug -target-player 10.1 -source-path=../../../src,../../../test -output=app-domain-support.swf -static-link-runtime-shared-libraries=true -includes=$injectees ../../../test/org/swiftsuspenders/support/AppDomainSupportSWFSprite.as
View
44 buildfile
@@ -0,0 +1,44 @@
+require "fileutils"
+require "buildr/as3" # needs buildr-as3 v0.2.27.pre
+
+# Installation: https://github.com/devboy/buildr_as3/wiki/Installation
+
+repositories.remote << "http://artifacts.devboy.org" << "http://repo2.maven.org/maven2"
+repositories.release_to[:url] = 'http://snapshot.artifacts.devboy.org/'
+repositories.release_to[:username] = ENV["ruser"]
+repositories.release_to[:password] = ENV["rpass"]
+
+layout = Layout::Default.new
+layout[:source, :main, :as3] = "src"
+layout[:source, :test, :as3] = "test"
+
+THIS_VERSION = "2.0.0b1-SNAPSHOT"
+
+define "SwiftSuspenders", :layout => layout do
+
+ project.group = "org.swiftsuspenders"
+ project.version = THIS_VERSION
+
+ compile.using( :compc, :flexsdk => flexsdk, :args => ["-static-link-runtime-shared-libraries=true", "-target-player=10.2" ] )
+ compile.with _(:build,:libs,"hamcrest-as3-only-1.1.3.swc")
+
+ testrunner = _(:source, :test, :as3, "SwiftSuspendersTestRunner.as" )
+
+ test.using( :flexunit4 => true, :verbose => true, :localTrusted => false, :version => "4.1.0-8" )
+ test.compile.using( :main => testrunner ).with( FlexUnit4.swcs("4.1.0-8","4.1.0.16076") )
+
+ doc_title = "#{project.name} #{project.version}"
+ doc.using :maintitle => doc_title,
+ :windowtitle => doc_title
+
+ package :swc
+
+end
+
+def flexsdk
+ @flexsdk ||= begin
+ flexsdk = FlexSDK.new("4.5.1.21328")
+ flexsdk.default_options << "-keep-as3-metadata+=Inject" << "-keep-as3-metadata+=PostConstruct" << "-verbose-stacktraces=true"
+ flexsdk
+ end
+end
View
2  src/org/swiftsuspenders/InjectionMapping.as
@@ -49,7 +49,7 @@ package org.swiftsuspenders
* Makes the mapping return a lazily constructed singleton instance of the mapped type for
* each consecutive request.
*
- * <p>Syntactic sugar method wholly equivalent to using <code>toSingleton(type)<code>.</p>
+ * <p>Syntactic sugar method wholly equivalent to using <code>toSingleton(type)</code>.</p>
*
* @return The <code>InjectionMapping</code> the method is invoked on
*
Please sign in to comment.
Something went wrong with that request. Please try again.