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 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
 
@@ -2,7 +2,7 @@ module AsProject
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 61
5
+ TINY = 69
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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
- raise ProjectError.new('AsProject::PathFinder reached the root of the file system without finding a valid project.')
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
@@ -81,13 +81,15 @@ module AsProject
81
81
  end
82
82
 
83
83
  def run_osx
84
- system(%{open -a #{extracted_file_path} ./#{@swf}})
85
- return OSXPlayerThread.new
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
- player_thread = Thread.new {
90
- execute("./#{@swf}")
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 true
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 Singular target out:
173
- FileUtils.makedirs(File.dirname(extracted_file_path))
174
- FileUtils.copy(mounted_target, extracted_file_path)
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
@@ -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
+
@@ -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
+
@@ -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
+
@@ -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
+
@@ -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
+
@@ -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
+
@@ -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
+
@@ -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
+
@@ -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
+
@@ -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
+
@@ -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,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.60
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: