[logaling-commit] logaling/logaling-server [master] [#38937747] Bump up logaling-command

Back to archive index

SHIMADA Koji null+****@clear*****
Mon Nov 5 11:50:31 JST 2012


SHIMADA Koji	2012-11-05 11:50:31 +0900 (Mon, 05 Nov 2012)

  New Revision: 928fedaa983e393c6306c1912676f341326c997e
  https://github.com/logaling/logaling-server/commit/928fedaa983e393c6306c1912676f341326c997e

  Log:
    [#38937747] Bump up logaling-command
    
    - bump up logaling-command
    - remove unnecessary code

  Modified files:
    Gemfile.lock
    app/models/project.rb
    app/models/user_glossary.rb

  Modified: Gemfile.lock (+4 -4)
===================================================================
--- Gemfile.lock    2012-10-29 09:03:20 +0900 (84b2601)
+++ Gemfile.lock    2012-11-05 11:50:31 +0900 (05ee27e)
@@ -1,8 +1,8 @@
 GIT
   remote: git://github.com/logaling/logaling-command.git
-  revision: 6ed24d330a2ec0aee826e2167093031b46be2565
+  revision: a73da78a7dd7ac94203b6ec5b8c8dc81bc6535d2
   specs:
-    logaling-command (0.1.9)
+    logaling-command (0.2.0)
       activesupport
       bundler (>= 1.0)
       nokogiri
@@ -146,7 +146,7 @@ GEM
       nokogiri (~> 1.4)
       webrobots (~> 0.0, >= 0.0.9)
     mime-types (1.19)
-    multi_json (1.3.6)
+    multi_json (1.3.7)
     multipart-post (1.1.5)
     net-http-digest_auth (1.1.1)
     net-http-persistent (1.9)
@@ -214,7 +214,7 @@ GEM
     rake (0.9.2.2)
     rdoc (3.12)
       json (~> 1.4)
-    rroonga (2.0.5)
+    rroonga (2.0.6)
       archive-zip
       json
       pkg-config

  Modified: app/models/project.rb (+0 -2)
===================================================================
--- app/models/project.rb    2012-10-29 09:03:20 +0900 (2990435)
+++ app/models/project.rb    2012-11-05 11:50:31 +0900 (5e42882)
@@ -17,7 +17,6 @@ module Project
     rescue Logaling::GlossaryAlreadyRegistered
       # do nothing
     end
-    LogalingServer.repository.index
   end
 
   def registered_project
@@ -26,7 +25,6 @@ module Project
 
   def unregister!
     LogalingServer.repository.unregister(registered_project)
-    LogalingServer.repository.index
   end
 
   def sync!

  Modified: app/models/user_glossary.rb (+0 -4)
===================================================================
--- app/models/user_glossary.rb    2012-10-29 09:03:20 +0900 (6d1d21e)
+++ app/models/user_glossary.rb    2012-11-05 11:50:31 +0900 (af6aa63)
@@ -58,7 +58,6 @@ class UserGlossary < ActiveRecord::Base
     raise Logaling::GlossaryNotFound unless glossary
 
     glossary.add(term.source_term, term.target_term, term.note)
-    glossary.index!
 
   rescue Logaling::TermError
     term.errors.add(:source_term, "term '#{term.source_term}: #{term.target_term}' already exists in '#{name}'")
@@ -73,7 +72,6 @@ class UserGlossary < ActiveRecord::Base
     raise Logaling::GlossaryNotFound unless glossary
 
     glossary.update(term.source_term, term.target_term, new_term.target_term, new_term.note)
-    glossary.index!
 
   rescue Logaling::TermError
     term.errors.add(:target_term, "term '#{term.source_term}: #{new_term.target_term}' already exists in '#{name}'")
@@ -87,7 +85,6 @@ class UserGlossary < ActiveRecord::Base
     raise Logaling::GlossaryNotFound unless glossary
 
     glossary.delete(term.source_term, term.target_term)
-    glossary.index!
 
   rescue Logaling::TermError
     term.errors.add(:target_term, "term '#{term.source_term}: #{term.target_term}' doesn't exists in '#{name}'")
@@ -141,6 +138,5 @@ class UserGlossary < ActiveRecord::Base
 
   def remove_personal_project!
     LogalingServer.repository.remove_personal_project(glossary_name, source_language, target_language)
-    LogalingServer.repository.index
   end
 end
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



More information about the logaling-commit mailing list
Back to archive index