OSDN Git Service

add location mmdbowl 0.0.1
authornomeu <nomeu@users.sourceforge.jp>
Mon, 4 Jul 2011 04:17:10 +0000 (13:17 +0900)
committernomeu <nomeu@users.sourceforge.jp>
Mon, 4 Jul 2011 04:17:10 +0000 (13:17 +0900)
app/models/arc.rb
bin/create-location-mmdbowl.rb [new file with mode: 0644]

index c02f561..32c2dc9 100644 (file)
@@ -26,6 +26,8 @@ class Arc < ActiveRecord::Base
       "http://www9.atpages.jp/~mmdaccessory/uploader2"
     when "cu"
       "http://cdn.3dcustom.net/MMDuploader"
+    when "bo"
+      "http://bowlroll.net/up"
     end
   end
 
@@ -54,6 +56,8 @@ class Arc < ActiveRecord::Base
         fixed_number = '%05d' % number
         "#{site}/src/MMD#{fixed_number}.#{extname}"
       end
+    when "bo"
+      "#{site}/dl#{number}"
     end
   end
 
diff --git a/bin/create-location-mmdbowl.rb b/bin/create-location-mmdbowl.rb
new file mode 100644 (file)
index 0000000..3f63d35
--- /dev/null
@@ -0,0 +1 @@
+Location.create(:code => "mmdbowl", :site => "http://bowlroll.net/up/", :summary => "Bowl Roll")