asproject 0.1.29 → 0.1.30

Sign up to get free protection for your applications and to get access to all the features.
data/lib/asproject.rb CHANGED
@@ -213,7 +213,7 @@ EOF
213
213
 
214
214
  #######################################
215
215
  # ignore_file?
216
- @@COPY_IGNORE_FILES = ['.', '..', '.svn', '.DS_Store', 'CVS', '.cvs' 'Thumbs.db']
216
+ @@COPY_IGNORE_FILES = ['.', '..', '.svn', '.DS_Store', 'CVS', '.cvs' 'Thumbs.db', '.crap_file']
217
217
  # Do not copy files found in the ignore_files list
218
218
  def AsProject.ignore_file? file
219
219
  @@COPY_IGNORE_FILES.each do |name|
@@ -2,7 +2,7 @@ module AsProject
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 29
5
+ TINY = 30
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/rakefile.rb CHANGED
@@ -21,7 +21,7 @@ NAME = "asproject"
21
21
  RELEASE_TYPES = ["gem"]
22
22
  REV = nil
23
23
  VERS = (AsProject::VERSION::STRING + (REV ? ".#{REV}" : ""))
24
- CLEAN.include ['**/.*.sw?', '*.gem', 'pkg/*', 'pkg']
24
+ CLEAN.include ['**/.*.sw?', '*.gem', 'pkg/*', 'pkg', '**/**/.crap_file']
25
25
  RDOC_OPTS = ['--quiet', '--title', 'asproject documentation',
26
26
  '--opname', 'index.html',
27
27
  '--line-numbers',
@@ -46,6 +46,8 @@ PKG_LIST.each do |file|
46
46
  task :package => file
47
47
  end
48
48
 
49
+ task :package => :add_crap_files
50
+
49
51
  spec = Gem::Specification.new do |s|
50
52
  s.name = 'asproject'
51
53
  s.version = VERS
@@ -134,3 +136,47 @@ task :reinstall_gem do
134
136
  system("gem uninstall asproject")
135
137
  system("gem install pkg/asproject-#{VERS}.gem")
136
138
  end
139
+
140
+
141
+ crap_files = Array.new
142
+ file crap_files
143
+
144
+ def crap_file_message
145
+ return <<EOF
146
+
147
+ This file has been created because I can't figure out how to bundle
148
+ Empty directories in the gem package.
149
+
150
+ If you know how to do this, please contact me...
151
+
152
+ Thanks,
153
+
154
+ lbayes@patternpark.com
155
+
156
+ EOF
157
+ end
158
+
159
+ def add_crap(dir)
160
+ entry_count = 0
161
+ Dir.open(dir).entries.each do |child|
162
+ if(child != '.' && child != '..' && child != '.svn')
163
+ entry_count = entry_count + 1
164
+ path = File.join(dir, child)
165
+ if(File.directory?(path))
166
+ add_crap(path)
167
+ end
168
+ end
169
+ end
170
+ if(entry_count == 0)
171
+ puts '>> Creating Crap file with: ' + dir + '/.crap_file'
172
+ File.open(dir + '/.crap_file', 'w') do |file|
173
+ file.write(crap_file_message)
174
+ end
175
+ end
176
+ end
177
+
178
+ add_crap('templates')
179
+
180
+ desc "Add crap files to templates"
181
+ task :add_crap_files => crap_files
182
+
@@ -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,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.29
7
- date: 2007-02-25 00:00:00 -08:00
6
+ version: 0.1.30
7
+ date: 2007-02-26 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:
10
10
  - lib
@@ -236,12 +236,21 @@ files:
236
236
  - templates/ide/mate/Create Class.tmCommand
237
237
  - templates/ide/mate/Rebuild Test Suites.tmCommand
238
238
  - templates/ide/mate/Run Rake Task.tmCommand
239
+ - templates/asclass/mxml/.crap_file
240
+ - templates/asproject/as2/art/.crap_file
241
+ - templates/asproject/as2/doc/.crap_file
242
+ - templates/asproject/as2/project/bin/.crap_file
243
+ - templates/asproject/as2/project/lib/.crap_file
244
+ - templates/asproject/as3/project/bin/.crap_file
245
+ - templates/asproject/as3/project/lib/.crap_file
246
+ - templates/asproject/as3/project/test/.crap_file
239
247
  - templates/asproject/fb2as/project/.actionScriptProperties
240
248
  - templates/asproject/fb2as/project/.project
241
249
  - templates/asproject/fb2as/project/.settings
242
250
  - templates/asproject/fdt/project/.as2_classpath
243
251
  - templates/asproject/fdt/project/.project
244
252
  - templates/asproject/fdt/project/.settings
253
+ - templates/asproject/mxml/.crap_file
245
254
  test_files: []
246
255
 
247
256
  rdoc_options: