OSDN Git Service

update activegroonga 1.0.7
authornomeu <nomeu@users.sourceforge.jp>
Wed, 2 Jan 2013 09:53:25 +0000 (18:53 +0900)
committernomeu <nomeu@users.sourceforge.jp>
Wed, 2 Jan 2013 09:53:25 +0000 (18:53 +0900)
Gemfile
Gemfile.lock
spec/models/arc_spec.rb

diff --git a/Gemfile b/Gemfile
index 2a7815a..9848f21 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -4,7 +4,7 @@ source 'http://rubygems.org'
 
 gem 'rails', '3.1.1'
 
-gem 'activegroonga', '1.0.4'
+gem 'activegroonga', '1.0.7'
 
 gem 'kaminari'
 
index 5de3731..19c5a6a 100644 (file)
@@ -15,9 +15,9 @@ GEM
       rack-mount (~> 0.8.2)
       rack-test (~> 0.6.1)
       sprockets (~> 2.0.2)
-    activegroonga (1.0.4)
-      activemodel (>= 3.0.1)
-      rroonga (>= 1.0.4)
+    activegroonga (1.0.7)
+      activemodel (>= 3.1.0)
+      rroonga
     activegroonga-fabrication (1.0.0)
       activegroonga
       fabrication
@@ -35,6 +35,8 @@ GEM
       activesupport (= 3.1.1)
     activesupport (3.1.1)
       multi_json (~> 1.0)
+    archive-zip (0.5.0)
+      io-like (>= 0.3.0)
     arel (2.2.3)
     builder (3.0.4)
     diff-lcs (1.1.2)
@@ -43,6 +45,7 @@ GEM
     hike (1.2.1)
     i18n (0.6.1)
     i18n_generators (1.0.3)
+    io-like (0.3.0)
     json (1.7.6)
     kaminari (0.12.4)
       rails (>= 3.0.0)
@@ -52,7 +55,7 @@ GEM
       treetop (~> 1.4.8)
     mime-types (1.19)
     multi_json (1.5.0)
-    pkg-config (1.1.2)
+    pkg-config (1.1.4)
     polyglot (0.3.3)
     rack (1.3.6)
     rack-cache (1.2)
@@ -81,7 +84,9 @@ GEM
     rake (10.0.3)
     rdoc (3.12)
       json (~> 1.4)
-    rroonga (1.2.4)
+    rroonga (2.1.1)
+      archive-zip
+      json
       pkg-config
     rspec (2.6.0)
       rspec-core (~> 2.6.0)
@@ -111,7 +116,7 @@ PLATFORMS
   ruby
 
 DEPENDENCIES
-  activegroonga (= 1.0.4)
+  activegroonga (= 1.0.7)
   activegroonga-fabrication (= 1.0.0)
   i18n_generators
   kaminari
index 6d7cd88..de20a04 100644 (file)
@@ -32,22 +32,17 @@ describe Arc do
     arc = Arc.new(:key => 'accs_0235', :extname => 'zip')
     arc.number.should == 235
   end
+end
+
+describe Arc, "#url" do
 
-  let (:site_mmd) {
+  before do
     Fabricate(:site, :key => 'mmd', :url => "http://bytatsu.net/uploader/mikumikudance/")
-  }
-  let (:site_mmdfile) {
     Fabricate(:site, :key => 'mmdfile', :url => "http://loda.jp/mmdfile/")
-  }
-  let (:site_mmdacc1) {
     Fabricate(:site, :key => 'mmdacc1', :url => "http://www9.atpages.jp/~mmdaccessory/uploader/")
-  }
-  let (:site_mmdacc2) {
     Fabricate(:site, :key => 'mmdacc2', :url => "http://www9.atpages.jp/~mmdaccessory/uploader2/")
-  }
-  #
-  # url
-  #
+  end
+
   it do
     arc = Arc.create(:key => 'up0675', :site => 'mmd', :extname => 'zip')
     arc.url.should == 'http://bytatsu.net/uploader/mikumikudance/src/up0675.zip'