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
@@ -1,99 +0,0 @@
|
|
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
|
-
require "test_helper"
|
18
|
-
|
19
|
-
class SearcherSelectFilterParameterTest < Test::Unit::TestCase
|
20
|
-
def filter_parameter(expression, values=nil)
|
21
|
-
Groonga::Client::Searcher::Select::FilterParameter.new(expression, values)
|
22
|
-
end
|
23
|
-
|
24
|
-
def to_parameters(expression, values=nil)
|
25
|
-
filter_parameter(expression, values).to_parameters
|
26
|
-
end
|
27
|
-
|
28
|
-
sub_test_case("expression") do
|
29
|
-
def test_nil
|
30
|
-
assert_equal({},
|
31
|
-
to_parameters(nil))
|
32
|
-
end
|
33
|
-
|
34
|
-
def test_string
|
35
|
-
assert_equal({
|
36
|
-
:filter => "age <= 20",
|
37
|
-
},
|
38
|
-
to_parameters("age <= 20"))
|
39
|
-
end
|
40
|
-
|
41
|
-
def test_empty_string
|
42
|
-
assert_equal({},
|
43
|
-
to_parameters(""))
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
sub_test_case("values") do
|
48
|
-
def test_string
|
49
|
-
filter = <<-'FILTER'.strip
|
50
|
-
title == "[\"He\\ llo\"]"
|
51
|
-
FILTER
|
52
|
-
assert_equal({
|
53
|
-
:filter => filter,
|
54
|
-
},
|
55
|
-
to_parameters("title == %{value}",
|
56
|
-
:value => "[\"He\\ llo\"]"))
|
57
|
-
end
|
58
|
-
|
59
|
-
def test_symbol
|
60
|
-
assert_equal({
|
61
|
-
:filter => "title == \"Hello\"",
|
62
|
-
},
|
63
|
-
to_parameters("title == %{value}",
|
64
|
-
:value => :Hello))
|
65
|
-
end
|
66
|
-
|
67
|
-
def test_number
|
68
|
-
assert_equal({
|
69
|
-
:filter => "age <= 29",
|
70
|
-
},
|
71
|
-
to_parameters("age <= %{value}",
|
72
|
-
:value => 29))
|
73
|
-
end
|
74
|
-
|
75
|
-
def test_true
|
76
|
-
assert_equal({
|
77
|
-
:filter => "published == true",
|
78
|
-
},
|
79
|
-
to_parameters("published == %{value}",
|
80
|
-
:value => true))
|
81
|
-
end
|
82
|
-
|
83
|
-
def test_false
|
84
|
-
assert_equal({
|
85
|
-
:filter => "published == false",
|
86
|
-
},
|
87
|
-
to_parameters("published == %{value}",
|
88
|
-
:value => false))
|
89
|
-
end
|
90
|
-
|
91
|
-
def test_nil
|
92
|
-
assert_equal({
|
93
|
-
:filter => "function(null)",
|
94
|
-
},
|
95
|
-
to_parameters("function(%{value})",
|
96
|
-
:value => nil))
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|
@@ -1,59 +0,0 @@
|
|
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
|
-
require "test_helper"
|
18
|
-
|
19
|
-
class SearcherSelectMatchColumnsParameterTest < Test::Unit::TestCase
|
20
|
-
def match_columns_parameter(match_columns)
|
21
|
-
Groonga::Client::Searcher::Select::MatchColumnsParameter.new(match_columns)
|
22
|
-
end
|
23
|
-
|
24
|
-
def test_nil
|
25
|
-
assert_equal({},
|
26
|
-
match_columns_parameter(nil).to_parameters)
|
27
|
-
end
|
28
|
-
|
29
|
-
def test_string
|
30
|
-
assert_equal({
|
31
|
-
:match_columns => "title",
|
32
|
-
},
|
33
|
-
match_columns_parameter("title").to_parameters)
|
34
|
-
end
|
35
|
-
|
36
|
-
def test_empty_string
|
37
|
-
assert_equal({},
|
38
|
-
match_columns_parameter("").to_parameters)
|
39
|
-
end
|
40
|
-
|
41
|
-
def test_symbol
|
42
|
-
assert_equal({
|
43
|
-
:match_columns => "title",
|
44
|
-
},
|
45
|
-
match_columns_parameter(:title).to_parameters)
|
46
|
-
end
|
47
|
-
|
48
|
-
def test_array
|
49
|
-
assert_equal({
|
50
|
-
:match_columns => "title, body",
|
51
|
-
},
|
52
|
-
match_columns_parameter(["title", "body"]).to_parameters)
|
53
|
-
end
|
54
|
-
|
55
|
-
def test_empty_array
|
56
|
-
assert_equal({},
|
57
|
-
match_columns_parameter([]).to_parameters)
|
58
|
-
end
|
59
|
-
end
|
@@ -1,68 +0,0 @@
|
|
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
|
-
require "test_helper"
|
18
|
-
|
19
|
-
class SearcherSelectOutputColumnsParameterTest < Test::Unit::TestCase
|
20
|
-
def output_columns_parameter(output_columns)
|
21
|
-
Groonga::Client::Searcher::Select::OutputColumnsParameter.new(output_columns)
|
22
|
-
end
|
23
|
-
|
24
|
-
def test_nil
|
25
|
-
assert_equal({},
|
26
|
-
output_columns_parameter(nil).to_parameters)
|
27
|
-
end
|
28
|
-
|
29
|
-
def test_string
|
30
|
-
assert_equal({
|
31
|
-
:output_columns => "title",
|
32
|
-
},
|
33
|
-
output_columns_parameter("title").to_parameters)
|
34
|
-
end
|
35
|
-
|
36
|
-
def test_empty_string
|
37
|
-
assert_equal({},
|
38
|
-
output_columns_parameter("").to_parameters)
|
39
|
-
end
|
40
|
-
|
41
|
-
def test_symbol
|
42
|
-
assert_equal({
|
43
|
-
:output_columns => "title",
|
44
|
-
},
|
45
|
-
output_columns_parameter(:title).to_parameters)
|
46
|
-
end
|
47
|
-
|
48
|
-
def test_array
|
49
|
-
assert_equal({
|
50
|
-
:output_columns => "title, body",
|
51
|
-
},
|
52
|
-
output_columns_parameter(["title", "body"]).to_parameters)
|
53
|
-
end
|
54
|
-
|
55
|
-
def test_empty_array
|
56
|
-
assert_equal({},
|
57
|
-
output_columns_parameter([]).to_parameters)
|
58
|
-
end
|
59
|
-
|
60
|
-
def test_function
|
61
|
-
parameter = output_columns_parameter(["title", "snippet_html(body)"])
|
62
|
-
assert_equal({
|
63
|
-
:output_columns => "title, snippet_html(body)",
|
64
|
-
:command_version => "2",
|
65
|
-
},
|
66
|
-
parameter.to_parameters)
|
67
|
-
end
|
68
|
-
end
|
@@ -1,63 +0,0 @@
|
|
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
|
-
require "test_helper"
|
18
|
-
|
19
|
-
class SearcherSelectSortbyParameterTest < Test::Unit::TestCase
|
20
|
-
def sortby_parameter(sortby)
|
21
|
-
Groonga::Client::Searcher::Select::SortbyParameter.new(sortby)
|
22
|
-
end
|
23
|
-
|
24
|
-
def to_parameters(sortby)
|
25
|
-
sortby_parameter(sortby).to_parameters
|
26
|
-
end
|
27
|
-
|
28
|
-
def test_nil
|
29
|
-
assert_equal({},
|
30
|
-
to_parameters(nil))
|
31
|
-
end
|
32
|
-
|
33
|
-
def test_string
|
34
|
-
assert_equal({
|
35
|
-
:sortby => "-_score, _id",
|
36
|
-
},
|
37
|
-
to_parameters("-_score, _id"))
|
38
|
-
end
|
39
|
-
|
40
|
-
def test_empty_string
|
41
|
-
assert_equal({},
|
42
|
-
to_parameters(""))
|
43
|
-
end
|
44
|
-
|
45
|
-
def test_symbol
|
46
|
-
assert_equal({
|
47
|
-
:sortby => "_score",
|
48
|
-
},
|
49
|
-
to_parameters(:_score))
|
50
|
-
end
|
51
|
-
|
52
|
-
def test_array
|
53
|
-
assert_equal({
|
54
|
-
:sortby => "-_score, _id",
|
55
|
-
},
|
56
|
-
to_parameters(["-_score", :_id]))
|
57
|
-
end
|
58
|
-
|
59
|
-
def test_empty_array
|
60
|
-
assert_equal({},
|
61
|
-
to_parameters([]))
|
62
|
-
end
|
63
|
-
end
|