flashsdk 1.0.29.pre → 1.0.33.pre

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,9 +1,3 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'sprout', '>= 1.1.15.pre'
4
-
5
- group :development do
6
- gem "shoulda"
7
- gem "mocha"
8
- end
9
-
3
+ gemspec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.29.pre
1
+ 1.0.33.pre
data/flashsdk.gemspec CHANGED
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- lib = File.expand_path File.dirname(__FILE__), 'lib'
2
+ lib = File.expand_path('../lib/', __FILE__)
3
3
  $:.unshift lib unless $:.include?(lib)
4
4
 
5
5
  require 'bundler'
6
- require 'flashsdk'
6
+ require 'flashsdk/module.rb'
7
7
 
8
8
  Gem::Specification.new do |s|
9
9
  s.name = 'flashsdk'
@@ -15,8 +15,11 @@ Gem::Specification.new do |s|
15
15
  s.description = "The Flash SDK Rubygem is brought to you by Project Sprouts (http://projectsprouts.org)"
16
16
  s.executables = ['sprout-as3', 'sprout-flex', 'flashplayer', 'flashlog']
17
17
  s.post_install_message = File.read 'POSTINSTALL.rdoc'
18
- s.files = FileList['**/**/*'].exclude /.git|.svn|.DS_Store/
19
- s.add_bundler_dependencies
18
+ s.files = Dir['**/*']
19
+ s.files.reject! { |fn| fn.match /.git|.svn|.DS_Store/ }
20
+ s.add_dependency('sprout', '>= 1.1.15.pre')
21
+ s.add_development_dependency('shoulda')
22
+ s.add_development_dependency('mocha')
20
23
  s.require_paths << 'lib'
21
24
  end
22
25
 
@@ -0,0 +1,29 @@
1
+ module FlashSDK
2
+
3
+ ##
4
+ # The ACOMPC tool is a wrapper for the acompc tool.
5
+ #
6
+ class ACOMPC < COMPC
7
+
8
+ ##
9
+ # The default executable target.
10
+ #
11
+ set :executable, :acompc
12
+
13
+ ##
14
+ # TODO: Remove this method once this bug is fixed:
15
+ # http://www.pivotaltracker.com/story/show/4194771
16
+ #
17
+ def execute *args
18
+ self.executable = :acompc
19
+ super
20
+ end
21
+ end
22
+ end
23
+
24
+ def acompc args, &block
25
+ exe = FlashSDK::ACOMPC.new
26
+ exe.to_rake(args, &block)
27
+ exe
28
+ end
29
+
data/lib/flashsdk/adl.rb CHANGED
@@ -38,10 +38,29 @@ module FlashSDK
38
38
  #
39
39
  set :executable, :adl
40
40
 
41
- ##
42
- # The default prefix
43
- #
44
- set :default_prefix, '-'
41
+ ##
42
+ # The default prefix
43
+ #
44
+ set :default_prefix, '-'
45
+
46
+ ##
47
+ # Overide the default task creation so
48
+ # adl will run regardless of a file product.
49
+ #
50
+ def create_outer_task *args
51
+ Rake::Task.define_task(*args) do
52
+ execute
53
+ end
54
+ end
55
+
56
+ ##
57
+ # Overide the default behaviour to stop the file product
58
+ # being added to to the CLEAN task.
59
+ #
60
+ def update_rake_task_name_from_args *args
61
+ self.rake_task_name = parse_rake_task_arg args.last
62
+ self.rake_task_name
63
+ end
45
64
  end
46
65
  end
47
66
 
data/lib/flashsdk/adt.rb CHANGED
@@ -39,42 +39,37 @@ module FlashSDK
39
39
  # Please do not alphabetize or rearrange unless you're
40
40
  # fixing a bug related to how ADT actually expects
41
41
  # the arguments...
42
-
43
- ##
44
- # Install an app on a device
45
- #
46
- add_param :installApp, Boolean, { :hidden_value => true }
47
-
48
- ##
49
- # Uninstall an app from a device
50
- #
51
- add_param :uninstallApp, Boolean, { :hidden_value => true }
52
-
53
- ##
54
- # Launch an app on a device
55
- #
56
- add_param :launchApp, Boolean, { :hidden_value => true }
57
-
58
- ##
59
- # The platform to use (ex: android)
60
- #
61
- add_param :platform, String, { :delimiter => ' ' }
62
-
63
- ##
64
- # The appid of the app being installed/uninstalled (ex: com.foo.Bar)
65
- #
66
- add_param :appid, String, { :delimiter => ' ' }
67
-
42
+
43
+ ##
44
+ # Install an app on a device
45
+ #
46
+ add_param :installApp, Boolean, { :hidden_value => true }
47
+
48
+ ##
49
+ # Uninstall an app from a device
50
+ #
51
+ add_param :uninstallApp, Boolean, { :hidden_value => true }
52
+
53
+ ##
54
+ # Launch an app on a device
55
+ #
56
+ add_param :launchApp, Boolean, { :hidden_value => true }
57
+
58
+ ##
59
+ # The platform to use (ex: android)
60
+ #
61
+ add_param :platform, String, { :delimiter => ' ' }
62
+
63
+ ##
64
+ # The appid of the app being installed/uninstalled (ex: com.foo.Bar)
65
+ #
66
+ add_param :appid, String, { :delimiter => ' ' }
67
+
68
68
  ##
69
69
  # Create an AIR package.
70
70
  #
71
71
  add_param :package, Boolean, { :hidden_value => true }
72
72
 
73
- ##
74
- # Use a specific target, like apk-debug for Android or ipa-debug for iOS
75
- #
76
- add_param :target, String, { :delimiter => ' ' }
77
-
78
73
  ##
79
74
  # Set true to create a certificate.
80
75
  #
@@ -132,10 +127,10 @@ module FlashSDK
132
127
  #
133
128
  add_param :checkstore, String
134
129
 
135
- ##
136
- # Provisioning profile for iOS apps
137
- #
138
- add_param :provisioning_profile, String, { :delimiter => ' ' }
130
+ ##
131
+ # Provisioning profile for iOS apps
132
+ #
133
+ add_param :provisioning_profile, String, { :delimiter => ' ' }
139
134
 
140
135
  ##
141
136
  # Expects two files:
@@ -156,6 +151,12 @@ module FlashSDK
156
151
  # The AIR runtime version to use.
157
152
  add_param :version, String, { :delimiter => ' ' }
158
153
 
154
+
155
+ ##
156
+ # Use a specific target, like apk-debug for Android or ipa-debug for iOS
157
+ #
158
+ add_param :target, String, { :delimiter => ' ' }
159
+
159
160
  ##
160
161
  # The AIR file that should be created
161
162
  # after packaging is complete.
@@ -228,6 +229,21 @@ module FlashSDK
228
229
  # they will not be included.
229
230
  #
230
231
  add_param :included_paths, Paths, { :hidden_name => true }
232
+
233
+ ##
234
+ # Allows file options in the form of -C <dir> <fileOrDir>+
235
+ #
236
+ # For example if you defined:
237
+ #
238
+ # t.file_options << 'dir path/to/asset.xml'
239
+ #
240
+ # In your adt task defintion, then:
241
+ #
242
+ # -C dir path/to/asset.xml
243
+ #
244
+ # Would be appended to your arguments.
245
+ #
246
+ add_param :file_options, Strings, { :shell_name => '-C', :delimiter => ' ' }
231
247
 
232
248
  ##
233
249
  # The the Ruby file that will load the expected
@@ -258,4 +274,3 @@ def adt *args, &block
258
274
  exe.to_rake(*args, &block)
259
275
  exe
260
276
  end
261
-
@@ -9,7 +9,7 @@ module FlashSDK
9
9
  # t.include_classes << 'SomeProject'
10
10
  # t.source_path << 'src'
11
11
  # end
12
- #
12
+ #
13
13
  # desc 'Compile the SWC'
14
14
  # task :swc => 'bin/SomeProject.swc'
15
15
  #
@@ -26,7 +26,7 @@ module FlashSDK
26
26
  # end
27
27
  #
28
28
  # @see Sprout::COMPC#include_sources
29
- #
29
+ #
30
30
  add_param :directory, Boolean
31
31
 
32
32
  ##
@@ -83,8 +83,11 @@ module FlashSDK
83
83
  add_param :include_sources, Paths
84
84
 
85
85
  ##
86
- # Not sure about this option, it was in the CLI help, but not documented on the Adobe site
86
+ # Defines the mapping between your namespaces and the manifest.xml file describing the classes in that namespace.
87
87
  #
88
+ # compc "bin/SomeProject.swc" do |t|
89
+ # t.namespace = 'http://sprouts.org/ui sprouts-manifest.xml'
90
+ # end
88
91
  add_param :namespace, String
89
92
 
90
93
  ##
@@ -105,7 +108,7 @@ module FlashSDK
105
108
  # The default pkg version
106
109
  #
107
110
  set :pkg_version, ">= #{FlashSDK::VERSION}"
108
-
111
+
109
112
  ##
110
113
  # The default executable target.
111
114
  #
@@ -53,8 +53,8 @@ module FlashSDK
53
53
  # t.as3 = false
54
54
  # end
55
55
  #
56
- add_param :as3, Boolean, { :default => true, :show_on_false => true }
57
-
56
+ add_param :as3, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
57
+
58
58
  ##
59
59
  # Prints detailed compile times to the standard output. The default value is true.
60
60
  #
@@ -65,8 +65,8 @@ module FlashSDK
65
65
  # t.benchmark = true
66
66
  # end
67
67
  #
68
- add_param :benchmark, Boolean, { :default => true, :show_on_false => true }
69
-
68
+ add_param :benchmark, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
69
+
70
70
  ##
71
71
  # Sets the value of the {context.root} token in channel definitions in the flex-services.xml file. If you do not specify the value of this option, Flex uses an empty string.
72
72
  #
@@ -718,7 +718,7 @@ module FlashSDK
718
718
  #
719
719
  # @see #debug
720
720
  #
721
- add_param :optimize, Boolean
721
+ add_param :optimize, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
722
722
 
723
723
  ##
724
724
  # Specifies the output path and filename for the resulting file.
@@ -823,7 +823,7 @@ module FlashSDK
823
823
  # t.show_actionscript_warnings = false
824
824
  # end
825
825
  #
826
- add_param :show_actionscript_warnings, Boolean, { :default => true, :show_on_false => true }
826
+ add_param :show_actionscript_warnings, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
827
827
 
828
828
  ##
829
829
  # Shows a warning when Flash Player cannot detect changes to a bound property.
@@ -837,7 +837,36 @@ module FlashSDK
837
837
  # t.show_binding_warnings = false
838
838
  # end
839
839
  #
840
- add_param :show_binding_warnings, Boolean, { :default => true, :show_on_false => true }
840
+ add_param :show_binding_warnings, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
841
+
842
+ ##
843
+ # Shows warnings when you try to embed a font with a family name that is the same as the operating system font name.
844
+ # The compiler normally warns you that you are shadowing a system font. Set this option to false to disable the warnings.
845
+ #
846
+ # The default value is true.
847
+ #
848
+ # desc "Compile the Application"
849
+ # mxmlc 'bin/SomeProject.swf' do |t|
850
+ # t.input = 'src/SomeProject.mxml'
851
+ # t.source_path << 'src'
852
+ # t.show_shadowed_device_font_warnings = false
853
+ # end
854
+ #
855
+ add_param :show_shadowed_device_font_warnings, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
856
+
857
+ ##
858
+ # Shows warnings when a type selector in a style sheet or <mx:Style> block is not used by any components in the application.
859
+ #
860
+ # The default value is true.
861
+ #
862
+ # desc "Compile the Application"
863
+ # mxmlc 'bin/SomeProject.swf' do |t|
864
+ # t.input = 'src/SomeProject.mxml'
865
+ # t.source_path << 'src'
866
+ # t.show_unused_type_selector_warnings = false
867
+ # end
868
+ #
869
+ add_param :show_unused_type_selector_warnings, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
841
870
 
842
871
  ##
843
872
  # Shows deprecation warnings for Flex components. To see warnings for ActionScript classes, use the show-actionscript-warnings option.
@@ -882,9 +911,14 @@ module FlashSDK
882
911
  ##
883
912
  # Statically link the libraries specified by the {#runtime_shared_libraries} option.
884
913
  #
914
+ # Default changed to false in Flex 4: http://opensource.adobe.com/wiki/display/flexsdk/Linking+RSLs+by+Default
915
+ #
916
+ # We respect this new default.
917
+ #
885
918
  # @see #runtime_shared_libraries
886
919
  #
887
- add_param :static_link_runtime_shared_libraries, Boolean, { :default => true }
920
+ add_param :static_link_runtime_shared_libraries, Boolean, { :default => false, :hidden_value => false, :delimiter => '=' }
921
+
888
922
 
889
923
  ##
890
924
  # Alias for {#static_link_runtime_shared_libraries}
@@ -905,7 +939,7 @@ module FlashSDK
905
939
  # t.strict = false
906
940
  # end
907
941
  #
908
- add_param :strict, Boolean, { :default => true, :show_on_false => true }
942
+ add_param :strict, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
909
943
 
910
944
  ##
911
945
  # Specifies the version of the player the application is targeting.
@@ -945,7 +979,14 @@ module FlashSDK
945
979
  # with file: URLs) but not network services. In most circumstances, the
946
980
  # value of this property should be true.
947
981
  #
948
- add_param :use_network, Boolean, { :default => true, :show_on_false => true }
982
+ add_param :use_network, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
983
+
984
+ ##
985
+ # Enables resource bundles. Set to true to instruct the compiler to process the contents of the [ResourceBundle] metadata tag.
986
+ #
987
+ # The default value is true.
988
+ #
989
+ add_param :use_resource_bundle_metadata, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
949
990
 
950
991
  ##
951
992
  # Generates source code that includes source files and line numbers. When
@@ -974,7 +1015,7 @@ module FlashSDK
974
1015
  #
975
1016
  # The default value is true.
976
1017
  #
977
- add_param :warnings, Boolean
1018
+ add_param :warnings, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
978
1019
 
979
1020
  ##
980
1021
  # Set to true in order to compile with the Flex Compiler Shell (FCSH).
@@ -3,5 +3,5 @@
3
3
 
4
4
  Application
5
5
  {
6
- background-color: #666666;
7
- }
6
+ background-color: #666666;
7
+ }
data/lib/flashsdk.rb CHANGED
@@ -15,6 +15,7 @@ require 'flashsdk/compiler_base'
15
15
  require 'flashsdk/asdoc'
16
16
  require 'flashsdk/mxmlc'
17
17
  require 'flashsdk/compc'
18
+ require 'flashsdk/acompc'
18
19
  require 'flashsdk/amxmlc'
19
20
  require 'flashsdk/adt'
20
21
  require 'flashsdk/adl'
data/lib/flex4.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  Sprout::Specification.new do |s|
3
3
  # This is the Specification that loads the Flex 4 SDK,
4
4
  # To use the Flex 4 SDK from your build tasks, you can
5
- # simply update the pkg_name parameter of your build
5
+ # simply update the pkg_name parameter of your build
6
6
  # task as follows:
7
7
  #
8
8
  # mxmlc 'bin/SomeProject.swf' do |t|
@@ -30,14 +30,13 @@ Sprout::Specification.new do |s|
30
30
  # end
31
31
  #
32
32
  s.name = 'flex4'
33
- s.version = '4.5.0.20967'
33
+ s.version = '4.6.0.23201'
34
34
 
35
35
  s.add_remote_file_target do |t|
36
36
  t.platform = :universal
37
37
  t.archive_type = :zip
38
-
39
- t.url = "http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4.5/flex_sdk_4.5.0.20967.zip"
40
- t.md5 = "c92b661eb7b00bb568262851885274dc"
38
+ t.url = "http://download.macromedia.com/pub/flex/sdk/flex_sdk_4.6.zip"
39
+ t.md5 = "202bca98ee7b8db9cda3af01e99c688e"
41
40
 
42
41
  # Executables: (add .exe suffix if it was passed in)
43
42
  t.add_executable :aasdoc, "bin/aasdoc"
@@ -47,7 +46,7 @@ Sprout::Specification.new do |s|
47
46
  t.add_executable :amxmlc, "bin/amxmlc"
48
47
  t.add_executable :asdoc, "bin/asdoc"
49
48
  t.add_executable :compc, "bin/compc"
50
- t.add_executable :copylocale, "bin/compc"
49
+ t.add_executable :copylocale, "bin/copylocale"
51
50
  t.add_executable :digest, "bin/digest"
52
51
  t.add_executable :fcsh, "bin/fcsh"
53
52
  t.add_executable :fdb, "bin/fdb"
@@ -55,31 +54,62 @@ Sprout::Specification.new do |s|
55
54
  t.add_executable :optimizer, "bin/optimizer"
56
55
 
57
56
  # Flex framework SWCs:
58
- t.add_library :flex, "frameworks/libs/flex.swc"
59
- t.add_library :flex4, "frameworks/libs/flex4.swc"
60
- t.add_library :f_textlayout, "frameworks/libs/framework_textLayout.swc"
61
- t.add_library :framework, "frameworks/libs/framework.swc"
62
- t.add_library :rpc, "frameworks/libs/rpc.swc"
63
- t.add_library :sparkskins, "frameworks/libs/sparkskins.swc"
64
- t.add_library :textlayout, "frameworks/libs/textLayout.swc"
65
- t.add_library :utilities, "frameworks/libs/utilities.swc"
66
- t.add_library :playerglobal_9, "frameworks/libs/player/9/playerglobal.swc"
67
- t.add_library :playerglobal_10, "frameworks/libs/player/10/playerglobal.swc"
57
+ t.add_library :advancedgrids, "frameworks/libs/advancedgrids.swc"
58
+ t.add_library :aircore, "frameworks/libs/air/aircore.swc"
59
+ t.add_library :airframework, "frameworks/libs/air/airframework.swc"
60
+ t.add_library :airglobal, "frameworks/libs/air/airglobal.swc"
61
+ t.add_library :airspark, "frameworks/libs/air/airspark.swc"
62
+ t.add_library :applicationupdater, "frameworks/libs/air/applicationupdater.swc"
63
+ t.add_library :applicationupdater_ui, "frameworks/libs/air/applicationupdater_ui.swc"
64
+ t.add_library :automation, "frameworks/libs/automation/automation.swc"
65
+ t.add_library :automation_agent, "frameworks/libs/automation/automation_agent.swc"
66
+ t.add_library :automation_air, "frameworks/libs/automation/automation_air.swc"
67
+ t.add_library :automation_airspark, "frameworks/libs/automation/automation_airspark.swc"
68
+ t.add_library :automation_dmv, "frameworks/libs/automation/automation_dmv.swc"
69
+ t.add_library :automation_flashflexkit, "frameworks/libs/automation/automation_flashflexkit.swc"
70
+ t.add_library :automation_spark, "frameworks/libs/automation/automation_spark.swc"
71
+ t.add_library :qtp, "frameworks/libs/automation/qtp.swc"
72
+ t.add_library :qtp_air, "frameworks/libs/automation/qtp_air.swc"
73
+ t.add_library :servicemonitor, "frameworks/libs/air/servicemonitor.swc"
74
+ t.add_library :authoringsupport, "frameworks/libs/authoringsupport.swc"
75
+ t.add_library :charts, "frameworks/libs/charts.swc"
76
+ t.add_library :core, "frameworks/libs/core.swc"
77
+ t.add_library :flash_integration, "frameworks/libs/flash-integration.swc"
78
+ t.add_library :framework, "frameworks/libs/framework.swc"
79
+ t.add_library :mobilecomponents, "frameworks/libs/mobile/mobilecomponents.swc"
80
+ t.add_library :mx, "frameworks/libs/mx/mx.swc"
81
+ t.add_library :osmf, "frameworks/libs/osmf.swc"
82
+ t.add_library :playerglobal_11, "frameworks/libs/player/11.1/playerglobal.swc"
83
+ t.add_library :rpc, "frameworks/libs/rpc.swc"
84
+ t.add_library :spark, "frameworks/libs/spark.swc"
85
+ t.add_library :spark_dmv, "frameworks/libs/spark_dmv.swc"
86
+ t.add_library :sparkskins, "frameworks/libs/sparkskins.swc"
87
+ t.add_library :textLayout, "frameworks/libs/textLayout.swc"
68
88
 
69
89
  # AsDoc templates:
70
90
  t.add_library :asdoc_templates, "asdoc/templates"
71
91
 
72
92
  # Locale-Specific Flex SWCs:
73
93
  [
74
- 'da_DK', 'de_DE', 'en_US', 'es_ES', 'fi_FL', 'fr_FR', 'it_IT', 'ja_JP',
94
+ 'da_DK', 'de_DE', 'en_US', 'es_ES', 'fi_FL', 'fr_FR', 'it_IT', 'ja_JP',
75
95
  'ko_KR', 'nb_NO', 'nl_NL', 'pt_BR', 'ru_RU', 'sv_SE', 'zh_CN', 'zh_TW'
76
96
  ].each do |locale|
77
- t.add_library "flex_4_#{locale}".to_sym, "frameworks/locale/#{locale}/flex4_rb.swc"
78
- t.add_library "airframework_#{locale}".to_sym, "frameworks/locale/#{locale}/airframework_rb.swc"
79
- t.add_library "framework_#{locale}".to_sym, "frameworks/locale/#{locale}/framework_rb.swc"
80
- t.add_library "rpc_#{locale}".to_sym, "frameworks/locale/#{locale}/rpc_rb.swc"
97
+ t.add_library "advancedgrids_#{locale}".to_sym, "frameworks/locale/#{locale}/advancedgrids_rb.swc"
98
+ t.add_library "airframework_#{locale}".to_sym, "frameworks/locale/#{locale}/airframework_rb.swc"
99
+ t.add_library "airspark_#{locale}".to_sym, "frameworks/locale/#{locale}/airspark_rb.swc"
100
+ t.add_library "automation_agent_#{locale}".to_sym, "frameworks/locale/#{locale}/automation_agent_rb.swc"
101
+ t.add_library "automation_#{locale}".to_sym, "frameworks/locale/#{locale}/automation_rb.swc"
102
+ t.add_library "charts_#{locale}".to_sym, "frameworks/locale/#{locale}/charts_rb.swc"
103
+ t.add_library "flash_integration_#{locale}".to_sym, "frameworks/locale/#{locale}/flash-integration_rb.swc"
104
+ t.add_library "framework_#{locale}".to_sym, "frameworks/locale/#{locale}/framework_rb.swc"
105
+ t.add_library "mobilecomponents_#{locale}".to_sym, "frameworks/locale/#{locale}/mobilecomponents_rb.swc"
106
+ t.add_library "mx_#{locale}".to_sym, "frameworks/locale/#{locale}/mx_rb.swc"
107
+ t.add_library "osmf_#{locale}".to_sym, "frameworks/locale/#{locale}/osmf_rb.swc"
108
+ t.add_library "playerglobal_#{locale}".to_sym, "frameworks/locale/#{locale}/playerglobal_rb.swc"
109
+ t.add_library "qtp_air_#{locale}".to_sym, "frameworks/locale/#{locale}/qtp_air_rb.swc"
110
+ t.add_library "rpc_#{locale}".to_sym, "frameworks/locale/#{locale}/rpc_rb.swc"
111
+ t.add_library "spark_#{locale}".to_sym, "frameworks/locale/#{locale}/spark_rb.swc"
112
+ t.add_library "textLayout_#{locale}".to_sym, "frameworks/locale/#{locale}/textLayout_rb.swc"
81
113
  end
82
114
  end
83
115
  end
84
-
85
-
data/rakefile.rb CHANGED
@@ -1,42 +1,42 @@
1
- require 'rubygems'
2
- require 'bundler'
3
-
4
- test_package = File.join(File.dirname(__FILE__), 'test', 'unit')
5
- $: << test_package unless $:.include? test_package
6
-
7
- Bundler.require
8
-
9
- require 'rake'
10
- require 'rake/clean'
11
- require 'rake/testtask'
12
-
13
- require File.join(File.dirname(__FILE__), 'lib', 'flashsdk', 'module')
14
-
15
- namespace :test do
16
- Rake::TestTask.new(:units) do |t|
17
- t.libs << "test/unit"
18
- t.test_files = FileList["test/unit/*_test.rb"]
19
- t.verbose = true
20
- end
21
- end
22
-
23
- desc "Run the test harness"
24
- task :test => 'test:units'
25
-
26
- file 'pkg' do
27
- FileUtils.makedirs 'pkg'
28
- end
29
-
30
- gem_package = "flashsdk-#{FlashSDK::VERSION}.gem"
31
-
32
- file "pkg/#{gem_package}" => [:clean, 'pkg'] do
33
- sh "gem build flashsdk.gemspec"
34
- FileUtils.mv gem_package, "pkg/#{gem_package}"
35
- end
36
-
37
- desc "Create the gem package"
38
- task :package => "pkg/#{gem_package}"
39
-
40
- CLEAN.add gem_package
41
- CLEAN.add 'pkg'
42
-
1
+ $:.unshift File.expand_path("../lib", __FILE__)
2
+
3
+ require 'rubygems'
4
+ require "bundler/gem_tasks"
5
+
6
+ test_package = File.join(File.dirname(__FILE__), 'test', 'unit')
7
+ $: << test_package unless $:.include? test_package
8
+
9
+ Bundler.require
10
+
11
+ require 'rake/clean'
12
+ require 'rake/testtask'
13
+
14
+ #require File.join(File.dirname(__FILE__), 'lib', 'flashsdk', 'module')
15
+
16
+ namespace :test do
17
+ Rake::TestTask.new(:units) do |t|
18
+ t.libs << "test/unit"
19
+ t.test_files = FileList["test/unit/*_test.rb"]
20
+ t.verbose = true
21
+ end
22
+ end
23
+
24
+ desc "Run the test harness"
25
+ task :test => 'test:units'
26
+
27
+ file 'pkg' do
28
+ FileUtils.makedirs 'pkg'
29
+ end
30
+
31
+ gem_package = "flashsdk-#{FlashSDK::VERSION}.gem"
32
+
33
+ file "pkg/#{gem_package}" => [:clean, 'pkg'] do
34
+ sh "gem build flashsdk.gemspec"
35
+ FileUtils.mv gem_package, "pkg/#{gem_package}"
36
+ end
37
+
38
+ desc "Create the gem package"
39
+ task :package => "pkg/#{gem_package}"
40
+
41
+ CLEAN.add gem_package
42
+ CLEAN.add 'pkg'
@@ -0,0 +1,11 @@
1
+ package {
2
+ import flash.display.Sprite;
3
+
4
+ public class SomeAirFile extends Sprite {
5
+
6
+ public function SomeAirFile() {
7
+ trace(">> SomeFile instantiated");
8
+ }
9
+ }
10
+ }
11
+
@@ -12,12 +12,11 @@ class FakeMXMLC
12
12
 
13
13
  def initialize args
14
14
  #puts ">> ARGS: #{args.inspect}"
15
- if(args.size == 3 &&
15
+ if(args.size == 2 &&
16
16
  args[0].include?('SomeFile.swf') &&
17
- args[1].include?('-static-link-runtime-shared-libraries') &&
18
- args[2].include?('SomeFile.as'))
17
+ args[1].include?('SomeFile.as'))
19
18
  compile_simple_swf args
20
- elsif args == ["-output=test/fixtures/air/simple/bin/SomeProject.swf", "-static-link-runtime-shared-libraries", "test/fixtures/air/simple/SomeProject.as"]
19
+ elsif args == ["-output=test/fixtures/air/simple/bin/SomeProject.swf", "test/fixtures/air/simple/SomeProject.as"]
21
20
  compile_amxmlc_swf args
22
21
  else
23
22
  raise "Unexpected args sent to mxmlc stub #{args.join(', ')}"