h4oflashsdk 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/flashsdk/generators/templates/citrus_rakefile.rb +83 -0
- data/lib/flashsdk.rb +1 -0
- metadata +5 -4
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
@@ -0,0 +1,83 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
require 'bundler/setup'
|
4
|
+
|
5
|
+
require 'rake/clean'
|
6
|
+
require 'flashsdk'
|
7
|
+
require 'asunit4'
|
8
|
+
|
9
|
+
##
|
10
|
+
# Set USE_FCSH to true in order to use FCSH for all compile tasks.
|
11
|
+
#
|
12
|
+
# You can also set this value by calling the :fcsh task
|
13
|
+
# manually like:
|
14
|
+
#
|
15
|
+
# rake fcsh run
|
16
|
+
#
|
17
|
+
# These values can also be sent from the command line like:
|
18
|
+
#
|
19
|
+
# rake run FCSH_PKG_NAME=flex3
|
20
|
+
#
|
21
|
+
# ENV['USE_FCSH'] = true
|
22
|
+
# ENV['FCSH_PKG_NAME'] = 'flex4'
|
23
|
+
# ENV['FCSH_PKG_VERSION'] = '1.0.14.pre'
|
24
|
+
# ENV['FCSH_PORT'] = 12321
|
25
|
+
|
26
|
+
##############################
|
27
|
+
# Debug
|
28
|
+
|
29
|
+
# Compile the debug swf
|
30
|
+
mxmlc "<%= bin %>/<%= debug_swf_name %>" do |t|
|
31
|
+
t.input = "<%= src %>/<%= class_name %>.as"
|
32
|
+
t.static_link_runtime_shared_libraries = true
|
33
|
+
t.debug = true
|
34
|
+
t.library_path << 'lib'
|
35
|
+
end
|
36
|
+
|
37
|
+
desc "Compile and run the debug swf"
|
38
|
+
flashplayer :run => "<%= bin %>/<%= debug_swf_name %>"
|
39
|
+
|
40
|
+
##############################
|
41
|
+
# Test
|
42
|
+
|
43
|
+
library :asunit4
|
44
|
+
|
45
|
+
# Compile the test swf
|
46
|
+
mxmlc "<%= bin %>/<%= test_swf_name %>" => :asunit4 do |t|
|
47
|
+
t.input = "<%= src %>/<%= test_runner_name %>.as"
|
48
|
+
t.static_link_runtime_shared_libraries = true
|
49
|
+
t.source_path << 'test'
|
50
|
+
t.debug = true
|
51
|
+
t.library_path << 'lib'
|
52
|
+
end
|
53
|
+
|
54
|
+
desc "Compile and run the test swf"
|
55
|
+
flashplayer :test => "<%= bin %>/<%= test_swf_name %>"
|
56
|
+
|
57
|
+
##############################
|
58
|
+
# SWC
|
59
|
+
|
60
|
+
compc "<%= bin %>/<%= class_name %>.swc" do |t|
|
61
|
+
t.input_class = "<%= class_name %>"
|
62
|
+
t.static_link_runtime_shared_libraries = true
|
63
|
+
t.source_path << 'src'
|
64
|
+
t.library_path << 'lib'
|
65
|
+
end
|
66
|
+
|
67
|
+
desc "Compile the SWC file"
|
68
|
+
task :swc => '<%= bin %>/<%= class_name %>.swc'
|
69
|
+
|
70
|
+
##############################
|
71
|
+
# DOC
|
72
|
+
|
73
|
+
desc "Generate documentation at <%= doc %>/"
|
74
|
+
asdoc '<%= doc %>' do |t|
|
75
|
+
t.doc_sources << "<%= src %>"
|
76
|
+
t.exclude_sources << "<%= src %>/<%= test_runner_name %>.as"
|
77
|
+
t.library_path << 'lib'
|
78
|
+
end
|
79
|
+
|
80
|
+
##############################
|
81
|
+
# DEFAULT
|
82
|
+
task :default => :run
|
83
|
+
|
data/lib/flashsdk.rb
CHANGED
@@ -9,6 +9,7 @@ require 'flashsdk/generators/flash_helper'
|
|
9
9
|
require 'flashsdk/generators/class_generator'
|
10
10
|
require 'flashsdk/generators/project_generator'
|
11
11
|
require 'flashsdk/generators/flex_project_generator'
|
12
|
+
require 'flashsdk/generators/citrus_project_generator'
|
12
13
|
require 'flashsdk/fcsh'
|
13
14
|
require 'flashsdk/fcsh_socket'
|
14
15
|
require 'flashsdk/compiler_base'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: h4oflashsdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 4
|
10
|
+
version: 1.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Guenael LABOIS - H4o Studio
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
requirements:
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
28
|
+
hash: 426409047
|
29
29
|
segments:
|
30
30
|
- 1
|
31
31
|
- 1
|
@@ -100,6 +100,7 @@ files:
|
|
100
100
|
- lib/flashsdk/generators/templates/FlexTestRunner.mxml
|
101
101
|
- lib/flashsdk/generators/templates/ActionScript3Class.as
|
102
102
|
- lib/flashsdk/generators/templates/Flex4Rakefile.rb
|
103
|
+
- lib/flashsdk/generators/templates/citrus_rakefile.rb
|
103
104
|
- lib/flashsdk/generators/templates/ActionScript3RunnerClass.as
|
104
105
|
- lib/flashsdk/generators/templates/Flex4Application.mxml
|
105
106
|
- lib/flashsdk/generators/templates/DefaultProjectImage.png
|