asproject 0.1.84 → 0.1.89

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/bin/fcshs CHANGED
@@ -11,8 +11,7 @@ if ARGV.size > 0 && ARGV[0][0]==95 && ARGV[0][-1]==95
11
11
  end
12
12
  end
13
13
 
14
- #require_gem 'asproject', version
15
- #require 'fcshs.rb'
14
+ require_gem 'asproject', version
15
+ require 'fcshs.rb'
16
16
 
17
- require File.dirname(__FILE__) + '/../lib/fcshs.rb'
18
17
  AsProject::FCSHS.new
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+
5
+ version = "> 0"
6
+
7
+ if ARGV.size > 0 && ARGV[0][0]==95 && ARGV[0][-1]==95
8
+ if Gem::Version.correct?(ARGV[0][1..-2])
9
+ version = ARGV[0][1..-2]
10
+ ARGV.shift
11
+ end
12
+ end
13
+
14
+ require File.dirname(__FILE__) + '/../lib/fcshs.rb'
15
+ AsProject::FCSHS.new
@@ -2,7 +2,7 @@ module AsProject
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 85
5
+ TINY = 90
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -5,7 +5,7 @@ module AsProject
5
5
  # ProjectArguments
6
6
  class ProjectArguments < Hash
7
7
  attr_accessor :path_finder,
8
- :execution_dir,
8
+ :execution_dir,
9
9
  :project_templates,
10
10
  :should_create
11
11
 
@@ -19,6 +19,7 @@ module AsProject
19
19
  self[:should_create] = true
20
20
  self[:verbose] = true
21
21
  self[:selected_templates] = []
22
+ self[:template_type] = nil
22
23
  end
23
24
 
24
25
  def parse!(args)
@@ -79,12 +80,15 @@ asproject -C
79
80
 
80
81
  4) Copy Templates to Project Example:
81
82
 
82
- mkdir projects
83
- cd projects
84
83
  asproject MyProjectName
85
84
  cd MyProjectName/project
86
85
  asproject -c
87
86
 
87
+ 5) Specify templates by type Example:
88
+
89
+ asproject -T as3 MyProjectName
90
+ cd MyProjectName/project
91
+ rake
88
92
 
89
93
  Options:
90
94
  EOF
@@ -117,6 +121,15 @@ EOF
117
121
  self[:selected_templates] = process_templates(str)
118
122
  end
119
123
 
124
+ opts.on('-T', '--template-type [STRING]', "Define which template type to use (as2, as3 or mxml).") do |str|
125
+ # Handle space-delimited vs comma-delimited? Do I need to do this?
126
+ if(str != 'as2' && str != 'as3' && str != 'mxml')
127
+ msg = 'Template type must be as2, as3 or mxml'
128
+ raise ProjectError.new(msg)
129
+ end
130
+ self[:template_type] = str
131
+ end
132
+
120
133
  opts.on_tail('-h', '--help', 'display this help and exit') do
121
134
  puts opts
122
135
  exit
@@ -141,12 +154,27 @@ EOF
141
154
  self[:selected_templates] << args.shift
142
155
  end
143
156
  end
157
+
158
+ if(!self[:template_type].nil?)
159
+ self[:selected_templates] = get_templates_by_type(self[:template_type])
160
+ end
161
+
144
162
  if(self[:selected_templates].size == 0)
145
163
  self[:selected_templates] = self[:default_templates]
146
164
  end
147
165
  verify_templates(self[:selected_templates])
148
166
  end
149
167
 
168
+ def get_templates_by_type(type)
169
+ if(type == 'as2')
170
+ return ['as2', 'asunit25', 'fdt']
171
+ elsif(type == 'as3')
172
+ return ['as3', 'asunit3', 'fb2as']
173
+ elsif(type == 'mxml')
174
+ return ['mxml', 'asunit3', 'fb2as']
175
+ end
176
+ end
177
+
150
178
  def process_templates(str)
151
179
  str = str.split(', ').join(',')
152
180
  if(!str.index(' ').nil? && str.index(',').nil?)
@@ -210,6 +238,10 @@ EOF
210
238
  return self[:copy_to_project]
211
239
  end
212
240
 
241
+ def template_type
242
+ return self[:template_type]
243
+ end
244
+
213
245
  def verbose
214
246
  return self[:verbose]
215
247
  end
@@ -2,6 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'socket'
4
4
  require 'optparse'
5
+ require 'open3'
5
6
 
6
7
  module AsProject
7
8
 
@@ -77,7 +78,7 @@ EOF
77
78
  @socket = TCPServer.new(@ip, @port)
78
79
  @socket.setsockopt(Socket::SOL_SOCKET, Socket::TCP_NODELAY, true)
79
80
  puts "fcsh server started on #{@ip}:#{@port}"
80
- puts "enter 'fcsh -k' to kill this process when you're done"
81
+ puts "enter 'fcshs -k' to kill this process when you're done"
81
82
  rescue StandardError => e
82
83
  puts 'Error opening socket: ' + e.to_s + "\nTry running fcshs -k to kill the currently-running socket."
83
84
  @compile_commands = nil
@@ -90,9 +91,9 @@ EOF
90
91
  session = @socket.accept
91
92
  dir = session.gets
92
93
  if(dir.match(/^0/))
93
- puts '>> Kill all fcsh instances and the open socket now!'
94
+ puts '>> Kill all fcsh instances and close the socket now!'
94
95
  close_fcsh
95
- return
96
+ exit
96
97
  end
97
98
  command = session.gets
98
99
  execute(session, dir, command)
@@ -102,39 +103,63 @@ EOF
102
103
  end
103
104
 
104
105
  def execute(io, dir, command)
105
- io.puts "[execute] #{command} at #{Dir.pwd} and #{dir}"
106
+ io.puts "#{command} at #{Dir.pwd} and #{dir}"
106
107
  fcsh = get_fcsh(io, dir)
107
108
 
108
109
  cmd = @compile_commands[command]
109
- if(cmd.nil?)
110
- cmd = CompileCommand.new(command)
111
- @compile_commands[command] = cmd
112
- cmd.index = @compile_commands.size
113
-
114
- fcsh.puts(command)
115
-
116
- t = Thread.new {
117
- IO.new(2, 'r+') do |err|
118
- while(line = err.gets)
119
- puts '[error] ' + line
120
- end
121
- end
122
- }
110
+ msg = command
111
+ if(!cmd.nil?)
112
+ msg = "compile #{cmd.index}"
113
+ end
123
114
 
124
- while(line = fcsh.gets)
125
- io.puts '[socket] ' + line
126
- puts '[line] ' + line
127
- end
115
+ fcsh.stdin.puts(msg)
116
+ stay_open = true
117
+ compile_errors = false
128
118
 
129
- puts 'FINISHED FCSH WRITE!'
130
- else
131
- msg = "compile #{cmd.index}"
132
- # io.write(msg)
133
- fcsh.write(msg + "\n") do |f|
134
- io.puts(f.read)
119
+ e = Thread.new {
120
+ while(line = fcsh.stderr.gets)
121
+ io.puts line
122
+ $stderr.puts line
123
+ compile_errors = true
124
+ end
125
+ io.puts 'STD ERROR COMPLETE'
126
+ }
127
+
128
+ o = Thread.new {
129
+ while(line = fcsh.stdout.gets)
130
+ io.puts line
131
+ $stdout.puts line.size.to_s + " : " + line
132
+ # io.flush
133
+ # $stdout.flush
134
+ if(!preamble.match(line))
135
+ puts 'CLOSING NOW!'
136
+ stay_open = false
137
+ end
135
138
  end
139
+ }
140
+
141
+ while(stay_open)
142
+ sleep(0.75)
143
+ end
144
+
145
+ # Close the Connection...
146
+ io.puts '0xE'
147
+
148
+ # Store the successful compilation
149
+ if(cmd.nil? && !compile_errors)
150
+ cmd = CompileCommand.new(command)
151
+ @compile_commands[command] = cmd
152
+ cmd.index = @compile_commands.size
136
153
  end
137
154
  end
155
+
156
+ def preamble
157
+ str <<EOF
158
+ Adobe Flex Compiler SHell (fcsh)
159
+ Version 2.0.1 build 155542
160
+ Copyright (c) 2004-2006 Adobe Systems, Inc. All rights reserved.
161
+ EOF
162
+ end
138
163
 
139
164
  def close_fcsh
140
165
  @instances.each do |fc|
@@ -156,7 +181,7 @@ EOF
156
181
  raise StandardError.new(msg)
157
182
  end
158
183
 
159
- instances[dir] = IO.popen('fcsh', 'r+')
184
+ instances[dir] = FCSHProcess.new
160
185
  end
161
186
  rescue SystemCallError
162
187
  puts ">> Failed to start the actual fcsh application, please make sure it's in your class path by opening a new terminal and typing 'fcsh'"
@@ -164,6 +189,18 @@ EOF
164
189
  end
165
190
  end
166
191
 
192
+ class FCSHProcess
193
+ attr_reader :stdin,
194
+ :stdout,
195
+ :stderr
196
+ def initialize
197
+ name = 'fcsh'
198
+ mode = 'r+'
199
+ @stdin, @stdout, @stderr = Open3.popen3(name, mode)
200
+ end
201
+
202
+ end
203
+
167
204
  class CompileCommand
168
205
  attr_accessor :index,
169
206
  :command
@@ -182,7 +182,11 @@ module AsProject
182
182
  # Over multiple lines?
183
183
  private
184
184
  def is_project?(dir)
185
- return (has_config_rb?(dir) || has_config_yaml?(dir) || has_eclipse_project?(dir) || has_src_eclipse_project?(dir) || has_src_and_test?(dir))
185
+ return (has_rakefile?(dir) || has_config_rb?(dir) || has_config_yaml?(dir) || has_eclipse_project?(dir) || has_src_eclipse_project?(dir) || has_src_and_test?(dir))
186
+ end
187
+
188
+ def has_rakefile?(dir)
189
+ return File.exists?(File.join(dir, 'rakefile.rb'))
186
190
  end
187
191
 
188
192
  def has_config_yaml?(dir)
@@ -35,20 +35,24 @@ module AsProject
35
35
  def find_project(dir)
36
36
  project = super(dir)
37
37
  config_file = File.join(dir, 'config', 'asclass_config.rb')
38
- if(File.exists?(File.join(dir, '.as2_classpath')))
38
+ rakefile = File.join(dir, 'rakefile.rb')
39
+ if(File.exists?(rakefile))
40
+ require rakefile
41
+ @default_templates = DEFAULT_TEMPLATES
42
+ elsif(File.exists?(File.join(dir, '.as2_classpath')))
39
43
  @default_templates = @@DEFAULT_AS2_TEMPLATES
40
44
  elsif(File.exists?(File.join(dir, '.actionScriptProperties')))
41
45
  @default_templates = @@DEFAULT_AS3_TEMPLATES
42
46
  end
43
47
 
44
48
  # Include the config file if found
45
- if(File.exists?(config_file))
46
- require config_file
47
- class << self
48
- include Config
49
- end
50
- initialize_config
51
- end
49
+ #if(File.exists?(config_file))
50
+ # require config_file
51
+ # class << self
52
+ # include Config
53
+ # end
54
+ # initialize_config
55
+ #end
52
56
  return project
53
57
  end
54
58
 
@@ -1,5 +1,6 @@
1
1
 
2
2
  require 'socket'
3
+ require 'delegate'
3
4
 
4
5
  module AsProject
5
6
 
@@ -10,7 +11,7 @@ module AsProject
10
11
  attr_accessor :ip,
11
12
  :port
12
13
 
13
- def initialize(name=:fcsh)
14
+ def initialize(name=:fcsh, ip=nil, port=nil)
14
15
  @ip = (ip.nil?) ? "127.0.0.1" : ip
15
16
  @port = (port.nil?) ? 20569 : port
16
17
  super(name)
@@ -28,12 +29,15 @@ module AsProject
28
29
  s.puts "#{cmd} #{args}"
29
30
  s.close_write
30
31
  while(line = s.gets)
32
+ if(line.match(/^0xE/))
33
+ s.close
34
+ break
35
+ end
31
36
  puts line
32
37
  end
33
38
  end
34
- puts 'finished!'
35
39
  rescue StandardError
36
- # IO.popen("fcshs &", "r")
40
+ # IO.popen("fcshs &", "a+")
37
41
  # execute(cmd, args, retries)
38
42
  end
39
43
  end
@@ -30,9 +30,12 @@ module AsProject
30
30
  elsif(version == 8)
31
31
  @win_url = "http://download.macromedia.com/pub/flashplayer/updaters/8/flash_player_update3_flash8_win.zip"
32
32
  @win_extracted_file = "/Players/Debug/SAFlashPlayer.exe"
33
- @osx_url = "http://download.macromedia.com/pub/flashplayer/updaters/8/sa_flashplayer_8_all_debug.dmg"
34
- @osx_mounted_path = "Adobe Flash Standalone Players"
35
- @osx_extracted_file = "en/SAFlashPlayer"
33
+ @osx_url = "http://download.macromedia.com/pub/flashplayer/updaters/9/sa_flashplayer_9_all_debug_ub.dmg"
34
+ @osx_mounted_path = "Adobe Flash Player Standalone"
35
+ @osx_extracted_file = "Flash\ Player.app"
36
+ # @osx_url = "http://download.macromedia.com/pub/flashplayer/updaters/8/sa_flashplayer_8_all_debug.dmg"
37
+ # @osx_mounted_path = "Adobe Flash Standalone Players"
38
+ # @osx_extracted_file = "en/SAFlashPlayer"
36
39
  @unix_url = nil
37
40
  @unix_extracted_file = nil
38
41
  elsif(version == 9)
@@ -40,8 +43,7 @@ module AsProject
40
43
  @win_extracted_file = "sa_flashplayer_9_debug.exe"
41
44
  @osx_url = "http://download.macromedia.com/pub/flashplayer/updaters/9/sa_flashplayer_9_all_debug_ub.dmg"
42
45
  @osx_mounted_path = "Adobe Flash Player Standalone"
43
- # @osx_extracted_file = "Flash\ Player.app"
44
- @osx_extracted_file = "Flash\ Player.app/Contents/MacOS/standalone"
46
+ @osx_extracted_file = "Flash\ Player.app"
45
47
  @unix_url = nil
46
48
  @unix_extracted_file = nil
47
49
  else
@@ -60,20 +62,22 @@ module AsProject
60
62
  log_file = FlashLog.new.get_file
61
63
 
62
64
  begin
63
- # Don't let trust file failures break other features...
65
+ # Don't let trust or log file failures break other features...
64
66
  FlashPlayerTrust.new(user, File.dirname(@swf))
65
67
  rescue
66
68
  puts 'Warning, was unable to update the FlashPlayerTrust file'
67
69
  end
68
-
69
- File.open(log_file, 'w') do |f|
70
- f.write('')
70
+
71
+ if(File.exists?(log_file))
72
+ File.open(log_file, 'w') do |f|
73
+ f.write('')
74
+ end
71
75
  end
76
+
72
77
  thread = nil
73
- @osx_process = nil
74
78
  if(Logger.debug)
75
79
  thread = ThreadMock.new
76
- elsif(@user_task.is_a?(OSXRemoteFileTask) && !Logger.debug)
80
+ elsif(@user_task.is_a?(OSXRemoteFileTask))
77
81
  thread = run_osx
78
82
  else
79
83
  thread = run_other
@@ -82,12 +86,13 @@ module AsProject
82
86
  end
83
87
 
84
88
  def run_osx
85
- player = clean_path(extracted_file_path)
86
- swf = clean_path(File.expand_path(@swf))
89
+ player = extracted_file_path + '/Contents/MacOS/standalone'
90
+ swf = clean_path(@swf)
87
91
 
88
92
  t = Thread.new {
89
- IO.popen(player) do |p|
90
- IO.popen("open #{swf}")
93
+ IO.popen("'#{player}'") do |p|
94
+ sleep(1.0)
95
+ IO.popen("open #{swf}")
91
96
  end
92
97
  }
93
98
  end
@@ -97,7 +102,7 @@ module AsProject
97
102
  execute("./#{@swf}")
98
103
  }
99
104
  end
100
-
105
+
101
106
  def read_log(player_thread, log_file)
102
107
  index = 0
103
108
 
@@ -48,7 +48,9 @@ module AsProject
48
48
  file @output => item
49
49
  end
50
50
 
51
- add_path(File.dirname(@input))
51
+ if(!@input.nil?)
52
+ add_path(File.dirname(@input))
53
+ end
52
54
 
53
55
  file @output do |t|
54
56
  execute(@target, option_list.join(' '))
@@ -98,8 +98,10 @@ module AsProject
98
98
  if(extracted_file_path != downloaded_file)
99
99
  if(!Rake::Task.task_defined?(extracted_file_path))
100
100
  file extracted_file_path => downloaded_file do |f|
101
- unpack_downloaded_file(downloaded_file, extracted_file_path)
102
- File.chmod(0755, extracted_file_path)
101
+ if(!File.exists?(extracted_file_path))
102
+ unpack_downloaded_file(downloaded_file, extracted_file_path)
103
+ File.chmod(0755, extracted_file_path)
104
+ end
103
105
  end
104
106
  end
105
107
  end
@@ -118,6 +120,7 @@ module AsProject
118
120
  end
119
121
 
120
122
  def unpack_downloaded_file(file_name, expected_file)
123
+ # Remove previously downloaded files...
121
124
  dir = File.dirname(file_name)
122
125
  Dir[dir + '/*'].each do |child|
123
126
  if(child != '.' && child != '..' && child != file_name)
@@ -175,9 +178,11 @@ module AsProject
175
178
  # Copy the DMG contents using system copy rather than ruby utils
176
179
  # Because OS X does something special with .app files that the
177
180
  # Ruby FileUtils and File classes break...
178
- p = full_mounted_path.split(" ").join("\\ ")
179
- sh("cp -Rf #{p}/* #{File.join(@user.downloads, @name.to_s)}")
180
-
181
+ from = full_mounted_path
182
+ to = File.join(@user.downloads, @name.to_s)
183
+ if(File.exists?(from))
184
+ `ditto '#{from}' #{to}`
185
+ end
181
186
  if(File.exists?(full_mounted_path))
182
187
  system("hdiutil unmount -force \"#{full_mounted_path}\"")
183
188
  end
@@ -1,6 +1,15 @@
1
1
  require 'rubygems'
2
2
  require 'asproject'
3
3
 
4
+ # NOTE: The asclass tools will load this file
5
+ # and use these constants...
6
+ SRC_DIR = 'src'
7
+ TEST_DIR = 'test'
8
+ LIB_DIR = 'lib'
9
+ BIN_DIR = 'bin'
10
+ SKIN_DIR = 'assets/img/skins'
11
+ DEFAULT_TEMPLATES = ['as2']
12
+
4
13
  ############################################
5
14
  # Launch the Application using Flash Player 8
6
15
 
@@ -11,7 +20,7 @@ task :default => [:run]
11
20
 
12
21
  AsProject::FlashPlayer.new(:run) do |t|
13
22
  t.version = 8
14
- t.swf = 'bin/<%= project_name %>.swf'
23
+ t.swf = BIN_DIR + '/<%= project_name %>.swf'
15
24
  end
16
25
 
17
26
  ############################################
@@ -21,16 +30,16 @@ task :test => [:compile_tests]
21
30
 
22
31
  AsProject::FlashPlayer.new(:test) do |t|
23
32
  t.version = 8
24
- t.swf = 'bin/<%= project_name %>Runner.swf'
33
+ t.swf = BIN_DIR + '/<%= project_name %>Runner.swf'
25
34
  end
26
35
 
27
36
  ############################################
28
37
  # Compile your library using SWFMill
29
38
 
30
39
  AsProject::SWFMill.new(:compile_skin) do |t|
31
- t.input = 'assets/img/skins/default'
32
- t.template = 'assets/img/skins/SWFMillTemplate.erb'
33
- t.output = 'bin/<%= project_name %>Skin.swf'
40
+ t.input = SKIN_DIR + '/default'
41
+ t.template = SKIN_DIR + '/SWFMillTemplate.erb'
42
+ t.output = BIN_DIR + '/<%= project_name %>Skin.swf'
34
43
  end
35
44
 
36
45
  ############################################
@@ -43,9 +52,9 @@ AsProject::MTASC.new(:compile_main) do |t|
43
52
  t.main = true
44
53
  t.version = 8
45
54
  t.frame = 2
46
- t.swf = 'bin/<%= project_name %>Skin.swf'
47
- t.out = 'bin/<%= project_name %>.swf'
48
- t.cp << 'src'
55
+ t.swf = BIN_DIR + '/<%= project_name %>Skin.swf'
56
+ t.out = BIN_DIR + '/<%= project_name %>.swf'
57
+ t.cp << SRC_DIR
49
58
  end
50
59
 
51
60
  ############################################
@@ -56,11 +65,11 @@ AsProject::MTASC.new(:compile_tests) do |t|
56
65
  t.version = 8
57
66
  t.frame = 2
58
67
  t.main = true
59
- t.swf = 'bin/<%= project_name %>Skin.swf'
60
- t.out = 'bin/<%= project_name %>Runner.swf'
61
- t.cp << 'src'
62
- t.cp << 'test'
63
- t.cp << 'lib/asunit'
68
+ t.swf = BIN_DIR + '/<%= project_name %>Skin.swf'
69
+ t.out = BIN_DIR + '/<%= project_name %>Runner.swf'
70
+ t.cp << SRC_DIR
71
+ t.cp << TEST_DIR
72
+ t.cp << LIB_DIR + '/asunit'
64
73
  end
65
74
 
66
75
  ############################################
@@ -0,0 +1,7 @@
1
+
2
+ package skins {
3
+ public class DefaultSkin {
4
+ [Embed(source="Default/PatternPark.jpg")]
5
+ public static var PatternPark:Class;
6
+ }
7
+ }
@@ -2,6 +2,15 @@
2
2
  require 'rubygems'
3
3
  require 'asproject'
4
4
 
5
+ # NOTE: The asclass tools will load this file
6
+ # and use these constants...
7
+ SRC_DIR = 'src'
8
+ TEST_DIR = 'test'
9
+ LIB_DIR = 'lib'
10
+ BIN_DIR = 'bin'
11
+ SKIN_DIR = 'assets/img'
12
+ DEFAULT_TEMPLATES = ['as3']
13
+
5
14
  ############################################
6
15
  # Launch the Application using Flash Player 9
7
16
 
@@ -11,7 +20,7 @@ task :default => :run
11
20
 
12
21
  AsProject::FlashPlayer.new(:run) do |t|
13
22
  t.version = 9
14
- t.swf = 'bin/<%= project_name %>Application.swf'
23
+ t.swf = BIN_DIR + '/<%= project_name %>Application.swf'
15
24
  end
16
25
 
17
26
  ############################################
@@ -22,7 +31,7 @@ task :test => [:compile_tests]
22
31
 
23
32
  AsProject::FlashPlayer.new(:test) do |t|
24
33
  t.version = 9
25
- t.swf = 'bin/<%= project_name %>Runner.swf'
34
+ t.swf = BIN_DIR + '/<%= project_name %>Runner.swf'
26
35
  end
27
36
 
28
37
  ############################################
@@ -32,8 +41,9 @@ AsProject::MXMLC.new(:compile_main) do |t|
32
41
  t.default_background_color = '#FFFFFF'
33
42
  t.default_frame_rate = 24
34
43
  t.default_size = "600 400"
35
- t.input = 'src/<%= project_name %>.as'
36
- t.output = 'bin/<%= project_name %>Application.swf'
44
+ t.input = SRC_DIR + '/<%= project_name %>.as'
45
+ t.output = BIN_DIR + '/<%= project_name %>Application.swf'
46
+ t.source_path = SKIN_DIR
37
47
  t.warnings = true
38
48
  end
39
49
 
@@ -44,11 +54,11 @@ AsProject::MXMLC.new(:compile_tests) do |t|
44
54
  t.default_background_color = '#FFFFFF'
45
55
  t.default_frame_rate = 24
46
56
  t.default_size = "800 450"
47
- t.input = 'test/<%= project_name %>Runner.as'
48
- t.output = 'bin/<%= project_name %>Runner.swf'
57
+ t.input = SRC_DIR + '/<%= project_name %>Runner.as'
58
+ t.output = BIN_DIR + '/<%= project_name %>Runner.swf'
49
59
  t.warnings = true
50
- t.source_path << 'src'
51
- t.source_path << 'assets/img/skins'
52
- # t.source_path << 'lib/asunit'
53
- t.source_path << 'test'
60
+ t.source_path << SRC_DIR
61
+ t.source_path << LIB_DIR + '/asunit'
62
+ t.source_path << TEST_DIR
63
+ t.source_path << SKIN_DIR
54
64
  end
@@ -1,9 +1,12 @@
1
1
  package {
2
2
  import flash.display.Sprite;
3
+ import skins.DefaultSkin;
3
4
 
4
5
  public class <%=project_name%> extends Sprite {
5
6
 
6
7
  public function <%=project_name%>() {
8
+ addChild(new DefaultSkin.PatternPark());
9
+ trace("<%=project_name%> instantiated!");
7
10
  }
8
11
  }
9
12
  }
@@ -0,0 +1,10 @@
1
+
2
+ This file has been created because I can't figure out how to bundle
3
+ Empty directories in the gem package.
4
+
5
+ If you know how to do this, please contact me...
6
+
7
+ Thanks,
8
+
9
+ lbayes@patternpark.com
10
+
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: asproject
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.84
7
- date: 2007-03-24 00:00:00 -07:00
6
+ version: 0.1.89
7
+ date: 2007-03-25 00:00:00 -07:00
8
8
  summary: AsProject is a tool set that simplifies the process of beginning and growing a new ActionScript project.
9
9
  require_paths:
10
10
  - lib
@@ -45,6 +45,7 @@ files:
45
45
  - bin/asclass
46
46
  - bin/asproject
47
47
  - bin/fcshs
48
+ - bin/fcshs_test
48
49
  - lib/asclass.rb
49
50
  - lib/asclass_arguments.rb
50
51
  - lib/asproject
@@ -120,11 +121,17 @@ files:
120
121
  - templates/asproject/as3/art
121
122
  - templates/asproject/as3/doc
122
123
  - templates/asproject/as3/project
124
+ - templates/asproject/as3/project/assets
123
125
  - templates/asproject/as3/project/bin
124
126
  - templates/asproject/as3/project/lib
125
127
  - templates/asproject/as3/project/rakefile.rb
126
128
  - templates/asproject/as3/project/src
127
129
  - templates/asproject/as3/project/test
130
+ - templates/asproject/as3/project/assets/img
131
+ - templates/asproject/as3/project/assets/img/skins
132
+ - templates/asproject/as3/project/assets/img/skins/Default
133
+ - templates/asproject/as3/project/assets/img/skins/DefaultSkin.as
134
+ - templates/asproject/as3/project/assets/img/skins/Default/PatternPark.jpg
128
135
  - templates/asproject/as3/project/src/AsProject.as
129
136
  - templates/asproject/as3/project/src/AsProjectRunner.as
130
137
  - templates/asproject/asunit2/project
@@ -270,6 +277,7 @@ files:
270
277
  - templates/asproject/as3/project/lib/.crap_file
271
278
  - templates/asproject/as3/project/test/.crap_file
272
279
  - templates/asproject/fb2as/project/.actionScriptProperties
280
+ - templates/asproject/fb2as/project/.crap_file
273
281
  - templates/asproject/fb2as/project/.project
274
282
  - templates/asproject/fb2as/project/.settings
275
283
  - templates/asproject/fdt/project/.as2_classpath