groonga-client-rails 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +6 -0
- data/doc/text/news.md +9 -0
- data/groonga-client-rails.gemspec +1 -1
- data/lib/groonga/client/rails/spec_helper.rb +6 -8
- data/lib/groonga/client/rails/test_helper.rb +11 -8
- data/lib/groonga/client/rails/test_synchronizer.rb +17 -0
- data/lib/groonga/client/rails/version.rb +1 -1
- data/lib/groonga/client/searcher/select_request.rb +63 -0
- data/lib/groonga/client/searcher.rb +3 -3
- data/test/apps/rails4-mongoid/Gemfile +1 -0
- data/test/apps/rails4-mongoid/Gemfile.lock +53 -47
- data/test/apps/rails4-mongoid/log/test.log +5338 -0
- data/test/apps/rails5-activerecord/Gemfile +52 -0
- data/test/apps/rails5-activerecord/Gemfile.lock +205 -0
- data/test/apps/rails5-activerecord/README.md +24 -0
- data/test/apps/rails5-activerecord/Rakefile +6 -0
- data/test/apps/rails5-activerecord/app/assets/config/manifest.js +3 -0
- data/test/apps/rails5-activerecord/app/assets/javascripts/application.js +16 -0
- data/test/apps/rails5-activerecord/app/assets/javascripts/cable.js +13 -0
- data/test/apps/rails5-activerecord/app/assets/javascripts/posts.coffee +3 -0
- data/test/apps/rails5-activerecord/app/assets/stylesheets/application.css +15 -0
- data/test/apps/rails5-activerecord/app/assets/stylesheets/posts.scss +7 -0
- data/test/apps/rails5-activerecord/app/assets/stylesheets/scaffolds.scss +89 -0
- data/test/apps/rails5-activerecord/app/channels/application_cable/channel.rb +4 -0
- data/test/apps/rails5-activerecord/app/channels/application_cable/connection.rb +4 -0
- data/test/apps/rails5-activerecord/app/controllers/application_controller.rb +3 -0
- data/test/apps/rails5-activerecord/app/controllers/posts_controller.rb +90 -0
- data/test/apps/rails5-activerecord/app/helpers/application_helper.rb +2 -0
- data/test/apps/rails5-activerecord/app/helpers/posts_helper.rb +2 -0
- data/test/apps/rails5-activerecord/app/jobs/application_job.rb +2 -0
- data/test/apps/rails5-activerecord/app/mailers/application_mailer.rb +4 -0
- data/test/apps/rails5-activerecord/app/models/application_record.rb +3 -0
- data/test/apps/rails5-activerecord/app/models/post.rb +7 -0
- data/test/apps/rails5-activerecord/app/searchers/application_searcher.rb +2 -0
- data/test/apps/rails5-activerecord/app/searchers/posts_searcher.rb +16 -0
- data/test/apps/rails5-activerecord/app/views/layouts/application.html.erb +14 -0
- data/test/apps/rails5-activerecord/app/views/layouts/mailer.html.erb +13 -0
- data/test/apps/rails5-activerecord/app/views/layouts/mailer.text.erb +1 -0
- data/test/apps/rails5-activerecord/app/views/posts/_form.html.erb +27 -0
- data/test/apps/rails5-activerecord/app/views/posts/_post.json.jbuilder +2 -0
- data/test/apps/rails5-activerecord/app/views/posts/edit.html.erb +6 -0
- data/test/apps/rails5-activerecord/app/views/posts/index.html.erb +45 -0
- data/test/apps/rails5-activerecord/app/views/posts/index.json.jbuilder +1 -0
- data/test/apps/rails5-activerecord/app/views/posts/new.html.erb +5 -0
- data/test/apps/rails5-activerecord/app/views/posts/show.html.erb +14 -0
- data/test/apps/rails5-activerecord/app/views/posts/show.json.jbuilder +1 -0
- data/test/apps/rails5-activerecord/bin/bundle +3 -0
- data/test/apps/rails5-activerecord/bin/rails +9 -0
- data/test/apps/rails5-activerecord/bin/rake +9 -0
- data/test/apps/rails5-activerecord/bin/setup +34 -0
- data/test/apps/rails5-activerecord/bin/spring +16 -0
- data/test/apps/rails5-activerecord/bin/update +29 -0
- data/test/apps/rails5-activerecord/config/application.rb +15 -0
- data/test/apps/rails5-activerecord/config/boot.rb +3 -0
- data/test/apps/rails5-activerecord/config/cable.yml +9 -0
- data/test/apps/rails5-activerecord/config/database.yml +25 -0
- data/test/apps/rails5-activerecord/config/environment.rb +5 -0
- data/test/apps/rails5-activerecord/config/environments/development.rb +54 -0
- data/test/apps/rails5-activerecord/config/environments/production.rb +86 -0
- data/test/apps/rails5-activerecord/config/environments/test.rb +42 -0
- data/test/apps/rails5-activerecord/config/groonga_client.yml +22 -0
- data/test/apps/rails5-activerecord/config/initializers/application_controller_renderer.rb +6 -0
- data/test/apps/rails5-activerecord/config/initializers/assets.rb +11 -0
- data/test/apps/rails5-activerecord/config/initializers/backtrace_silencers.rb +7 -0
- data/test/apps/rails5-activerecord/config/initializers/cookies_serializer.rb +5 -0
- data/test/apps/rails5-activerecord/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/apps/rails5-activerecord/config/initializers/inflections.rb +16 -0
- data/test/apps/rails5-activerecord/config/initializers/mime_types.rb +4 -0
- data/test/apps/rails5-activerecord/config/initializers/new_framework_defaults.rb +24 -0
- data/test/apps/rails5-activerecord/config/initializers/session_store.rb +3 -0
- data/test/apps/rails5-activerecord/config/initializers/wrap_parameters.rb +14 -0
- data/test/apps/rails5-activerecord/config/locales/en.yml +23 -0
- data/test/apps/rails5-activerecord/config/puma.rb +47 -0
- data/test/apps/rails5-activerecord/config/routes.rb +4 -0
- data/test/apps/rails5-activerecord/config/secrets.yml +22 -0
- data/test/apps/rails5-activerecord/config/spring.rb +6 -0
- data/test/apps/rails5-activerecord/config.ru +5 -0
- data/test/apps/rails5-activerecord/db/development.sqlite3 +0 -0
- data/test/apps/rails5-activerecord/db/migrate/20161212004726_create_posts.rb +10 -0
- data/test/apps/rails5-activerecord/db/schema.rb +22 -0
- data/test/apps/rails5-activerecord/db/seeds.rb +7 -0
- data/test/apps/rails5-activerecord/db/test.sqlite3 +0 -0
- data/test/apps/rails5-activerecord/log/development.log +808 -0
- data/test/apps/rails5-activerecord/log/test.log +1137 -0
- data/test/apps/rails5-activerecord/public/404.html +67 -0
- data/test/apps/rails5-activerecord/public/422.html +67 -0
- data/test/apps/rails5-activerecord/public/500.html +66 -0
- data/test/apps/rails5-activerecord/public/apple-touch-icon-precomposed.png +0 -0
- data/test/apps/rails5-activerecord/public/apple-touch-icon.png +0 -0
- data/test/apps/rails5-activerecord/public/favicon.ico +0 -0
- data/test/apps/rails5-activerecord/public/robots.txt +5 -0
- data/test/apps/rails5-activerecord/test/controllers/posts_controller_test.rb +50 -0
- data/test/apps/rails5-activerecord/test/fixtures/posts.yml +9 -0
- data/test/apps/rails5-activerecord/test/models/post_test.rb +7 -0
- data/test/apps/rails5-activerecord/test/searchers/posts_searcher_test.rb +120 -0
- data/test/apps/rails5-activerecord/test/test_helper.rb +11 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/04/04zh1ytKDagWzWcqUyadXtzzohCn9iVvSVG4KrjpfPU.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/0M/0M4bZ4tQh0MQYZMb72U5yr-ELStAsUSb8akkTME9TPM.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/0g/0gB1rYz79RuAa43DzVci1GUjc5so0F1dU_LyLSmm3oQ.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/1w/1w3lEnPL9oZPD-uk9Y9HOAO5TBywbDUumPsLKAD1trs.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/2g/2gve43APDqh4mVsNSvvDZWU7XBUFJ22DjchDFC7BLHE.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/3F/3Fsw9a9YyB3-WaDSpA1HTGJrWn_7xMLLpUYcNv4f4zs.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/3P/3Px3lDIUtsiFfGy4nQGown3yldwKCp1MNuWbSDX1pvg.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/4z/4zN1uyLrntkJkbS2fdatLGK7KyyLUl2uufUks7wTDjQ.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/6C/6CiFiBprKrfOQZWs4gi3u2dD5mFuRjvrvkBi6BdwwMo.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/6a/6ae9A4LxsOF8WxXqTRrY_OfmiKLzuX-k8CdxcYhyH2w.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/6g/6gfb-nNauXmim2itNUscPWKLGmjzBgnE4ee76bNftS4.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/6n/6n_6crFw4ICv3THdmoHgXfEXbykmN_3Qh0M3Y7BYoPA.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/6r/6rrJLZY0-_gdJxgMUZBZIn-wf8bPVArYjXhIIrt_O5Y.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/7-/7-Zu1JSO2hqoAENLcGCtMh1TuhXyUjvzDCR1BAU-whs.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/7G/7GXxgDjc3_xi8wt4fJkmv_XE9W19LHgDDmJIOJL8B8E.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/7X/7XEN3CPn0h-3vjvFpHuvqByvBbmKNG0WgmdvlCrHmI8.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/7l/7lu9duHmsh9ktTH4DbSPnN7p_Xz59VwGcX2J8XDP66Q.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/7u/7uFy7yq8C8xezFbAvr8RzLaJRyEY34DlqcIsygk5u48.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/8Z/8Zm1d9-lBPsGG_HUw8FP2OCCVucGDVhWAOGaopvOdss.cache +3 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/9p/9pkKAqd_Ia0HpbbUCZtpJ8WiDzr5stcFJsnqsOsJwCc.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/9w/9w_czK8Y6L_1dHF-b-aFykWLeiPmTlnI_vTHsNG1Mow.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/B9/B9QeeLv4GR9sOdrwyvxa8jIr4MkxjYh4Ow6MOZ8slX8.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/BK/BKtHbqHUW-BUh6yXbZoSBLGYZdH4xpyEVJZ85mre3dI.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Bn/BnqImgz8w0eyrrFRDbwQXdI6oPEBaakRHuxqdDfCA6g.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Bx/BxzoG0KxeNLac4xTNeJv3qfeytbNBw58xj2zD-xdbrE.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/DG/DGB9_ZZc6xf8xDs1C8MTwsnZGITqTg5w6Fi8loIoAz0.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/DI/DIQbAB3xoMpwIuVisoyQuLOOLReZGqTzMsMSqPTvNlU.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/DY/DYQB1uQOZWEQCZyNqRYGbp3TUGnhwGln6l0LJxvfdSM.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Dw/DwMpASR_zMhZCB0WD5ibeEaOAEhod-gPDA-cl83A0NQ.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Fp/FpDNzaN6X2qtiDvQrm2u2kFkPCkFxqjQWh8FcB2wcow.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Fu/FuDP2r9jXh_VnQRBnJO9wYbxDUivFdL1tVpdpp3GUgQ.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/G0/G0kukI-r0q0Vbrg6e_jnYJoYcOX8K__h-mwKbCf4twE.cache +2 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/H4/H4qMae4wP-2E0IT3OzIKJm7TAmkfgTg5GG-mDvrpRr8.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/H8/H84Co5MLW6jHqkSepLLZXA99CN3Pj4Orn146jUdB-7Q.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/HJ/HJmxnxAVu4ESMb2RUFATQhzd8xP7qwk0i7Or2WU6tHY.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/I4/I4vFFlIVkL7O3GA9sTW-w6J6yRUCLLl9YNRmfxrqswI.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/IM/IMjPkcjxzZVEDA07aU4zncnyk1cKAnqE0QWlQ05eF_I.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/IX/IXa4w4VzXhmtd6DpleMPZTaZo-ak-2VW39_rTlS_82A.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Mw/MwUXpv2ArJcHhHfRN-i_SHhOyrhE2ED5DP6j2_tHtDM.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/N6/N6_UDcd-9vm063oO9Kj2UKERXHyG53mpljIHhMP_sX0.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/O_/O_d1EuhZnMhlM56iFmcx1Yr-tKS2-F8XK2Ck4thkxfw.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Oa/Oapw1N5wZtnRU54bGH1T0T5WvFHcAO8pp8RiEBPvgio.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Oj/OjcwYv10xeNyxU4ma4rSL7scLtN1VSqgQtpmLAkKa1s.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Ou/Ouwd1f-B-Ub4MsspZT6taABsir9tZQ3Lgk0Yqv0cxYE.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/QT/QTeyXBrKqJWoMRN63_SDKm0DCFLsggXpmWSa1om_1lI.cache +2 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Qf/Qff9sy3RsADWqwgXy563eZw2BMxHil52FiOxDmKQnn4.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Qw/QwtseSptjk29vLQAs9XVSY_9GY6mR4wLQ6e3xJZzwuo.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Rf/RfAETGxupO0E6Sf50S9Rs_7H_8IFQkZ0V_Ot0qRcMaM.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Sh/ShN-ZUpoxLJLJiMV5gFDP00vcSMHw87YzFBlXH4adPA.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Si/Sin6bEoASrNa45108CpfgF2jcifz-KpbsvvZJtqVZ68.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Ss/SsUxWtOAxDX66Ss49rvswWEE6LOPrbBTnxaY9OJWizk.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Uw/Uws4qYyGLobvE_JD4L6dQNcIOOhv4LEZ3D0mK86tZOA.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Vt/VtVyxYXmlAEeORF9LOH-DbqhYCV0kSXXBINi9BY3snA.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Wm/WmtvDDxglSnhmavMeA7WNn7waN3QbagRHeoZHvZJN84.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/X6/X6u2Cul1j8SpBq0WC1S8WhzGiT6f-6L_djUngh_gQfw.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/XJ/XJRPx7aZ4ajZ72O37hx53ZFkfXSHpDDpCy78LI0leqM.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/XL/XLmhbBwmjyGt7wnSpdFhJl1d66h1gXmGMr2IKRsPlKY.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Ya/YayMISAqD-Y3vBFywwKrXbUovGf5o77HUF5s8mnQgO0.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Zj/ZjPZKMxS8BzA1QxHFURXSpprFItP8iIYNCg6yfbO69Y.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/Zp/Zpsgmz0pdcpEUMODH-KOoEAJu0RLiNBG5_id1Nf4Vro.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/_G/_GwD5pS-87WWo17f6dUcFYGFT8h6uDWR6QdHajFQ050.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/aa/aaHS7n54GBP_AiELufudftqA7C4tZhFBH9VGYdybJr8.cache +2 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/aq/aqjR2hhB4hrgzOzUkhuiAL1DPqVmVI4OsnJb8KyCpRI.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/bS/bS7RTBMfq7yErvNUrJroVgliHjy91XOcgiXzD50OvvQ.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/c9/c9YydpmE9rI8VeQ4sVqd5JrA1VSEFGGzpuMBUSrAGac.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/de/dep71WPFUs1sHIqTVNqe1rFl1LFWoNyCEoVy0n6nTTg.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/eQ/eQxzX_D16-XyOt1WTkYEC0qDvRbjXcCgQgnd9pBrg7o.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/fs/fsOGJq1Cf6bkAY-rQw_0-E3_SR3wCq32URYNGrkpra8.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/gF/gFlNnL_JJ9wEwdiM694Q0NJO7dBi7x3O2kyUIIZOydY.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/gu/guDotVUAVpm_e8AAnaLB25fL5q9nVvbnd5DFP2BxmAQ.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/h3/h3iZNjBA2CDMexgKNJ4fSFfDiZ_37c72HncCttwZ4q0.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/he/heptoj4xFW23bqbGAnQ2g6MsS3OKgswQZOu4EFQA9CE.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/kN/kNQUVmgZpBoZh9oC57J3qRmnvFOb8zfDeJWar6cPJFM.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/km/km1UJe7Uvz3cE03ctzec3Mpcow_vgKO36rq50_Szy3o.cache +5 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/kz/kzw210ITXFWNFV8kw5e-_kRlpS48lGotSQWKPlUfMJ4.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/ml/mlRB5mvsqzeYz3r37_UHdnW4NOillPXmunrGdwZYTHA.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/oU/oU63Z9l_0IaXAW3TtHWxMULUMeuVLfhm4JTQmjJZrWU.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/p8/p8ScAOn0EywLQE0ZoyA5zwrJlr4BIt67RbiYm8jsJMY.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/pH/pHU4zRTrCWZeiDw5r9Sx1F_edVOO_yCGQXumtTI04to.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/pI/pImLE-1HdM_Pm_YDztsV-98V1_qngUx98EVI_90rD0I.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/pb/pb0V-IHbOTzmTuDDHO7dn8kl3G4RWqXYY1-Gtuklh-M.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/q9/q9zC8RrLhOO1dVXJ3fZqc9dSbshhjSpsDQxh5MpbnDA.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/qP/qPmv5snMrDw830S6hSICDcnIy7kVEWoFKXhGKT38lG4.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/rF/rF2vahiCQKUhJ8McEG0p8B7csWsz-dL13EQ7r2APOxc.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/rn/rnjUJtM3qyEybb7S3NaVbV36OvY6ulGzqxgvp6vtkW0.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/s8/s85RambnXGg0AXRuWcCg0nv0_yQuuimoB-efYJZXR_g.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/sS/sSg6UsW5PPi591GTK35btFew1r3_HpbNHoyZv3vZ_HY.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/sW/sWkhnUHFHtFl9YPE6ipfrFL8zC0XPcgjPpwKYIiLGmQ.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/s_/s_Kwboiht6NBnTgNZxLOjhdTdW5OETSG1i9v_nYwTbg.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/sk/skhQpKGMHfNuU9HmJ5SsawJxYVAfktwxv24N4uNMrfc.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/t3/t39F_1zIFMdWiKVUNJyhWOOnP8Lgr6AD5R1HWdVYwbU.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/t_/t_jrBzlnaAwG3v7X5kQsHXmVKIL167gvY-CegXdW-38.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/wq/wq2DrniT-R28eVCkWJ2LyZjvT8phxRe31mas90YVz2M.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/x7/x7PYh8DJvPykcEqpVab2vcY9-GFz-3cqtoMlRAu94Uc.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/yO/yO6BxW_KpdFMPjQgywUZXxLvdVM639GnboZKUb3K7kA.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/yj/yjqd7Lagqg4Ar_2z5oQo--OO15mhsi97lixJZbk_xrw.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/z6/z6juZG91PfdGTEhEife_MlutAwyoheFYa52JtbCUvBM.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/zh/zhmfmdnnow0QqwfT_7IXfN-FAU8qAMm03N7XQjFct6E.cache +1 -0
- data/test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/zz/zzyY0k_acKQ2rB0GJcjv6jioH5c2iq-jMM_qIhbfdnI.cache +0 -0
- data/test/apps/rails5-activerecord/tmp/pids/server.pid +1 -0
- data/test/apps/rails5-activerecord/tmp/restart.txt +0 -0
- metadata +381 -21
- data/lib/groonga/client/rails/fixture.rb +0 -35
- data/lib/groonga/client/rails/groonga_server_runner.rb +0 -164
- data/lib/groonga/client/searcher/error.rb +0 -37
- data/lib/groonga/client/searcher/raw_request.rb +0 -85
- data/lib/groonga/client/searcher/select/request.rb +0 -283
- data/lib/groonga/client/searcher/select/result_set.rb +0 -117
- data/lib/groonga/client/searcher/select.rb +0 -18
- data/test/unit/searcher/select/filter_parameter_test.rb +0 -99
- data/test/unit/searcher/select/match_columns_parameter_test.rb +0 -59
- data/test/unit/searcher/select/output_columns_parameter_test.rb +0 -68
- data/test/unit/searcher/select/sortby_parameter_test.rb +0 -63
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00dc09f576d3e1ac6f32e8ba7813e0da4f5e6174
|
4
|
+
data.tar.gz: cc731edd88e439fc245dee13245978280cf64d1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fe2a8ba1c4a5b2d0fb2837b0c98625bddf14f64248d28507559ea7372cbbf683e12a99e206abd5f43bb3dbf894b77011731be7f0f331e777f92b2f53b398f0a
|
7
|
+
data.tar.gz: dc33b785d1ccca991e5392ee39be9975908a58f238ba28e651f6d07e47787a65fd82a8cff7f231f7b6662e106862974cafb8fef6ada6a1e0f4e0f57ac65ba993
|
data/Gemfile
CHANGED
data/doc/text/news.md
CHANGED
@@ -40,7 +40,7 @@ Gem::Specification.new do |spec|
|
|
40
40
|
spec.files += Dir.glob("doc/text/*")
|
41
41
|
spec.test_files += Dir.glob("test/**/*")
|
42
42
|
|
43
|
-
spec.add_runtime_dependency("groonga-client", ">= 0.
|
43
|
+
spec.add_runtime_dependency("groonga-client", ">= 0.3.8")
|
44
44
|
spec.add_runtime_dependency("rails")
|
45
45
|
|
46
46
|
spec.add_development_dependency("bundler")
|
@@ -14,23 +14,21 @@
|
|
14
14
|
# License along with this library; if not, write to the Free Software
|
15
15
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
16
|
|
17
|
-
require "groonga/client/
|
17
|
+
require "groonga/client/spec-helper"
|
18
|
+
require "groonga/client/rails/test_synchronizer"
|
18
19
|
|
19
20
|
module Groonga
|
20
21
|
class Client
|
21
22
|
module Rails
|
22
23
|
module SpecHelper
|
23
|
-
include Fixture
|
24
|
-
|
25
24
|
extend ActiveSupport::Concern
|
26
25
|
|
27
26
|
included do
|
28
|
-
|
29
|
-
setup_groonga
|
30
|
-
end
|
27
|
+
inlcude Groonga::Client::SpecHelper
|
31
28
|
|
32
|
-
|
33
|
-
|
29
|
+
before(:each) do
|
30
|
+
syncher = TestSynchronizer.new
|
31
|
+
syncher.sync
|
34
32
|
end
|
35
33
|
end
|
36
34
|
end
|
@@ -14,23 +14,26 @@
|
|
14
14
|
# License along with this library; if not, write to the Free Software
|
15
15
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
16
|
|
17
|
-
require "groonga/client/
|
17
|
+
require "groonga/client/test-helper"
|
18
|
+
require "groonga/client/rails/test_synchronizer"
|
18
19
|
|
19
20
|
module Groonga
|
20
21
|
class Client
|
21
22
|
module Rails
|
22
23
|
module TestHelper
|
23
|
-
include Fixture
|
24
|
-
|
25
24
|
extend ActiveSupport::Concern
|
26
25
|
|
27
26
|
included do
|
28
|
-
|
29
|
-
setup_groonga
|
30
|
-
end
|
27
|
+
include Groonga::Client::TestHelper
|
31
28
|
|
32
|
-
|
33
|
-
|
29
|
+
setup do
|
30
|
+
syncher = TestSynchronizer.new
|
31
|
+
options = {}
|
32
|
+
if self.class.respond_to?(:fixture_table_names)
|
33
|
+
fixture_table_names = self.fixture_table_names
|
34
|
+
options[:sync_records] = true unless fixture_table_names.empty?
|
35
|
+
end
|
36
|
+
syncher.sync(options)
|
34
37
|
end
|
35
38
|
end
|
36
39
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Groonga
|
2
|
+
class Client
|
3
|
+
module Rails
|
4
|
+
class TestSynchronizer
|
5
|
+
def sync(options={})
|
6
|
+
::Rails.application.eager_load!
|
7
|
+
ObjectSpace.each_object(Class) do |klass|
|
8
|
+
if klass < Searcher
|
9
|
+
klass.sync_schema
|
10
|
+
klass.sync_records if options[:sync_records]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# Copyright (C) 2016 Kouhei Sutou <kou@clear-code.com>
|
2
|
+
#
|
3
|
+
# This library is free software; you can redistribute it and/or
|
4
|
+
# modify it under the terms of the GNU Lesser General Public
|
5
|
+
# License as published by the Free Software Foundation; either
|
6
|
+
# version 2.1 of the License, or (at your option) any later version.
|
7
|
+
#
|
8
|
+
# This library is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11
|
+
# Lesser General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU Lesser General Public
|
14
|
+
# License along with this library; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
|
+
|
17
|
+
module Groonga
|
18
|
+
class Client
|
19
|
+
class Searcher
|
20
|
+
module SelectRequest
|
21
|
+
# For backward compatibility
|
22
|
+
def result_set
|
23
|
+
response
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
def create_response
|
28
|
+
response = super
|
29
|
+
response.extend(SourcesSupport)
|
30
|
+
response.sources
|
31
|
+
response
|
32
|
+
end
|
33
|
+
|
34
|
+
module SourcesSupport
|
35
|
+
def sources
|
36
|
+
@sources ||= fetch_sources
|
37
|
+
end
|
38
|
+
|
39
|
+
private
|
40
|
+
def fetch_sources
|
41
|
+
source_ids = {}
|
42
|
+
records.collect do |record|
|
43
|
+
model_name, id = record._key.split(/-/, 2)
|
44
|
+
source_ids[model_name] ||= []
|
45
|
+
source_ids[model_name] << id
|
46
|
+
end
|
47
|
+
sources = {}
|
48
|
+
source_ids.each do |model_name, ids|
|
49
|
+
model_name.constantize.find(ids).each_with_index do |model, i|
|
50
|
+
sources["#{model_name}-#{ids[i]}"] = model
|
51
|
+
end
|
52
|
+
end
|
53
|
+
records.collect do |record|
|
54
|
+
source = sources[record._key]
|
55
|
+
record.source = source
|
56
|
+
source
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -16,8 +16,7 @@
|
|
16
16
|
|
17
17
|
require "groonga/client"
|
18
18
|
|
19
|
-
require "groonga/client/searcher/
|
20
|
-
require "groonga/client/searcher/select"
|
19
|
+
require "groonga/client/searcher/select_request"
|
21
20
|
require "groonga/client/searcher/schema"
|
22
21
|
require "groonga/client/searcher/schema_synchronizer"
|
23
22
|
require "groonga/client/searcher/source"
|
@@ -152,7 +151,8 @@ module Groonga
|
|
152
151
|
full_text_searchable_column_names << name
|
153
152
|
end
|
154
153
|
end
|
155
|
-
|
154
|
+
extensions = [SelectRequest]
|
155
|
+
Request::Select.new(schema.table, extensions).
|
156
156
|
match_columns(full_text_searchable_column_names)
|
157
157
|
end
|
158
158
|
|
@@ -33,6 +33,7 @@ gem 'sdoc', '~> 0.4.0', group: :doc
|
|
33
33
|
gem 'mongoid', '~> 5.1.1'
|
34
34
|
|
35
35
|
gem 'groonga-client-rails', path: '../../../'
|
36
|
+
gem 'groonga-client', path: '../../../../groonga-client'
|
36
37
|
|
37
38
|
group :development, :test do
|
38
39
|
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
@@ -1,8 +1,16 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../../../../groonga-client
|
3
|
+
specs:
|
4
|
+
groonga-client (0.3.4)
|
5
|
+
gqtp (>= 1.0.4)
|
6
|
+
groonga-command (>= 1.2.8)
|
7
|
+
hashie
|
8
|
+
|
1
9
|
PATH
|
2
10
|
remote: ../../../
|
3
11
|
specs:
|
4
|
-
groonga-client-rails (0.9.
|
5
|
-
groonga-client (>= 0.
|
12
|
+
groonga-client-rails (0.9.5)
|
13
|
+
groonga-client (>= 0.3.4)
|
6
14
|
rails
|
7
15
|
|
8
16
|
GEM
|
@@ -46,40 +54,36 @@ GEM
|
|
46
54
|
arel (6.0.3)
|
47
55
|
binding_of_caller (0.7.2)
|
48
56
|
debug_inspector (>= 0.0.1)
|
49
|
-
bson (4.0
|
57
|
+
bson (4.2.0)
|
50
58
|
builder (3.2.2)
|
51
|
-
byebug (
|
59
|
+
byebug (9.0.6)
|
52
60
|
coffee-rails (4.1.1)
|
53
61
|
coffee-script (>= 2.2.0)
|
54
62
|
railties (>= 4.0.0, < 5.1.x)
|
55
63
|
coffee-script (2.4.1)
|
56
64
|
coffee-script-source
|
57
65
|
execjs
|
58
|
-
coffee-script-source (1.
|
59
|
-
concurrent-ruby (1.0.
|
66
|
+
coffee-script-source (1.11.1)
|
67
|
+
concurrent-ruby (1.0.2)
|
60
68
|
debug_inspector (0.0.2)
|
61
69
|
erubis (2.7.0)
|
62
|
-
execjs (2.
|
63
|
-
factory_girl (4.
|
70
|
+
execjs (2.7.0)
|
71
|
+
factory_girl (4.7.0)
|
64
72
|
activesupport (>= 3.0.0)
|
65
|
-
factory_girl_rails (4.
|
66
|
-
factory_girl (~> 4.
|
73
|
+
factory_girl_rails (4.7.0)
|
74
|
+
factory_girl (~> 4.7.0)
|
67
75
|
railties (>= 3.0.0)
|
68
|
-
globalid (0.3.
|
76
|
+
globalid (0.3.7)
|
69
77
|
activesupport (>= 4.1.0)
|
70
78
|
gqtp (1.0.6)
|
71
|
-
groonga-
|
72
|
-
gqtp (>= 1.0.4)
|
73
|
-
groonga-command (>= 1.2.0)
|
74
|
-
hashie
|
75
|
-
groonga-command (1.2.0)
|
79
|
+
groonga-command (1.3.1)
|
76
80
|
json
|
77
|
-
hashie (3.4.
|
81
|
+
hashie (3.4.6)
|
78
82
|
i18n (0.7.0)
|
79
|
-
jbuilder (2.
|
83
|
+
jbuilder (2.6.1)
|
80
84
|
activesupport (>= 3.0.0, < 5.1)
|
81
85
|
multi_json (~> 1.2)
|
82
|
-
jquery-rails (4.
|
86
|
+
jquery-rails (4.2.1)
|
83
87
|
rails-dom-testing (>= 1, < 3)
|
84
88
|
railties (>= 4.2.0)
|
85
89
|
thor (>= 0.14, < 2.0)
|
@@ -88,23 +92,23 @@ GEM
|
|
88
92
|
nokogiri (>= 1.5.9)
|
89
93
|
mail (2.6.4)
|
90
94
|
mime-types (>= 1.16, < 4)
|
91
|
-
mime-types (3.
|
95
|
+
mime-types (3.1)
|
92
96
|
mime-types-data (~> 3.2015)
|
93
|
-
mime-types-data (3.2016.
|
94
|
-
mini_portile2 (2.
|
95
|
-
minitest (5.
|
96
|
-
mongo (2.
|
97
|
-
bson (~> 4.0)
|
98
|
-
mongoid (5.1.
|
97
|
+
mime-types-data (3.2016.0521)
|
98
|
+
mini_portile2 (2.1.0)
|
99
|
+
minitest (5.10.1)
|
100
|
+
mongo (2.4.0)
|
101
|
+
bson (~> 4.2.0)
|
102
|
+
mongoid (5.1.6)
|
99
103
|
activemodel (~> 4.0)
|
100
104
|
mongo (~> 2.1)
|
101
105
|
origin (~> 2.2)
|
102
106
|
tzinfo (>= 0.3.37)
|
103
|
-
multi_json (1.
|
104
|
-
nokogiri (1.6.
|
105
|
-
mini_portile2 (~> 2.
|
106
|
-
origin (2.2.
|
107
|
-
rack (1.6.
|
107
|
+
multi_json (1.12.1)
|
108
|
+
nokogiri (1.6.8.1)
|
109
|
+
mini_portile2 (~> 2.1.0)
|
110
|
+
origin (2.2.2)
|
111
|
+
rack (1.6.5)
|
108
112
|
rack-test (0.6.3)
|
109
113
|
rack (>= 1.0)
|
110
114
|
rails (4.2.6)
|
@@ -131,35 +135,36 @@ GEM
|
|
131
135
|
activesupport (= 4.2.6)
|
132
136
|
rake (>= 0.8.7)
|
133
137
|
thor (>= 0.18.1, < 2.0)
|
134
|
-
rake (
|
135
|
-
rdoc (4.
|
136
|
-
|
137
|
-
sass (
|
138
|
-
|
139
|
-
railties (>= 4.0.0, < 5.0)
|
138
|
+
rake (12.0.0)
|
139
|
+
rdoc (4.3.0)
|
140
|
+
sass (3.4.22)
|
141
|
+
sass-rails (5.0.6)
|
142
|
+
railties (>= 4.0.0, < 6)
|
140
143
|
sass (~> 3.1)
|
141
144
|
sprockets (>= 2.8, < 4.0)
|
142
145
|
sprockets-rails (>= 2.0, < 4.0)
|
143
146
|
tilt (>= 1.1, < 3)
|
144
|
-
sdoc (0.4.
|
147
|
+
sdoc (0.4.2)
|
145
148
|
json (~> 1.7, >= 1.7.7)
|
146
149
|
rdoc (~> 4.0)
|
147
|
-
spring (
|
148
|
-
|
150
|
+
spring (2.0.0)
|
151
|
+
activesupport (>= 4.2)
|
152
|
+
sprockets (3.7.0)
|
149
153
|
concurrent-ruby (~> 1.0)
|
150
154
|
rack (> 1, < 3)
|
151
|
-
sprockets-rails (3.0
|
155
|
+
sprockets-rails (3.2.0)
|
152
156
|
actionpack (>= 4.0)
|
153
157
|
activesupport (>= 4.0)
|
154
158
|
sprockets (>= 3.0.0)
|
155
|
-
thor (0.19.
|
159
|
+
thor (0.19.4)
|
156
160
|
thread_safe (0.3.5)
|
157
|
-
tilt (2.0.
|
158
|
-
turbolinks (
|
159
|
-
|
161
|
+
tilt (2.0.5)
|
162
|
+
turbolinks (5.0.1)
|
163
|
+
turbolinks-source (~> 5)
|
164
|
+
turbolinks-source (5.0.0)
|
160
165
|
tzinfo (1.2.2)
|
161
166
|
thread_safe (~> 0.1)
|
162
|
-
uglifier (3.0.
|
167
|
+
uglifier (3.0.4)
|
163
168
|
execjs (>= 0.3.0, < 3)
|
164
169
|
web-console (2.3.0)
|
165
170
|
activemodel (>= 4.0)
|
@@ -174,6 +179,7 @@ DEPENDENCIES
|
|
174
179
|
byebug
|
175
180
|
coffee-rails (~> 4.1.0)
|
176
181
|
factory_girl_rails
|
182
|
+
groonga-client!
|
177
183
|
groonga-client-rails!
|
178
184
|
jbuilder (~> 2.0)
|
179
185
|
jquery-rails
|
@@ -187,4 +193,4 @@ DEPENDENCIES
|
|
187
193
|
web-console (~> 2.0)
|
188
194
|
|
189
195
|
BUNDLED WITH
|
190
|
-
1.
|
196
|
+
1.13.6
|