OSDN Git Service

unused mime with_key with_password
authornomeu <nomeu@nomeu.org>
Sat, 12 Jun 2010 17:22:25 +0000 (02:22 +0900)
committernomeu <nomeu@nomeu.org>
Sat, 12 Jun 2010 17:22:25 +0000 (02:22 +0900)
.gitignore [new file with mode: 0644]
bin/load-arcs.rb
bin/read-upl.rb

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..1377554
--- /dev/null
@@ -0,0 +1 @@
+*.swp
index 47838bf..61fd0f1 100644 (file)
@@ -13,12 +13,7 @@ unless location
 end
 
 while line = gets
-  case location.code
-  when 'mmd'
-    name, summary, size, date, mime, origname, with_key, with_password = line.chomp.split(/\t/)
-  when 'mmdfile', 'mmdacc1', 'mmdacc2'
-    name, summary, size, date, origname = line.chomp.split(/\t/)
-  end
+  name, summary, size, date, origname = line.chomp.split(/\t/)
   md = /\.(.+)\z/.match(name)
   extname = md[1]
   code = File.basename(name, '.' + extname)
index 714f346..8ee9c55 100644 (file)
@@ -19,7 +19,7 @@ Dir.glob("/Volumes/uploader/src/#{location}/index.html") do |ent|
       if with_password
         comment.sub!(password_re, '')
       end
-      puts [ name, comment, size, date, mime, orig, with_key ? 'key' : '-', with_password ? 'password' : '-' ].join("\t")
+      puts [ name, comment, size, date, orig ].join("\t")
     end
   end
   f.close