sprout-mxml-bundle 0.1.3 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sprout/generators/project/project_generator.rb +2 -3
- data/lib/sprout/generators/project/templates/MainClass.mxml +1 -1
- data/lib/sprout/generators/project/templates/TestRunner.mxml +1 -1
- data/lib/sprout/generators/project/templates/rakefile.rb +31 -79
- data/lib/sprout/mxml.rb +1 -1
- data/lib/sprout/mxml/version.rb +1 -1
- data/rakefile.rb +1 -1
- metadata +6 -5
@@ -7,7 +7,6 @@ class ProjectGenerator < Sprout::Generator::NamedBase # :nodoc:
|
|
7
7
|
m.directory base
|
8
8
|
m.directory File.join(base, 'assets/skins', project_name)
|
9
9
|
m.directory File.join(base, 'bin')
|
10
|
-
m.directory File.join(base, 'css')
|
11
10
|
m.directory File.join(base, 'skins/default')
|
12
11
|
m.directory File.join(base, 'lib')
|
13
12
|
m.directory File.join(base, 'script')
|
@@ -18,9 +17,9 @@ class ProjectGenerator < Sprout::Generator::NamedBase # :nodoc:
|
|
18
17
|
m.template 'rakefile.rb', File.join(base, "rakefile.rb")
|
19
18
|
m.template 'README.txt', File.join(base, "README.txt")
|
20
19
|
|
21
|
-
m.template 'generate',
|
20
|
+
m.template 'generate', generate_script_path, :chmod => 0755
|
22
21
|
|
23
|
-
m.template 'MainStyle.css', File.join(base, '
|
22
|
+
m.template 'MainStyle.css', File.join(base, 'src', "#{class_name}Skin.css")
|
24
23
|
m.template 'MainClass.mxml', File.join(base, 'src', "#{class_name}.mxml")
|
25
24
|
m.template 'TestRunner.mxml', File.join(base, 'src', "#{class_name}Runner.mxml")
|
26
25
|
end
|
@@ -1,92 +1,44 @@
|
|
1
1
|
require 'sprout'
|
2
|
-
# Optionally load gems from
|
2
|
+
# Optionally load gems from a server other than rubyforge:
|
3
3
|
# set_sources 'http://gems.projectsprouts.org'
|
4
4
|
sprout 'as3'
|
5
5
|
|
6
6
|
############################################
|
7
|
-
#
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
17
|
-
|
18
|
-
|
19
|
-
|
7
|
+
# Configure your Project Model
|
8
|
+
project_model :model do |m|
|
9
|
+
m.project_name = '<%= project_name %>'
|
10
|
+
m.language = 'mxml'
|
11
|
+
m.background_color = '#FFFFFF'
|
12
|
+
m.width = 970
|
13
|
+
m.height = 550
|
14
|
+
# m.src_dir = 'src'
|
15
|
+
# m.lib_dir = 'lib'
|
16
|
+
# m.swc_dir = 'lib'
|
17
|
+
# m.bin_dir = 'bin'
|
18
|
+
# m.test_dir = 'test'
|
19
|
+
# m.doc_dir = 'doc'
|
20
|
+
# m.asset_dir = 'assets'
|
21
|
+
# m.compiler_gem_name = 'sprout-flex4sdk-tool'
|
22
|
+
# m.compiler_gem_version = '>= 4.0.0'
|
23
|
+
# m.source_path << "#{m.lib_dir}/somelib"
|
24
|
+
# m.libraries << :corelib
|
20
25
|
end
|
21
26
|
|
22
|
-
model = Sprout::ProjectModel.instance
|
23
27
|
|
24
|
-
|
25
|
-
|
26
|
-
# the task name will be converted to a string
|
27
|
-
# and modified as follows sprout-#{name}-library
|
28
|
-
# unless you pass t.gem_name = 'full-sprout-name'
|
29
|
-
# For libraries that contain source code, the
|
30
|
-
# task name will also be the folder name that
|
31
|
-
# will be added to ProjectModel.lib_dir
|
32
|
-
# For a complete list of available sprout gems:
|
33
|
-
# http://rubyforge.org/frs/?group_id=3688
|
34
|
-
# You can also search that list directly from a
|
35
|
-
# terminal as follows:
|
36
|
-
# gem search -r sprout-*library
|
37
|
-
|
38
|
-
library :asunit3
|
39
|
-
library :corelib
|
40
|
-
|
41
|
-
############################################
|
42
|
-
# Launch the application using the Flash Player
|
43
|
-
# NOTE: double-quoted strings in ruby enable
|
44
|
-
# runtime expression evaluation using the
|
45
|
-
# following syntax:
|
46
|
-
# "Some String with: #{variable}"
|
47
|
-
|
48
|
-
desc "Compile and run main application"
|
49
|
-
flashplayer :run => model.output
|
50
|
-
|
51
|
-
# Make 'run' the default task
|
52
|
-
task :default => :run
|
28
|
+
desc 'Compile and debug the application'
|
29
|
+
debug :debug
|
53
30
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
desc "Compile and run test suites"
|
58
|
-
flashplayer :test => model.test_output
|
31
|
+
desc 'Compile run the test harness'
|
32
|
+
unit :test
|
59
33
|
|
60
|
-
|
61
|
-
|
62
|
-
# Any library tasks that are set as
|
63
|
-
# dependencies will automatically be added
|
64
|
-
# to the compiler source or swc paths
|
34
|
+
desc 'Compile the optimized deployment'
|
35
|
+
deploy :deploy
|
65
36
|
|
66
|
-
desc
|
67
|
-
|
68
|
-
t.warnings = true
|
69
|
-
t.default_background_color = 0xFFFFFF
|
70
|
-
t.default_frame_rate = 24
|
71
|
-
t.default_size = '600 400'
|
72
|
-
t.input = "#{model.src_dir}/<%= project_name %>.mxml"
|
73
|
-
t.source_path << model.asset_dir
|
74
|
-
# t.source_path << "#{model.lib_dir}/non-sprout-src-library"
|
75
|
-
# t.library_path << "#{model.lib_dir}/non-sprout.swc"
|
76
|
-
end
|
37
|
+
desc 'Create documentation'
|
38
|
+
document :doc
|
77
39
|
|
78
|
-
|
79
|
-
|
40
|
+
desc 'Compile a SWC file'
|
41
|
+
swc :swc
|
80
42
|
|
81
|
-
|
82
|
-
|
83
|
-
t.warnings = true
|
84
|
-
t.default_background_color = '#FFFFFF'
|
85
|
-
t.default_frame_rate = 24
|
86
|
-
t.verbose_stacktraces = true
|
87
|
-
t.default_size = "800 450"
|
88
|
-
t.input = "#{model.src_dir}/<%= project_name %>Runner.mxml"
|
89
|
-
t.source_path << model.src_dir
|
90
|
-
t.source_path << model.test_dir
|
91
|
-
t.source_path << model.asset_dir
|
92
|
-
end
|
43
|
+
# set up the default rake task
|
44
|
+
task :default => :debug
|
data/lib/sprout/mxml.rb
CHANGED
data/lib/sprout/mxml/version.rb
CHANGED
data/rakefile.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprout-mxml-bundle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pattern Park
|
@@ -9,20 +9,22 @@ autorequire: sprout/mxml
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-07-19 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: sprout
|
17
|
+
type: :runtime
|
17
18
|
version_requirement:
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
19
20
|
requirements:
|
20
21
|
- - ">="
|
21
22
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.7.
|
23
|
+
version: 0.7.189
|
23
24
|
version:
|
24
25
|
- !ruby/object:Gem::Dependency
|
25
26
|
name: sprout-as3-bundle
|
27
|
+
type: :runtime
|
26
28
|
version_requirement:
|
27
29
|
version_requirements: !ruby/object:Gem::Requirement
|
28
30
|
requirements:
|
@@ -40,7 +42,6 @@ extra_rdoc_files:
|
|
40
42
|
- README
|
41
43
|
files:
|
42
44
|
- lib
|
43
|
-
- pkg
|
44
45
|
- rakefile.rb
|
45
46
|
- README
|
46
47
|
- test
|
@@ -90,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
91
|
requirements: []
|
91
92
|
|
92
93
|
rubyforge_project: sprout
|
93
|
-
rubygems_version: 1.0
|
94
|
+
rubygems_version: 1.2.0
|
94
95
|
signing_key:
|
95
96
|
specification_version: 2
|
96
97
|
summary: Project and Code Generators for Flex Development
|