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.
@@ -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', File.join(base, 'script', "generate"), :chmod => 0755
20
+ m.template 'generate', generate_script_path, :chmod => 0755
22
21
 
23
- m.template 'MainStyle.css', File.join(base, 'css', "#{class_name}.css")
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
@@ -15,6 +15,6 @@
15
15
  </mx:Script>
16
16
 
17
17
  <!-- Import StyleSheet -->
18
- <mx:Style source="../css/<%= project_name %>.css" />
18
+ <mx:Style source="<%= project_name %>Skin.css" />
19
19
  <mx:Container styleName="SproutLogo" width="100%" height="100%" />
20
20
  </mx:Application>
@@ -5,7 +5,7 @@
5
5
  creationComplete="runTests()"
6
6
  >
7
7
  <!-- Import Application Styles -->
8
- <mx:Style source="../css/<%= project_name %>.css" />
8
+ <mx:Style source="<%= project_name %>Skin.css" />
9
9
  <mx:Script>
10
10
  <![CDATA[
11
11
  import asunit.textui.TestRunner;
@@ -1,92 +1,44 @@
1
1
  require 'sprout'
2
- # Optionally load gems from the leading edge:
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
- # Uncomment and modify any of the following:
8
- Sprout::ProjectModel.setup do |model|
9
- model.project_name = '<%= project_name %>'
10
- # Default Values:
11
- # model.src_dir = 'src'
12
- # model.lib_dir = 'lib'
13
- # model.swc_dir = 'lib'
14
- # model.bin_dir = 'bin'
15
- # model.test_dir = 'test'
16
- # model.asset_dir = 'assets'
17
- model.language = 'as3'
18
- model.output = "#{model.bin_dir}/<%= project_name %>.swf"
19
- model.test_output = "#{model.bin_dir}/<%= project_name %>Runner.swf"
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
- # Set up remote library tasks
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
- # Launch the test suites using the Flash Player
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
- # Compile your application using mxmlc
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 "Compile application"
67
- mxmlc model.output => :corelib do |t|
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
- # Compile test harness using mxmlc
40
+ desc 'Compile a SWC file'
41
+ swc :swc
80
42
 
81
- desc "Compile test harness"
82
- mxmlc model.test_output => [:asunit3, :corelib] do |t|
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
@@ -3,4 +3,4 @@ sprout 'sprout-as3-bundle'
3
3
  require 'sprout/generator'
4
4
  require 'sprout/as3_tasks'
5
5
 
6
- Rails::Generator::Base.use_sprout_sources!('as3')
6
+ RubiGen::Base.use_sprout_sources!('as3')
@@ -3,7 +3,7 @@ module Sprout # :nodoc:
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- TINY = 3
6
+ TINY = 11
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  MAJOR_MINOR = [MAJOR, MINOR].join('.')
data/rakefile.rb CHANGED
@@ -48,7 +48,7 @@ spec = Gem::Specification.new do |s|
48
48
  s.rdoc_options << '-i' << '.'
49
49
  s.files = PKG_LIST.to_a
50
50
 
51
- s.add_dependency('sprout', '>= 0.7.158')
51
+ s.add_dependency('sprout', '>= 0.7.189')
52
52
  s.add_dependency('sprout-as3-bundle')
53
53
  end
54
54
 
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.3
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-02-23 00:00:00 -08:00
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.158
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.1
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