Kouhei Sutou
null+****@clear*****
Thu Feb 16 23:39:36 JST 2017
Kouhei Sutou 2017-02-16 23:39:36 +0900 (Thu, 16 Feb 2017) New Revision: 50655504be0d7f6c5f22565dfca9d7848a24f15b https://github.com/ranguba/ranguba-server/commit/50655504be0d7f6c5f22565dfca9d7848a24f15b Message: Use groonga-client-model Added files: config/groonga.yml Modified files: Gemfile Gemfile.lock config/application.rb Modified: Gemfile (+2 -0) =================================================================== --- Gemfile 2017-02-16 23:35:52 +0900 (cdb42f3) +++ Gemfile 2017-02-16 23:39:36 +0900 (8f06839) @@ -47,3 +47,5 @@ end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] + +gem 'groonga-client-model' Modified: Gemfile.lock (+19 -0) =================================================================== --- Gemfile.lock 2017-02-16 23:35:52 +0900 (8f4d6ab) +++ Gemfile.lock 2017-02-16 23:39:36 +0900 (dec236a) @@ -55,6 +55,22 @@ GEM ffi (1.9.17) globalid (0.3.7) activesupport (>= 4.1.0) + gqtp (1.0.6) + groonga-client (0.4.1) + gqtp (>= 1.0.4) + groonga-command (>= 1.2.8) + groonga-command-parser (>= 1.0.7) + hashie + groonga-client-model (1.0.0) + activemodel + groonga-client (>= 0.4.1) + groonga-command-parser + groonga-command (1.3.2) + json + groonga-command-parser (1.0.9) + groonga-command (>= 1.3.2) + json-stream + hashie (3.5.1) i18n (0.8.0) jbuilder (2.6.1) activesupport (>= 3.0.0, < 5.1) @@ -63,6 +79,8 @@ GEM rails-dom-testing (>= 1, < 3) railties (>= 4.2.0) thor (>= 0.14, < 2.0) + json (2.0.3) + json-stream (0.2.1) listen (3.0.8) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) @@ -152,6 +170,7 @@ PLATFORMS DEPENDENCIES byebug coffee-rails (~> 4.2) + groonga-client-model jbuilder (~> 2.5) jquery-rails listen (~> 3.0.5) Modified: config/application.rb (+1 -0) =================================================================== --- config/application.rb 2017-02-16 23:35:52 +0900 (ab2fece) +++ config/application.rb 2017-02-16 23:39:36 +0900 (cf09c65) @@ -5,6 +5,7 @@ require "rails" require "active_model/railtie" require "active_job/railtie" # require "active_record/railtie" +require "groonga_client_model/railtie" require "action_controller/railtie" require "action_mailer/railtie" require "action_view/railtie" Added: config/groonga.yml (+23 -0) 100644 =================================================================== --- /dev/null +++ config/groonga.yml 2017-02-16 23:39:36 +0900 (c0ad54e) @@ -0,0 +1,23 @@ +default: &default + url: http://127.0.0.1:10041/ + # url: https://127.0.0.1:10041/ + # protocol: http + # host: 127.0.0.1 + # port: 10041 + # user: alice + # password: secret + read_timeout: -1 + # read_timeout: 3 + backend: synchronous + +development: + <<: *default + +test: + <<: *default + url: http://127.0.0.1:20041/ + +production: + <<: *default + url: <%= ENV["RANGUBA_GROONGA_URL"] %> + read_timeout: 10 -------------- next part -------------- HTML����������������������������...下載