sprout-as3-bundle 0.1.27 → 0.1.32

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ module Sprout # :nodoc:
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- TINY = 27
6
+ TINY = 32
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  MAJOR_MINOR = [MAJOR, MINOR].join('.')
@@ -12,7 +12,7 @@ class ProjectGenerator < Sprout::Generator::NamedBase # :nodoc:
12
12
  m.directory File.join(base, 'src')
13
13
  m.directory File.join(base, 'test')
14
14
 
15
- m.file 'ProjectSprouts.jpg', File.join(base, 'assets/skins', project_name, 'ProjectSprouts.jpg')
15
+ m.file 'ProjectSprouts.png', File.join(base, 'assets/skins', project_name, 'ProjectSprouts.png')
16
16
  m.template 'rakefile.rb', File.join(base, "rakefile.rb")
17
17
  m.template 'README.txt', File.join(base, "README.txt")
18
18
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  package skins {
3
3
  public class <%= project_name %>Skin {
4
- [Embed(source="<%= project_name %>/ProjectSprouts.jpg")]
4
+ [Embed(source="<%= project_name %>/ProjectSprouts.png")]
5
5
  public static var ProjectSprouts:Class;
6
6
  }
7
7
  }
@@ -1,22 +1,25 @@
1
1
  require 'sprout'
2
+ # Optionally load gems from your custom server:
3
+ # set_sources 'http://www.yourdomain.com'
2
4
  sprout 'as3'
3
5
 
4
6
  ############################################
5
7
  # Uncomment and modify any of the following:
6
- model = Sprout::ProjectModel.instance
7
- model.project_name = '<%= project_name %>'
8
-
9
- # Default Values:
10
- # model.src_dir = 'src'
11
- # model.lib_dir = 'lib'
12
- # model.swc_dir = 'lib'
13
- # model.bin_dir = 'bin'
14
- # model.test_dir = 'test'
15
- # model.asset_dir = 'assets'
16
- model.language = 'as3'
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"
20
+ end
17
21
 
18
- output = "#{model.bin_dir}/<%= project_name %>.swf"
19
- test_output = "#{model.bin_dir}/<%= project_name %>Runner.swf"
22
+ model = Sprout::ProjectModel.instance
20
23
 
21
24
  ############################################
22
25
  # Set up remote library tasks
@@ -27,12 +30,10 @@ test_output = "#{model.bin_dir}/<%= project_name %>Runner.swf"
27
30
  # task name will also be the folder name that
28
31
  # will be added to ProjectModel.lib_dir
29
32
  # For a complete list of available sprout gems:
30
- # http://gems.projectsprouts.org/quick/index
33
+ # http://rubyforge.org/frs/?group_id=3688
31
34
  # You can also search that list directly from a
32
35
  # terminal as follows:
33
- # gem search -r library
34
- # Any gems with 'sprout-' prefix and '-library'
35
- # suffix can be be used as a library task.
36
+ # gem search -r sprout-*library
36
37
 
37
38
  library :asunit3
38
39
  library :corelib
@@ -45,7 +46,7 @@ library :corelib
45
46
  # "Some String with: #{variable}"
46
47
 
47
48
  desc "Compile and run main application"
48
- flashplayer :run => output
49
+ flashplayer :run => model.output
49
50
 
50
51
  # Make 'run' the default task
51
52
  task :default => :run
@@ -54,7 +55,7 @@ task :default => :run
54
55
  # Launch the test suites using the Flash Player
55
56
 
56
57
  desc "Compile and run test suites"
57
- flashplayer :test => test_output
58
+ flashplayer :test => model.test_output
58
59
 
59
60
  ############################################
60
61
  # Compile your application using mxmlc
@@ -63,7 +64,7 @@ flashplayer :test => test_output
63
64
  # to the compiler source or swc paths
64
65
 
65
66
  desc "Compile application"
66
- mxmlc output => :corelib do |t|
67
+ mxmlc model.output => :corelib do |t|
67
68
  t.warnings = true
68
69
  t.default_background_color = '#FFFFFF'
69
70
  t.default_frame_rate = 24
@@ -78,7 +79,7 @@ end
78
79
  # Compile test harness using mxmlc
79
80
 
80
81
  desc "Compile test harness"
81
- mxmlc test_output => [:asunit3, :corelib] do |t|
82
+ mxmlc model.test_output => [:asunit3, :corelib] do |t|
82
83
  t.warnings = true
83
84
  t.default_background_color = '#FFFFFF'
84
85
  t.default_frame_rate = 24
data/rakefile.rb CHANGED
@@ -58,7 +58,7 @@ spec = Gem::Specification.new do |s|
58
58
  s.rdoc_options << '-i' << '.'
59
59
  s.files = PKG_LIST.to_a
60
60
 
61
- s.add_dependency('sprout', '>= 0.7.1')
61
+ s.add_dependency('sprout', '>= 0.7.158')
62
62
  s.add_dependency('sprout-flashplayer-bundle')
63
63
  end
64
64
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprout-as3-bundle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.27
4
+ version: 0.1.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pattern Park
@@ -9,7 +9,7 @@ autorequire: sprout/as3
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-09 00:00:00 -08:00
12
+ date: 2008-02-12 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.7.1
22
+ version: 0.7.158
23
23
  version:
24
24
  - !ruby/object:Gem::Dependency
25
25
  name: sprout-flashplayer-bundle
@@ -40,6 +40,7 @@ extra_rdoc_files:
40
40
  - README
41
41
  files:
42
42
  - lib
43
+ - pkg
43
44
  - rakefile.rb
44
45
  - README
45
46
  - samples
@@ -65,7 +66,7 @@ files:
65
66
  - lib/sprout/generators/project/templates/DefaultSkin.as
66
67
  - lib/sprout/generators/project/templates/generate
67
68
  - lib/sprout/generators/project/templates/MainClass.as
68
- - lib/sprout/generators/project/templates/ProjectSprouts.jpg
69
+ - lib/sprout/generators/project/templates/ProjectSprouts.png
69
70
  - lib/sprout/generators/project/templates/rakefile.rb
70
71
  - lib/sprout/generators/project/templates/README.txt
71
72
  - lib/sprout/generators/project/templates/TestRunner.as