asproject 0.1.60 → 0.1.68
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/asclass.rb +3 -3
- data/lib/asproject/version.rb +1 -1
- data/lib/path_finder.rb +2 -1
- data/lib/tasks/flash_player.rb +20 -6
- data/lib/tasks/remote_file_task.rb +5 -7
- data/templates/asclass/mxml/.crap_file +10 -0
- data/templates/asproject/as2/art/.crap_file +10 -0
- data/templates/asproject/as2/doc/.crap_file +10 -0
- data/templates/asproject/as2/project/bin/.crap_file +10 -0
- data/templates/asproject/as2/project/lib/.crap_file +10 -0
- data/templates/asproject/as3/art/.crap_file +10 -0
- data/templates/asproject/as3/doc/.crap_file +10 -0
- data/templates/asproject/as3/project/bin/.crap_file +10 -0
- data/templates/asproject/as3/project/lib/.crap_file +10 -0
- data/templates/asproject/as3/project/test/.crap_file +10 -0
- data/templates/asproject/mxml/.crap_file +10 -0
- metadata +13 -1
data/lib/asclass.rb
CHANGED
@@ -190,10 +190,10 @@ module AsProject
|
|
190
190
|
end
|
191
191
|
|
192
192
|
def get_project(dir)
|
193
|
-
if(File.exists?(File.join(dir, '.project')))
|
193
|
+
# if(File.exists?(File.join(dir, '.project') || File.directory?(File.join(dir, 'config'))))
|
194
194
|
return AsClassProject.new(dir)
|
195
|
-
end
|
196
|
-
raise ProjectError.new('AsClass could not find a .project file in the current directory: ' + dir)
|
195
|
+
# end
|
196
|
+
# raise ProjectError.new('AsClass could not find a .project file in the current directory: ' + dir)
|
197
197
|
end
|
198
198
|
end
|
199
199
|
|
data/lib/asproject/version.rb
CHANGED
data/lib/path_finder.rb
CHANGED
@@ -171,7 +171,8 @@ module AsProject
|
|
171
171
|
if(is_project? dir)
|
172
172
|
return dir
|
173
173
|
elsif(File.dirname(dir) == dir)
|
174
|
-
|
174
|
+
return Dir.pwd
|
175
|
+
# raise ProjectError.new('AsProject::PathFinder reached the root of the file system without finding a valid project.')
|
175
176
|
else
|
176
177
|
find_project(File.dirname(dir))
|
177
178
|
end
|
data/lib/tasks/flash_player.rb
CHANGED
@@ -81,13 +81,15 @@ module AsProject
|
|
81
81
|
end
|
82
82
|
|
83
83
|
def run_osx
|
84
|
-
|
85
|
-
|
84
|
+
Thread.new {
|
85
|
+
system(%{open "#{clean_path(extracted_file_path)}" ./#{clean_path(@swf)}})
|
86
|
+
}
|
87
|
+
# return OSXPlayerThread.new
|
86
88
|
end
|
87
89
|
|
88
90
|
def run_other
|
89
|
-
|
90
|
-
|
91
|
+
Thread.new {
|
92
|
+
sh("./#{@swf}")
|
91
93
|
}
|
92
94
|
end
|
93
95
|
|
@@ -101,7 +103,7 @@ module AsProject
|
|
101
103
|
while(player_thread.alive?)
|
102
104
|
sleep(0.2)
|
103
105
|
incr = 0
|
104
|
-
|
106
|
+
|
105
107
|
File.open(log_file, 'r') do |file|
|
106
108
|
file.readlines.each do |line|
|
107
109
|
incr = incr + 1
|
@@ -123,8 +125,20 @@ module AsProject
|
|
123
125
|
end
|
124
126
|
|
125
127
|
class OSXPlayerThread
|
128
|
+
|
129
|
+
def initialize
|
130
|
+
@alive = true
|
131
|
+
end
|
132
|
+
|
133
|
+
# def begin_listening
|
134
|
+
# while(alive?)
|
135
|
+
# sleep(0.4)
|
136
|
+
# result = sh "ps -A"
|
137
|
+
# end
|
138
|
+
# end
|
139
|
+
|
126
140
|
def alive?
|
127
|
-
return
|
141
|
+
return @alive
|
128
142
|
end
|
129
143
|
end
|
130
144
|
end
|
@@ -169,14 +169,12 @@ module AsProject
|
|
169
169
|
|
170
170
|
mounted_target = File.join(full_mounted_path, extracted_file)
|
171
171
|
|
172
|
-
# Copy the
|
173
|
-
|
174
|
-
FileUtils
|
172
|
+
# Copy the DMG contents using system copy rather than ruby utils
|
173
|
+
# Because OS X does something special with .app files that the
|
174
|
+
# Ruby FileUtils and File classes break...
|
175
|
+
p = full_mounted_path.split(" ").join("\\ ")
|
176
|
+
sh("cp -Rf #{p}/* #{File.join(@user.downloads, @name.to_s)}")
|
175
177
|
|
176
|
-
# Copy the entire DMG out:
|
177
|
-
# resolver = TemplateResolver.new
|
178
|
-
# resolver.replace_all = true
|
179
|
-
# resolver.copy_files(full_mounted_path, dir, false)
|
180
178
|
if(File.exists?(full_mounted_path))
|
181
179
|
system("hdiutil unmount -force \"#{full_mounted_path}\"")
|
182
180
|
end
|
metadata
CHANGED
@@ -3,7 +3,7 @@ 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.
|
6
|
+
version: 0.1.68
|
7
7
|
date: 2007-03-11 00:00:00 -08: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:
|
@@ -35,6 +35,7 @@ files:
|
|
35
35
|
- lib
|
36
36
|
- Manifest.txt
|
37
37
|
- MIT-LICENSE.txt
|
38
|
+
- pkg
|
38
39
|
- rakefile.rb
|
39
40
|
- README.txt
|
40
41
|
- setup.rb
|
@@ -253,12 +254,23 @@ files:
|
|
253
254
|
- templates/ide/mate/Create Class.tmCommand
|
254
255
|
- templates/ide/mate/Rebuild Test Suites.tmCommand
|
255
256
|
- templates/ide/mate/Run Rake Task.tmCommand
|
257
|
+
- templates/asclass/mxml/.crap_file
|
258
|
+
- templates/asproject/as2/art/.crap_file
|
259
|
+
- templates/asproject/as2/doc/.crap_file
|
260
|
+
- templates/asproject/as2/project/bin/.crap_file
|
261
|
+
- templates/asproject/as2/project/lib/.crap_file
|
262
|
+
- templates/asproject/as3/art/.crap_file
|
263
|
+
- templates/asproject/as3/doc/.crap_file
|
264
|
+
- templates/asproject/as3/project/bin/.crap_file
|
265
|
+
- templates/asproject/as3/project/lib/.crap_file
|
266
|
+
- templates/asproject/as3/project/test/.crap_file
|
256
267
|
- templates/asproject/fb2as/project/.actionScriptProperties
|
257
268
|
- templates/asproject/fb2as/project/.project
|
258
269
|
- templates/asproject/fb2as/project/.settings
|
259
270
|
- templates/asproject/fdt/project/.as2_classpath
|
260
271
|
- templates/asproject/fdt/project/.project
|
261
272
|
- templates/asproject/fdt/project/.settings
|
273
|
+
- templates/asproject/mxml/.crap_file
|
262
274
|
test_files: []
|
263
275
|
|
264
276
|
rdoc_options:
|