tdiary 5.0.6 → 5.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/ChangeLog +9 -0
- data/Gemfile +6 -1
- data/Gemfile.lock +38 -31
- data/doc/HOWTO-use-plugin.md +1 -1
- data/lib/tdiary/io/default.rb +1 -0
- data/lib/tdiary/plugin.rb +1 -1
- data/lib/tdiary/plugin/50sp.rb +1 -1
- data/lib/tdiary/plugin/60sf.rb +1 -1
- data/lib/tdiary/plugin/en/00default.rb +1 -1
- data/lib/tdiary/plugin/ja/00default.rb +1 -1
- data/lib/tdiary/version.rb +1 -1
- data/misc/paas/heroku/Gemfile.local +1 -1
- data/misc/paas/heroku/Gemfile.lock +57 -48
- data/misc/plugin/category-legacy.rb +1 -0
- data/misc/plugin/category.rb +1 -1
- data/misc/plugin/recent_comment3.rb +1 -0
- data/misc/plugin/recent_list.rb +2 -0
- data/theme/base.css +8 -0
- data/vendor/bundle/bin/htmldiff +1 -1
- data/vendor/bundle/bin/ldiff +1 -1
- data/vendor/bundle/cache/bundler-1.16.1.gem +0 -0
- data/vendor/bundle/cache/capybara-2.16.1.gem +0 -0
- data/vendor/bundle/cache/childprocess-0.8.0.gem +0 -0
- data/vendor/bundle/cache/fastimage-2.1.1.gem +0 -0
- data/vendor/bundle/cache/mail-2.7.0.gem +0 -0
- data/vendor/bundle/cache/mini_mime-1.0.0.gem +0 -0
- data/vendor/bundle/cache/octokit-4.8.0.gem +0 -0
- data/vendor/bundle/cache/power_assert-1.1.1.gem +0 -0
- data/vendor/bundle/cache/public_suffix-3.0.1.gem +0 -0
- data/vendor/bundle/cache/rack-test-0.8.2.gem +0 -0
- data/vendor/bundle/cache/rake-12.3.0.gem +0 -0
- data/vendor/bundle/cache/rspec-3.7.0.gem +0 -0
- data/vendor/bundle/cache/rspec-core-3.7.0.gem +0 -0
- data/vendor/bundle/cache/rspec-expectations-3.7.0.gem +0 -0
- data/vendor/bundle/cache/rspec-mocks-3.7.0.gem +0 -0
- data/vendor/bundle/cache/rspec-support-3.7.0.gem +0 -0
- data/vendor/bundle/cache/selenium-webdriver-3.8.0.gem +0 -0
- data/vendor/bundle/cache/sequel-5.3.0.gem +0 -0
- data/vendor/bundle/cache/test-unit-3.2.7.gem +0 -0
- data/vendor/bundle/cache/tins-1.16.3.gem +0 -0
- data/vendor/bundle/extensions/x86_64-linux/2.5.0-static/ffi-1.9.18/ffi_c.so +0 -0
- data/vendor/bundle/extensions/x86_64-linux/{2.4.0-static/byebug-9.1.0 → 2.5.0-static/ffi-1.9.18}/gem.build_complete +0 -0
- data/vendor/bundle/extensions/x86_64-linux/2.5.0-static/ffi-1.9.18/gem_make.out +63 -0
- data/vendor/bundle/extensions/x86_64-linux/2.5.0-static/ffi-1.9.18/mkmf.log +449 -0
- data/vendor/bundle/extensions/x86_64-linux/{2.4.0-static/ffi-1.9.18 → 2.5.0-static/nokogiri-1.8.1}/gem.build_complete +0 -0
- data/vendor/bundle/extensions/x86_64-linux/2.5.0-static/nokogiri-1.8.1/gem_make.out +711 -0
- data/vendor/bundle/extensions/x86_64-linux/2.5.0-static/nokogiri-1.8.1/mkmf.log +546 -0
- data/vendor/bundle/extensions/x86_64-linux/2.5.0-static/nokogiri-1.8.1/nokogiri/nokogiri.so +0 -0
- data/vendor/bundle/extensions/x86_64-linux/{2.4.0-static/nokogiri-1.8.1 → 2.5.0-static/redcarpet-3.4.0}/gem.build_complete +0 -0
- data/vendor/bundle/extensions/x86_64-linux/2.5.0-static/redcarpet-3.4.0/gem_make.out +105 -0
- data/vendor/bundle/extensions/x86_64-linux/2.5.0-static/redcarpet-3.4.0/redcarpet.so +0 -0
- data/vendor/bundle/extensions/x86_64-linux/{2.4.0-static/redcarpet-3.4.0 → 2.5.0-static/sqlite3-1.3.13}/gem.build_complete +0 -0
- data/vendor/bundle/extensions/x86_64-linux/2.5.0-static/sqlite3-1.3.13/gem_make.out +33 -0
- data/vendor/bundle/extensions/x86_64-linux/2.5.0-static/sqlite3-1.3.13/mkmf.log +583 -0
- data/vendor/bundle/extensions/x86_64-linux/2.5.0-static/sqlite3-1.3.13/sqlite3/sqlite3_native.so +0 -0
- data/vendor/bundle/extensions/x86_64-linux/{2.4.0-static/sqlite3-1.3.13 → 2.5.0-static/unf_ext-0.0.7.4}/gem.build_complete +0 -0
- data/vendor/bundle/extensions/x86_64-linux/2.5.0-static/unf_ext-0.0.7.4/gem_make.out +23 -0
- data/vendor/bundle/extensions/x86_64-linux/2.5.0-static/unf_ext-0.0.7.4/mkmf.log +34 -0
- data/vendor/bundle/extensions/x86_64-linux/2.5.0-static/unf_ext-0.0.7.4/unf_ext.so +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/History.md +1085 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/License.txt +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/README.md +1090 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara.rb +494 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/config.rb +132 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/cucumber.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/driver/base.rb +161 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/driver/node.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/dsl.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/helpers.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/minitest.rb +276 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/minitest/spec.rb +175 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/node/actions.rb +317 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/node/base.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/node/document.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/node/document_matchers.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/node/element.rb +386 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/node/finders.rb +321 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/node/matchers.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/node/simple.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/queries/ancestor_query.rb +25 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/queries/base_query.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/queries/current_path_query.rb +67 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/queries/match_query.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/queries/selector_query.rb +251 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/queries/sibling_query.rb +25 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/queries/text_query.rb +98 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/queries/title_query.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/query.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/rack_test/browser.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/rack_test/css_handlers.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/rack_test/driver.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/rack_test/form.rb +114 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/rack_test/node.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/rails.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/result.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/rspec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/rspec/compound.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/rspec/features.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/rspec/matcher_proxies.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/rspec/matchers.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/selector.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/selector/css.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/selector/filter.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/selector/filter_set.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/selector/filters/base.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/selector/filters/expression_filter.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/selector/filters/node_filter.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/selector/selector.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/selenium/driver.rb +512 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/selenium/node.rb +241 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/server.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/session.rb +981 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/session/config.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/session/matchers.rb +79 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/fixtures/another_test_file.txt +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/fixtures/capybara.jpg +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/fixtures/no_extension +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/fixtures/test_file.txt +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/public/jquery-ui.js +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/public/jquery.js +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/spec/public/test.js +145 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/accept_alert_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/accept_confirm_spec.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/spec/session/accept_prompt_spec.rb +78 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/all_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/ancestor_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/assert_all_of_selectors_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/assert_current_path.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/assert_selector.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/assert_text.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/assert_title.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/attach_file_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/body_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/check_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/choose_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/click_button_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/click_link_or_button_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/click_link_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/current_scope_spec.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/spec/session/current_url_spec.rb +107 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/dismiss_confirm_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/dismiss_prompt_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/element/assert_match_selector.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/element/match_css_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/element/match_xpath_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/element/matches_selector_spec.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/spec/session/evaluate_async_script_spec.rb +22 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/spec/session/evaluate_script_spec.rb +28 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/execute_script_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/fill_in_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/find_button_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/find_by_id_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/find_field_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/find_link_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/find_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/first_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/frame/switch_to_frame_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/frame/within_frame_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/go_back_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/go_forward_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/has_button_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/has_css_spec.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/spec/session/has_current_path_spec.rb +146 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/has_field_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/has_link_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/has_select_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/has_selector_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/has_table_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/has_text_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/has_title_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/has_xpath_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/headers.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/html_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/node_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/refresh_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/reset_session_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/response_code.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/save_and_open_page_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/save_and_open_screenshot_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/save_page_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/save_screenshot_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/screenshot_spec.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/spec/session/select_spec.rb +202 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/selectors_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/sibling_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/source_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/text_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/title_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/uncheck_spec.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/spec/session/unselect_spec.rb +115 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/spec/session/visit_spec.rb +192 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/window/become_closed_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/window/current_window_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/window/open_new_window_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/window/switch_to_window_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/window/window_opened_by_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/window/window_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/window/windows_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/window/within_window_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/session/within_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/spec_helper.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/test_app.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/buttons.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/fieldsets.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/form.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/frame_child.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/frame_one.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/frame_parent.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/frame_two.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/header_links.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/host_links.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/path.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/popup_one.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/popup_two.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/postback.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/tables.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/with_base_tag.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/with_count.erb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/spec/views/with_fixed_header_footer.erb +17 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/with_hover.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/with_html.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/with_html_entities.erb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/spec/views/with_js.erb +130 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/with_scope.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/with_simple_html.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/with_slow_unload.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/with_title.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/with_unload_alert.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/with_windows.erb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/spec/views/within_frames.erb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/lib/capybara/version.rb +4 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/lib/capybara/window.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/basic_node_spec.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/spec/capybara_spec.rb +149 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/dsl_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/filter_set_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/fixtures/capybara.csv +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/fixtures/selenium_driver_rspec_failure.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/fixtures/selenium_driver_rspec_success.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/minitest_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/minitest_spec_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/per_session_config_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/rack_test_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/result_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/rspec/features_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/rspec/scenarios_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/rspec/shared_spec_matchers.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/rspec/views_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/rspec_matchers_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/rspec_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/selector_spec.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/spec/selenium_spec_chrome.rb +58 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/selenium_spec_firefox.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/spec/selenium_spec_marionette.rb +127 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/server_spec.rb +0 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/session_spec.rb +0 -0
- data/vendor/bundle/gems/capybara-2.16.1/spec/shared_selenium_session.rb +218 -0
- data/vendor/bundle/gems/{capybara-2.15.1 → capybara-2.16.1}/spec/spec_helper.rb +0 -0
- data/vendor/bundle/gems/childprocess-0.8.0/CHANGELOG.md +44 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/Gemfile +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/LICENSE +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/README.md +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/Rakefile +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/appveyor.yml +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/childprocess.gemspec +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/abstract_io.rb +0 -0
- data/vendor/bundle/gems/childprocess-0.8.0/lib/childprocess/abstract_process.rb +192 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/errors.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/jruby.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/jruby/io.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/jruby/process.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/jruby/pump.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/tools/generator.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/unix.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/unix/fork_exec_process.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/unix/io.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/unix/lib.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/unix/platform/i386-linux.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/unix/platform/i386-solaris.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/unix/platform/x86_64-linux.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/unix/platform/x86_64-macosx.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/unix/posix_spawn_process.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/unix/process.rb +0 -0
- data/vendor/bundle/gems/childprocess-0.8.0/lib/childprocess/version.rb +3 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/windows.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/windows/handle.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/windows/io.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/windows/lib.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/windows/process.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/windows/process_builder.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/lib/childprocess/windows/structs.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/spec/abstract_io_spec.rb +0 -0
- data/vendor/bundle/gems/childprocess-0.8.0/spec/childprocess_spec.rb +391 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/spec/io_spec.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/spec/jruby_spec.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/spec/pid_behavior.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/spec/platform_detection_spec.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/spec/spec_helper.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/spec/unix_spec.rb +0 -0
- data/vendor/bundle/gems/{childprocess-0.7.1 → childprocess-0.8.0}/spec/windows_spec.rb +0 -0
- data/vendor/bundle/gems/{fastimage-2.1.0 → fastimage-2.1.1}/MIT-LICENSE +0 -0
- data/vendor/bundle/gems/fastimage-2.1.1/README.textile +162 -0
- data/vendor/bundle/gems/fastimage-2.1.1/lib/fastimage.rb +777 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/AbstractMemory.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/ArrayType.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/Buffer.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/Call.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/ClosurePool.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/DataConverter.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/DynamicLibrary.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/Function.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/FunctionInfo.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/LastError.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/LongDouble.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/Makefile +11 -11
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/MappedType.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/MemoryPointer.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/MethodHandle.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/Platform.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/Pointer.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/Struct.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/StructByReference.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/StructByValue.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/StructLayout.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/Thread.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/Type.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/Types.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/Variadic.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/ffi.o +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/ext/ffi_c/ffi_c.so +0 -0
- data/vendor/bundle/gems/ffi-1.9.18/lib/ffi_c.so +0 -0
- data/vendor/bundle/gems/mail-2.7.0/MIT-LICENSE +20 -0
- data/vendor/bundle/gems/mail-2.7.0/README.md +695 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail.rb +85 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/attachments_list.rb +110 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/body.rb +322 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/check_delivery_params.rb +60 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/configuration.rb +78 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/constants.rb +0 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/core_extensions/smtp.rb +28 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/core_extensions/string.rb +17 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/elements.rb +0 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/elements/address.rb +258 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/elements/address_list.rb +34 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/elements/content_disposition_element.rb +20 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/elements/content_location_element.rb +17 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/elements/content_transfer_encoding_element.rb +13 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/elements/content_type_element.rb +21 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/elements/date_time_element.rb +15 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/elements/envelope_from_element.rb +33 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/elements/message_ids_element.rb +22 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/elements/mime_version_element.rb +15 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/elements/phrase_list.rb +14 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/elements/received_element.rb +21 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/encodings.rb +343 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/encodings/7bit.rb +22 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/encodings/8bit.rb +18 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/encodings/base64.rb +38 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/encodings/binary.rb +13 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/encodings/identity.rb +24 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/encodings/quoted_printable.rb +45 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/encodings/transfer_encoding.rb +77 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/encodings/unix_to_unix.rb +19 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/envelope.rb +31 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/field.rb +297 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/field_list.rb +0 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/fields.rb +0 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/bcc_field.rb +68 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/cc_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/comments_field.rb +42 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/fields/common/address_container.rb +0 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/common/common_address.rb +161 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/fields/common/common_date.rb +0 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/common/common_field.rb +52 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/fields/common/common_message_id.rb +0 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/common/parameter_hash.rb +59 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/content_description_field.rb +20 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/content_disposition_field.rb +71 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/content_id_field.rb +63 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/content_location_field.rb +43 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/content_transfer_encoding_field.rb +45 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/content_type_field.rb +197 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/date_field.rb +57 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/from_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/in_reply_to_field.rb +57 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/keywords_field.rb +44 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/message_id_field.rb +83 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/mime_version_field.rb +54 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/optional_field.rb +17 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/received_field.rb +76 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/references_field.rb +57 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/reply_to_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/resent_bcc_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/resent_cc_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/resent_date_field.rb +35 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/resent_from_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/resent_message_id_field.rb +35 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/resent_sender_field.rb +62 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/resent_to_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/return_path_field.rb +65 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/sender_field.rb +67 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/fields/structured_field.rb +0 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/subject_field.rb +17 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/to_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/fields/unstructured_field.rb +222 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/header.rb +278 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/indifferent_hash.rb +0 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/mail.rb +262 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/matchers/attachment_matchers.rb +0 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/matchers/has_sent_mail.rb +201 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/message.rb +2171 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/multibyte.rb +92 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/multibyte/chars.rb +476 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/multibyte/unicode.rb +0 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/multibyte/utils.rb +0 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/network.rb +16 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/network/delivery_methods/exim.rb +0 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/network/delivery_methods/file_delivery.rb +0 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/network/delivery_methods/logger_delivery.rb +37 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/network/delivery_methods/sendmail.rb +95 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/network/delivery_methods/smtp.rb +149 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/network/delivery_methods/smtp_connection.rb +66 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/network/delivery_methods/test_mailer.rb +0 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/network/retriever_methods/base.rb +0 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/network/retriever_methods/imap.rb +187 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/network/retriever_methods/pop3.rb +143 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/network/retriever_methods/test_retriever.rb +0 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parser_tools.rb +15 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers.rb +19 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/address_lists_parser.rb +33207 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/address_lists_parser.rl +172 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/content_disposition_parser.rb +901 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/content_disposition_parser.rl +82 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/content_location_parser.rb +813 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/content_location_parser.rl +71 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/content_transfer_encoding_parser.rb +522 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/content_transfer_encoding_parser.rl +64 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/content_type_parser.rb +1045 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/content_type_parser.rl +83 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/date_time_parser.rb +886 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/date_time_parser.rl +62 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/envelope_from_parser.rb +3574 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/envelope_from_parser.rl +82 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/message_ids_parser.rb +2858 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/message_ids_parser.rl +82 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/mime_version_parser.rb +509 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/mime_version_parser.rl +61 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/phrase_lists_parser.rb +891 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/phrase_lists_parser.rl +83 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/received_parser.rb +8754 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/received_parser.rl +84 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/rfc2045_content_transfer_encoding.rl +13 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/rfc2045_content_type.rl +25 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/rfc2045_mime.rl +16 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/rfc2183_content_disposition.rl +15 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/rfc3629_utf8.rl +19 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/rfc5234_abnf_core_rules.rl +22 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/rfc5322.rl +59 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/rfc5322_address.rl +72 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/rfc5322_date_time.rl +37 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parsers/rfc5322_lexical_tokens.rl +60 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/part.rb +123 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/parts_list.rb +74 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/utilities.rb +324 -0
- data/vendor/bundle/gems/{mail-2.6.6 → mail-2.7.0}/lib/mail/values/unicode_tables.dat +0 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/version.rb +17 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/version_specific/ruby_1_8.rb +163 -0
- data/vendor/bundle/gems/mail-2.7.0/lib/mail/version_specific/ruby_1_9.rb +278 -0
- data/vendor/bundle/gems/mini_mime-1.0.0/CHANGELOG +28 -0
- data/vendor/bundle/gems/{mini_mime-0.1.4 → mini_mime-1.0.0}/CODE_OF_CONDUCT.md +0 -0
- data/vendor/bundle/gems/{mini_mime-0.1.4 → mini_mime-1.0.0}/Gemfile +0 -0
- data/vendor/bundle/gems/{mini_mime-0.1.4 → mini_mime-1.0.0}/LICENSE.txt +0 -0
- data/vendor/bundle/gems/{mini_mime-0.1.4 → mini_mime-1.0.0}/README.md +0 -0
- data/vendor/bundle/gems/{mini_mime-0.1.4 → mini_mime-1.0.0}/Rakefile +0 -0
- data/vendor/bundle/gems/{mini_mime-0.1.4 → mini_mime-1.0.0}/bench/bench.rb +0 -0
- data/vendor/bundle/gems/{mini_mime-0.1.4 → mini_mime-1.0.0}/bin/console +0 -0
- data/vendor/bundle/gems/{mini_mime-0.1.4 → mini_mime-1.0.0}/bin/setup +0 -0
- data/vendor/bundle/gems/{mini_mime-0.1.4 → mini_mime-1.0.0}/lib/db/content_type_mime.db +0 -0
- data/vendor/bundle/gems/{mini_mime-0.1.4 → mini_mime-1.0.0}/lib/db/ext_mime.db +0 -0
- data/vendor/bundle/gems/{mini_mime-0.1.4 → mini_mime-1.0.0}/lib/mini_mime.rb +0 -0
- data/vendor/bundle/gems/mini_mime-1.0.0/lib/mini_mime/version.rb +3 -0
- data/vendor/bundle/gems/{mini_mime-0.1.4 → mini_mime-1.0.0}/mini_mime.gemspec +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/Makefile +11 -11
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/html_document.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/html_element_description.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/html_entity_lookup.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/html_sax_parser_context.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/html_sax_push_parser.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/nokogiri.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/nokogiri.so +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_attr.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_attribute_decl.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_cdata.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_comment.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_document.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_document_fragment.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_dtd.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_element_content.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_element_decl.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_encoding_handler.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_entity_decl.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_entity_reference.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_io.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_libxml2_hacks.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_namespace.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_node.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_node_set.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_processing_instruction.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_reader.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_relax_ng.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_sax_parser.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_sax_parser_context.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_sax_push_parser.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_schema.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_syntax_error.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_text.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xml_xpath_context.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/ext/nokogiri/xslt_stylesheet.o +0 -0
- data/vendor/bundle/gems/nokogiri-1.8.1/lib/nokogiri/nokogiri.so +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/CONTRIBUTING.md +0 -0
- data/vendor/bundle/gems/octokit-4.8.0/LICENSE.md +20 -0
- data/vendor/bundle/gems/octokit-4.8.0/README.md +740 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/Rakefile +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/ext/sawyer/relation.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/arguments.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/authentication.rb +0 -0
- data/vendor/bundle/gems/octokit-4.8.0/lib/octokit/client.rb +240 -0
- data/vendor/bundle/gems/octokit-4.8.0/lib/octokit/client/apps.rb +164 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/authorizations.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/commit_comments.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/commits.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/contents.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/deployments.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/downloads.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/emojis.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/events.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/feeds.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/gists.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/gitignore.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/hooks.rb +0 -0
- data/vendor/bundle/gems/octokit-4.8.0/lib/octokit/client/issues.rb +334 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/labels.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/legacy_search.rb +0 -0
- data/vendor/bundle/gems/octokit-4.8.0/lib/octokit/client/licenses.rb +45 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/markdown.rb +0 -0
- data/vendor/bundle/gems/octokit-4.8.0/lib/octokit/client/marketplace.rb +60 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/meta.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/milestones.rb +0 -0
- data/vendor/bundle/gems/octokit-4.8.0/lib/octokit/client/notifications.rb +167 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/objects.rb +0 -0
- data/vendor/bundle/gems/octokit-4.8.0/lib/octokit/client/organizations.rb +785 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/pages.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/projects.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/pub_sub_hubbub.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/pull_requests.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/rate_limit.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/reactions.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/refs.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/releases.rb +0 -0
- data/vendor/bundle/gems/octokit-4.8.0/lib/octokit/client/repositories.rb +653 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/repository_invitations.rb +0 -0
- data/vendor/bundle/gems/octokit-4.8.0/lib/octokit/client/reviews.rb +165 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/say.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/search.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/service_status.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/source_import.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/stats.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/statuses.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/traffic.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/client/users.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/configurable.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/connection.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/default.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/enterprise_admin_client.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/enterprise_admin_client/admin_stats.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/enterprise_admin_client/license.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/enterprise_admin_client/orgs.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/enterprise_admin_client/search_indexing.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/enterprise_admin_client/users.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/enterprise_management_console_client.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/enterprise_management_console_client/management_console.rb +0 -0
- data/vendor/bundle/gems/octokit-4.8.0/lib/octokit/error.rb +300 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/gist.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/middleware/follow_redirects.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/organization.rb +0 -0
- data/vendor/bundle/gems/octokit-4.8.0/lib/octokit/preview.rb +39 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/rate_limit.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/repo_arguments.rb +0 -0
- data/vendor/bundle/gems/octokit-4.8.0/lib/octokit/repository.rb +95 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/response/feed_parser.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/response/raise_error.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/user.rb +0 -0
- data/vendor/bundle/gems/octokit-4.8.0/lib/octokit/version.rb +17 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/lib/octokit/warnable.rb +0 -0
- data/vendor/bundle/gems/{octokit-4.7.0 → octokit-4.8.0}/octokit.gemspec +0 -0
- data/vendor/bundle/gems/{power_assert-1.1.0 → power_assert-1.1.1}/BSDL +0 -0
- data/vendor/bundle/gems/{power_assert-1.1.0 → power_assert-1.1.1}/COPYING +0 -0
- data/vendor/bundle/gems/{power_assert-1.1.0 → power_assert-1.1.1}/Gemfile +0 -0
- data/vendor/bundle/gems/{power_assert-1.1.0 → power_assert-1.1.1}/LEGAL +0 -0
- data/vendor/bundle/gems/power_assert-1.1.1/README.rdoc +74 -0
- data/vendor/bundle/gems/{power_assert-1.1.0 → power_assert-1.1.1}/Rakefile +0 -0
- data/vendor/bundle/gems/{power_assert-1.1.0 → power_assert-1.1.1}/bin/console +0 -0
- data/vendor/bundle/gems/{power_assert-1.1.0 → power_assert-1.1.1}/bin/setup +0 -0
- data/vendor/bundle/gems/{power_assert-1.1.0 → power_assert-1.1.1}/lib/power_assert.rb +0 -0
- data/vendor/bundle/gems/{power_assert-1.1.0 → power_assert-1.1.1}/lib/power_assert/colorize.rb +0 -0
- data/vendor/bundle/gems/{power_assert-1.1.0 → power_assert-1.1.1}/lib/power_assert/configuration.rb +0 -0
- data/vendor/bundle/gems/power_assert-1.1.1/lib/power_assert/context.rb +218 -0
- data/vendor/bundle/gems/{power_assert-1.1.0 → power_assert-1.1.1}/lib/power_assert/enable_tracepoint_events.rb +0 -0
- data/vendor/bundle/gems/{power_assert-1.1.0 → power_assert-1.1.1}/lib/power_assert/inspector.rb +0 -0
- data/vendor/bundle/gems/power_assert-1.1.1/lib/power_assert/parser.rb +243 -0
- data/vendor/bundle/gems/power_assert-1.1.1/lib/power_assert/version.rb +3 -0
- data/vendor/bundle/gems/{power_assert-1.1.0 → power_assert-1.1.1}/power_assert.gemspec +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/2.0-Upgrade.md +0 -0
- data/vendor/bundle/gems/public_suffix-3.0.1/CHANGELOG.md +330 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/Gemfile +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/LICENSE.txt +0 -0
- data/vendor/bundle/gems/public_suffix-3.0.1/README.md +202 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/Rakefile +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/bin/console +0 -0
- data/vendor/bundle/gems/public_suffix-3.0.1/data/list.txt +12288 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/lib/public_suffix.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/lib/public_suffix/domain.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/lib/public_suffix/errors.rb +0 -0
- data/vendor/bundle/gems/public_suffix-3.0.1/lib/public_suffix/list.rb +243 -0
- data/vendor/bundle/gems/public_suffix-3.0.1/lib/public_suffix/rule.rb +348 -0
- data/vendor/bundle/gems/public_suffix-3.0.1/lib/public_suffix/version.rb +10 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/public_suffix.gemspec +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/acceptance_test.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/benchmarks/bm_find.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/benchmarks/bm_find_all.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/benchmarks/bm_names.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/benchmarks/bm_select.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/benchmarks/bm_select_incremental.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/benchmarks/bm_valid.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/profilers/domain_profiler.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/profilers/find_profiler.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/profilers/find_profiler_jp.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/profilers/initialization_profiler.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/profilers/list_profsize.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/profilers/object_binsize.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/psl_test.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/test_helper.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/tests.txt +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/unit/domain_test.rb +0 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/unit/errors_test.rb +0 -0
- data/vendor/bundle/gems/public_suffix-3.0.1/test/unit/list_test.rb +239 -0
- data/vendor/bundle/gems/public_suffix-3.0.1/test/unit/public_suffix_test.rb +186 -0
- data/vendor/bundle/gems/{public_suffix-3.0.0 → public_suffix-3.0.1}/test/unit/rule_test.rb +0 -0
- data/vendor/bundle/gems/rack-test-0.8.2/History.md +218 -0
- data/vendor/bundle/gems/{rack-test-0.7.0 → rack-test-0.8.2}/MIT-LICENSE.txt +0 -0
- data/vendor/bundle/gems/rack-test-0.8.2/README.md +139 -0
- data/vendor/bundle/gems/rack-test-0.8.2/lib/rack/mock_session.rb +63 -0
- data/vendor/bundle/gems/rack-test-0.8.2/lib/rack/test.rb +319 -0
- data/vendor/bundle/gems/rack-test-0.8.2/lib/rack/test/cookie_jar.rb +192 -0
- data/vendor/bundle/gems/rack-test-0.8.2/lib/rack/test/methods.rb +83 -0
- data/vendor/bundle/gems/rack-test-0.8.2/lib/rack/test/mock_digest_request.rb +25 -0
- data/vendor/bundle/gems/rack-test-0.8.2/lib/rack/test/uploaded_file.rb +84 -0
- data/vendor/bundle/gems/rack-test-0.8.2/lib/rack/test/utils.rb +144 -0
- data/vendor/bundle/gems/rack-test-0.8.2/lib/rack/test/version.rb +5 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/CONTRIBUTING.rdoc +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/Gemfile +0 -0
- data/vendor/bundle/gems/rake-12.3.0/History.rdoc +2299 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/MIT-LICENSE +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/README.rdoc +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/Rakefile +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/bin/console +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/bin/setup +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/doc/command_line_usage.rdoc +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/doc/example/Rakefile1 +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/doc/example/Rakefile2 +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/doc/example/a.c +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/doc/example/b.c +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/doc/example/main.c +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/doc/glossary.rdoc +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/doc/jamis.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/doc/proto_rake.rdoc +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/doc/rake.1 +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/doc/rakefile.rdoc +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/doc/rational.rdoc +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/exe/rake +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake.rb +0 -0
- data/vendor/bundle/gems/rake-12.3.0/lib/rake/application.rb +824 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/backtrace.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/clean.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/cloneable.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/cpu_counter.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/default_loader.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/dsl_definition.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/early_time.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/ext/core.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/ext/string.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/file_creation_task.rb +0 -0
- data/vendor/bundle/gems/rake-12.3.0/lib/rake/file_list.rb +435 -0
- data/vendor/bundle/gems/rake-12.3.0/lib/rake/file_task.rb +54 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/file_utils.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/file_utils_ext.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/invocation_chain.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/invocation_exception_mixin.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/late_time.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/linked_list.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/loaders/makefile.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/multi_task.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/name_space.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/packagetask.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/phony.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/private_reader.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/promise.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/pseudo_status.rb +0 -0
- data/vendor/bundle/gems/rake-12.3.0/lib/rake/rake_module.rb +67 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/rake_test_loader.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/rule_recursion_overflow_error.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/scope.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/task.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/task_argument_error.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/task_arguments.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/task_manager.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/tasklib.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/testtask.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/thread_history_display.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/thread_pool.rb +0 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/trace_output.rb +0 -0
- data/vendor/bundle/gems/rake-12.3.0/lib/rake/version.rb +10 -0
- data/vendor/bundle/gems/{rake-12.1.0 → rake-12.3.0}/lib/rake/win32.rb +0 -0
- data/vendor/bundle/gems/rake-12.3.0/rake.gemspec +43 -0
- data/vendor/bundle/gems/redcarpet-3.4.0/ext/redcarpet/Makefile +11 -11
- data/vendor/bundle/gems/redcarpet-3.4.0/ext/redcarpet/autolink.o +0 -0
- data/vendor/bundle/gems/redcarpet-3.4.0/ext/redcarpet/buffer.o +0 -0
- data/vendor/bundle/gems/redcarpet-3.4.0/ext/redcarpet/houdini_href_e.o +0 -0
- data/vendor/bundle/gems/redcarpet-3.4.0/ext/redcarpet/houdini_html_e.o +0 -0
- data/vendor/bundle/gems/redcarpet-3.4.0/ext/redcarpet/html.o +0 -0
- data/vendor/bundle/gems/redcarpet-3.4.0/ext/redcarpet/html_smartypants.o +0 -0
- data/vendor/bundle/gems/redcarpet-3.4.0/ext/redcarpet/markdown.o +0 -0
- data/vendor/bundle/gems/redcarpet-3.4.0/ext/redcarpet/rc_markdown.o +0 -0
- data/vendor/bundle/gems/redcarpet-3.4.0/ext/redcarpet/rc_render.o +0 -0
- data/vendor/bundle/gems/redcarpet-3.4.0/ext/redcarpet/redcarpet.so +0 -0
- data/vendor/bundle/gems/redcarpet-3.4.0/ext/redcarpet/stack.o +0 -0
- data/vendor/bundle/gems/redcarpet-3.4.0/lib/redcarpet.so +0 -0
- data/vendor/bundle/gems/{rspec-3.6.0 → rspec-3.7.0}/LICENSE.md +0 -0
- data/vendor/bundle/gems/{rspec-3.6.0 → rspec-3.7.0}/README.md +0 -0
- data/vendor/bundle/gems/{rspec-3.6.0 → rspec-3.7.0}/lib/rspec.rb +0 -0
- data/vendor/bundle/gems/rspec-3.7.0/lib/rspec/version.rb +5 -0
- data/vendor/bundle/gems/rspec-core-3.7.0/Changelog.md +2187 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/LICENSE.md +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/README.md +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/exe/rspec +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/autorun.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/backtrace_formatter.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/bisect/coordinator.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/bisect/example_minimizer.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/bisect/runner.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/bisect/server.rb +0 -0
- data/vendor/bundle/gems/rspec-core-3.7.0/lib/rspec/core/configuration.rb +2179 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/configuration_options.rb +0 -0
- data/vendor/bundle/gems/rspec-core-3.7.0/lib/rspec/core/drb.rb +113 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/dsl.rb +0 -0
- data/vendor/bundle/gems/rspec-core-3.7.0/lib/rspec/core/example.rb +653 -0
- data/vendor/bundle/gems/rspec-core-3.7.0/lib/rspec/core/example_group.rb +884 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/example_status_persister.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/filter_manager.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/flat_map.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/formatters.rb +0 -0
- data/vendor/bundle/gems/rspec-core-3.7.0/lib/rspec/core/formatters/base_formatter.rb +70 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/formatters/base_text_formatter.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/formatters/bisect_formatter.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/formatters/bisect_progress_formatter.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/formatters/console_codes.rb +0 -0
- data/vendor/bundle/gems/rspec-core-3.7.0/lib/rspec/core/formatters/deprecation_formatter.rb +221 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/formatters/documentation_formatter.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/formatters/exception_presenter.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/formatters/fallback_message_formatter.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/formatters/helpers.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/formatters/html_formatter.rb +0 -0
- data/vendor/bundle/gems/rspec-core-3.7.0/lib/rspec/core/formatters/html_printer.rb +416 -0
- data/vendor/bundle/gems/rspec-core-3.7.0/lib/rspec/core/formatters/html_snippet_extractor.rb +120 -0
- data/vendor/bundle/gems/rspec-core-3.7.0/lib/rspec/core/formatters/json_formatter.rb +102 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/formatters/profile_formatter.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/formatters/progress_formatter.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/formatters/protocol.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/formatters/snippet_extractor.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/formatters/syntax_highlighter.rb +0 -0
- data/vendor/bundle/gems/rspec-core-3.7.0/lib/rspec/core/hooks.rb +626 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/invocations.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/memoized_helpers.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/metadata.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/metadata_filter.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/minitest_assertions_adapter.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/mocking_adapters/flexmock.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/mocking_adapters/mocha.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/mocking_adapters/null.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/mocking_adapters/rr.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/mocking_adapters/rspec.rb +0 -0
- data/vendor/bundle/gems/rspec-core-3.7.0/lib/rspec/core/notifications.rb +521 -0
- data/vendor/bundle/gems/rspec-core-3.7.0/lib/rspec/core/option_parser.rb +309 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/ordering.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/output_wrapper.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/pending.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/profiler.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/project_initializer.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/project_initializer/spec/spec_helper.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/rake_task.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/reporter.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/ruby_project.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/runner.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/sandbox.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/set.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/shared_context.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/shared_example_group.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/shell_escape.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/test_unit_assertions_adapter.rb +0 -0
- data/vendor/bundle/gems/rspec-core-3.7.0/lib/rspec/core/version.rb +9 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/warnings.rb +0 -0
- data/vendor/bundle/gems/{rspec-core-3.6.0 → rspec-core-3.7.0}/lib/rspec/core/world.rb +0 -0
- data/vendor/bundle/gems/rspec-expectations-3.7.0/Changelog.md +1083 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/LICENSE.md +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/README.md +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/expectations.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/expectations/block_snippet_extractor.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/expectations/configuration.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/expectations/expectation_target.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/expectations/fail_with.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/expectations/failure_aggregator.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/expectations/handler.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/expectations/minitest_integration.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/expectations/syntax.rb +0 -0
- data/vendor/bundle/gems/rspec-expectations-3.7.0/lib/rspec/expectations/version.rb +8 -0
- data/vendor/bundle/gems/rspec-expectations-3.7.0/lib/rspec/matchers.rb +1031 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/aliased_matcher.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/all.rb +0 -0
- data/vendor/bundle/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/base_matcher.rb +193 -0
- data/vendor/bundle/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be.rb +288 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/be_between.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/be_instance_of.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/be_kind_of.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/be_within.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/change.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/compound.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/contain_exactly.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/cover.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/eq.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/eql.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/equal.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/exist.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/has.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/have_attributes.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/include.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/match.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/operators.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/output.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/raise_error.rb +0 -0
- data/vendor/bundle/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/respond_to.rb +165 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/satisfy.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/built_in/throw_symbol.rb +0 -0
- data/vendor/bundle/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/yield.rb +432 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/composable.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/dsl.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/english_phrasing.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/fail_matchers.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/generated_descriptions.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/matcher_delegator.rb +0 -0
- data/vendor/bundle/gems/{rspec-expectations-3.6.0 → rspec-expectations-3.7.0}/lib/rspec/matchers/matcher_protocol.rb +0 -0
- data/vendor/bundle/gems/rspec-mocks-3.7.0/Changelog.md +1089 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/LICENSE.md +0 -0
- data/vendor/bundle/gems/rspec-mocks-3.7.0/README.md +460 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/any_instance.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/any_instance/chain.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/any_instance/error_generator.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/any_instance/message_chains.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/any_instance/proxy.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/any_instance/recorder.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/any_instance/stub_chain.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/argument_list_matcher.rb +0 -0
- data/vendor/bundle/gems/rspec-mocks-3.7.0/lib/rspec/mocks/argument_matchers.rb +320 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/configuration.rb +0 -0
- data/vendor/bundle/gems/rspec-mocks-3.7.0/lib/rspec/mocks/error_generator.rb +369 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/example_methods.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/instance_method_stasher.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/marshal_extension.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/matchers/expectation_customization.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/matchers/have_received.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/matchers/receive.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/matchers/receive_messages.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/message_chain.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/message_expectation.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/method_double.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/method_reference.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/minitest_integration.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/mutate_const.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/object_reference.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/order_group.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/proxy.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/space.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/standalone.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/syntax.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/targets.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/test_double.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/verifying_double.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/verifying_message_expectation.rb +0 -0
- data/vendor/bundle/gems/{rspec-mocks-3.6.0 → rspec-mocks-3.7.0}/lib/rspec/mocks/verifying_proxy.rb +0 -0
- data/vendor/bundle/gems/rspec-mocks-3.7.0/lib/rspec/mocks/version.rb +9 -0
- data/vendor/bundle/gems/rspec-support-3.7.0/Changelog.md +229 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/LICENSE.md +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/README.md +0 -0
- data/vendor/bundle/gems/rspec-support-3.7.0/lib/rspec/support.rb +149 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/caller_filter.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/comparable_version.rb +0 -0
- data/vendor/bundle/gems/rspec-support-3.7.0/lib/rspec/support/differ.rb +215 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/directory_maker.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/encoded_string.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/fuzzy_matcher.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/hunk_generator.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/matcher_definition.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/method_signature_verifier.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/mutex.rb +0 -0
- data/vendor/bundle/gems/rspec-support-3.7.0/lib/rspec/support/object_formatter.rb +267 -0
- data/vendor/bundle/gems/rspec-support-3.7.0/lib/rspec/support/recursive_const_methods.rb +76 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/reentrant_mutex.rb +0 -0
- data/vendor/bundle/gems/rspec-support-3.7.0/lib/rspec/support/ruby_features.rb +162 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/source.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/source/location.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/source/node.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/source/token.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/spec.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/spec/deprecation_helpers.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/spec/formatting_support.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/spec/in_sub_process.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/spec/library_wide_checks.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/spec/shell_out.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/spec/stderr_splitter.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/spec/string_matcher.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/spec/with_isolated_directory.rb +0 -0
- data/vendor/bundle/gems/{rspec-support-3.6.0 → rspec-support-3.7.0}/lib/rspec/support/spec/with_isolated_stderr.rb +0 -0
- data/vendor/bundle/gems/rspec-support-3.7.0/lib/rspec/support/version.rb +7 -0
- data/vendor/bundle/gems/rspec-support-3.7.0/lib/rspec/support/warnings.rb +39 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/CHANGES +1349 -0
- data/vendor/bundle/gems/{selenium-webdriver-3.5.2 → selenium-webdriver-3.8.0}/Gemfile +0 -0
- data/vendor/bundle/gems/{selenium-webdriver-3.5.2 → selenium-webdriver-3.8.0}/LICENSE +0 -0
- data/vendor/bundle/gems/{selenium-webdriver-3.5.2 → selenium-webdriver-3.8.0}/README.md +0 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium-webdriver.rb +18 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/server.rb +268 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver.rb +97 -0
- data/vendor/bundle/gems/{selenium-webdriver-3.5.2 → selenium-webdriver-3.8.0}/lib/selenium/webdriver/atoms.rb +0 -0
- data/vendor/bundle/gems/{selenium-webdriver-3.5.2 → selenium-webdriver-3.8.0}/lib/selenium/webdriver/atoms/getAttribute.js +0 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/chrome.rb +47 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/chrome/driver.rb +112 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/chrome/options.rb +168 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/chrome/profile.rb +109 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/chrome/service.rb +59 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common.rb +70 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/action_builder.rb +363 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/alert.rb +45 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/bridge_helper.rb +79 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/driver.rb +293 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/driver_extensions/has_addons.rb +48 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/driver_extensions/has_location.rb +40 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/driver_extensions/has_network_connection.rb +56 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/driver_extensions/has_remote_status.rb +28 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/driver_extensions/has_session_id.rb +37 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/driver_extensions/has_touch_screen.rb +34 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/driver_extensions/has_web_storage.rb +36 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/driver_extensions/rotatable.rb +59 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb +62 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/driver_extensions/uploads_files.rb +60 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/element.rb +333 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/error.rb +326 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/file_reaper.rb +65 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/html5/local_storage.rb +57 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/html5/session_storage.rb +59 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/html5/shared_web_storage.rb +50 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/interactions/input_device.rb +51 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/interactions/interaction.rb +50 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/interactions/interactions.rb +41 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/interactions/key_actions.rb +143 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/interactions/key_input.rb +62 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/interactions/none_input.rb +33 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/interactions/pointer_actions.rb +353 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/interactions/pointer_input.rb +132 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/keyboard.rb +67 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/keys.rb +143 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/log_entry.rb +46 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/logger.rb +140 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/logs.rb +38 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/mouse.rb +86 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/navigation.rb +58 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/options.rb +151 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/platform.rb +221 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/port_prober.rb +60 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/profile_helper.rb +81 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/proxy.rb +154 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/search_context.rb +110 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/service.rb +161 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/socket_lock.rb +75 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/socket_poller.rb +117 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/target_locator.rb +109 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/timeouts.rb +53 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/touch_action_builder.rb +79 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/touch_screen.rb +120 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/w3c_action_builder.rb +209 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/w3c_options.rb +43 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/wait.rb +75 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/window.rb +161 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/zipper.rb +97 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/edge.rb +37 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/edge/bridge.rb +74 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/edge/driver.rb +73 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/edge/service.rb +55 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/firefox.rb +60 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/firefox/binary.rb +186 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/firefox/driver.rb +48 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/firefox/extension.rb +95 -0
- data/vendor/bundle/gems/{selenium-webdriver-3.5.2 → selenium-webdriver-3.8.0}/lib/selenium/webdriver/firefox/extension/prefs.json +0 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/firefox/extension/webdriver.xpi +0 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/firefox/launcher.rb +108 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/firefox/legacy/driver.rb +79 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/firefox/marionette/bridge.rb +47 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/firefox/marionette/driver.rb +96 -0
- data/vendor/bundle/gems/{selenium-webdriver-3.5.2 → selenium-webdriver-3.8.0}/lib/selenium/webdriver/firefox/native/linux/amd64/x_ignore_nofocus.so +0 -0
- data/vendor/bundle/gems/{selenium-webdriver-3.5.2 → selenium-webdriver-3.8.0}/lib/selenium/webdriver/firefox/native/linux/x86/x_ignore_nofocus.so +0 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/firefox/options.rb +149 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/firefox/profile.rb +282 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/firefox/profiles_ini.rb +71 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/firefox/service.rb +63 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/firefox/util.rb +44 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/ie.rb +35 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/ie/driver.rb +90 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/ie/options.rb +136 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/ie/service.rb +58 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote.rb +33 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/bridge.rb +190 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/capabilities.rb +269 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/driver.rb +49 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/http/common.rb +95 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/http/curb.rb +95 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/http/default.rb +176 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/http/persistent.rb +58 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/oss/bridge.rb +586 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/oss/commands.rb +221 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/response.rb +128 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/server_error.rb +32 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/w3c/bridge.rb +573 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/w3c/capabilities.rb +290 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/w3c/commands.rb +148 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/safari.rb +56 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/safari/driver.rb +57 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/safari/service.rb +57 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/support.rb +23 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/support/abstract_event_listener.rb +85 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/support/block_event_listener.rb +32 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/support/color.rb +144 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/support/escaper.rb +41 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/support/event_firing_bridge.rb +127 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/support/select.rb +269 -0
- data/vendor/bundle/gems/selenium-webdriver-3.8.0/selenium-webdriver.gemspec +31 -0
- data/vendor/bundle/gems/sequel-5.3.0/CHANGELOG +7152 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/MIT-LICENSE +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/README.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/Rakefile +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/bin/sequel +250 -0
- data/vendor/bundle/gems/sequel-5.3.0/doc/advanced_associations.rdoc +764 -0
- data/vendor/bundle/gems/sequel-5.3.0/doc/association_basics.rdoc +1759 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/bin_sequel.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/cheat_sheet.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/code_order.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/core_extensions.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/dataset_basics.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/dataset_filtering.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/extensions.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/mass_assignment.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/migration.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/model_dataset_method_design.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/model_hooks.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/model_plugins.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/mssql_stored_procedures.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/object_model.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/opening_databases.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/postgresql.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/prepared_statements.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/querying.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/reflection.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/1.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/1.1.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/1.3.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/1.4.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/1.5.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/2.0.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/2.1.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/2.10.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/2.11.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/2.12.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/2.2.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/2.3.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/2.4.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/2.5.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/2.6.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/2.7.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/2.8.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/2.9.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.0.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.1.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.10.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.11.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.12.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.13.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.14.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.15.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.16.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.17.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.18.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.19.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.2.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.20.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.21.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.22.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.23.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.24.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.25.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.26.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.27.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.28.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.29.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.3.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.30.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.31.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.32.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.33.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.34.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.35.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.36.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.37.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.38.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.39.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.4.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.40.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.41.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.42.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.43.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.44.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.45.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.46.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.47.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.48.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.5.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.6.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.7.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.8.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/3.9.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.0.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.1.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.10.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.11.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.12.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.13.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.14.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.15.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.16.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.17.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.18.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.19.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.2.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.20.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.21.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.22.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.23.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.24.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.25.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.26.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.27.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.28.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.29.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.3.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.30.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.31.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.32.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.33.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.34.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.35.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.36.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.37.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.38.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.39.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.4.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.40.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.41.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.42.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.43.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.44.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.45.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.46.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.47.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.48.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.49.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.5.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.6.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.7.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.8.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/4.9.0.txt +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/release_notes/5.0.0.txt +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/doc/release_notes/5.1.0.txt +31 -0
- data/vendor/bundle/gems/sequel-5.3.0/doc/release_notes/5.2.0.txt +33 -0
- data/vendor/bundle/gems/sequel-5.3.0/doc/release_notes/5.3.0.txt +121 -0
- data/vendor/bundle/gems/sequel-5.3.0/doc/schema_modification.rdoc +679 -0
- data/vendor/bundle/gems/sequel-5.3.0/doc/security.rdoc +433 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/sharding.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/sql.rdoc +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/doc/testing.rdoc +167 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/thread_safety.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/transactions.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/validations.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/doc/virtual_rows.rdoc +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/ado.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/ado/access.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/ado/mssql.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/amalgalite.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/ibmdb.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/adapters/jdbc.rb +785 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/jdbc/db2.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/jdbc/derby.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/adapters/jdbc/h2.rb +237 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/adapters/jdbc/hsqldb.rb +220 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/jdbc/jtds.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/jdbc/mssql.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/adapters/jdbc/mysql.rb +89 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/jdbc/oracle.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/adapters/jdbc/postgresql.rb +247 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/jdbc/sqlanywhere.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/jdbc/sqlite.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/jdbc/sqlserver.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/jdbc/transactions.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/mock.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/mysql.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/mysql2.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/odbc.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/odbc/db2.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/odbc/mssql.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/odbc/oracle.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/adapters/oracle.rb +410 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/adapters/postgres.rb +753 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/postgresql.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/shared/access.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/shared/db2.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/shared/mssql.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/adapters/shared/mysql.rb +973 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/shared/oracle.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/adapters/shared/postgres.rb +1770 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/shared/sqlanywhere.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/adapters/shared/sqlite.rb +789 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/sqlanywhere.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/sqlite.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/tinytds.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/utils/emulate_offset_with_reverse_and_count.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/utils/emulate_offset_with_row_number.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/adapters/utils/mysql_mysql2.rb +83 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/utils/mysql_prepared_statements.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/utils/replace.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/utils/split_alter_table.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/utils/stored_procedures.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/adapters/utils/unmodified_identifiers.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/ast_transformer.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/connection_pool.rb +147 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/connection_pool/sharded_single.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/connection_pool/sharded_threaded.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/connection_pool/single.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/connection_pool/threaded.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/core.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/database.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/database/connecting.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/database/dataset.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/database/dataset_defaults.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/database/features.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/database/logging.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/database/misc.rb +537 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/database/query.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/database/schema_generator.rb +632 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/database/schema_methods.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/database/transactions.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/dataset.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/dataset/actions.rb +1223 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/dataset/dataset_module.rb +46 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/dataset/features.rb +216 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/dataset/graph.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/dataset/misc.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/dataset/placeholder_literalizer.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/dataset/prepared_statements.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/dataset/query.rb +1320 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/dataset/sql.rb +1537 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/deprecated.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/exceptions.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/_model_constraint_validations.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/_model_pg_row.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/_pretty_table.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/arbitrary_servers.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/auto_literal_strings.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/blank.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/columns_introspection.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/connection_expiration.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/connection_validator.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/constraint_validations.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/core_extensions.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/core_refinements.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/current_datetime_timestamp.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/dataset_source_alias.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/date_arithmetic.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/duplicate_columns_handler.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/empty_array_consider_nulls.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/error_sql.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/eval_inspect.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/freeze_datasets.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/from_block.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/graph_each.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/identifier_mangling.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/implicit_subquery.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/inflector.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/looser_typecasting.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/extensions/migration.rb +796 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/mssql_emulate_lateral_with_apply.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/named_timezones.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/no_auto_literal_strings.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/null_dataset.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pagination.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pg_array.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pg_array_ops.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pg_enum.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/extensions/pg_extended_date_support.rb +230 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pg_hstore.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pg_hstore_ops.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/extensions/pg_inet.rb +117 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pg_inet_ops.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pg_interval.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pg_json.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pg_json_ops.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pg_loose_count.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pg_range.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pg_range_ops.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pg_row.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pg_row_ops.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pg_static_cache_updater.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/pretty_table.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/query.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/round_timestamps.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/s.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/schema_caching.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/schema_dumper.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/select_remove.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/sequel_4_dataset_methods.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/server_block.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/server_logging.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/split_array_nil.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/sql_comments.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/sql_expr.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/string_agg.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/string_date_time.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/symbol_aref.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/symbol_aref_refinement.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/symbol_as.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/symbol_as_refinement.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/extensions/synchronize_sql.rb +45 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/thread_local_timezones.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/to_dot.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/extensions/virtual_row_method_block.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/model.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/model/associations.rb +3456 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/model/base.rb +2156 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/model/dataset_module.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/model/default_inflections.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/model/errors.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/model/exceptions.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/model/inflections.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/model/plugins.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/accessed_columns.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/active_model.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/after_initialize.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/association_dependencies.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/association_pks.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/association_proxies.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/auto_validations.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/before_after_save.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/blacklist_security.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/boolean_readers.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/boolean_subsets.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/caching.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/plugins/class_table_inheritance.rb +403 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/column_conflicts.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/column_select.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/columns_updated.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/composition.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/constraint_validations.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/csv_serializer.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/dataset_associations.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/def_dataset_method.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/defaults_setter.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/delay_add_association.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/dirty.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/eager_each.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/error_splitter.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/finder.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/force_encoding.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/hook_class_methods.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/input_transformer.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/insert_returning_select.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/instance_filters.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/instance_hooks.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/inverted_subsets.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/json_serializer.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/lazy_attributes.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/list.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/many_through_many.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/modification_detection.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/mssql_optimistic_locking.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/nested_attributes.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/optimistic_locking.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/pg_array_associations.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/pg_row.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/prepared_statements.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/prepared_statements_safe.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/rcte_tree.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/serialization.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/serialization_modification_detection.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/sharding.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/single_table_inheritance.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/singular_table_names.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/skip_create_refresh.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/split_values.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/static_cache.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/string_stripper.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/subclasses.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/subset_conditions.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/table_select.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/tactical_eager_loading.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/timestamps.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/touch.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/tree.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/typecast_on_load.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/unlimited_update.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/update_or_create.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/update_primary_key.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/update_refresh.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/uuid.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/validate_associated.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/validation_class_methods.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/validation_contexts.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/plugins/validation_helpers.rb +316 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/whitelist_security.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/plugins/xml_serializer.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/lib/sequel/sql.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/timezones.rb +210 -0
- data/vendor/bundle/gems/sequel-5.3.0/lib/sequel/version.rb +20 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/adapter_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/adapters/db2_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/adapters/mssql_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/adapters/mysql_spec.rb +1042 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/adapters/oracle_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/adapters/postgres_spec.rb +3673 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/adapters/spec_helper.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/adapters/sqlanywhere_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/adapters/sqlite_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/bin_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/core/connection_pool_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/core/database_spec.rb +2673 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/core/dataset_spec.rb +5393 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/core/deprecated_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/core/expression_filters_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/core/mock_adapter_spec.rb +722 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/core/object_graph_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/core/placeholder_literalizer_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/core/schema_generator_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/core/schema_spec.rb +1801 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/core/spec_helper.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/core/version_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/core_extensions_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/core_model_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/core_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/deprecation_helper.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/accessed_columns_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/active_model_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/after_initialize_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/arbitrary_servers_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/association_dependencies_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/association_pks_spec.rb +423 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/association_proxies_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/auto_literal_strings_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/auto_validations_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/blacklist_security_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/blank_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/boolean_readers_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/boolean_subsets_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/caching_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/class_table_inheritance_spec.rb +518 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/column_conflicts_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/column_select_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/columns_introspection_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/columns_updated_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/composition_spec.rb +248 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/connection_expiration_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/connection_validator_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/constraint_validations_plugin_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/constraint_validations_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/core_refinements_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/csv_serializer_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/current_datetime_timestamp_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/dataset_associations_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/dataset_source_alias_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/date_arithmetic_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/def_dataset_method_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/defaults_setter_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/delay_add_association_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/dirty_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/duplicate_columns_handler_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/eager_each_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/empty_array_consider_nulls_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/error_splitter_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/error_sql_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/eval_inspect_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/finder_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/force_encoding_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/freeze_datasets_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/graph_each_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/hook_class_methods_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/identifier_mangling_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/implicit_subquery_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/inflector_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/input_transformer_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/insert_returning_select_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/instance_filters_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/instance_hooks_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/inverted_subsets_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/json_serializer_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/lazy_attributes_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/list_spec.rb +275 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/looser_typecasting_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/many_through_many_spec.rb +2177 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/migration_spec.rb +804 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/modification_detection_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/mssql_optimistic_locking_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/named_timezones_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/nested_attributes_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/null_dataset_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/optimistic_locking_spec.rb +127 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pagination_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/pg_array_associations_spec.rb +790 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pg_array_ops_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pg_array_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pg_enum_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/pg_extended_date_support_spec.rb +122 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pg_hstore_ops_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/pg_hstore_spec.rb +208 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pg_inet_ops_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pg_inet_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pg_interval_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pg_json_ops_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pg_json_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pg_loose_count_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pg_range_ops_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pg_range_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pg_row_ops_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pg_row_plugin_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pg_row_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/pg_static_cache_updater_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/prepared_statements_safe_spec.rb +66 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/prepared_statements_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/pretty_table_spec.rb +123 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/query_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/rcte_tree_spec.rb +381 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/round_timestamps_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/s_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/schema_caching_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/schema_dumper_spec.rb +868 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/select_remove_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/sequel_4_dataset_methods_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/serialization_modification_detection_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/serialization_spec.rb +365 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/server_block_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/server_logging_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/sharding_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/shared_caching_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/single_table_inheritance_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/singular_table_names_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/skip_create_refresh_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/spec_helper.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/split_array_nil_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/split_values_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/sql_comments_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/sql_expr_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/static_cache_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/string_agg_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/string_date_time_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/string_stripper_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/subclasses_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/subset_conditions_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/symbol_aref_refinement_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/symbol_as_refinement_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/synchronize_sql_spec.rb +124 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/table_select_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/tactical_eager_loading_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/thread_local_timezones_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/timestamps_spec.rb +209 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/to_dot_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/touch_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/tree_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/typecast_on_load_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/unlimited_update_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/update_or_create_spec.rb +83 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/update_primary_key_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/update_refresh_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/uuid_spec.rb +101 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/validate_associated_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/validation_class_methods_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/validation_contexts_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/validation_helpers_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/extensions/whitelist_security_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/extensions/xml_serializer_spec.rb +206 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/bad_down_migration/001_create_alt_basic.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/bad_down_migration/002_create_alt_advanced.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/bad_timestamped_migrations/1273253849_create_sessions.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/bad_timestamped_migrations/1273253851_create_nodes.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/bad_timestamped_migrations/1273253853_3_create_users.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/bad_up_migration/001_create_alt_basic.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/bad_up_migration/002_create_alt_advanced.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/convert_to_timestamp_migrations/001_create_sessions.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/convert_to_timestamp_migrations/002_create_nodes.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/convert_to_timestamp_migrations/003_3_create_users.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/convert_to_timestamp_migrations/1273253850_create_artists.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/convert_to_timestamp_migrations/1273253852_create_albums.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/double_migration/001_create_sessions.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/double_migration/002_create_nodes.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/double_migration/003_3_create_users.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/duplicate_integer_migrations/001_create_alt_advanced.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/duplicate_integer_migrations/001_create_alt_basic.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/duplicate_timestamped_migrations/1273253849_create_sessions.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/duplicate_timestamped_migrations/1273253853_create_nodes.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/duplicate_timestamped_migrations/1273253853_create_users.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/empty_migration/001_create_sessions.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/empty_migration/002_create_nodes.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/empty_migration/003_3_create_users.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/integer_migrations/001_create_sessions.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/integer_migrations/002_create_nodes.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/integer_migrations/003_3_create_users.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/interleaved_timestamped_migrations/1273253849_create_sessions.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/interleaved_timestamped_migrations/1273253850_create_artists.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/interleaved_timestamped_migrations/1273253851_create_nodes.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/interleaved_timestamped_migrations/1273253852_create_albums.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/interleaved_timestamped_migrations/1273253853_3_create_users.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/missing_integer_migrations/001_create_alt_basic.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/missing_integer_migrations/003_create_alt_advanced.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/missing_timestamped_migrations/1273253849_create_sessions.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/missing_timestamped_migrations/1273253853_3_create_users.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/reversible_migrations/001_reversible.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/reversible_migrations/002_reversible.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/reversible_migrations/003_reversible.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/reversible_migrations/004_reversible.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/reversible_migrations/005_reversible.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/reversible_migrations/006_reversible.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/reversible_migrations/007_reversible.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/timestamped_migrations/1273253849_create_sessions.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/timestamped_migrations/1273253851_create_nodes.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/timestamped_migrations/1273253853_3_create_users.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/transaction_specified_migrations/001_create_alt_basic.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/transaction_specified_migrations/002_create_basic.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/transaction_unspecified_migrations/001_create_alt_basic.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/transaction_unspecified_migrations/002_create_basic.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/uppercase_timestamped_migrations/1273253849_CREATE_SESSIONS.RB +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/uppercase_timestamped_migrations/1273253851_CREATE_NODES.RB +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/files/uppercase_timestamped_migrations/1273253853_3_CREATE_USERS.RB +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/guards_helper.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/integration/associations_test.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/integration/database_test.rb +113 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/integration/dataset_test.rb +1848 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/integration/eager_loader_test.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/integration/migrator_test.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/integration/model_test.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/integration/plugin_test.rb +2302 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/integration/prepared_statement_test.rb +398 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/integration/schema_test.rb +867 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/integration/spec_helper.rb +66 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/integration/timezone_test.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/integration/transaction_test.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/integration/type_test.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/model/association_reflection_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/model/associations_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/model/base_spec.rb +817 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/model/class_dataset_methods_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/model/dataset_methods_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/model/eager_loading_spec.rb +2262 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/model/hooks_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/model/inflector_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/model/model_spec.rb +953 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/model/plugins_spec.rb +0 -0
- data/vendor/bundle/gems/sequel-5.3.0/spec/model/record_spec.rb +2079 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/model/spec_helper.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/model/validations_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/model_no_assoc_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/model_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/plugin_spec.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/sequel_coverage.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/sequel_warning.rb +0 -0
- data/vendor/bundle/gems/{sequel-5.0.0 → sequel-5.3.0}/spec/spec_config.rb +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/Makefile +11 -11
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/backup.o +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/database.o +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/exception.o +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/sqlite3.o +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/sqlite3_native.so +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/statement.o +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/lib/sqlite3/sqlite3_native.so +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/COPYING +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/GPL +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/LGPL +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/PSFL +0 -0
- data/vendor/bundle/gems/test-unit-3.2.7/README.md +101 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/Rakefile +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/doc/text/getting-started.md +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/doc/text/how-to.md +0 -0
- data/vendor/bundle/gems/test-unit-3.2.7/doc/text/news.md +1296 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test-unit.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/assertion-failed-error.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/assertions.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/attribute-matcher.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/attribute.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/auto-runner-loader.rb +0 -0
- data/vendor/bundle/gems/test-unit-3.2.7/lib/test/unit/autorunner.rb +533 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/code-snippet-fetcher.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/collector.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/collector/descendant.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/collector/dir.rb +0 -0
- data/vendor/bundle/gems/test-unit-3.2.7/lib/test/unit/collector/load.rb +199 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/collector/objectspace.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/collector/xml.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/color-scheme.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/color.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/data.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/diff.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/error.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/exception-handler.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/failure.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/fault-location-detector.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/fixture.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/notification.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/omission.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/pending.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/priority.rb +0 -0
- data/vendor/bundle/gems/test-unit-3.2.7/lib/test/unit/runner/console.rb +84 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/runner/emacs.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/runner/xml.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/test-suite-creator.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/testcase.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/testresult.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/testsuite.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/ui/console/outputlevel.rb +0 -0
- data/vendor/bundle/gems/test-unit-3.2.7/lib/test/unit/ui/console/testrunner.rb +731 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/ui/emacs/testrunner.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/ui/testrunner.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/ui/testrunnermediator.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/ui/testrunnerutilities.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/ui/xml/testrunner.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/util/backtracefilter.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/util/method-owner-finder.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/util/observable.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/util/output.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/lib/test/unit/util/procwrapper.rb +0 -0
- data/vendor/bundle/gems/test-unit-3.2.7/lib/test/unit/version.rb +5 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/sample/adder.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/sample/subtracter.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/sample/test_adder.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/sample/test_subtracter.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/sample/test_user.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/collector/test-descendant.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/collector/test-load.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/collector/test_dir.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/collector/test_objectspace.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/fixtures/header-label.csv +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/fixtures/header-label.tsv +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/fixtures/header.csv +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/fixtures/header.tsv +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/fixtures/no-header.csv +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/fixtures/no-header.tsv +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/fixtures/plus.csv +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/run-test.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-assertions.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-attribute-matcher.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-attribute.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-code-snippet.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-color-scheme.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-color.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-data.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-diff.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-emacs-runner.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-error.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-failure.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-fault-location-detector.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-fixture.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-notification.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-omission.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-pending.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-priority.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-test-case.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-test-result.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-test-suite-creator.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/test-test-suite.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/testunit-test-util.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/ui/test_testrunmediator.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/util/test-method-owner-finder.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/util/test-output.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/util/test_backtracefilter.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/util/test_observable.rb +0 -0
- data/vendor/bundle/gems/{test-unit-3.2.5 → test-unit-3.2.7}/test/util/test_procwrapper.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/COPYING +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/Gemfile +0 -0
- data/vendor/bundle/gems/tins-1.16.3/README.md +94 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/Rakefile +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/TODO +0 -0
- data/vendor/bundle/gems/tins-1.16.3/VERSION +1 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/add_one.png +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/add_one.stm +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/bb3.png +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/bb3.stm +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/concatenate_compare.mtm +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/concatenate_compare.png +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/length_difference.mtm +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/length_difference.png +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/let.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/mail.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/minsky.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/multiply.reg +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/null_pattern.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/ones_difference-mtm.png +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/ones_difference-stm.png +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/ones_difference.mtm +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/ones_difference.stm +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/prefix-equals-suffix-reversed-with-infix.png +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/prefix-equals-suffix-reversed-with-infix.stm +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/recipe.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/recipe2.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/recipe_common.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/subtract.reg +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/turing-graph.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/examples/turing.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/dslkit.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/dslkit/polite.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/dslkit/rude.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/spruz.rb +0 -0
- data/vendor/bundle/gems/tins-1.16.3/lib/tins.rb +60 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/alias.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/annotate.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/ask_and_send.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/attempt.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/bijection.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/case_predicate.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/complete.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/concern.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/count_by.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/date_dummy.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/date_time_dummy.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/deep_const_get.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/deep_dup.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/dslkit.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/duration.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/expose.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/extract_last_argument_options.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/file_binary.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/find.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/generator.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/go.rb +0 -0
- data/vendor/bundle/gems/tins-1.16.3/lib/tins/hash_symbolize_keys_recursive.rb +27 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/hash_union.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/if_predicate.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/implement.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/limited.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/lines_file.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/memoize.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/method_description.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/minimize.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/module_group.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/named_set.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/null.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/once.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/p.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/partial_application.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/proc_compose.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/proc_prelude.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/range_plus.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/require_maybe.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/responding.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/secure_write.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/sexy_singleton.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/string_byte_order_mark.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/string_camelize.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/string_underscore.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/string_version.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/subhash.rb +0 -0
- data/vendor/bundle/gems/tins-1.16.3/lib/tins/temp_io.rb +26 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/terminal.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/thread_local.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/time_dummy.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/to.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/to_proc.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/token.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/uniq_by.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/unit.rb +0 -0
- data/vendor/bundle/gems/tins-1.16.3/lib/tins/version.rb +8 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/write.rb +0 -0
- data/vendor/bundle/gems/tins-1.16.3/lib/tins/xt.rb +45 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/annotate.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/ask_and_send.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/attempt.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/blank.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/case_predicate.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/complete.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/concern.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/count_by.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/date_dummy.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/date_time_dummy.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/deep_const_get.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/deep_dup.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/dslkit.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/expose.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/extract_last_argument_options.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/file_binary.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/full.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/hash_symbolize_keys_recursive.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/hash_union.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/if_predicate.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/implement.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/irb.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/method_description.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/named.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/null.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/p.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/partial_application.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/proc_compose.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/proc_prelude.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/range_plus.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/require_maybe.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/responding.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/secure_write.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/sexy_singleton.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/string.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/string_byte_order_mark.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/string_camelize.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/string_underscore.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/string_version.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/subhash.rb +0 -0
- data/vendor/bundle/gems/tins-1.16.3/lib/tins/xt/temp_io.rb +5 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/time_dummy.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/time_freezer.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/to.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/uniq_by.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/lib/tins/xt/write.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/annotate_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/ask_and_send_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/attempt_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/bijection_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/blank_full_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/case_predicate_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/concern_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/count_by_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/date_dummy_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/date_time_dummy_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/deep_const_get_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/deep_dup_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/delegate_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/dslkit_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/duration_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/dynamic_scope_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/expose_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/extract_last_argument_options_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/file_binary_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/find_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/from_module_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/generator_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/go_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/hash_symbolize_keys_recursive_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/hash_union_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/if_predicate_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/implement_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/limited_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/lines_file_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/memoize_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/method_description_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/minimize_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/module_group_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/named_set_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/named_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/null_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/p_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/partial_application_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/proc_compose_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/proc_prelude_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/range_plus_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/require_maybe_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/responding_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/rotate_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/scope_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/secure_write_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/sexy_singleton_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/string_byte_order_mark_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/string_camelize_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/string_underscore_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/string_version_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/subhash_test.rb +0 -0
- data/vendor/bundle/gems/tins-1.16.3/tests/temp_io_test.rb +38 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/test_helper.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/time_dummy_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/time_freezer_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/to_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/token_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/uniq_by_test.rb +0 -0
- data/vendor/bundle/gems/{tins-1.15.0 → tins-1.16.3}/tests/unit_test.rb +0 -0
- data/vendor/bundle/gems/tins-1.16.3/tins.gemspec +41 -0
- data/vendor/bundle/gems/unf_ext-0.0.7.4/ext/unf_ext/Makefile +10 -10
- data/vendor/bundle/gems/unf_ext-0.0.7.4/ext/unf_ext/unf.o +0 -0
- data/vendor/bundle/gems/unf_ext-0.0.7.4/ext/unf_ext/unf_ext.so +0 -0
- data/vendor/bundle/gems/unf_ext-0.0.7.4/lib/unf_ext.so +0 -0
- data/vendor/bundle/specifications/addressable-2.5.2.gemspec +2 -2
- data/vendor/bundle/specifications/capybara-2.16.1.gemspec +85 -0
- data/vendor/bundle/specifications/childprocess-0.8.0.gemspec +45 -0
- data/vendor/bundle/specifications/concurrent-ruby-1.0.5.gemspec +2 -2
- data/vendor/bundle/specifications/coveralls-0.7.12.gemspec +2 -2
- data/vendor/bundle/specifications/diff-lcs-1.3.gemspec +2 -2
- data/vendor/bundle/specifications/docile-1.1.5.gemspec +2 -2
- data/vendor/bundle/specifications/domain_name-0.5.20170404.gemspec +2 -2
- data/vendor/bundle/specifications/emot-0.0.4.gemspec +2 -2
- data/vendor/bundle/specifications/faraday-0.13.1.gemspec +2 -2
- data/vendor/bundle/specifications/fastimage-2.1.1.gemspec +45 -0
- data/vendor/bundle/specifications/ffi-1.9.18.gemspec +2 -2
- data/vendor/bundle/specifications/hikidoc-0.1.0.gemspec +2 -2
- data/vendor/bundle/specifications/http-cookie-1.0.3.gemspec +2 -2
- data/vendor/bundle/specifications/jasmine-2.8.0.gemspec +2 -2
- data/vendor/bundle/specifications/jasmine-core-2.8.0.gemspec +2 -2
- data/vendor/bundle/specifications/launchy-2.4.3.gemspec +2 -2
- data/vendor/bundle/specifications/mail-2.7.0.gemspec +47 -0
- data/vendor/bundle/specifications/mime-types-2.99.3.gemspec +2 -2
- data/vendor/bundle/specifications/mini_mime-1.0.0.gemspec +39 -0
- data/vendor/bundle/specifications/mini_portile2-2.3.0.gemspec +2 -2
- data/vendor/bundle/specifications/multi_json-1.12.2.gemspec +2 -2
- data/vendor/bundle/specifications/multipart-post-2.0.0.gemspec +2 -2
- data/vendor/bundle/specifications/netrc-0.11.0.gemspec +2 -2
- data/vendor/bundle/specifications/nokogiri-1.8.1.gemspec +2 -2
- data/vendor/bundle/specifications/octokit-4.8.0.gemspec +36 -0
- data/vendor/bundle/specifications/phantomjs-2.1.1.0.gemspec +2 -2
- data/vendor/bundle/specifications/pit-0.0.7.gemspec +2 -2
- data/vendor/bundle/specifications/power_assert-1.1.1.gemspec +51 -0
- data/vendor/bundle/specifications/public_suffix-3.0.1.gemspec +41 -0
- data/vendor/bundle/specifications/rack-1.6.8.gemspec +2 -2
- data/vendor/bundle/specifications/rack-test-0.8.2.gemspec +54 -0
- data/vendor/bundle/specifications/racksh-1.0.0.gemspec +2 -2
- data/vendor/bundle/specifications/rake-12.3.0.gemspec +49 -0
- data/vendor/bundle/specifications/redcarpet-3.4.0.gemspec +2 -2
- data/vendor/bundle/specifications/rest-client-1.8.0.gemspec +2 -2
- data/vendor/bundle/specifications/rspec-3.7.0.gemspec +42 -0
- data/vendor/bundle/specifications/rspec-core-3.7.0.gemspec +62 -0
- data/vendor/bundle/specifications/rspec-expectations-3.7.0.gemspec +50 -0
- data/vendor/bundle/specifications/rspec-mocks-3.7.0.gemspec +50 -0
- data/vendor/bundle/specifications/rspec-support-3.7.0.gemspec +41 -0
- data/vendor/bundle/specifications/rubyzip-1.2.1.gemspec +2 -2
- data/vendor/bundle/specifications/sawyer-0.8.1.gemspec +2 -2
- data/vendor/bundle/specifications/selenium-webdriver-3.8.0.gemspec +51 -0
- data/vendor/bundle/specifications/sequel-5.3.0.gemspec +52 -0
- data/vendor/bundle/specifications/simplecov-0.9.2.gemspec +2 -2
- data/vendor/bundle/specifications/simplecov-html-0.9.0.gemspec +2 -2
- data/vendor/bundle/specifications/sprockets-3.7.1.gemspec +2 -2
- data/vendor/bundle/specifications/sqlite3-1.3.13.gemspec +2 -2
- data/vendor/bundle/specifications/term-ansicolor-1.6.0.gemspec +2 -2
- data/vendor/bundle/specifications/test-unit-3.2.7.gemspec +48 -0
- data/vendor/bundle/specifications/thor-0.19.4.gemspec +2 -2
- data/vendor/bundle/specifications/tins-1.16.3.gemspec +42 -0
- data/vendor/bundle/specifications/unf-0.1.4.gemspec +2 -2
- data/vendor/bundle/specifications/unf_ext-0.0.7.4.gemspec +2 -2
- data/vendor/bundle/specifications/xpath-2.1.0.gemspec +2 -2
- metadata +1935 -2344
- data/misc/paas/cloudfoundry/Gemfile +0 -29
- data/misc/paas/cloudfoundry/Gemfile.lock +0 -101
- data/misc/paas/cloudfoundry/tdiary.conf +0 -87
- data/vendor/bundle/bin/byebug +0 -27
- data/vendor/bundle/bin/coderay +0 -27
- data/vendor/bundle/bin/pry +0 -27
- data/vendor/bundle/cache/byebug-9.1.0.gem +0 -0
- data/vendor/bundle/cache/capybara-2.15.1.gem +0 -0
- data/vendor/bundle/cache/childprocess-0.7.1.gem +0 -0
- data/vendor/bundle/cache/coderay-1.1.2.gem +0 -0
- data/vendor/bundle/cache/fastimage-2.1.0.gem +0 -0
- data/vendor/bundle/cache/mail-2.6.6.gem +0 -0
- data/vendor/bundle/cache/method_source-0.8.2.gem +0 -0
- data/vendor/bundle/cache/mini_mime-0.1.4.gem +0 -0
- data/vendor/bundle/cache/octokit-4.7.0.gem +0 -0
- data/vendor/bundle/cache/power_assert-1.1.0.gem +0 -0
- data/vendor/bundle/cache/pry-0.11.0.gem +0 -0
- data/vendor/bundle/cache/pry-byebug-3.5.0.gem +0 -0
- data/vendor/bundle/cache/public_suffix-3.0.0.gem +0 -0
- data/vendor/bundle/cache/rack-test-0.7.0.gem +0 -0
- data/vendor/bundle/cache/rake-12.1.0.gem +0 -0
- data/vendor/bundle/cache/rspec-3.6.0.gem +0 -0
- data/vendor/bundle/cache/rspec-core-3.6.0.gem +0 -0
- data/vendor/bundle/cache/rspec-expectations-3.6.0.gem +0 -0
- data/vendor/bundle/cache/rspec-mocks-3.6.0.gem +0 -0
- data/vendor/bundle/cache/rspec-support-3.6.0.gem +0 -0
- data/vendor/bundle/cache/selenium-webdriver-3.5.2.gem +0 -0
- data/vendor/bundle/cache/sequel-5.0.0.gem +0 -0
- data/vendor/bundle/cache/test-unit-3.2.5.gem +0 -0
- data/vendor/bundle/cache/tins-1.15.0.gem +0 -0
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/byebug-9.1.0/byebug/byebug.so +0 -0
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/byebug-9.1.0/gem_make.out +0 -19
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/ffi-1.9.18/ffi_c.so +0 -0
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/ffi-1.9.18/gem_make.out +0 -63
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/ffi-1.9.18/mkmf.log +0 -444
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/nokogiri-1.8.1/gem_make.out +0 -695
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/nokogiri-1.8.1/mkmf.log +0 -538
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/nokogiri-1.8.1/nokogiri/nokogiri.so +0 -0
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/redcarpet-3.4.0/gem_make.out +0 -106
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/redcarpet-3.4.0/redcarpet.so +0 -0
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/sqlite3-1.3.13/gem_make.out +0 -33
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/sqlite3-1.3.13/mkmf.log +0 -574
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/sqlite3-1.3.13/sqlite3/sqlite3_native.so +0 -0
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/unf_ext-0.0.7.4/gem.build_complete +0 -0
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/unf_ext-0.0.7.4/gem_make.out +0 -22
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/unf_ext-0.0.7.4/mkmf.log +0 -34
- data/vendor/bundle/extensions/x86_64-linux/2.4.0-static/unf_ext-0.0.7.4/unf_ext.so +0 -0
- data/vendor/bundle/gems/byebug-9.1.0/CHANGELOG.md +0 -825
- data/vendor/bundle/gems/byebug-9.1.0/CONTRIBUTING.md +0 -65
- data/vendor/bundle/gems/byebug-9.1.0/GUIDE.md +0 -1806
- data/vendor/bundle/gems/byebug-9.1.0/LICENSE +0 -23
- data/vendor/bundle/gems/byebug-9.1.0/README.md +0 -181
- data/vendor/bundle/gems/byebug-9.1.0/bin/byebug +0 -9
- data/vendor/bundle/gems/byebug-9.1.0/ext/byebug/Makefile +0 -263
- data/vendor/bundle/gems/byebug-9.1.0/ext/byebug/breakpoint.c +0 -517
- data/vendor/bundle/gems/byebug-9.1.0/ext/byebug/breakpoint.o +0 -0
- data/vendor/bundle/gems/byebug-9.1.0/ext/byebug/byebug.c +0 -905
- data/vendor/bundle/gems/byebug-9.1.0/ext/byebug/byebug.h +0 -129
- data/vendor/bundle/gems/byebug-9.1.0/ext/byebug/byebug.o +0 -0
- data/vendor/bundle/gems/byebug-9.1.0/ext/byebug/byebug.so +0 -0
- data/vendor/bundle/gems/byebug-9.1.0/ext/byebug/context.c +0 -673
- data/vendor/bundle/gems/byebug-9.1.0/ext/byebug/context.o +0 -0
- data/vendor/bundle/gems/byebug-9.1.0/ext/byebug/extconf.rb +0 -10
- data/vendor/bundle/gems/byebug-9.1.0/ext/byebug/locker.c +0 -96
- data/vendor/bundle/gems/byebug-9.1.0/ext/byebug/locker.o +0 -0
- data/vendor/bundle/gems/byebug-9.1.0/ext/byebug/threads.c +0 -230
- data/vendor/bundle/gems/byebug-9.1.0/ext/byebug/threads.o +0 -0
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug.rb +0 -1
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/attacher.rb +0 -34
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/breakpoint.rb +0 -89
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/byebug.so +0 -0
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/command.rb +0 -105
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/command_list.rb +0 -32
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands.rb +0 -37
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/break.rb +0 -98
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/catch.rb +0 -80
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/condition.rb +0 -55
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/continue.rb +0 -48
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/debug.rb +0 -36
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/delete.rb +0 -55
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/disable.rb +0 -31
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/disable/breakpoints.rb +0 -40
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/disable/display.rb +0 -41
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/display.rb +0 -64
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/down.rb +0 -43
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/edit.rb +0 -66
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/enable.rb +0 -31
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/enable/breakpoints.rb +0 -40
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/enable/display.rb +0 -41
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/finish.rb +0 -55
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/frame.rb +0 -55
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/help.rb +0 -62
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/history.rb +0 -37
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/info.rb +0 -35
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/info/breakpoints.rb +0 -61
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/info/display.rb +0 -42
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/info/file.rb +0 -80
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/info/line.rb +0 -33
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/info/program.rb +0 -47
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/interrupt.rb +0 -30
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/irb.rb +0 -50
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/kill.rb +0 -45
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/list.rb +0 -164
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/method.rb +0 -51
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/next.rb +0 -38
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/pry.rb +0 -41
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/quit.rb +0 -40
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/restart.rb +0 -62
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/save.rb +0 -70
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/set.rb +0 -77
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/show.rb +0 -43
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/source.rb +0 -40
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/step.rb +0 -38
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/thread.rb +0 -32
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/thread/current.rb +0 -35
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/thread/list.rb +0 -41
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/thread/resume.rb +0 -45
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/thread/stop.rb +0 -41
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/thread/switch.rb +0 -44
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/tracevar.rb +0 -55
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/undisplay.rb +0 -50
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/untracevar.rb +0 -34
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/up.rb +0 -43
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/var.rb +0 -35
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/var/all.rb +0 -39
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/var/args.rb +0 -37
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/var/const.rb +0 -49
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/var/global.rb +0 -35
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/var/instance.rb +0 -37
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/var/local.rb +0 -37
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/where.rb +0 -51
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/context.rb +0 -155
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/core.rb +0 -114
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/errors.rb +0 -27
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/frame.rb +0 -185
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/helpers/bin.rb +0 -26
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/helpers/eval.rb +0 -124
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/helpers/file.rb +0 -61
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/helpers/frame.rb +0 -73
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/helpers/parse.rb +0 -75
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/helpers/path.rb +0 -38
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/helpers/reflection.rb +0 -17
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/helpers/string.rb +0 -34
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/helpers/thread.rb +0 -65
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/helpers/toggle.rb +0 -62
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/helpers/var.rb +0 -52
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/history.rb +0 -128
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/interface.rb +0 -144
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/interfaces/local_interface.rb +0 -44
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/interfaces/remote_interface.rb +0 -38
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/interfaces/script_interface.rb +0 -30
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/interfaces/test_interface.rb +0 -65
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/option_setter.rb +0 -93
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/printers/base.rb +0 -69
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/printers/plain.rb +0 -42
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/printers/texts/base.yml +0 -115
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/printers/texts/plain.yml +0 -33
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/processors/command_processor.rb +0 -174
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/processors/control_processor.rb +0 -26
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/processors/post_mortem_processor.rb +0 -16
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/processors/script_processor.rb +0 -45
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/remote.rb +0 -105
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/runner.rb +0 -191
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/setting.rb +0 -73
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/autoirb.rb +0 -27
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/autolist.rb +0 -27
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/autopry.rb +0 -27
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/autosave.rb +0 -15
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/basename.rb +0 -14
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/callstyle.rb +0 -20
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/fullpath.rb +0 -14
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/histfile.rb +0 -18
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/histsize.rb +0 -18
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/linetrace.rb +0 -20
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/listsize.rb +0 -19
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/post_mortem.rb +0 -25
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/savefile.rb +0 -18
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/stack_on_error.rb +0 -13
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/width.rb +0 -18
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/subcommands.rb +0 -52
- data/vendor/bundle/gems/byebug-9.1.0/lib/byebug/version.rb +0 -8
- data/vendor/bundle/gems/capybara-2.15.1/History.md +0 -1039
- data/vendor/bundle/gems/capybara-2.15.1/README.md +0 -1080
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara.rb +0 -494
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/config.rb +0 -131
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/driver/base.rb +0 -157
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/minitest.rb +0 -276
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/minitest/spec.rb +0 -175
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/node/actions.rb +0 -317
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/node/element.rb +0 -386
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/node/finders.rb +0 -320
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/queries/ancestor_query.rb +0 -25
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/queries/current_path_query.rb +0 -64
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/queries/selector_query.rb +0 -244
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/queries/sibling_query.rb +0 -25
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/queries/text_query.rb +0 -98
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/rack_test/form.rb +0 -112
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/selenium/driver.rb +0 -483
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/selenium/node.rb +0 -232
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/session.rb +0 -947
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/session/matchers.rb +0 -71
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/spec/public/test.js +0 -134
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/spec/session/accept_prompt_spec.rb +0 -50
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/spec/session/current_url_spec.rb +0 -107
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/spec/session/evaluate_script_spec.rb +0 -28
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/spec/session/has_current_path_spec.rb +0 -109
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/spec/session/select_spec.rb +0 -202
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/spec/session/unselect_spec.rb +0 -115
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/spec/session/visit_spec.rb +0 -137
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/spec/views/with_js.erb +0 -126
- data/vendor/bundle/gems/capybara-2.15.1/lib/capybara/version.rb +0 -4
- data/vendor/bundle/gems/capybara-2.15.1/spec/capybara_spec.rb +0 -163
- data/vendor/bundle/gems/capybara-2.15.1/spec/selenium_spec_chrome.rb +0 -58
- data/vendor/bundle/gems/capybara-2.15.1/spec/selenium_spec_marionette.rb +0 -117
- data/vendor/bundle/gems/capybara-2.15.1/spec/shared_selenium_session.rb +0 -169
- data/vendor/bundle/gems/childprocess-0.7.1/CHANGELOG.md +0 -39
- data/vendor/bundle/gems/childprocess-0.7.1/lib/childprocess/abstract_process.rb +0 -187
- data/vendor/bundle/gems/childprocess-0.7.1/lib/childprocess/version.rb +0 -3
- data/vendor/bundle/gems/childprocess-0.7.1/spec/childprocess_spec.rb +0 -367
- data/vendor/bundle/gems/coderay-1.1.2/MIT-LICENSE +0 -22
- data/vendor/bundle/gems/coderay-1.1.2/README_INDEX.rdoc +0 -123
- data/vendor/bundle/gems/coderay-1.1.2/bin/coderay +0 -215
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay.rb +0 -284
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/duo.rb +0 -81
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders.rb +0 -18
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/_map.rb +0 -17
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/comment_filter.rb +0 -25
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/count.rb +0 -39
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/debug.rb +0 -49
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/debug_lint.rb +0 -63
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/div.rb +0 -23
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/encoder.rb +0 -190
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/filter.rb +0 -58
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/html.rb +0 -333
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/html/css.rb +0 -65
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/html/numbering.rb +0 -108
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/html/output.rb +0 -166
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/json.rb +0 -83
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/lines_of_code.rb +0 -45
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/lint.rb +0 -59
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/null.rb +0 -18
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/page.rb +0 -24
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/span.rb +0 -23
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/statistic.rb +0 -95
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/terminal.rb +0 -195
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/text.rb +0 -46
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/token_kind_filter.rb +0 -111
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/xml.rb +0 -72
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/encoders/yaml.rb +0 -50
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/for_redcloth.rb +0 -95
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/helpers/file_type.rb +0 -151
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/helpers/plugin.rb +0 -55
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/helpers/plugin_host.rb +0 -221
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/helpers/word_list.rb +0 -72
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners.rb +0 -27
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/_map.rb +0 -24
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/c.rb +0 -189
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/clojure.rb +0 -217
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/cpp.rb +0 -217
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/css.rb +0 -196
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/debug.rb +0 -75
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/delphi.rb +0 -144
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/diff.rb +0 -221
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/erb.rb +0 -81
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/go.rb +0 -208
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/groovy.rb +0 -268
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/haml.rb +0 -168
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/html.rb +0 -275
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/java.rb +0 -174
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/java/builtin_types.rb +0 -421
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/java_script.rb +0 -237
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/json.rb +0 -98
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/lua.rb +0 -280
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/php.rb +0 -527
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/python.rb +0 -287
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/raydebug.rb +0 -75
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/ruby.rb +0 -477
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/ruby/patterns.rb +0 -178
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/ruby/string_state.rb +0 -79
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/sass.rb +0 -232
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/scanner.rb +0 -337
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/sql.rb +0 -169
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/taskpaper.rb +0 -36
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/text.rb +0 -26
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/xml.rb +0 -17
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/scanners/yaml.rb +0 -140
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/styles.rb +0 -15
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/styles/_map.rb +0 -7
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/styles/alpha.rb +0 -153
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/styles/style.rb +0 -18
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/token_kinds.rb +0 -85
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/tokens.rb +0 -161
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/tokens_proxy.rb +0 -55
- data/vendor/bundle/gems/coderay-1.1.2/lib/coderay/version.rb +0 -3
- data/vendor/bundle/gems/fastimage-2.1.0/README.textile +0 -157
- data/vendor/bundle/gems/fastimage-2.1.0/lib/fastimage.rb +0 -769
- data/vendor/bundle/gems/mail-2.6.6/CHANGELOG.rdoc +0 -803
- data/vendor/bundle/gems/mail-2.6.6/CONTRIBUTING.md +0 -60
- data/vendor/bundle/gems/mail-2.6.6/Dependencies.txt +0 -2
- data/vendor/bundle/gems/mail-2.6.6/Gemfile +0 -14
- data/vendor/bundle/gems/mail-2.6.6/MIT-LICENSE +0 -20
- data/vendor/bundle/gems/mail-2.6.6/README.md +0 -711
- data/vendor/bundle/gems/mail-2.6.6/Rakefile +0 -29
- data/vendor/bundle/gems/mail-2.6.6/TODO.rdoc +0 -9
- data/vendor/bundle/gems/mail-2.6.6/lib/mail.rb +0 -98
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/attachments_list.rb +0 -106
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/body.rb +0 -316
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/check_delivery_params.rb +0 -58
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/configuration.rb +0 -76
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/core_extensions/smtp.rb +0 -25
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/core_extensions/string.rb +0 -21
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/core_extensions/string/access.rb +0 -146
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/core_extensions/string/multibyte.rb +0 -79
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/elements/address.rb +0 -252
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/elements/address_list.rb +0 -42
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/elements/content_disposition_element.rb +0 -27
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/elements/content_location_element.rb +0 -22
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/elements/content_transfer_encoding_element.rb +0 -18
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/elements/content_type_element.rb +0 -32
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/elements/date_time_element.rb +0 -23
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/elements/envelope_from_element.rb +0 -40
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/elements/message_ids_element.rb +0 -26
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/elements/mime_version_element.rb +0 -23
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/elements/phrase_list.rb +0 -17
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/elements/received_element.rb +0 -27
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/encodings.rb +0 -287
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/encodings/7bit.rb +0 -32
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/encodings/8bit.rb +0 -37
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/encodings/base64.rb +0 -39
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/encodings/binary.rb +0 -32
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/encodings/quoted_printable.rb +0 -45
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/encodings/transfer_encoding.rb +0 -68
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/encodings/unix_to_unix.rb +0 -18
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/envelope.rb +0 -31
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/field.rb +0 -262
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/bcc_field.rb +0 -68
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/cc_field.rb +0 -55
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/comments_field.rb +0 -42
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/common/common_address.rb +0 -136
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/common/common_field.rb +0 -61
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/common/parameter_hash.rb +0 -59
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/content_description_field.rb +0 -20
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/content_disposition_field.rb +0 -71
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/content_id_field.rb +0 -63
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/content_location_field.rb +0 -43
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/content_transfer_encoding_field.rb +0 -45
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/content_type_field.rb +0 -202
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/date_field.rb +0 -58
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/from_field.rb +0 -55
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/in_reply_to_field.rb +0 -57
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/keywords_field.rb +0 -44
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/message_id_field.rb +0 -83
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/mime_version_field.rb +0 -54
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/optional_field.rb +0 -14
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/received_field.rb +0 -76
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/references_field.rb +0 -57
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/reply_to_field.rb +0 -55
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/resent_bcc_field.rb +0 -55
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/resent_cc_field.rb +0 -55
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/resent_date_field.rb +0 -36
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/resent_from_field.rb +0 -55
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/resent_message_id_field.rb +0 -35
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/resent_sender_field.rb +0 -62
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/resent_to_field.rb +0 -55
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/return_path_field.rb +0 -65
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/sender_field.rb +0 -67
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/subject_field.rb +0 -17
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/to_field.rb +0 -55
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/fields/unstructured_field.rb +0 -205
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/header.rb +0 -276
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/mail.rb +0 -270
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/matchers/has_sent_mail.rb +0 -181
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/message.rb +0 -2160
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/multibyte.rb +0 -43
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/multibyte/chars.rb +0 -475
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/multibyte/exceptions.rb +0 -9
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/network.rb +0 -15
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/network/delivery_methods/sendmail.rb +0 -92
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/network/delivery_methods/smtp.rb +0 -140
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/network/delivery_methods/smtp_connection.rb +0 -58
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/network/retriever_methods/imap.rb +0 -174
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/network/retriever_methods/pop3.rb +0 -141
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers.rb +0 -27
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/address_lists_parser.rb +0 -133
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/content_disposition_parser.rb +0 -68
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/content_location_parser.rb +0 -36
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/content_transfer_encoding_parser.rb +0 -34
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/content_type_parser.rb +0 -67
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/date_time_parser.rb +0 -39
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/envelope_from_parser.rb +0 -46
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/message_ids_parser.rb +0 -40
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/mime_version_parser.rb +0 -42
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/phrase_lists_parser.rb +0 -36
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel.rb +0 -18
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/common.rl +0 -185
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/date_time.rl +0 -30
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/parser_info.rb +0 -61
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby.rb +0 -40
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/address_lists_machine.rb +0 -14864
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/address_lists_machine.rb.rl +0 -37
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/content_disposition_machine.rb +0 -751
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/content_disposition_machine.rb.rl +0 -37
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/content_location_machine.rb +0 -614
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/content_location_machine.rb.rl +0 -37
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/content_transfer_encoding_machine.rb +0 -447
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/content_transfer_encoding_machine.rb.rl +0 -37
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/content_type_machine.rb +0 -825
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/content_type_machine.rb.rl +0 -37
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/date_time_machine.rb +0 -817
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/date_time_machine.rb.rl +0 -37
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/envelope_from_machine.rb +0 -2149
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/envelope_from_machine.rb.rl +0 -37
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb +0 -1570
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb.rl +0 -37
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/mime_version_machine.rb +0 -440
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/mime_version_machine.rb.rl +0 -37
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb +0 -564
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl +0 -37
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl +0 -51
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/received_machine.rb +0 -5144
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/machines/received_machine.rb.rl +0 -37
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/ruby/parser.rb.rl.erb +0 -37
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/received_parser.rb +0 -49
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/part.rb +0 -123
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/parts_list.rb +0 -75
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/utilities.rb +0 -293
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/version.rb +0 -17
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/version_specific/ruby_1_8.rb +0 -126
- data/vendor/bundle/gems/mail-2.6.6/lib/mail/version_specific/ruby_1_9.rb +0 -226
- data/vendor/bundle/gems/method_source-0.8.2/Gemfile +0 -2
- data/vendor/bundle/gems/method_source-0.8.2/LICENSE +0 -25
- data/vendor/bundle/gems/method_source-0.8.2/README.markdown +0 -91
- data/vendor/bundle/gems/method_source-0.8.2/Rakefile +0 -79
- data/vendor/bundle/gems/method_source-0.8.2/lib/method_source.rb +0 -141
- data/vendor/bundle/gems/method_source-0.8.2/lib/method_source/code_helpers.rb +0 -154
- data/vendor/bundle/gems/method_source-0.8.2/lib/method_source/source_location.rb +0 -138
- data/vendor/bundle/gems/method_source-0.8.2/lib/method_source/version.rb +0 -3
- data/vendor/bundle/gems/method_source-0.8.2/method_source.gemspec +0 -33
- data/vendor/bundle/gems/method_source-0.8.2/test/test.rb +0 -138
- data/vendor/bundle/gems/method_source-0.8.2/test/test_code_helpers.rb +0 -41
- data/vendor/bundle/gems/method_source-0.8.2/test/test_helper.rb +0 -98
- data/vendor/bundle/gems/mini_mime-0.1.4/CHANGELOG +0 -24
- data/vendor/bundle/gems/mini_mime-0.1.4/lib/mini_mime/version.rb +0 -3
- data/vendor/bundle/gems/octokit-4.7.0/LICENSE.md +0 -20
- data/vendor/bundle/gems/octokit-4.7.0/README.md +0 -714
- data/vendor/bundle/gems/octokit-4.7.0/lib/octokit/client.rb +0 -238
- data/vendor/bundle/gems/octokit-4.7.0/lib/octokit/client/integrations.rb +0 -77
- data/vendor/bundle/gems/octokit-4.7.0/lib/octokit/client/issues.rb +0 -321
- data/vendor/bundle/gems/octokit-4.7.0/lib/octokit/client/licenses.rb +0 -45
- data/vendor/bundle/gems/octokit-4.7.0/lib/octokit/client/notifications.rb +0 -171
- data/vendor/bundle/gems/octokit-4.7.0/lib/octokit/client/organizations.rb +0 -768
- data/vendor/bundle/gems/octokit-4.7.0/lib/octokit/client/repositories.rb +0 -654
- data/vendor/bundle/gems/octokit-4.7.0/lib/octokit/client/reviews.rb +0 -174
- data/vendor/bundle/gems/octokit-4.7.0/lib/octokit/error.rb +0 -286
- data/vendor/bundle/gems/octokit-4.7.0/lib/octokit/preview.rb +0 -38
- data/vendor/bundle/gems/octokit-4.7.0/lib/octokit/repository.rb +0 -93
- data/vendor/bundle/gems/octokit-4.7.0/lib/octokit/version.rb +0 -17
- data/vendor/bundle/gems/power_assert-1.1.0/README.rdoc +0 -26
- data/vendor/bundle/gems/power_assert-1.1.0/lib/power_assert/context.rb +0 -212
- data/vendor/bundle/gems/power_assert-1.1.0/lib/power_assert/parser.rb +0 -240
- data/vendor/bundle/gems/power_assert-1.1.0/lib/power_assert/version.rb +0 -3
- data/vendor/bundle/gems/pry-0.11.0/CHANGELOG.md +0 -752
- data/vendor/bundle/gems/pry-0.11.0/LICENSE +0 -25
- data/vendor/bundle/gems/pry-0.11.0/README.md +0 -407
- data/vendor/bundle/gems/pry-0.11.0/bin/pry +0 -12
- data/vendor/bundle/gems/pry-0.11.0/lib/pry.rb +0 -161
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/basic_object.rb +0 -6
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/cli.rb +0 -225
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/code.rb +0 -353
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/code/code_file.rb +0 -109
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/code/code_range.rb +0 -71
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/code/loc.rb +0 -92
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/code_object.rb +0 -195
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/color_printer.rb +0 -64
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/command.rb +0 -716
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/command_set.rb +0 -450
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands.rb +0 -6
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/amend_line.rb +0 -99
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/bang.rb +0 -20
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/bang_pry.rb +0 -17
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/cat.rb +0 -62
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/cat/abstract_formatter.rb +0 -27
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/cat/exception_formatter.rb +0 -78
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/cat/file_formatter.rb +0 -71
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/cat/input_expression_formatter.rb +0 -43
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/cd.rb +0 -41
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/change_inspector.rb +0 -27
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/change_prompt.rb +0 -26
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/code_collector.rb +0 -167
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/disable_pry.rb +0 -27
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/disabled_commands.rb +0 -2
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/easter_eggs.rb +0 -112
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/edit.rb +0 -199
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/edit/exception_patcher.rb +0 -25
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/edit/file_and_line_locator.rb +0 -36
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/exit.rb +0 -42
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/exit_all.rb +0 -29
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/exit_program.rb +0 -23
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/find_method.rb +0 -193
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/fix_indent.rb +0 -19
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/gem_cd.rb +0 -26
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/gem_install.rb +0 -32
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/gem_list.rb +0 -33
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/gem_open.rb +0 -29
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/gem_readme.rb +0 -25
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/gem_search.rb +0 -40
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/gist.rb +0 -101
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/help.rb +0 -164
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/hist.rb +0 -180
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/import_set.rb +0 -22
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/install_command.rb +0 -53
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/jump_to.rb +0 -29
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/list_inspectors.rb +0 -35
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/list_prompts.rb +0 -35
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/ls.rb +0 -116
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/ls/constants.rb +0 -58
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/ls/formatter.rb +0 -50
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/ls/globals.rb +0 -48
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/ls/grep.rb +0 -21
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/ls/instance_vars.rb +0 -39
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/ls/interrogatable.rb +0 -18
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/ls/jruby_hacks.rb +0 -49
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/ls/local_names.rb +0 -35
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/ls/local_vars.rb +0 -39
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/ls/ls_entity.rb +0 -70
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/ls/methods.rb +0 -57
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/ls/methods_helper.rb +0 -46
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/ls/self_methods.rb +0 -34
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/nesting.rb +0 -25
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/play.rb +0 -103
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/pry_backtrace.rb +0 -25
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/pry_version.rb +0 -17
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/raise_up.rb +0 -32
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/reload_code.rb +0 -62
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/reset.rb +0 -18
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/ri.rb +0 -64
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/save_file.rb +0 -61
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/shell_command.rb +0 -74
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/shell_mode.rb +0 -25
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/show_doc.rb +0 -83
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/show_info.rb +0 -209
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/show_input.rb +0 -17
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/show_source.rb +0 -50
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/simple_prompt.rb +0 -22
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/stat.rb +0 -40
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/switch_to.rb +0 -23
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/toggle_color.rb +0 -24
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/watch_expression.rb +0 -105
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/watch_expression/expression.rb +0 -38
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/whereami.rb +0 -197
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/commands/wtf.rb +0 -57
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/config.rb +0 -11
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/config/behavior.rb +0 -230
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/config/convenience.rb +0 -25
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/config/default.rb +0 -149
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/config/memoization.rb +0 -44
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/core_extensions.rb +0 -141
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/editor.rb +0 -135
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/exceptions.rb +0 -78
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/forwardable.rb +0 -23
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/helpers.rb +0 -5
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/helpers/base_helpers.rb +0 -109
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/helpers/command_helpers.rb +0 -156
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/helpers/documentation_helpers.rb +0 -76
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/helpers/options_helpers.rb +0 -27
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/helpers/table.rb +0 -109
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/helpers/text.rb +0 -101
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/history.rb +0 -148
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/history_array.rb +0 -121
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/hooks.rb +0 -171
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/indent.rb +0 -410
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/input_completer.rb +0 -260
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/input_lock.rb +0 -132
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/inspector.rb +0 -27
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/last_exception.rb +0 -61
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/method.rb +0 -546
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/method/disowned.rb +0 -54
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/method/patcher.rb +0 -122
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/method/weird_method_locator.rb +0 -188
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/object_path.rb +0 -82
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/output.rb +0 -49
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/pager.rb +0 -242
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/plugins.rb +0 -118
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/prompt.rb +0 -26
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/pry_class.rb +0 -401
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/pry_instance.rb +0 -666
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/rbx_path.rb +0 -22
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/repl.rb +0 -232
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/repl_file_loader.rb +0 -74
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/rubygem.rb +0 -84
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/slop.rb +0 -661
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/slop/LICENSE +0 -20
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/slop/commands.rb +0 -196
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/slop/option.rb +0 -208
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/terminal.rb +0 -90
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/test/helper.rb +0 -179
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/version.rb +0 -3
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/wrapped_module.rb +0 -378
- data/vendor/bundle/gems/pry-0.11.0/lib/pry/wrapped_module/candidate.rb +0 -131
- data/vendor/bundle/gems/pry-byebug-3.5.0/CHANGELOG.md +0 -173
- data/vendor/bundle/gems/pry-byebug-3.5.0/LICENSE +0 -20
- data/vendor/bundle/gems/pry-byebug-3.5.0/README.md +0 -176
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/byebug/processors/pry_processor.rb +0 -164
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug.rb +0 -2
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/base.rb +0 -25
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/cli.rb +0 -4
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/commands.rb +0 -10
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/commands/backtrace.rb +0 -29
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/commands/breakpoint.rb +0 -133
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/commands/continue.rb +0 -39
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/commands/down.rb +0 -33
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/commands/exit_all.rb +0 -14
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/commands/finish.rb +0 -26
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/commands/frame.rb +0 -33
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/commands/next.rb +0 -37
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/commands/step.rb +0 -32
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/commands/up.rb +0 -33
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/control_d_handler.rb +0 -7
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/helpers/breakpoints.rb +0 -84
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/helpers/multiline.rb +0 -21
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/helpers/navigation.rb +0 -17
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/pry_ext.rb +0 -16
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/pry_remote_ext.rb +0 -42
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/version.rb +0 -6
- data/vendor/bundle/gems/pry-byebug-3.5.0/lib/pry/byebug/breakpoints.rb +0 -164
- data/vendor/bundle/gems/public_suffix-3.0.0/CHANGELOG.md +0 -324
- data/vendor/bundle/gems/public_suffix-3.0.0/README.md +0 -202
- data/vendor/bundle/gems/public_suffix-3.0.0/data/list.txt +0 -12225
- data/vendor/bundle/gems/public_suffix-3.0.0/lib/public_suffix/list.rb +0 -245
- data/vendor/bundle/gems/public_suffix-3.0.0/lib/public_suffix/rule.rb +0 -348
- data/vendor/bundle/gems/public_suffix-3.0.0/lib/public_suffix/version.rb +0 -10
- data/vendor/bundle/gems/public_suffix-3.0.0/test/unit/list_test.rb +0 -239
- data/vendor/bundle/gems/public_suffix-3.0.0/test/unit/public_suffix_test.rb +0 -186
- data/vendor/bundle/gems/rack-test-0.7.0/History.md +0 -191
- data/vendor/bundle/gems/rack-test-0.7.0/README.md +0 -110
- data/vendor/bundle/gems/rack-test-0.7.0/lib/rack/mock_session.rb +0 -66
- data/vendor/bundle/gems/rack-test-0.7.0/lib/rack/test.rb +0 -323
- data/vendor/bundle/gems/rack-test-0.7.0/lib/rack/test/cookie_jar.rb +0 -198
- data/vendor/bundle/gems/rack-test-0.7.0/lib/rack/test/methods.rb +0 -83
- data/vendor/bundle/gems/rack-test-0.7.0/lib/rack/test/mock_digest_request.rb +0 -29
- data/vendor/bundle/gems/rack-test-0.7.0/lib/rack/test/uploaded_file.rb +0 -64
- data/vendor/bundle/gems/rack-test-0.7.0/lib/rack/test/utils.rb +0 -156
- data/vendor/bundle/gems/rack-test-0.7.0/lib/rack/test/version.rb +0 -5
- data/vendor/bundle/gems/rake-12.1.0/History.rdoc +0 -2266
- data/vendor/bundle/gems/rake-12.1.0/lib/rake/application.rb +0 -786
- data/vendor/bundle/gems/rake-12.1.0/lib/rake/file_list.rb +0 -435
- data/vendor/bundle/gems/rake-12.1.0/lib/rake/file_task.rb +0 -54
- data/vendor/bundle/gems/rake-12.1.0/lib/rake/rake_module.rb +0 -39
- data/vendor/bundle/gems/rake-12.1.0/lib/rake/version.rb +0 -10
- data/vendor/bundle/gems/rake-12.1.0/rake.gemspec +0 -43
- data/vendor/bundle/gems/rspec-3.6.0/lib/rspec/version.rb +0 -5
- data/vendor/bundle/gems/rspec-core-3.6.0/Changelog.md +0 -2167
- data/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/configuration.rb +0 -2177
- data/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/drb.rb +0 -113
- data/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/example.rb +0 -653
- data/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/example_group.rb +0 -883
- data/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/formatters/base_formatter.rb +0 -70
- data/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/formatters/deprecation_formatter.rb +0 -223
- data/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/formatters/html_printer.rb +0 -414
- data/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/formatters/html_snippet_extractor.rb +0 -118
- data/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/formatters/json_formatter.rb +0 -101
- data/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/hooks.rb +0 -624
- data/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/notifications.rb +0 -514
- data/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/option_parser.rb +0 -309
- data/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/version.rb +0 -9
- data/vendor/bundle/gems/rspec-expectations-3.6.0/Changelog.md +0 -1072
- data/vendor/bundle/gems/rspec-expectations-3.6.0/lib/rspec/expectations/version.rb +0 -8
- data/vendor/bundle/gems/rspec-expectations-3.6.0/lib/rspec/matchers.rb +0 -1025
- data/vendor/bundle/gems/rspec-expectations-3.6.0/lib/rspec/matchers/built_in/base_matcher.rb +0 -193
- data/vendor/bundle/gems/rspec-expectations-3.6.0/lib/rspec/matchers/built_in/be.rb +0 -288
- data/vendor/bundle/gems/rspec-expectations-3.6.0/lib/rspec/matchers/built_in/respond_to.rb +0 -165
- data/vendor/bundle/gems/rspec-expectations-3.6.0/lib/rspec/matchers/built_in/yield.rb +0 -432
- data/vendor/bundle/gems/rspec-mocks-3.6.0/Changelog.md +0 -1073
- data/vendor/bundle/gems/rspec-mocks-3.6.0/README.md +0 -460
- data/vendor/bundle/gems/rspec-mocks-3.6.0/lib/rspec/mocks/argument_matchers.rb +0 -320
- data/vendor/bundle/gems/rspec-mocks-3.6.0/lib/rspec/mocks/error_generator.rb +0 -369
- data/vendor/bundle/gems/rspec-mocks-3.6.0/lib/rspec/mocks/version.rb +0 -9
- data/vendor/bundle/gems/rspec-support-3.6.0/Changelog.md +0 -211
- data/vendor/bundle/gems/rspec-support-3.6.0/lib/rspec/support.rb +0 -139
- data/vendor/bundle/gems/rspec-support-3.6.0/lib/rspec/support/differ.rb +0 -215
- data/vendor/bundle/gems/rspec-support-3.6.0/lib/rspec/support/object_formatter.rb +0 -268
- data/vendor/bundle/gems/rspec-support-3.6.0/lib/rspec/support/recursive_const_methods.rb +0 -76
- data/vendor/bundle/gems/rspec-support-3.6.0/lib/rspec/support/ruby_features.rb +0 -162
- data/vendor/bundle/gems/rspec-support-3.6.0/lib/rspec/support/version.rb +0 -7
- data/vendor/bundle/gems/rspec-support-3.6.0/lib/rspec/support/warnings.rb +0 -39
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/CHANGES +0 -1284
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/Gemfile.lock +0 -56
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium-webdriver.rb +0 -20
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/server.rb +0 -270
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver.rb +0 -99
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/chrome.rb +0 -49
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/chrome/driver.rb +0 -124
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/chrome/options.rb +0 -170
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/chrome/profile.rb +0 -111
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/chrome/service.rb +0 -61
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common.rb +0 -73
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/action_builder.rb +0 -365
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/alert.rb +0 -53
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/bridge_helper.rb +0 -81
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/driver.rb +0 -295
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/driver_extensions/has_addons.rb +0 -50
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/driver_extensions/has_location.rb +0 -42
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/driver_extensions/has_network_connection.rb +0 -58
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/driver_extensions/has_remote_status.rb +0 -30
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/driver_extensions/has_session_id.rb +0 -39
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/driver_extensions/has_touch_screen.rb +0 -36
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/driver_extensions/has_web_storage.rb +0 -38
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/driver_extensions/rotatable.rb +0 -61
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb +0 -64
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/driver_extensions/uploads_files.rb +0 -62
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/element.rb +0 -335
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/error.rb +0 -225
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/file_reaper.rb +0 -67
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/html5/local_storage.rb +0 -59
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/html5/session_storage.rb +0 -61
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/html5/shared_web_storage.rb +0 -52
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/interactions/input_device.rb +0 -53
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/interactions/interaction.rb +0 -52
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/interactions/interactions.rb +0 -43
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/interactions/key_actions.rb +0 -145
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/interactions/key_input.rb +0 -64
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/interactions/none_input.rb +0 -35
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/interactions/pointer_actions.rb +0 -355
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/interactions/pointer_input.rb +0 -134
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/keyboard.rb +0 -69
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/keys.rb +0 -145
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/log_entry.rb +0 -48
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/logger.rb +0 -142
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/logs.rb +0 -40
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/mouse.rb +0 -88
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/navigation.rb +0 -60
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/options.rb +0 -153
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/platform.rb +0 -223
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/port_prober.rb +0 -61
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/profile_helper.rb +0 -83
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/proxy.rb +0 -156
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/search_context.rb +0 -112
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/service.rb +0 -163
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/socket_lock.rb +0 -77
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/socket_poller.rb +0 -119
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/target_locator.rb +0 -111
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/timeouts.rb +0 -55
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/touch_action_builder.rb +0 -81
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/touch_screen.rb +0 -122
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/w3c_action_builder.rb +0 -211
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/w3c_error.rb +0 -204
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/w3c_options.rb +0 -45
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/wait.rb +0 -77
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/window.rb +0 -163
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/common/zipper.rb +0 -99
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/edge.rb +0 -39
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/edge/bridge.rb +0 -76
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/edge/driver.rb +0 -80
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/edge/service.rb +0 -57
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/firefox.rb +0 -62
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/firefox/binary.rb +0 -188
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/firefox/driver.rb +0 -50
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/firefox/extension.rb +0 -83
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/firefox/extension/webdriver.xpi +0 -0
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/firefox/launcher.rb +0 -110
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/firefox/legacy/driver.rb +0 -81
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/firefox/marionette/bridge.rb +0 -49
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/firefox/marionette/driver.rb +0 -103
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/firefox/options.rb +0 -139
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/firefox/profile.rb +0 -286
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/firefox/profiles_ini.rb +0 -73
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/firefox/service.rb +0 -65
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/firefox/util.rb +0 -46
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/ie.rb +0 -37
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/ie/driver.rb +0 -103
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/ie/options.rb +0 -138
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/ie/service.rb +0 -60
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/phantomjs.rb +0 -42
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/phantomjs/driver.rb +0 -70
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/phantomjs/service.rb +0 -45
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/remote.rb +0 -35
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/remote/bridge.rb +0 -196
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/remote/capabilities.rb +0 -261
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/remote/driver.rb +0 -51
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/remote/http/common.rb +0 -97
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/remote/http/curb.rb +0 -97
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/remote/http/default.rb +0 -179
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/remote/http/persistent.rb +0 -60
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/remote/oss/bridge.rb +0 -588
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/remote/oss/commands.rb +0 -223
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/remote/response.rb +0 -130
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/remote/server_error.rb +0 -34
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/remote/w3c/bridge.rb +0 -575
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/remote/w3c/capabilities.rb +0 -298
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/remote/w3c/commands.rb +0 -150
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/safari.rb +0 -58
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/safari/driver.rb +0 -64
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/safari/service.rb +0 -59
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/support.rb +0 -25
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/support/abstract_event_listener.rb +0 -87
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/support/block_event_listener.rb +0 -34
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/support/color.rb +0 -146
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/support/escaper.rb +0 -43
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/support/event_firing_bridge.rb +0 -129
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/lib/selenium/webdriver/support/select.rb +0 -271
- data/vendor/bundle/gems/selenium-webdriver-3.5.2/selenium-webdriver.gemspec +0 -32
- data/vendor/bundle/gems/sequel-5.0.0/CHANGELOG +0 -7092
- data/vendor/bundle/gems/sequel-5.0.0/bin/sequel +0 -251
- data/vendor/bundle/gems/sequel-5.0.0/doc/advanced_associations.rdoc +0 -764
- data/vendor/bundle/gems/sequel-5.0.0/doc/association_basics.rdoc +0 -1759
- data/vendor/bundle/gems/sequel-5.0.0/doc/schema_modification.rdoc +0 -668
- data/vendor/bundle/gems/sequel-5.0.0/doc/security.rdoc +0 -433
- data/vendor/bundle/gems/sequel-5.0.0/doc/testing.rdoc +0 -166
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/adapters/jdbc.rb +0 -781
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/adapters/jdbc/h2.rb +0 -236
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/adapters/jdbc/hsqldb.rb +0 -220
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/adapters/jdbc/mysql.rb +0 -79
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/adapters/jdbc/postgresql.rb +0 -228
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/adapters/oracle.rb +0 -409
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/adapters/postgres.rb +0 -831
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/adapters/shared/mysql.rb +0 -938
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/adapters/shared/postgres.rb +0 -1761
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/adapters/shared/sqlite.rb +0 -779
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/adapters/utils/mysql_mysql2.rb +0 -81
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/connection_pool.rb +0 -135
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/database/misc.rb +0 -524
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/database/schema_generator.rb +0 -628
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/dataset/actions.rb +0 -1219
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/dataset/dataset_module.rb +0 -46
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/dataset/features.rb +0 -211
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/dataset/query.rb +0 -1306
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/dataset/sql.rb +0 -1534
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/extensions/migration.rb +0 -795
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/extensions/pg_inet.rb +0 -117
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/model/associations.rb +0 -3455
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/model/base.rb +0 -2214
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/plugins/class_table_inheritance.rb +0 -403
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/plugins/validation_helpers.rb +0 -316
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/timezones.rb +0 -211
- data/vendor/bundle/gems/sequel-5.0.0/lib/sequel/version.rb +0 -20
- data/vendor/bundle/gems/sequel-5.0.0/spec/adapters/mysql_spec.rb +0 -1030
- data/vendor/bundle/gems/sequel-5.0.0/spec/adapters/postgres_spec.rb +0 -3625
- data/vendor/bundle/gems/sequel-5.0.0/spec/core/database_spec.rb +0 -2641
- data/vendor/bundle/gems/sequel-5.0.0/spec/core/dataset_spec.rb +0 -5374
- data/vendor/bundle/gems/sequel-5.0.0/spec/core/mock_adapter_spec.rb +0 -657
- data/vendor/bundle/gems/sequel-5.0.0/spec/core/schema_spec.rb +0 -1787
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/association_pks_spec.rb +0 -430
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/class_table_inheritance_spec.rb +0 -532
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/composition_spec.rb +0 -264
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/list_spec.rb +0 -276
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/many_through_many_spec.rb +0 -2185
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/migration_spec.rb +0 -794
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/optimistic_locking_spec.rb +0 -127
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/pg_array_associations_spec.rb +0 -797
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/pg_hstore_spec.rb +0 -208
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/prepared_statements_safe_spec.rb +0 -66
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/pretty_table_spec.rb +0 -92
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/rcte_tree_spec.rb +0 -392
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/schema_dumper_spec.rb +0 -857
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/serialization_spec.rb +0 -365
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/timestamps_spec.rb +0 -211
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/update_or_create_spec.rb +0 -87
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/uuid_spec.rb +0 -102
- data/vendor/bundle/gems/sequel-5.0.0/spec/extensions/xml_serializer_spec.rb +0 -211
- data/vendor/bundle/gems/sequel-5.0.0/spec/integration/database_test.rb +0 -113
- data/vendor/bundle/gems/sequel-5.0.0/spec/integration/dataset_test.rb +0 -1841
- data/vendor/bundle/gems/sequel-5.0.0/spec/integration/plugin_test.rb +0 -2302
- data/vendor/bundle/gems/sequel-5.0.0/spec/integration/prepared_statement_test.rb +0 -398
- data/vendor/bundle/gems/sequel-5.0.0/spec/integration/schema_test.rb +0 -867
- data/vendor/bundle/gems/sequel-5.0.0/spec/integration/spec_helper.rb +0 -62
- data/vendor/bundle/gems/sequel-5.0.0/spec/model/base_spec.rb +0 -792
- data/vendor/bundle/gems/sequel-5.0.0/spec/model/eager_loading_spec.rb +0 -2237
- data/vendor/bundle/gems/sequel-5.0.0/spec/model/model_spec.rb +0 -958
- data/vendor/bundle/gems/sequel-5.0.0/spec/model/record_spec.rb +0 -2083
- data/vendor/bundle/gems/test-unit-3.2.5/README.md +0 -101
- data/vendor/bundle/gems/test-unit-3.2.5/doc/text/news.md +0 -1256
- data/vendor/bundle/gems/test-unit-3.2.5/lib/test/unit/autorunner.rb +0 -533
- data/vendor/bundle/gems/test-unit-3.2.5/lib/test/unit/collector/load.rb +0 -202
- data/vendor/bundle/gems/test-unit-3.2.5/lib/test/unit/runner/console.rb +0 -59
- data/vendor/bundle/gems/test-unit-3.2.5/lib/test/unit/ui/console/testrunner.rb +0 -699
- data/vendor/bundle/gems/test-unit-3.2.5/lib/test/unit/version.rb +0 -5
- data/vendor/bundle/gems/tins-1.15.0/README.md +0 -86
- data/vendor/bundle/gems/tins-1.15.0/VERSION +0 -1
- data/vendor/bundle/gems/tins-1.15.0/lib/tins.rb +0 -59
- data/vendor/bundle/gems/tins-1.15.0/lib/tins/hash_symbolize_keys_recursive.rb +0 -28
- data/vendor/bundle/gems/tins-1.15.0/lib/tins/version.rb +0 -8
- data/vendor/bundle/gems/tins-1.15.0/lib/tins/xt.rb +0 -44
- data/vendor/bundle/gems/tins-1.15.0/tins.gemspec +0 -41
- data/vendor/bundle/specifications/byebug-9.1.0.gemspec +0 -38
- data/vendor/bundle/specifications/capybara-2.15.1.gemspec +0 -85
- data/vendor/bundle/specifications/childprocess-0.7.1.gemspec +0 -45
- data/vendor/bundle/specifications/coderay-1.1.2.gemspec +0 -26
- data/vendor/bundle/specifications/fastimage-2.1.0.gemspec +0 -45
- data/vendor/bundle/specifications/mail-2.6.6.gemspec +0 -47
- data/vendor/bundle/specifications/method_source-0.8.2.gemspec +0 -34
- data/vendor/bundle/specifications/mini_mime-0.1.4.gemspec +0 -39
- data/vendor/bundle/specifications/octokit-4.7.0.gemspec +0 -36
- data/vendor/bundle/specifications/power_assert-1.1.0.gemspec +0 -51
- data/vendor/bundle/specifications/pry-0.11.0.gemspec +0 -41
- data/vendor/bundle/specifications/pry-byebug-3.5.0.gemspec +0 -38
- data/vendor/bundle/specifications/public_suffix-3.0.0.gemspec +0 -41
- data/vendor/bundle/specifications/rack-test-0.7.0.gemspec +0 -53
- data/vendor/bundle/specifications/rake-12.1.0.gemspec +0 -49
- data/vendor/bundle/specifications/rspec-3.6.0.gemspec +0 -42
- data/vendor/bundle/specifications/rspec-core-3.6.0.gemspec +0 -62
- data/vendor/bundle/specifications/rspec-expectations-3.6.0.gemspec +0 -50
- data/vendor/bundle/specifications/rspec-mocks-3.6.0.gemspec +0 -50
- data/vendor/bundle/specifications/rspec-support-3.6.0.gemspec +0 -41
- data/vendor/bundle/specifications/selenium-webdriver-3.5.2.gemspec +0 -48
- data/vendor/bundle/specifications/sequel-5.0.0.gemspec +0 -52
- data/vendor/bundle/specifications/test-unit-3.2.5.gemspec +0 -47
- data/vendor/bundle/specifications/tins-1.15.0.gemspec +0 -42
File without changes
|
@@ -0,0 +1,3673 @@
|
|
1
|
+
SEQUEL_ADAPTER_TEST = :postgres
|
2
|
+
|
3
|
+
require_relative 'spec_helper'
|
4
|
+
|
5
|
+
uses_pg = Sequel::Postgres::USES_PG if DB.adapter_scheme == :postgres
|
6
|
+
uses_pg_or_jdbc = uses_pg || DB.adapter_scheme == :jdbc
|
7
|
+
|
8
|
+
DB.extension :pg_array, :pg_range, :pg_row, :pg_inet, :pg_json, :pg_enum
|
9
|
+
begin
|
10
|
+
DB.extension :pg_interval
|
11
|
+
rescue LoadError
|
12
|
+
end
|
13
|
+
DB.extension :pg_hstore if DB.type_supported?('hstore')
|
14
|
+
|
15
|
+
describe "PostgreSQL", '#create_table' do
|
16
|
+
before do
|
17
|
+
@db = DB
|
18
|
+
@db.test_connection
|
19
|
+
end
|
20
|
+
after do
|
21
|
+
@db.drop_table?(:tmp_dolls, :unlogged_dolls)
|
22
|
+
end
|
23
|
+
|
24
|
+
it "should create a temporary table" do
|
25
|
+
@db.create_table(:tmp_dolls, :temp => true){text :name}
|
26
|
+
@db.table_exists?(:tmp_dolls).must_equal true
|
27
|
+
@db.disconnect
|
28
|
+
@db.table_exists?(:tmp_dolls).must_equal false
|
29
|
+
end
|
30
|
+
|
31
|
+
it "temporary table should support :on_commit option" do
|
32
|
+
@db.drop_table?(:some_table)
|
33
|
+
@db.transaction do
|
34
|
+
@db.create_table(:some_table, :temp => true, :on_commit => :drop){text :name}
|
35
|
+
end
|
36
|
+
@db.table_exists?(:some_table).must_equal false
|
37
|
+
|
38
|
+
@db.transaction do
|
39
|
+
@db.create_table(:some_table, :temp => true, :on_commit => :delete_rows){text :name}
|
40
|
+
@db[:some_table].insert('a')
|
41
|
+
end
|
42
|
+
@db.table_exists?(:some_table).must_equal true
|
43
|
+
@db[:some_table].empty?.must_equal true
|
44
|
+
|
45
|
+
@db.drop_table(:some_table)
|
46
|
+
@db.transaction do
|
47
|
+
@db.create_table(:some_table, :temp => true, :on_commit => :preserve_rows){text :name}
|
48
|
+
@db[:some_table].insert('a')
|
49
|
+
end
|
50
|
+
@db.table_exists?(:some_table).must_equal true
|
51
|
+
@db[:some_table].count.must_equal 1
|
52
|
+
@db.drop_table(:some_table)
|
53
|
+
end
|
54
|
+
|
55
|
+
it "temporary table should accept :on_commit with :as option" do
|
56
|
+
@db.drop_table?(:some_table)
|
57
|
+
@db.transaction do
|
58
|
+
@db.create_table(:some_table, :temp => true, :on_commit => :drop, :as => 'select 1')
|
59
|
+
end
|
60
|
+
@db.table_exists?(:some_table).must_equal false
|
61
|
+
end
|
62
|
+
|
63
|
+
it ":on_commit should raise error if not used on a temporary table" do
|
64
|
+
proc{@db.create_table(:some_table, :on_commit => :drop)}.must_raise(Sequel::Error)
|
65
|
+
end
|
66
|
+
|
67
|
+
it ":on_commit should raise error if given unsupported value" do
|
68
|
+
proc{@db.create_table(:some_table, :temp => true, :on_commit => :unsupported){text :name}}.must_raise(Sequel::Error)
|
69
|
+
end
|
70
|
+
|
71
|
+
it "should create an unlogged table" do
|
72
|
+
@db.create_table(:unlogged_dolls, :unlogged => true){text :name}
|
73
|
+
end
|
74
|
+
|
75
|
+
it "should create a table inheriting from another table" do
|
76
|
+
@db.create_table(:unlogged_dolls){text :name}
|
77
|
+
@db.create_table(:tmp_dolls, :inherits=>:unlogged_dolls){}
|
78
|
+
@db[:tmp_dolls].insert('a')
|
79
|
+
@db[:unlogged_dolls].all.must_equal [{:name=>'a'}]
|
80
|
+
end
|
81
|
+
|
82
|
+
it "should create a table inheriting from multiple tables" do
|
83
|
+
begin
|
84
|
+
@db.create_table(:unlogged_dolls){text :name}
|
85
|
+
@db.create_table(:tmp_dolls){text :bar}
|
86
|
+
@db.create_table!(:items, :inherits=>[:unlogged_dolls, :tmp_dolls]){text :foo}
|
87
|
+
@db[:items].insert(:name=>'a', :bar=>'b', :foo=>'c')
|
88
|
+
@db[:unlogged_dolls].all.must_equal [{:name=>'a'}]
|
89
|
+
@db[:tmp_dolls].all.must_equal [{:bar=>'b'}]
|
90
|
+
@db[:items].all.must_equal [{:name=>'a', :bar=>'b', :foo=>'c'}]
|
91
|
+
ensure
|
92
|
+
@db.drop_table?(:items)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
it "should not allow to pass both :temp and :unlogged" do
|
97
|
+
proc do
|
98
|
+
@db.create_table(:temp_unlogged_dolls, :temp => true, :unlogged => true){text :name}
|
99
|
+
end.must_raise(Sequel::Error, "can't provide both :temp and :unlogged to create_table")
|
100
|
+
end
|
101
|
+
|
102
|
+
it "should support :if_exists option to drop_column" do
|
103
|
+
@db.create_table(:tmp_dolls){Integer :a; Integer :b}
|
104
|
+
2.times do
|
105
|
+
@db.drop_column :tmp_dolls, :b, :if_exists=>true
|
106
|
+
@db[:tmp_dolls].columns.must_equal [:a]
|
107
|
+
end
|
108
|
+
end if DB.server_version >= 90000
|
109
|
+
|
110
|
+
it "should support pg_loose_count extension" do
|
111
|
+
@db.extension :pg_loose_count
|
112
|
+
@db.create_table(:tmp_dolls){text :name}
|
113
|
+
@db.loose_count(:tmp_dolls).must_be_kind_of(Integer)
|
114
|
+
@db.loose_count(:tmp_dolls).must_equal 0
|
115
|
+
@db.loose_count(Sequel[:public][:tmp_dolls]).must_equal 0
|
116
|
+
@db[:tmp_dolls].insert('a')
|
117
|
+
@db << 'VACUUM ANALYZE tmp_dolls'
|
118
|
+
@db.loose_count(:tmp_dolls).must_equal 1
|
119
|
+
@db.loose_count(Sequel[:public][:tmp_dolls]).must_equal 1
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
describe "PostgreSQL views" do
|
124
|
+
before do
|
125
|
+
@db = DB
|
126
|
+
@db.drop_table?(:items, :cascade=>true)
|
127
|
+
@db.create_table(:items){Integer :number}
|
128
|
+
@db[:items].insert(10)
|
129
|
+
@db[:items].insert(20)
|
130
|
+
end
|
131
|
+
after do
|
132
|
+
@opts ||={}
|
133
|
+
@db.drop_view(:items_view, @opts.merge(:if_exists=>true, :cascade=>true)) rescue nil
|
134
|
+
@db.drop_table?(:items)
|
135
|
+
end
|
136
|
+
|
137
|
+
it "should support temporary views" do
|
138
|
+
@db.create_view(:items_view, @db[:items].where(:number=>10), :temp=>true)
|
139
|
+
@db[:items_view].map(:number).must_equal [10]
|
140
|
+
@db.create_or_replace_view(:items_view, @db[:items].where(:number=>20), :temp=>true)
|
141
|
+
@db[:items_view].map(:number).must_equal [20]
|
142
|
+
end
|
143
|
+
|
144
|
+
it "should support recursive views" do
|
145
|
+
@db.create_view(:items_view, @db[:items].where(:number=>10).union(@db[:items, :items_view].where(Sequel.-(:number, 5)=>:n).select(:number), :all=>true, :from_self=>false), :recursive=>[:n])
|
146
|
+
@db[:items_view].select_order_map(:n).must_equal [10]
|
147
|
+
@db[:items].insert(15)
|
148
|
+
@db[:items_view].select_order_map(:n).must_equal [10, 15, 20]
|
149
|
+
end if DB.server_version >= 90300
|
150
|
+
|
151
|
+
it "should support materialized views" do
|
152
|
+
@opts = {:materialized=>true}
|
153
|
+
@db.create_view(:items_view, @db[:items].where{number >= 10}, @opts)
|
154
|
+
@db[:items_view].select_order_map(:number).must_equal [10, 20]
|
155
|
+
@db[:items].insert(15)
|
156
|
+
@db[:items_view].select_order_map(:number).must_equal [10, 20]
|
157
|
+
@db.refresh_view(:items_view)
|
158
|
+
@db[:items_view].select_order_map(:number).must_equal [10, 15, 20]
|
159
|
+
@db.views.wont_include :items_view
|
160
|
+
@db.views(@opts).must_include :items_view
|
161
|
+
end if DB.server_version >= 90300
|
162
|
+
|
163
|
+
it "should support refreshing materialized views concurrently" do
|
164
|
+
@opts = {:materialized=>true}
|
165
|
+
@db.create_view(:items_view, @db[:items].where{number >= 10}, @opts)
|
166
|
+
@db.refresh_view(:items_view)
|
167
|
+
proc{@db.refresh_view(:items_view, :concurrently=>true)}.must_raise(Sequel::DatabaseError)
|
168
|
+
@db.add_index :items_view, :number, :unique=>true
|
169
|
+
@db.refresh_view(:items_view, :concurrently=>true)
|
170
|
+
end if DB.server_version >= 90400
|
171
|
+
|
172
|
+
it "should support :if_exists=>true for not raising an error if the view does not exist" do
|
173
|
+
@db.drop_view(:items_view, :if_exists=>true)
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
describe "PostgreSQL", 'INSERT ON CONFLICT' do
|
178
|
+
before(:all) do
|
179
|
+
@db = DB
|
180
|
+
@db.create_table!(:ic_test){Integer :a; Integer :b; Integer :c; TrueClass :c_is_unique, :default=>false; unique :a, :name=>:ic_test_a_uidx; unique [:b, :c], :name=>:ic_test_b_c_uidx; index [:c], :where=>:c_is_unique, :unique=>true}
|
181
|
+
@ds = @db[:ic_test]
|
182
|
+
end
|
183
|
+
before do
|
184
|
+
@ds.delete
|
185
|
+
end
|
186
|
+
after(:all) do
|
187
|
+
@db.drop_table?(:ic_test)
|
188
|
+
end
|
189
|
+
|
190
|
+
it "Dataset#insert_ignore and insert_conflict should ignore uniqueness violations" do
|
191
|
+
@ds.insert(1, 2, 3)
|
192
|
+
@ds.insert(10, 11, 3, true)
|
193
|
+
proc{@ds.insert(1, 3, 4)}.must_raise Sequel::UniqueConstraintViolation
|
194
|
+
proc{@ds.insert(11, 12, 3, true)}.must_raise Sequel::UniqueConstraintViolation
|
195
|
+
@ds.insert_ignore.insert(1, 3, 4).must_be_nil
|
196
|
+
@ds.insert_conflict.insert(1, 3, 4).must_be_nil
|
197
|
+
@ds.insert_conflict.insert(11, 12, 3, true).must_be_nil
|
198
|
+
@ds.insert_conflict(:target=>:a).insert(1, 3, 4).must_be_nil
|
199
|
+
@ds.insert_conflict(:target=>:c, :conflict_where=>:c_is_unique).insert(11, 12, 3, true).must_be_nil
|
200
|
+
@ds.insert_conflict(:constraint=>:ic_test_a_uidx).insert(1, 3, 4).must_be_nil
|
201
|
+
@ds.all.must_equal [{:a=>1, :b=>2, :c=>3, :c_is_unique=>false}, {:a=>10, :b=>11, :c=>3, :c_is_unique=>true}]
|
202
|
+
end
|
203
|
+
|
204
|
+
it "Dataset#insert_ignore and insert_conflict should work with multi_insert/import" do
|
205
|
+
@ds.insert(1, 2, 3)
|
206
|
+
@ds.insert_ignore.multi_insert([{:a=>1, :b=>3, :c=>4}])
|
207
|
+
@ds.insert_ignore.import([:a, :b, :c], [[1, 3, 4]])
|
208
|
+
@ds.all.must_equal [{:a=>1, :b=>2, :c=>3, :c_is_unique=>false}]
|
209
|
+
@ds.insert_conflict(:target=>:a, :update=>{:b=>3}).import([:a, :b, :c], [[1, 3, 4]])
|
210
|
+
@ds.all.must_equal [{:a=>1, :b=>3, :c=>3, :c_is_unique=>false}]
|
211
|
+
@ds.insert_conflict(:target=>:a, :update=>{:b=>4}).multi_insert([{:a=>1, :b=>5, :c=>6}])
|
212
|
+
@ds.all.must_equal [{:a=>1, :b=>4, :c=>3, :c_is_unique=>false}]
|
213
|
+
end
|
214
|
+
|
215
|
+
it "Dataset#insert_conflict should handle upserts" do
|
216
|
+
@ds.insert(1, 2, 3)
|
217
|
+
@ds.insert_conflict(:target=>:a, :update=>{:b=>3}).insert(1, 3, 4).must_be_nil
|
218
|
+
@ds.all.must_equal [{:a=>1, :b=>3, :c=>3, :c_is_unique=>false}]
|
219
|
+
@ds.insert_conflict(:target=>[:b, :c], :update=>{:c=>5}).insert(5, 3, 3).must_be_nil
|
220
|
+
@ds.all.must_equal [{:a=>1, :b=>3, :c=>5, :c_is_unique=>false}]
|
221
|
+
@ds.insert_conflict(:constraint=>:ic_test_a_uidx, :update=>{:b=>4}).insert(1, 3).must_be_nil
|
222
|
+
@ds.all.must_equal [{:a=>1, :b=>4, :c=>5, :c_is_unique=>false}]
|
223
|
+
@ds.insert_conflict(:constraint=>:ic_test_a_uidx, :update=>{:b=>5}, :update_where=>{Sequel[:ic_test][:b]=>4}).insert(1, 3, 4).must_be_nil
|
224
|
+
@ds.all.must_equal [{:a=>1, :b=>5, :c=>5, :c_is_unique=>false}]
|
225
|
+
@ds.insert_conflict(:constraint=>:ic_test_a_uidx, :update=>{:b=>6}, :update_where=>{Sequel[:ic_test][:b]=>4}).insert(1, 3, 4).must_be_nil
|
226
|
+
@ds.all.must_equal [{:a=>1, :b=>5, :c=>5, :c_is_unique=>false}]
|
227
|
+
end
|
228
|
+
end if DB.server_version >= 90500
|
229
|
+
|
230
|
+
describe "A PostgreSQL database" do
|
231
|
+
before(:all) do
|
232
|
+
@db = DB
|
233
|
+
@db.create_table!(Sequel[:public][:testfk]){primary_key :id; foreign_key :i, Sequel[:public][:testfk]}
|
234
|
+
end
|
235
|
+
after(:all) do
|
236
|
+
@db.drop_table?(Sequel[:public][:testfk])
|
237
|
+
end
|
238
|
+
|
239
|
+
it "should provide the server version" do
|
240
|
+
@db.server_version.must_be :>, 70000
|
241
|
+
end
|
242
|
+
|
243
|
+
it "should create a dataset using the VALUES clause via #values" do
|
244
|
+
@db.values([[1, 2], [3, 4]]).map([:column1, :column2]).must_equal [[1, 2], [3, 4]]
|
245
|
+
end
|
246
|
+
|
247
|
+
it "should support ordering in aggregate functions" do
|
248
|
+
@db.from(@db.values([['1'], ['2']]).as(:t, [:a])).get{string_agg(:a, '-').order(Sequel.desc(:a)).as(:c)}.must_equal '2-1'
|
249
|
+
end if DB.server_version >= 90000
|
250
|
+
|
251
|
+
it "should support ordering and limiting with #values" do
|
252
|
+
@db.values([[1, 2], [3, 4]]).reverse(:column2, :column1).limit(1).map([:column1, :column2]).must_equal [[3, 4]]
|
253
|
+
@db.values([[1, 2], [3, 4]]).reverse(:column2, :column1).offset(1).map([:column1, :column2]).must_equal [[1, 2]]
|
254
|
+
end
|
255
|
+
|
256
|
+
it "should support subqueries with #values" do
|
257
|
+
@db.values([[1, 2]]).from_self.cross_join(@db.values([[3, 4]]).as(:x, [:c1, :c2])).map([:column1, :column2, :c1, :c2]).must_equal [[1, 2, 3, 4]]
|
258
|
+
end
|
259
|
+
|
260
|
+
it "should respect the :read_only option per-savepoint" do
|
261
|
+
proc{@db.transaction{@db.transaction(:savepoint=>true, :read_only=>true){@db[Sequel[:public][:testfk]].insert}}}.must_raise(Sequel::DatabaseError)
|
262
|
+
proc{@db.transaction(:auto_savepoint=>true, :read_only=>true){@db.transaction(:read_only=>false){@db[Sequel[:public][:testfk]].insert}}}.must_raise(Sequel::DatabaseError)
|
263
|
+
@db[Sequel[:public][:testfk]].delete
|
264
|
+
@db.transaction{@db[Sequel[:public][:testfk]].insert; @db.transaction(:savepoint=>true, :read_only=>true){@db[Sequel[:public][:testfk]].all;}}
|
265
|
+
@db.transaction{@db.transaction(:savepoint=>true, :read_only=>true){}; @db[Sequel[:public][:testfk]].insert}
|
266
|
+
@db.transaction{@db[Sequel[:public][:testfk]].all; @db.transaction(:savepoint=>true, :read_only=>true){@db[Sequel[:public][:testfk]].all;}}
|
267
|
+
end
|
268
|
+
|
269
|
+
it "should support disable_insert_returning" do
|
270
|
+
ds = @db[Sequel[:public][:testfk]].disable_insert_returning
|
271
|
+
ds.delete
|
272
|
+
ds.insert.must_be_nil
|
273
|
+
id = ds.max(:id)
|
274
|
+
ds.select_order_map([:id, :i]).must_equal [[id, nil]]
|
275
|
+
ds.insert(:i=>id).must_be_nil
|
276
|
+
ds.select_order_map([:id, :i]).must_equal [[id, nil], [id+1, id]]
|
277
|
+
ds.insert_select(:i=>ds.max(:id)).must_be_nil
|
278
|
+
ds.select_order_map([:id, :i]).must_equal [[id, nil], [id+1, id]]
|
279
|
+
c = Class.new(Sequel::Model(ds))
|
280
|
+
c.class_eval do
|
281
|
+
def before_create
|
282
|
+
self.id = model.max(:id)+1
|
283
|
+
super
|
284
|
+
end
|
285
|
+
end
|
286
|
+
c.create(:i=>id+1).must_equal c.load(:id=>id+2, :i=>id+1)
|
287
|
+
ds.select_order_map([:id, :i]).must_equal [[id, nil], [id+1, id], [id+2, id+1]]
|
288
|
+
ds.delete
|
289
|
+
end
|
290
|
+
|
291
|
+
it "should support functions with and without quoting" do
|
292
|
+
ds = @db[Sequel[:public][:testfk]]
|
293
|
+
ds.delete
|
294
|
+
ds.insert
|
295
|
+
ds.get{sum(1)}.must_equal 1
|
296
|
+
ds.get{Sequel.function('pg_catalog.sum', 1)}.must_equal 1
|
297
|
+
ds.get{sum.function(1)}.must_equal 1
|
298
|
+
ds.get{pg_catalog[:sum].function(1)}.must_equal 1
|
299
|
+
ds.delete
|
300
|
+
end
|
301
|
+
|
302
|
+
it "should support a :qualify option to tables and views" do
|
303
|
+
@db.tables(:qualify=>true).must_include(Sequel.qualify('public', 'testfk'))
|
304
|
+
begin
|
305
|
+
@db.create_view(:testfkv, @db[:testfk])
|
306
|
+
@db.views(:qualify=>true).must_include(Sequel.qualify('public', 'testfkv'))
|
307
|
+
ensure
|
308
|
+
@db.drop_view(:testfkv)
|
309
|
+
end
|
310
|
+
end
|
311
|
+
|
312
|
+
it "should handle double underscores in tables when using the qualify option" do
|
313
|
+
@db.create_table!(Sequel.qualify(:public, 'test__fk')){Integer :a}
|
314
|
+
@db.tables(:qualify=>true).must_include(Sequel.qualify('public', 'test__fk'))
|
315
|
+
@db.drop_table(Sequel.qualify(:public, 'test__fk'))
|
316
|
+
end
|
317
|
+
|
318
|
+
it "should not typecast the int2vector type incorrectly" do
|
319
|
+
@db.get(Sequel.cast('10 20', :int2vector)).wont_equal 10
|
320
|
+
end
|
321
|
+
|
322
|
+
it "should not typecast the money type incorrectly" do
|
323
|
+
@db.get(Sequel.cast('10.01', :money)).wont_equal 0
|
324
|
+
end
|
325
|
+
|
326
|
+
it "should correctly parse the schema" do
|
327
|
+
@db.schema(Sequel[:public][:testfk], :reload=>true).map{|c,s| [c, s[:oid]]}.must_equal [[:id, 23], [:i, 23]]
|
328
|
+
end
|
329
|
+
|
330
|
+
it "should parse foreign keys for tables in a schema" do
|
331
|
+
@db.foreign_key_list(Sequel[:public][:testfk]).must_equal [{:on_delete=>:no_action, :on_update=>:no_action, :columns=>[:i], :key=>[:id], :deferrable=>false, :table=>Sequel.qualify(:public, :testfk), :name=>:testfk_i_fkey}]
|
332
|
+
end
|
333
|
+
|
334
|
+
it "should return uuid fields as strings" do
|
335
|
+
@db.get(Sequel.cast('550e8400-e29b-41d4-a716-446655440000', :uuid)).must_equal '550e8400-e29b-41d4-a716-446655440000'
|
336
|
+
end
|
337
|
+
|
338
|
+
it "should handle inserts with placeholder literal string tables" do
|
339
|
+
ds = @db.from(Sequel.lit('?', :testfk))
|
340
|
+
ds.delete
|
341
|
+
ds.insert(:id=>1)
|
342
|
+
ds.select_map(:id).must_equal [1]
|
343
|
+
end
|
344
|
+
|
345
|
+
it "should have notice receiver receive notices" do
|
346
|
+
a = nil
|
347
|
+
Sequel.connect(DB.opts.merge(:notice_receiver=>proc{|r| a = r.result_error_message})){|db| db.do("BEGIN\nRAISE WARNING 'foo';\nEND;")}
|
348
|
+
a.must_equal "WARNING: foo\n"
|
349
|
+
end if uses_pg && DB.server_version >= 90000
|
350
|
+
end
|
351
|
+
|
352
|
+
describe "A PostgreSQL database with domain types" do
|
353
|
+
before(:all) do
|
354
|
+
@db = DB
|
355
|
+
@db << "DROP DOMAIN IF EXISTS positive_number CASCADE"
|
356
|
+
@db << "CREATE DOMAIN positive_number AS numeric(10,2) CHECK (VALUE > 0)"
|
357
|
+
@db.create_table!(:testfk){positive_number :id, :primary_key=>true}
|
358
|
+
end
|
359
|
+
after(:all) do
|
360
|
+
@db.drop_table?(:testfk)
|
361
|
+
@db << "DROP DOMAIN positive_number"
|
362
|
+
end
|
363
|
+
|
364
|
+
it "should correctly parse the schema" do
|
365
|
+
sch = @db.schema(:testfk, :reload=>true)
|
366
|
+
sch.first.last.delete(:domain_oid).must_be_kind_of(Integer)
|
367
|
+
sch.first.last[:db_domain_type].must_equal 'positive_number'
|
368
|
+
end
|
369
|
+
end
|
370
|
+
|
371
|
+
describe "A PostgreSQL dataset" do
|
372
|
+
before(:all) do
|
373
|
+
@db = DB
|
374
|
+
@d = @db[:test]
|
375
|
+
@db.create_table! :test do
|
376
|
+
text :name
|
377
|
+
integer :value, :index => true
|
378
|
+
end
|
379
|
+
end
|
380
|
+
before do
|
381
|
+
@d.delete
|
382
|
+
end
|
383
|
+
after do
|
384
|
+
@db.drop_table?(:atest)
|
385
|
+
end
|
386
|
+
after(:all) do
|
387
|
+
@db.drop_table?(:test)
|
388
|
+
end
|
389
|
+
|
390
|
+
it "should support regexps" do
|
391
|
+
@d.insert(:name => 'abc', :value => 1)
|
392
|
+
@d.insert(:name => 'bcd', :value => 2)
|
393
|
+
@d.filter(:name => /bc/).count.must_equal 2
|
394
|
+
@d.filter(:name => /^bc/).count.must_equal 1
|
395
|
+
end
|
396
|
+
|
397
|
+
it "should support NULLS FIRST and NULLS LAST" do
|
398
|
+
@d.insert(:name => 'abc')
|
399
|
+
@d.insert(:name => 'bcd')
|
400
|
+
@d.insert(:name => 'bcd', :value => 2)
|
401
|
+
@d.order(Sequel.asc(:value, :nulls=>:first), :name).select_map(:name).must_equal %w[abc bcd bcd]
|
402
|
+
@d.order(Sequel.asc(:value, :nulls=>:last), :name).select_map(:name).must_equal %w[bcd abc bcd]
|
403
|
+
@d.order(Sequel.asc(:value, :nulls=>:first), :name).reverse.select_map(:name).must_equal %w[bcd bcd abc]
|
404
|
+
end
|
405
|
+
|
406
|
+
it "should support selecting from LATERAL functions" do
|
407
|
+
@d.from{[generate_series(1,3,1).as(:a), pow(:a, 2).lateral.as(:b)]}.select_map([:a, :b])== [[1, 1], [2, 4], [3, 9]]
|
408
|
+
end if DB.server_version >= 90300
|
409
|
+
|
410
|
+
it "should support ordered-set and hypothetical-set aggregate functions" do
|
411
|
+
@d.from{generate_series(1,3,1).as(:a)}.select{(a.sql_number % 2).as(:a)}.from_self.get{mode.function.within_group(:a)}.must_equal 1
|
412
|
+
end if DB.server_version >= 90400
|
413
|
+
|
414
|
+
it "should support filtered aggregate functions" do
|
415
|
+
@d.from{generate_series(1,3,1).as(:a)}.select{(a.sql_number % 2).as(:a)}.from_self.get{count(:a).filter(:a=>1)}.must_equal 2
|
416
|
+
end if DB.server_version >= 90400
|
417
|
+
|
418
|
+
it "should support functions with ordinality" do
|
419
|
+
@d.from{generate_series(1,10,3).with_ordinality}.select_map([:generate_series, :ordinality]).must_equal [[1, 1], [4, 2], [7, 3], [10, 4]]
|
420
|
+
end if DB.server_version >= 90400
|
421
|
+
|
422
|
+
it "#lock should lock tables and yield if a block is given" do
|
423
|
+
@d.lock('EXCLUSIVE'){@d.insert(:name=>'a')}
|
424
|
+
end
|
425
|
+
|
426
|
+
it "should support exclusion constraints when creating or altering tables" do
|
427
|
+
@db.create_table!(:atest){Integer :t; exclude [[Sequel.desc(:t, :nulls=>:last), '=']], :using=>:btree, :where=>proc{t > 0}}
|
428
|
+
@db[:atest].insert(1)
|
429
|
+
@db[:atest].insert(2)
|
430
|
+
proc{@db[:atest].insert(2)}.must_raise(Sequel::Postgres::ExclusionConstraintViolation)
|
431
|
+
|
432
|
+
@db.create_table!(:atest){Integer :t}
|
433
|
+
@db.alter_table(:atest){add_exclusion_constraint [[:t, '=']], :using=>:btree, :name=>'atest_ex'}
|
434
|
+
@db[:atest].insert(1)
|
435
|
+
@db[:atest].insert(2)
|
436
|
+
proc{@db[:atest].insert(2)}.must_raise(Sequel::Postgres::ExclusionConstraintViolation)
|
437
|
+
@db.alter_table(:atest){drop_constraint 'atest_ex'}
|
438
|
+
end if DB.server_version >= 90000
|
439
|
+
|
440
|
+
it "should support deferrable exclusion constraints" do
|
441
|
+
@db.create_table!(:atest){Integer :t; exclude [[Sequel.desc(:t, :nulls=>:last), '=']], :using=>:btree, :where=>proc{t > 0}, :deferrable => true}
|
442
|
+
proc do
|
443
|
+
@db.transaction do
|
444
|
+
@db[:atest].insert(2)
|
445
|
+
@db[:atest].insert(2)
|
446
|
+
end
|
447
|
+
end.must_raise(Sequel::Postgres::ExclusionConstraintViolation)
|
448
|
+
end if DB.server_version >= 90000
|
449
|
+
|
450
|
+
it "should support Database#error_info for getting info hash on the given error" do
|
451
|
+
@db.create_table!(:atest){Integer :t; Integer :t2, :null=>false, :default=>1; constraint :f, :t=>0}
|
452
|
+
begin
|
453
|
+
@db[:atest].insert(1)
|
454
|
+
rescue => e
|
455
|
+
end
|
456
|
+
e.wont_equal nil
|
457
|
+
info = @db.error_info(e)
|
458
|
+
info[:schema].must_equal 'public'
|
459
|
+
info[:table].must_equal 'atest'
|
460
|
+
info[:constraint].must_equal 'f'
|
461
|
+
info[:column].must_be_nil
|
462
|
+
info[:type].must_be_nil
|
463
|
+
|
464
|
+
begin
|
465
|
+
@db[:atest].insert(0, nil)
|
466
|
+
rescue => e
|
467
|
+
end
|
468
|
+
e.wont_equal nil
|
469
|
+
info = @db.error_info(e.wrapped_exception)
|
470
|
+
info[:schema].must_equal 'public'
|
471
|
+
info[:table].must_equal 'atest'
|
472
|
+
info[:constraint].must_be_nil
|
473
|
+
info[:column].must_equal 't2'
|
474
|
+
info[:type].must_be_nil
|
475
|
+
end if DB.server_version >= 90300 && uses_pg && Object.const_defined?(:PG) && ::PG.const_defined?(:Constants) && ::PG::Constants.const_defined?(:PG_DIAG_SCHEMA_NAME)
|
476
|
+
|
477
|
+
it "should support Database#do for executing anonymous code blocks" do
|
478
|
+
@db.drop_table?(:btest)
|
479
|
+
@db.do "BEGIN EXECUTE 'CREATE TABLE btest (a INTEGER)'; EXECUTE 'INSERT INTO btest VALUES (1)'; END"
|
480
|
+
@db[:btest].select_map(:a).must_equal [1]
|
481
|
+
|
482
|
+
@db.do "BEGIN EXECUTE 'DROP TABLE btest; CREATE TABLE atest (a INTEGER)'; EXECUTE 'INSERT INTO atest VALUES (1)'; END", :language=>:plpgsql
|
483
|
+
@db[:atest].select_map(:a).must_equal [1]
|
484
|
+
end if DB.server_version >= 90000
|
485
|
+
|
486
|
+
it "should support adding foreign key constarints that are not yet valid, and validating them later" do
|
487
|
+
@db.create_table!(:atest){primary_key :id; Integer :fk}
|
488
|
+
@db[:atest].insert(1, 5)
|
489
|
+
@db.alter_table(:atest){add_foreign_key [:fk], :atest, :not_valid=>true, :name=>:atest_fk}
|
490
|
+
@db[:atest].insert(2, 1)
|
491
|
+
proc{@db[:atest].insert(3, 4)}.must_raise(Sequel::ForeignKeyConstraintViolation)
|
492
|
+
|
493
|
+
proc{@db.alter_table(:atest){validate_constraint :atest_fk}}.must_raise(Sequel::ForeignKeyConstraintViolation)
|
494
|
+
@db[:atest].where(:id=>1).update(:fk=>2)
|
495
|
+
@db.alter_table(:atest){validate_constraint :atest_fk}
|
496
|
+
@db.alter_table(:atest){validate_constraint :atest_fk}
|
497
|
+
end if DB.server_version >= 90200
|
498
|
+
|
499
|
+
it "should support adding check constarints that are not yet valid, and validating them later" do
|
500
|
+
@db.create_table!(:atest){Integer :a}
|
501
|
+
@db[:atest].insert(5)
|
502
|
+
@db.alter_table(:atest){add_constraint({:name=>:atest_check, :not_valid=>true}){a >= 10}}
|
503
|
+
@db[:atest].insert(10)
|
504
|
+
proc{@db[:atest].insert(6)}.must_raise(Sequel::CheckConstraintViolation)
|
505
|
+
|
506
|
+
proc{@db.alter_table(:atest){validate_constraint :atest_check}}.must_raise(Sequel::CheckConstraintViolation, Sequel::DatabaseError)
|
507
|
+
@db[:atest].where{a < 10}.update(:a=>Sequel.+(:a, 10))
|
508
|
+
@db.alter_table(:atest){validate_constraint :atest_check}
|
509
|
+
@db.alter_table(:atest){validate_constraint :atest_check}
|
510
|
+
end if DB.server_version >= 90200
|
511
|
+
|
512
|
+
it "should support :using when altering a column's type" do
|
513
|
+
@db.create_table!(:atest){Integer :t}
|
514
|
+
@db[:atest].insert(1262304000)
|
515
|
+
@db.alter_table(:atest){set_column_type :t, Time, :using=>Sequel.cast('epoch', Time) + Sequel.cast('1 second', :interval) * :t}
|
516
|
+
@db[:atest].get(Sequel.extract(:year, :t)).must_equal 2010
|
517
|
+
end
|
518
|
+
|
519
|
+
it "should support :using with a string when altering a column's type" do
|
520
|
+
@db.create_table!(:atest){Integer :t}
|
521
|
+
@db[:atest].insert(1262304000)
|
522
|
+
@db.alter_table(:atest){set_column_type :t, Time, :using=>"'epoch'::timestamp + '1 second'::interval * t"}
|
523
|
+
@db[:atest].get(Sequel.extract(:year, :t)).must_equal 2010
|
524
|
+
end
|
525
|
+
|
526
|
+
it "should be able to parse the default value for an interval type" do
|
527
|
+
@db.create_table!(:atest){interval :t, :default=>'1 week'}
|
528
|
+
@db.schema(:atest).first.last[:ruby_default].must_equal '7 days'
|
529
|
+
end
|
530
|
+
|
531
|
+
it "should have #transaction support various types of synchronous options" do
|
532
|
+
@db.transaction(:synchronous=>:on){}
|
533
|
+
@db.transaction(:synchronous=>true){}
|
534
|
+
@db.transaction(:synchronous=>:off){}
|
535
|
+
@db.transaction(:synchronous=>false){}
|
536
|
+
|
537
|
+
@db.transaction(:synchronous=>nil){}
|
538
|
+
if @db.server_version >= 90100
|
539
|
+
@db.transaction(:synchronous=>:local){}
|
540
|
+
|
541
|
+
if @db.server_version >= 90200
|
542
|
+
@db.transaction(:synchronous=>:remote_write){}
|
543
|
+
end
|
544
|
+
end
|
545
|
+
end
|
546
|
+
|
547
|
+
it "should have #transaction support read only transactions" do
|
548
|
+
@db.transaction(:read_only=>true){}
|
549
|
+
@db.transaction(:read_only=>false){}
|
550
|
+
@db.transaction(:isolation=>:serializable, :read_only=>true){}
|
551
|
+
@db.transaction(:isolation=>:serializable, :read_only=>false){}
|
552
|
+
end
|
553
|
+
|
554
|
+
it "should have #transaction support deferrable transactions" do
|
555
|
+
@db.transaction(:deferrable=>true){}
|
556
|
+
@db.transaction(:deferrable=>false){}
|
557
|
+
@db.transaction(:deferrable=>true, :read_only=>true){}
|
558
|
+
@db.transaction(:deferrable=>false, :read_only=>false){}
|
559
|
+
@db.transaction(:isolation=>:serializable, :deferrable=>true, :read_only=>true){}
|
560
|
+
@db.transaction(:isolation=>:serializable, :deferrable=>false, :read_only=>false){}
|
561
|
+
end if DB.server_version >= 90100
|
562
|
+
|
563
|
+
it "should support creating indexes concurrently" do
|
564
|
+
@db.add_index :test, [:name, :value], :concurrently=>true
|
565
|
+
end
|
566
|
+
|
567
|
+
it "should support dropping indexes only if they already exist" do
|
568
|
+
proc{@db.drop_index :test, [:name, :value], :name=>'tnv1'}.must_raise Sequel::DatabaseError
|
569
|
+
@db.drop_index :test, [:name, :value], :if_exists=>true, :name=>'tnv1'
|
570
|
+
@db.add_index :test, [:name, :value], :name=>'tnv1'
|
571
|
+
@db.drop_index :test, [:name, :value], :if_exists=>true, :name=>'tnv1'
|
572
|
+
end
|
573
|
+
|
574
|
+
it "should support CASCADE when dropping indexes" do
|
575
|
+
@db.add_index :test, [:name, :value], :name=>'tnv2', :unique=>true
|
576
|
+
@db.create_table(:atest){text :name; integer :value; foreign_key [:name, :value], :test, :key=>[:name, :value]}
|
577
|
+
@db.foreign_key_list(:atest).length.must_equal 1
|
578
|
+
@db.drop_index :test, [:name, :value], :cascade=>true, :name=>'tnv2'
|
579
|
+
@db.foreign_key_list(:atest).length.must_equal 0
|
580
|
+
end
|
581
|
+
|
582
|
+
it "should support dropping indexes concurrently" do
|
583
|
+
@db.add_index :test, [:name, :value], :name=>'tnv2'
|
584
|
+
@db.drop_index :test, [:name, :value], :concurrently=>true, :name=>'tnv2'
|
585
|
+
end if DB.server_version >= 90200
|
586
|
+
|
587
|
+
it "should support creating indexes only if they do not exist" do
|
588
|
+
@db.add_index :test, [:name, :value], :name=>'tnv3'
|
589
|
+
proc{@db.add_index :test, [:name, :value], :name=>'tnv3'}.must_raise Sequel::DatabaseError
|
590
|
+
@db.add_index :test, [:name, :value], :if_not_exists=>true, :name=>'tnv3'
|
591
|
+
end if DB.server_version >= 90500
|
592
|
+
|
593
|
+
it "#lock should lock table if inside a transaction" do
|
594
|
+
@db.transaction{@d.lock('EXCLUSIVE'); @d.insert(:name=>'a')}
|
595
|
+
end
|
596
|
+
|
597
|
+
it "#lock should return nil" do
|
598
|
+
@d.lock('EXCLUSIVE'){@d.insert(:name=>'a')}.must_be_nil
|
599
|
+
@db.transaction{@d.lock('EXCLUSIVE').must_be_nil; @d.insert(:name=>'a')}
|
600
|
+
end
|
601
|
+
|
602
|
+
it "should raise an error if attempting to update a joined dataset with a single FROM table" do
|
603
|
+
proc{@db[:test].join(:test, [:name]).update(:name=>'a')}.must_raise(Sequel::Error, 'Need multiple FROM tables if updating/deleting a dataset with JOINs')
|
604
|
+
end
|
605
|
+
|
606
|
+
it "should truncate with options" do
|
607
|
+
@d.insert( :name => 'abc', :value => 1)
|
608
|
+
@d.count.must_equal 1
|
609
|
+
@d.truncate(:cascade => true)
|
610
|
+
@d.count.must_equal 0
|
611
|
+
if @d.db.server_version > 80400
|
612
|
+
@d.insert( :name => 'abc', :value => 1)
|
613
|
+
@d.truncate(:cascade => true, :only=>true, :restart=>true)
|
614
|
+
@d.count.must_equal 0
|
615
|
+
end
|
616
|
+
end
|
617
|
+
|
618
|
+
it "should truncate multiple tables at once" do
|
619
|
+
tables = [:test, :test]
|
620
|
+
tables.each{|t| @d.from(t).insert}
|
621
|
+
@d.from(:test, :test).truncate
|
622
|
+
tables.each{|t| @d.from(t).count.must_equal 0}
|
623
|
+
end
|
624
|
+
end
|
625
|
+
|
626
|
+
describe "Dataset#distinct" do
|
627
|
+
before do
|
628
|
+
@db = DB
|
629
|
+
@db.create_table!(:a) do
|
630
|
+
Integer :a
|
631
|
+
Integer :b
|
632
|
+
end
|
633
|
+
@ds = @db[:a]
|
634
|
+
end
|
635
|
+
after do
|
636
|
+
@db.drop_table?(:a)
|
637
|
+
end
|
638
|
+
|
639
|
+
it "#distinct with arguments should return results distinct on those arguments" do
|
640
|
+
@ds.insert(20, 10)
|
641
|
+
@ds.insert(30, 10)
|
642
|
+
@ds.order(:b, :a).distinct.map(:a).must_equal [20, 30]
|
643
|
+
@ds.order(:b, Sequel.desc(:a)).distinct.map(:a).must_equal [30, 20]
|
644
|
+
@ds.order(:b, :a).distinct(:b).map(:a).must_equal [20]
|
645
|
+
@ds.order(:b, Sequel.desc(:a)).distinct(:b).map(:a).must_equal [30]
|
646
|
+
end
|
647
|
+
end
|
648
|
+
|
649
|
+
if DB.pool.respond_to?(:max_size) and DB.pool.max_size > 1
|
650
|
+
describe "Dataset#for_update support" do
|
651
|
+
before do
|
652
|
+
@db = DB.create_table!(:items) do
|
653
|
+
primary_key :id
|
654
|
+
Integer :number
|
655
|
+
String :name
|
656
|
+
end
|
657
|
+
@ds = DB[:items]
|
658
|
+
end
|
659
|
+
after do
|
660
|
+
DB.drop_table?(:items)
|
661
|
+
DB.disconnect
|
662
|
+
end
|
663
|
+
|
664
|
+
it "should handle FOR UPDATE" do
|
665
|
+
@ds.insert(:number=>20)
|
666
|
+
c, t = nil, nil
|
667
|
+
q = Queue.new
|
668
|
+
DB.transaction do
|
669
|
+
@ds.for_update.first(:id=>1)
|
670
|
+
t = Thread.new do
|
671
|
+
DB.transaction do
|
672
|
+
q.push nil
|
673
|
+
@ds.filter(:id=>1).update(:name=>'Jim')
|
674
|
+
c = @ds.first(:id=>1)
|
675
|
+
q.push nil
|
676
|
+
end
|
677
|
+
end
|
678
|
+
q.pop
|
679
|
+
@ds.filter(:id=>1).update(:number=>30)
|
680
|
+
end
|
681
|
+
q.pop
|
682
|
+
t.join
|
683
|
+
c.must_equal(:id=>1, :number=>30, :name=>'Jim')
|
684
|
+
end
|
685
|
+
|
686
|
+
it "should handle FOR SHARE" do
|
687
|
+
@ds.insert(:number=>20)
|
688
|
+
c, t = nil
|
689
|
+
q = Queue.new
|
690
|
+
DB.transaction do
|
691
|
+
@ds.for_share.first(:id=>1)
|
692
|
+
t = Thread.new do
|
693
|
+
DB.transaction do
|
694
|
+
c = @ds.for_share.filter(:id=>1).first
|
695
|
+
q.push nil
|
696
|
+
end
|
697
|
+
end
|
698
|
+
q.pop
|
699
|
+
@ds.filter(:id=>1).update(:name=>'Jim')
|
700
|
+
c.must_equal(:id=>1, :number=>20, :name=>nil)
|
701
|
+
end
|
702
|
+
t.join
|
703
|
+
end
|
704
|
+
end
|
705
|
+
end
|
706
|
+
|
707
|
+
describe "A PostgreSQL dataset with a timestamp field" do
|
708
|
+
before(:all) do
|
709
|
+
@db = DB
|
710
|
+
@db.create_table! :test3 do
|
711
|
+
Date :date
|
712
|
+
DateTime :time
|
713
|
+
end
|
714
|
+
@d = @db[:test3]
|
715
|
+
@db.extension :pg_extended_date_support
|
716
|
+
end
|
717
|
+
before do
|
718
|
+
@d.delete
|
719
|
+
end
|
720
|
+
after do
|
721
|
+
@db.convert_infinite_timestamps = false
|
722
|
+
end
|
723
|
+
after(:all) do
|
724
|
+
@db.drop_table?(:test3)
|
725
|
+
end
|
726
|
+
|
727
|
+
it "should store milliseconds in time fields for Time objects" do
|
728
|
+
t = Time.now
|
729
|
+
@d.insert(:time=>t)
|
730
|
+
t2 = @d.get(:time)
|
731
|
+
@d.literal(t2).must_equal @d.literal(t)
|
732
|
+
t2.strftime('%Y-%m-%d %H:%M:%S').must_equal t.strftime('%Y-%m-%d %H:%M:%S')
|
733
|
+
(t2.is_a?(Time) ? t2.usec : t2.strftime('%N').to_i/1000).must_equal t.usec
|
734
|
+
end
|
735
|
+
|
736
|
+
it "should store milliseconds in time fields for DateTime objects" do
|
737
|
+
t = DateTime.now
|
738
|
+
@d.insert(:time=>t)
|
739
|
+
t2 = @d.get(:time)
|
740
|
+
@d.literal(t2).must_equal @d.literal(t)
|
741
|
+
t2.strftime('%Y-%m-%d %H:%M:%S').must_equal t.strftime('%Y-%m-%d %H:%M:%S')
|
742
|
+
(t2.is_a?(Time) ? t2.usec : t2.strftime('%N').to_i/1000).must_equal t.strftime('%N').to_i/1000
|
743
|
+
end
|
744
|
+
|
745
|
+
it "should handle BC times and dates" do
|
746
|
+
d = Date.new(-1234, 2, 3)
|
747
|
+
@db.get(Sequel.cast(d, Date)).must_equal d
|
748
|
+
begin
|
749
|
+
Sequel.default_timezone = :utc
|
750
|
+
t = Time.at(-100000000000).utc + 0.5
|
751
|
+
@db.get(Sequel.cast(t, Time)).must_equal t
|
752
|
+
@db.get(Sequel.cast(t, :timestamptz)).must_equal t
|
753
|
+
Sequel.datetime_class = DateTime
|
754
|
+
dt = DateTime.new(-1234, 2, 3, 10, 20, Rational(30, 20))
|
755
|
+
@db.get(Sequel.cast(dt, DateTime)).must_equal dt
|
756
|
+
@db.get(Sequel.cast(dt, :timestamptz)).must_equal dt
|
757
|
+
ensure
|
758
|
+
Sequel.datetime_class = Time
|
759
|
+
Sequel.default_timezone = nil
|
760
|
+
end
|
761
|
+
end
|
762
|
+
|
763
|
+
it "should handle infinite timestamps if convert_infinite_timestamps is set" do
|
764
|
+
@d.insert(:time=>Sequel.cast('infinity', DateTime))
|
765
|
+
@db.convert_infinite_timestamps = :nil
|
766
|
+
@db[:test3].get(:time).must_be_nil
|
767
|
+
@db.convert_infinite_timestamps = :string
|
768
|
+
@db[:test3].get(:time).must_equal 'infinity'
|
769
|
+
@db.convert_infinite_timestamps = :float
|
770
|
+
@db[:test3].get(:time).must_equal 1.0/0.0
|
771
|
+
@db.convert_infinite_timestamps = 'nil'
|
772
|
+
@db[:test3].get(:time).must_be_nil
|
773
|
+
@db.convert_infinite_timestamps = 'string'
|
774
|
+
@db[:test3].get(:time).must_equal 'infinity'
|
775
|
+
@db.convert_infinite_timestamps = 'date'
|
776
|
+
@db[:test3].get(:time).must_equal Date::Infinity.new
|
777
|
+
@db.convert_infinite_timestamps = 'float'
|
778
|
+
@db[:test3].get(:time).must_equal 1.0/0.0
|
779
|
+
@db.convert_infinite_timestamps = 't'
|
780
|
+
@db[:test3].get(:time).must_equal 1.0/0.0
|
781
|
+
@db.convert_infinite_timestamps = true
|
782
|
+
@db[:test3].get(:time).must_equal 1.0/0.0
|
783
|
+
@db.convert_infinite_timestamps = 'f'
|
784
|
+
proc{@db[:test3].get(:time)}.must_raise ArgumentError, Sequel::InvalidValue
|
785
|
+
@db.convert_infinite_timestamps = nil
|
786
|
+
proc{@db[:test3].get(:time)}.must_raise ArgumentError, Sequel::InvalidValue
|
787
|
+
@db.convert_infinite_timestamps = false
|
788
|
+
proc{@db[:test3].get(:time)}.must_raise ArgumentError, Sequel::InvalidValue
|
789
|
+
|
790
|
+
@d.update(:time=>Sequel.cast('-infinity', DateTime))
|
791
|
+
@db.convert_infinite_timestamps = :nil
|
792
|
+
@db[:test3].get(:time).must_be_nil
|
793
|
+
@db.convert_infinite_timestamps = :string
|
794
|
+
@db[:test3].get(:time).must_equal '-infinity'
|
795
|
+
@db.convert_infinite_timestamps = :date
|
796
|
+
@db[:test3].get(:time).must_equal -Date::Infinity.new
|
797
|
+
@db.convert_infinite_timestamps = :float
|
798
|
+
@db[:test3].get(:time).must_equal(-1.0/0.0)
|
799
|
+
end
|
800
|
+
|
801
|
+
it "should handle infinite dates if convert_infinite_timestamps is set" do
|
802
|
+
@d.insert(:time=>Sequel.cast('infinity', DateTime))
|
803
|
+
@db.convert_infinite_timestamps = :nil
|
804
|
+
@db[:test3].get(Sequel.cast(:time, Date)).must_be_nil
|
805
|
+
@db.convert_infinite_timestamps = :string
|
806
|
+
@db[:test3].get(Sequel.cast(:time, Date)).must_equal 'infinity'
|
807
|
+
@db.convert_infinite_timestamps = :float
|
808
|
+
@db[:test3].get(Sequel.cast(:time, Date)).must_equal 1.0/0.0
|
809
|
+
@db.convert_infinite_timestamps = 'nil'
|
810
|
+
@db[:test3].get(Sequel.cast(:time, Date)).must_be_nil
|
811
|
+
@db.convert_infinite_timestamps = 'string'
|
812
|
+
@db[:test3].get(Sequel.cast(:time, Date)).must_equal 'infinity'
|
813
|
+
@db.convert_infinite_timestamps = 'float'
|
814
|
+
@db[:test3].get(Sequel.cast(:time, Date)).must_equal 1.0/0.0
|
815
|
+
@db.convert_infinite_timestamps = 't'
|
816
|
+
@db[:test3].get(Sequel.cast(:time, Date)).must_equal 1.0/0.0
|
817
|
+
@db.convert_infinite_timestamps = true
|
818
|
+
@db[:test3].get(Sequel.cast(:time, Date)).must_equal 1.0/0.0
|
819
|
+
@db.convert_infinite_timestamps = 'f'
|
820
|
+
proc{@db[:test3].get(Sequel.cast(:time, Date))}.must_raise ArgumentError, Sequel::InvalidValue
|
821
|
+
@db.convert_infinite_timestamps = nil
|
822
|
+
proc{@db[:test3].get(Sequel.cast(:time, Date))}.must_raise ArgumentError, Sequel::InvalidValue
|
823
|
+
@db.convert_infinite_timestamps = false
|
824
|
+
proc{@db[:test3].get(Sequel.cast(:time, Date))}.must_raise ArgumentError, Sequel::InvalidValue
|
825
|
+
|
826
|
+
@d.update(:time=>Sequel.cast('-infinity', DateTime))
|
827
|
+
@db.convert_infinite_timestamps = :nil
|
828
|
+
@db[:test3].get(Sequel.cast(:time, Date)).must_be_nil
|
829
|
+
@db.convert_infinite_timestamps = :string
|
830
|
+
@db[:test3].get(Sequel.cast(:time, Date)).must_equal '-infinity'
|
831
|
+
@db.convert_infinite_timestamps = :float
|
832
|
+
@db[:test3].get(Sequel.cast(:time, Date)).must_equal(-1.0/0.0)
|
833
|
+
end
|
834
|
+
|
835
|
+
it "should handle conversions from infinite strings/floats in models" do
|
836
|
+
c = Class.new(Sequel::Model(:test3))
|
837
|
+
@db.convert_infinite_timestamps = :float
|
838
|
+
c.new(:time=>'infinity').time.must_equal 'infinity'
|
839
|
+
c.new(:time=>'-infinity').time.must_equal '-infinity'
|
840
|
+
c.new(:time=>1.0/0.0).time.must_equal 1.0/0.0
|
841
|
+
c.new(:time=>-1.0/0.0).time.must_equal(-1.0/0.0)
|
842
|
+
end
|
843
|
+
|
844
|
+
it "should handle infinite dates if convert_infinite_timestamps is set" do
|
845
|
+
@d.insert(:date=>Sequel.cast('infinity', Date))
|
846
|
+
@db.convert_infinite_timestamps = :nil
|
847
|
+
@db[:test3].get(:date).must_be_nil
|
848
|
+
@db.convert_infinite_timestamps = :string
|
849
|
+
@db[:test3].get(:date).must_equal 'infinity'
|
850
|
+
@db.convert_infinite_timestamps = :float
|
851
|
+
@db[:test3].get(:date).must_equal 1.0/0.0
|
852
|
+
|
853
|
+
@d.update(:date=>Sequel.cast('-infinity', :timestamp))
|
854
|
+
@db.convert_infinite_timestamps = :nil
|
855
|
+
@db[:test3].get(:date).must_be_nil
|
856
|
+
@db.convert_infinite_timestamps = :string
|
857
|
+
@db[:test3].get(:date).must_equal '-infinity'
|
858
|
+
@db.convert_infinite_timestamps = :float
|
859
|
+
@db[:test3].get(:date).must_equal(-1.0/0.0)
|
860
|
+
end
|
861
|
+
|
862
|
+
it "should handle conversions from infinite strings/floats in models" do
|
863
|
+
c = Class.new(Sequel::Model(:test3))
|
864
|
+
@db.convert_infinite_timestamps = :float
|
865
|
+
c.new(:date=>'infinity').date.must_equal 'infinity'
|
866
|
+
c.new(:date=>'-infinity').date.must_equal '-infinity'
|
867
|
+
c.new(:date=>1.0/0.0).date.must_equal 1.0/0.0
|
868
|
+
c.new(:date=>-1.0/0.0).date.must_equal(-1.0/0.0)
|
869
|
+
end
|
870
|
+
|
871
|
+
it "explain and analyze should not raise errors" do
|
872
|
+
@d = DB[:test3]
|
873
|
+
@d.explain
|
874
|
+
@d.analyze
|
875
|
+
end
|
876
|
+
|
877
|
+
it "#locks should be a dataset returning database locks " do
|
878
|
+
@db.locks.must_be_kind_of(Sequel::Dataset)
|
879
|
+
@db.locks.all.must_be_kind_of(Array)
|
880
|
+
end
|
881
|
+
end
|
882
|
+
|
883
|
+
describe "A PostgreSQL database" do
|
884
|
+
before do
|
885
|
+
@db = DB
|
886
|
+
@db.create_table! :test2 do
|
887
|
+
text :name
|
888
|
+
integer :value
|
889
|
+
end
|
890
|
+
end
|
891
|
+
after do
|
892
|
+
@db.drop_table?(:test2)
|
893
|
+
end
|
894
|
+
|
895
|
+
it "should support column operations" do
|
896
|
+
@db.create_table!(:test2){text :name; integer :value}
|
897
|
+
@db[:test2].insert({})
|
898
|
+
@db[:test2].columns.must_equal [:name, :value]
|
899
|
+
|
900
|
+
@db.add_column :test2, :xyz, :text, :default => '000'
|
901
|
+
@db[:test2].columns.must_equal [:name, :value, :xyz]
|
902
|
+
@db[:test2].insert(:name => 'mmm', :value => 111)
|
903
|
+
@db[:test2].first[:xyz].must_equal '000'
|
904
|
+
|
905
|
+
@db[:test2].columns.must_equal [:name, :value, :xyz]
|
906
|
+
@db.drop_column :test2, :xyz
|
907
|
+
|
908
|
+
@db[:test2].columns.must_equal [:name, :value]
|
909
|
+
|
910
|
+
@db[:test2].delete
|
911
|
+
@db.add_column :test2, :xyz, :text, :default => '000'
|
912
|
+
@db[:test2].insert(:name => 'mmm', :value => 111, :xyz => 'qqqq')
|
913
|
+
|
914
|
+
@db[:test2].columns.must_equal [:name, :value, :xyz]
|
915
|
+
@db.rename_column :test2, :xyz, :zyx
|
916
|
+
@db[:test2].columns.must_equal [:name, :value, :zyx]
|
917
|
+
@db[:test2].first[:zyx].must_equal 'qqqq'
|
918
|
+
|
919
|
+
@db.add_column :test2, :xyz, :float
|
920
|
+
@db[:test2].delete
|
921
|
+
@db[:test2].insert(:name => 'mmm', :value => 111, :xyz => 56.78)
|
922
|
+
@db.set_column_type :test2, :xyz, :integer
|
923
|
+
|
924
|
+
@db[:test2].first[:xyz].must_equal 57
|
925
|
+
end
|
926
|
+
end
|
927
|
+
|
928
|
+
describe "A PostgreSQL database" do
|
929
|
+
before do
|
930
|
+
@db = DB
|
931
|
+
@db.drop_table?(:posts)
|
932
|
+
end
|
933
|
+
after do
|
934
|
+
@db.drop_table?(:posts)
|
935
|
+
end
|
936
|
+
|
937
|
+
it "should support resetting the primary key sequence" do
|
938
|
+
@db.create_table(:posts){primary_key :a}
|
939
|
+
@db[:posts].insert(:a=>20).must_equal 20
|
940
|
+
@db[:posts].insert.must_equal 1
|
941
|
+
@db[:posts].insert.must_equal 2
|
942
|
+
@db[:posts].insert(:a=>10).must_equal 10
|
943
|
+
@db.reset_primary_key_sequence(:posts).must_equal 21
|
944
|
+
@db[:posts].insert.must_equal 21
|
945
|
+
@db[:posts].order(:a).map(:a).must_equal [1, 2, 10, 20, 21]
|
946
|
+
end
|
947
|
+
|
948
|
+
it "should support specifying Integer/Bignum types in primary keys and have them be auto incrementing" do
|
949
|
+
@db.create_table(:posts){primary_key :a, :type=>Integer}
|
950
|
+
@db[:posts].insert.must_equal 1
|
951
|
+
@db[:posts].insert.must_equal 2
|
952
|
+
@db.create_table!(:posts){primary_key :a, :type=>:Bignum}
|
953
|
+
@db[:posts].insert.must_equal 1
|
954
|
+
@db[:posts].insert.must_equal 2
|
955
|
+
end
|
956
|
+
|
957
|
+
it "should not raise an error if attempting to resetting the primary key sequence for a table without a primary key" do
|
958
|
+
@db.create_table(:posts){Integer :a}
|
959
|
+
@db.reset_primary_key_sequence(:posts).must_be_nil
|
960
|
+
end
|
961
|
+
|
962
|
+
it "should support opclass specification" do
|
963
|
+
@db.create_table(:posts){text :title; text :body; integer :user_id; index(:user_id, :opclass => :int4_ops, :type => :btree)}
|
964
|
+
proc{@db.create_table(:posts){text :title; text :body; integer :user_id; index(:user_id, :opclass => :bogus_opclass, :type => :btree)}}.must_raise Sequel::DatabaseError
|
965
|
+
end
|
966
|
+
|
967
|
+
it "should support fulltext indexes and searching" do
|
968
|
+
@db.create_table(:posts){text :title; text :body; full_text_index [:title, :body]; full_text_index :title, :language => 'french', :index_type=>:gist}
|
969
|
+
|
970
|
+
@db[:posts].insert(:title=>'ruby rails', :body=>'yowsa')
|
971
|
+
@db[:posts].insert(:title=>'sequel', :body=>'ruby')
|
972
|
+
@db[:posts].insert(:title=>'ruby scooby', :body=>'x')
|
973
|
+
|
974
|
+
@db[:posts].full_text_search(:title, 'rails').all.must_equal [{:title=>'ruby rails', :body=>'yowsa'}]
|
975
|
+
@db[:posts].full_text_search(:title, 'rails', :headline=>true).all.must_equal [{:title=>'ruby rails', :body=>'yowsa', :headline=>'ruby <b>rails</b>'}]
|
976
|
+
@db[:posts].full_text_search([:title, :body], ['yowsa', 'rails']).all.must_equal [:title=>'ruby rails', :body=>'yowsa']
|
977
|
+
@db[:posts].full_text_search(:title, 'scooby', :language => 'french').all.must_equal [{:title=>'ruby scooby', :body=>'x'}]
|
978
|
+
|
979
|
+
@db[:posts].full_text_search(:title, :$n).call(:select, :n=>'rails').must_equal [{:title=>'ruby rails', :body=>'yowsa'}]
|
980
|
+
@db[:posts].full_text_search(:title, :$n).prepare(:select, :fts_select).call(:n=>'rails').must_equal [{:title=>'ruby rails', :body=>'yowsa'}]
|
981
|
+
|
982
|
+
@db[:posts].insert(:title=>'jruby rubinius ruby maglev mri iron')
|
983
|
+
@db[:posts].insert(:title=>'ruby jruby maglev mri rubinius iron')
|
984
|
+
@db[:posts].full_text_search(:title, 'rubinius ruby', :phrase=>true).select_order_map(:title).must_equal ['jruby rubinius ruby maglev mri iron']
|
985
|
+
@db[:posts].full_text_search(:title, 'jruby maglev', :phrase=>true).select_order_map(:title).must_equal ['ruby jruby maglev mri rubinius iron']
|
986
|
+
@db[:posts].full_text_search(:title, 'rubinius ruby', :plain=>true).select_order_map(:title).must_equal ['jruby rubinius ruby maglev mri iron', 'ruby jruby maglev mri rubinius iron']
|
987
|
+
@db[:posts].full_text_search(:title, 'jruby maglev', :plain=>true).select_order_map(:title).must_equal ['jruby rubinius ruby maglev mri iron', 'ruby jruby maglev mri rubinius iron']
|
988
|
+
|
989
|
+
if DB.server_version >= 90600
|
990
|
+
@db[:posts].full_text_search(:title, 'rubinius ruby', :to_tsquery=>:phrase).select_order_map(:title).must_equal ['jruby rubinius ruby maglev mri iron']
|
991
|
+
@db[:posts].full_text_search(:title, 'jruby maglev', :to_tsquery=>:phrase).select_order_map(:title).must_equal ['ruby jruby maglev mri rubinius iron']
|
992
|
+
end
|
993
|
+
|
994
|
+
@db[:posts].full_text_search(Sequel.function(:to_tsvector, 'simple', :title), 'rails', :tsvector=>true).all.must_equal [{:title=>'ruby rails', :body=>'yowsa'}]
|
995
|
+
@db[:posts].full_text_search(:title, Sequel.function(:to_tsquery, 'simple', 'rails'), :tsquery=>true).all.must_equal [{:title=>'ruby rails', :body=>'yowsa'}]
|
996
|
+
proc{@db[:posts].full_text_search(Sequel.function(:to_tsvector, 'simple', :title), 'rubinius ruby', :tsvector=>true, :phrase=>true)}.must_raise(Sequel::Error)
|
997
|
+
proc{@db[:posts].full_text_search(:title, Sequel.function(:to_tsquery, 'simple', 'rails'), :tsquery=>true, :phrase=>true)}.must_raise(Sequel::Error)
|
998
|
+
|
999
|
+
@db[:posts].delete
|
1000
|
+
t1 = "bork " * 1000 + "ruby sequel"
|
1001
|
+
t2 = "ruby sequel " * 1000
|
1002
|
+
@db[:posts].insert(:title=>t1)
|
1003
|
+
@db[:posts].insert(:title=>t2)
|
1004
|
+
@db[:posts].full_text_search(:title, 'ruby & sequel', :rank=>true).select_map(:title).must_equal [t2, t1]
|
1005
|
+
end if DB.server_version >= 80300
|
1006
|
+
|
1007
|
+
it "should support spatial indexes" do
|
1008
|
+
@db.create_table(:posts){box :geom; spatial_index [:geom]}
|
1009
|
+
end
|
1010
|
+
|
1011
|
+
it "should support indexes with index type" do
|
1012
|
+
@db.create_table(:posts){point :p; index :p, :type => 'gist'}
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
it "should support unique indexes with index type" do
|
1016
|
+
@db.create_table(:posts){varchar :title, :size => 5; index :title, :type => 'btree', :unique => true, :name=>:post_index_foo}
|
1017
|
+
@db.indexes(:posts).length.must_equal 1
|
1018
|
+
@db.indexes(:posts)[:post_index_foo][:unique].must_equal true
|
1019
|
+
end
|
1020
|
+
|
1021
|
+
it "should support partial indexes" do
|
1022
|
+
@db.create_table(:posts){varchar :title, :size => 5; index :title, :where => {:title => '5'}}
|
1023
|
+
end
|
1024
|
+
|
1025
|
+
it "should support identifiers for table names when creating indexes" do
|
1026
|
+
@db.create_table(Sequel::SQL::Identifier.new(:posts)){varchar :title, :size => 5; index :title}
|
1027
|
+
@db.indexes(:posts).length.must_equal 1
|
1028
|
+
end
|
1029
|
+
|
1030
|
+
it "should support renaming tables" do
|
1031
|
+
@db.create_table!(:posts1){primary_key :a}
|
1032
|
+
@db.rename_table(:posts1, :posts)
|
1033
|
+
end
|
1034
|
+
|
1035
|
+
it "should adding a primary key only if it does not already exists" do
|
1036
|
+
@db.create_table(:posts){Integer :a}
|
1037
|
+
@db.alter_table(:posts){add_column :b, Integer}
|
1038
|
+
@db.alter_table(:posts){add_column :b, Integer, :if_not_exists=>true}
|
1039
|
+
proc{@db.alter_table(:posts){add_column :b, Integer}}.must_raise Sequel::DatabaseError
|
1040
|
+
end if DB.server_version >= 90600
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
describe "Postgres::Dataset#import" do
|
1044
|
+
before do
|
1045
|
+
@db = DB
|
1046
|
+
@db.create_table!(:test){primary_key :x; Integer :y}
|
1047
|
+
@ds = @db[:test]
|
1048
|
+
end
|
1049
|
+
after do
|
1050
|
+
@db.drop_table?(:test)
|
1051
|
+
end
|
1052
|
+
|
1053
|
+
it "#import should a single insert statement" do
|
1054
|
+
@ds.import([:x, :y], [[1, 2], [3, 4]])
|
1055
|
+
@ds.all.must_equal [{:x=>1, :y=>2}, {:x=>3, :y=>4}]
|
1056
|
+
end
|
1057
|
+
|
1058
|
+
it "#import should work correctly when returning primary keys" do
|
1059
|
+
@ds.import([:x, :y], [[1, 2], [3, 4]], :return=>:primary_key).must_equal [1, 3]
|
1060
|
+
@ds.all.must_equal [{:x=>1, :y=>2}, {:x=>3, :y=>4}]
|
1061
|
+
end
|
1062
|
+
|
1063
|
+
it "#import should work correctly when returning primary keys with :slice option" do
|
1064
|
+
@ds.import([:x, :y], [[1, 2], [3, 4]], :return=>:primary_key, :slice=>1).must_equal [1, 3]
|
1065
|
+
@ds.all.must_equal [{:x=>1, :y=>2}, {:x=>3, :y=>4}]
|
1066
|
+
end
|
1067
|
+
|
1068
|
+
it "#import should work correctly with an arbitrary returning value" do
|
1069
|
+
@ds.returning(:y, :x).import([:x, :y], [[1, 2], [3, 4]]).must_equal [{:y=>2, :x=>1}, {:y=>4, :x=>3}]
|
1070
|
+
@ds.all.must_equal [{:x=>1, :y=>2}, {:x=>3, :y=>4}]
|
1071
|
+
end
|
1072
|
+
end
|
1073
|
+
|
1074
|
+
describe "Postgres::Dataset#insert" do
|
1075
|
+
before do
|
1076
|
+
@db = DB
|
1077
|
+
@db.create_table!(:test5){primary_key :xid; Integer :value}
|
1078
|
+
@ds = @db[:test5]
|
1079
|
+
end
|
1080
|
+
after do
|
1081
|
+
@db.drop_table?(:test5)
|
1082
|
+
end
|
1083
|
+
|
1084
|
+
it "should work with static SQL" do
|
1085
|
+
@ds.with_sql('INSERT INTO test5 (value) VALUES (10)').insert.must_be_nil
|
1086
|
+
@db['INSERT INTO test5 (value) VALUES (20)'].insert.must_be_nil
|
1087
|
+
@ds.all.must_equal [{:xid=>1, :value=>10}, {:xid=>2, :value=>20}]
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
it "should insert correctly if using a column array and a value array" do
|
1091
|
+
@ds.insert([:value], [10]).must_equal 1
|
1092
|
+
@ds.all.must_equal [{:xid=>1, :value=>10}]
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
it "should have insert return primary key value" do
|
1096
|
+
@ds.insert(:value=>10).must_equal 1
|
1097
|
+
end
|
1098
|
+
|
1099
|
+
it "should have insert_select insert the record and return the inserted record" do
|
1100
|
+
h = @ds.insert_select(:value=>10)
|
1101
|
+
h[:value].must_equal 10
|
1102
|
+
@ds.first(:xid=>h[:xid])[:value].must_equal 10
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
it "should have insert_select respect existing returning clause" do
|
1106
|
+
h = @ds.returning(Sequel[:value].as(:v), Sequel[:xid].as(:x)).insert_select(:value=>10)
|
1107
|
+
h[:v].must_equal 10
|
1108
|
+
@ds.first(:xid=>h[:x])[:value].must_equal 10
|
1109
|
+
end
|
1110
|
+
|
1111
|
+
it "should have prepared insert_select respect existing returning clause" do
|
1112
|
+
h = @ds.returning(Sequel[:value].as(:v), Sequel[:xid].as(:x)).prepare(:insert_select, :insert_select, :value=>10).call
|
1113
|
+
h[:v].must_equal 10
|
1114
|
+
@ds.first(:xid=>h[:x])[:value].must_equal 10
|
1115
|
+
end
|
1116
|
+
|
1117
|
+
it "should correctly return the inserted record's primary key value" do
|
1118
|
+
value1 = 10
|
1119
|
+
id1 = @ds.insert(:value=>value1)
|
1120
|
+
@ds.first(:xid=>id1)[:value].must_equal value1
|
1121
|
+
value2 = 20
|
1122
|
+
id2 = @ds.insert(:value=>value2)
|
1123
|
+
@ds.first(:xid=>id2)[:value].must_equal value2
|
1124
|
+
end
|
1125
|
+
|
1126
|
+
it "should return nil if the table has no primary key" do
|
1127
|
+
@db.create_table!(:test5){String :name; Integer :value}
|
1128
|
+
@ds.delete
|
1129
|
+
@ds.insert(:name=>'a').must_be_nil
|
1130
|
+
end
|
1131
|
+
end
|
1132
|
+
|
1133
|
+
describe "Postgres::Database schema qualified tables" do
|
1134
|
+
before do
|
1135
|
+
@db = DB
|
1136
|
+
@db << "CREATE SCHEMA schema_test"
|
1137
|
+
@db.instance_variable_set(:@primary_keys, {})
|
1138
|
+
@db.instance_variable_set(:@primary_key_sequences, {})
|
1139
|
+
end
|
1140
|
+
after do
|
1141
|
+
@db << "DROP SCHEMA schema_test CASCADE"
|
1142
|
+
end
|
1143
|
+
|
1144
|
+
it "should be able to create, drop, select and insert into tables in a given schema" do
|
1145
|
+
@db.create_table(Sequel[:schema_test][:schema_test]){primary_key :i}
|
1146
|
+
@db[Sequel[:schema_test][:schema_test]].first.must_be_nil
|
1147
|
+
@db[Sequel[:schema_test][:schema_test]].insert(:i=>1).must_equal 1
|
1148
|
+
@db[Sequel[:schema_test][:schema_test]].first.must_equal(:i=>1)
|
1149
|
+
@db.from(Sequel.lit('schema_test.schema_test')).first.must_equal(:i=>1)
|
1150
|
+
@db.drop_table(Sequel[:schema_test][:schema_test])
|
1151
|
+
@db.create_table(Sequel.qualify(:schema_test, :schema_test)){integer :i}
|
1152
|
+
@db[Sequel[:schema_test][:schema_test]].first.must_be_nil
|
1153
|
+
@db.from(Sequel.lit('schema_test.schema_test')).first.must_be_nil
|
1154
|
+
@db.drop_table(Sequel.qualify(:schema_test, :schema_test))
|
1155
|
+
end
|
1156
|
+
|
1157
|
+
it "#tables should not include tables in a default non-public schema" do
|
1158
|
+
@db.create_table(Sequel[:schema_test][:schema_test]){integer :i}
|
1159
|
+
@db.tables(:schema=>:schema_test).must_include(:schema_test)
|
1160
|
+
@db.tables.wont_include(:pg_am)
|
1161
|
+
@db.tables.wont_include(:domain_udt_usage)
|
1162
|
+
end
|
1163
|
+
|
1164
|
+
it "#tables should return tables in the schema provided by the :schema argument" do
|
1165
|
+
@db.create_table(Sequel[:schema_test][:schema_test]){integer :i}
|
1166
|
+
@db.tables(:schema=>:schema_test).must_equal [:schema_test]
|
1167
|
+
end
|
1168
|
+
|
1169
|
+
it "#schema should not include columns from tables in a default non-public schema" do
|
1170
|
+
@db.create_table(Sequel[:schema_test][:domains]){integer :i}
|
1171
|
+
sch = @db.schema(Sequel[:schema_test][:domains])
|
1172
|
+
cs = sch.map{|x| x.first}
|
1173
|
+
cs.first.must_equal :i
|
1174
|
+
cs.wont_include(:data_type)
|
1175
|
+
end
|
1176
|
+
|
1177
|
+
it "#schema should only include columns from the table in the given :schema argument" do
|
1178
|
+
@db.create_table!(:domains){integer :d}
|
1179
|
+
@db.create_table(Sequel[:schema_test][:domains]){integer :i}
|
1180
|
+
sch = @db.schema(:domains, :schema=>:schema_test)
|
1181
|
+
cs = sch.map{|x| x.first}
|
1182
|
+
cs.first.must_equal :i
|
1183
|
+
cs.wont_include(:d)
|
1184
|
+
@db.drop_table(:domains)
|
1185
|
+
end
|
1186
|
+
|
1187
|
+
it "#schema should not include columns in tables from other domains by default" do
|
1188
|
+
@db.create_table!(Sequel[:public][:domains]){integer :d}
|
1189
|
+
@db.create_table(Sequel[:schema_test][:domains]){integer :i}
|
1190
|
+
begin
|
1191
|
+
@db.schema(:domains).map{|x| x.first}.must_equal [:d]
|
1192
|
+
@db.schema(Sequel[:schema_test][:domains]).map{|x| x.first}.must_equal [:i]
|
1193
|
+
ensure
|
1194
|
+
@db.drop_table?(Sequel[:public][:domains])
|
1195
|
+
end
|
1196
|
+
end
|
1197
|
+
|
1198
|
+
it "#table_exists? should see if the table is in a given schema" do
|
1199
|
+
@db.create_table(Sequel[:schema_test][:schema_test]){integer :i}
|
1200
|
+
@db.table_exists?(Sequel[:schema_test][:schema_test]).must_equal true
|
1201
|
+
end
|
1202
|
+
|
1203
|
+
it "should be able to add and drop indexes in a schema" do
|
1204
|
+
@db.create_table(Sequel[:schema_test][:schema_test]){Integer :i, :index=>true}
|
1205
|
+
@db.indexes(Sequel[:schema_test][:schema_test]).keys.must_equal [:schema_test_schema_test_i_index]
|
1206
|
+
@db.drop_index Sequel[:schema_test][:schema_test], :i
|
1207
|
+
@db.indexes(Sequel[:schema_test][:schema_test]).keys.must_equal []
|
1208
|
+
end
|
1209
|
+
|
1210
|
+
it "should be able to get primary keys for tables in a given schema" do
|
1211
|
+
@db.create_table(Sequel[:schema_test][:schema_test]){primary_key :i}
|
1212
|
+
@db.primary_key(Sequel[:schema_test][:schema_test]).must_equal 'i'
|
1213
|
+
end
|
1214
|
+
|
1215
|
+
it "should be able to get serial sequences for tables in a given schema" do
|
1216
|
+
@db.create_table(Sequel[:schema_test][:schema_test]){primary_key :i}
|
1217
|
+
@db.primary_key_sequence(Sequel[:schema_test][:schema_test]).must_equal '"schema_test"."schema_test_i_seq"'
|
1218
|
+
end
|
1219
|
+
|
1220
|
+
it "should be able to get serial sequences for tables that have spaces in the name in a given schema" do
|
1221
|
+
@db.create_table(Sequel[:schema_test][:"schema test"]){primary_key :i}
|
1222
|
+
@db.primary_key_sequence(Sequel[:schema_test][:"schema test"]).must_equal '"schema_test"."schema test_i_seq"'
|
1223
|
+
end
|
1224
|
+
|
1225
|
+
it "should be able to get custom sequences for tables in a given schema" do
|
1226
|
+
@db << "CREATE SEQUENCE schema_test.kseq"
|
1227
|
+
@db.create_table(Sequel[:schema_test][:schema_test]){integer :j; primary_key :k, :type=>:integer, :default=>Sequel.lit("nextval('schema_test.kseq'::regclass)")}
|
1228
|
+
@db.primary_key_sequence(Sequel[:schema_test][:schema_test]).must_equal '"schema_test".kseq'
|
1229
|
+
end
|
1230
|
+
|
1231
|
+
it "should be able to get custom sequences for tables that have spaces in the name in a given schema" do
|
1232
|
+
@db << "CREATE SEQUENCE schema_test.\"ks eq\""
|
1233
|
+
@db.create_table(Sequel[:schema_test][:"schema test"]){integer :j; primary_key :k, :type=>:integer, :default=>Sequel.lit("nextval('schema_test.\"ks eq\"'::regclass)")}
|
1234
|
+
@db.primary_key_sequence(Sequel[:schema_test][:"schema test"]).must_equal '"schema_test"."ks eq"'
|
1235
|
+
end
|
1236
|
+
|
1237
|
+
it "should handle schema introspection cases with tables with same name in multiple schemas" do
|
1238
|
+
begin
|
1239
|
+
@db.create_table(Sequel[:schema_test][:schema_test]) do
|
1240
|
+
primary_key :id
|
1241
|
+
foreign_key :i, Sequel[:schema_test][:schema_test], :index=>{:name=>:schema_test_sti}
|
1242
|
+
end
|
1243
|
+
@db.create_table!(Sequel[:public][:schema_test]) do
|
1244
|
+
primary_key :id
|
1245
|
+
foreign_key :j, Sequel[:public][:schema_test], :index=>{:name=>:public_test_sti}
|
1246
|
+
end
|
1247
|
+
|
1248
|
+
h = @db.schema(:schema_test)
|
1249
|
+
h.length.must_equal 2
|
1250
|
+
h.last.first.must_equal :j
|
1251
|
+
|
1252
|
+
@db.indexes(:schema_test).must_equal(:public_test_sti=>{:unique=>false, :columns=>[:j], :deferrable=>nil})
|
1253
|
+
@db.foreign_key_list(:schema_test).must_equal [{:on_update=>:no_action, :columns=>[:j], :deferrable=>false, :key=>[:id], :table=>:schema_test, :on_delete=>:no_action, :name=>:schema_test_j_fkey}]
|
1254
|
+
ensure
|
1255
|
+
@db.drop_table?(Sequel[:public][:schema_test])
|
1256
|
+
end
|
1257
|
+
end
|
1258
|
+
end
|
1259
|
+
|
1260
|
+
describe "Postgres::Database schema qualified tables and eager graphing" do
|
1261
|
+
before(:all) do
|
1262
|
+
@db = DB
|
1263
|
+
@db.run "DROP SCHEMA s CASCADE" rescue nil
|
1264
|
+
@db.run "CREATE SCHEMA s"
|
1265
|
+
|
1266
|
+
@db.create_table(Sequel[:s][:bands]){primary_key :id; String :name}
|
1267
|
+
@db.create_table(Sequel[:s][:albums]){primary_key :id; String :name; foreign_key :band_id, Sequel[:s][:bands]}
|
1268
|
+
@db.create_table(Sequel[:s][:tracks]){primary_key :id; String :name; foreign_key :album_id, Sequel[:s][:albums]}
|
1269
|
+
@db.create_table(Sequel[:s][:members]){primary_key :id; String :name; foreign_key :band_id, Sequel[:s][:bands]}
|
1270
|
+
|
1271
|
+
@Band = Class.new(Sequel::Model(Sequel[:s][:bands]))
|
1272
|
+
@Album = Class.new(Sequel::Model(Sequel[:s][:albums]))
|
1273
|
+
@Track = Class.new(Sequel::Model(Sequel[:s][:tracks]))
|
1274
|
+
@Member = Class.new(Sequel::Model(Sequel[:s][:members]))
|
1275
|
+
def @Band.name; :Band; end
|
1276
|
+
def @Album.name; :Album; end
|
1277
|
+
def @Track.name; :Track; end
|
1278
|
+
def @Member.name; :Member; end
|
1279
|
+
|
1280
|
+
@Band.one_to_many :albums, :class=>@Album, :order=>:name
|
1281
|
+
@Band.one_to_many :members, :class=>@Member, :order=>:name
|
1282
|
+
@Album.many_to_one :band, :class=>@Band, :order=>:name
|
1283
|
+
@Album.one_to_many :tracks, :class=>@Track, :order=>:name
|
1284
|
+
@Track.many_to_one :album, :class=>@Album, :order=>:name
|
1285
|
+
@Member.many_to_one :band, :class=>@Band, :order=>:name
|
1286
|
+
|
1287
|
+
@Member.many_to_many :members, :class=>@Member, :join_table=>Sequel[:s][:bands], :right_key=>:id, :left_key=>:id, :left_primary_key=>:band_id, :right_primary_key=>:band_id, :order=>:name
|
1288
|
+
@Band.many_to_many :tracks, :class=>@Track, :join_table=>Sequel[:s][:albums], :right_key=>:id, :right_primary_key=>:album_id, :order=>:name
|
1289
|
+
|
1290
|
+
@b1 = @Band.create(:name=>"BM")
|
1291
|
+
@b2 = @Band.create(:name=>"J")
|
1292
|
+
@a1 = @Album.create(:name=>"BM1", :band=>@b1)
|
1293
|
+
@a2 = @Album.create(:name=>"BM2", :band=>@b1)
|
1294
|
+
@a3 = @Album.create(:name=>"GH", :band=>@b2)
|
1295
|
+
@a4 = @Album.create(:name=>"GHL", :band=>@b2)
|
1296
|
+
@t1 = @Track.create(:name=>"BM1-1", :album=>@a1)
|
1297
|
+
@t2 = @Track.create(:name=>"BM1-2", :album=>@a1)
|
1298
|
+
@t3 = @Track.create(:name=>"BM2-1", :album=>@a2)
|
1299
|
+
@t4 = @Track.create(:name=>"BM2-2", :album=>@a2)
|
1300
|
+
@m1 = @Member.create(:name=>"NU", :band=>@b1)
|
1301
|
+
@m2 = @Member.create(:name=>"TS", :band=>@b1)
|
1302
|
+
@m3 = @Member.create(:name=>"NS", :band=>@b2)
|
1303
|
+
@m4 = @Member.create(:name=>"JC", :band=>@b2)
|
1304
|
+
end
|
1305
|
+
after(:all) do
|
1306
|
+
@db.run "DROP SCHEMA s CASCADE"
|
1307
|
+
end
|
1308
|
+
|
1309
|
+
it "should return all eager graphs correctly" do
|
1310
|
+
bands = @Band.order(Sequel[:bands][:name]).eager_graph(:albums).all
|
1311
|
+
bands.must_equal [@b1, @b2]
|
1312
|
+
bands.map{|x| x.albums}.must_equal [[@a1, @a2], [@a3, @a4]]
|
1313
|
+
|
1314
|
+
bands = @Band.order(Sequel[:bands][:name]).eager_graph(:albums=>:tracks).all
|
1315
|
+
bands.must_equal [@b1, @b2]
|
1316
|
+
bands.map{|x| x.albums}.must_equal [[@a1, @a2], [@a3, @a4]]
|
1317
|
+
bands.map{|x| x.albums.map{|y| y.tracks}}.must_equal [[[@t1, @t2], [@t3, @t4]], [[], []]]
|
1318
|
+
|
1319
|
+
bands = @Band.order(Sequel[:bands][:name]).eager_graph({:albums=>:tracks}, :members).all
|
1320
|
+
bands.must_equal [@b1, @b2]
|
1321
|
+
bands.map{|x| x.albums}.must_equal [[@a1, @a2], [@a3, @a4]]
|
1322
|
+
bands.map{|x| x.albums.map{|y| y.tracks}}.must_equal [[[@t1, @t2], [@t3, @t4]], [[], []]]
|
1323
|
+
bands.map{|x| x.members}.must_equal [[@m1, @m2], [@m4, @m3]]
|
1324
|
+
end
|
1325
|
+
|
1326
|
+
it "should have eager graphs work with previous joins" do
|
1327
|
+
bands = @Band.order(Sequel[:bands][:name]).select_all(Sequel[:s][:bands]).join(Sequel[:s][:members], :band_id=>:id).from_self(:alias=>:bands0).eager_graph(:albums=>:tracks).all
|
1328
|
+
bands.must_equal [@b1, @b2]
|
1329
|
+
bands.map{|x| x.albums}.must_equal [[@a1, @a2], [@a3, @a4]]
|
1330
|
+
bands.map{|x| x.albums.map{|y| y.tracks}}.must_equal [[[@t1, @t2], [@t3, @t4]], [[], []]]
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
it "should have eager graphs work with joins with the same tables" do
|
1334
|
+
bands = @Band.order(Sequel[:bands][:name]).select_all(Sequel[:s][:bands]).join(Sequel[:s][:members], :band_id=>:id).eager_graph({:albums=>:tracks}, :members).all
|
1335
|
+
bands.must_equal [@b1, @b2]
|
1336
|
+
bands.map{|x| x.albums}.must_equal [[@a1, @a2], [@a3, @a4]]
|
1337
|
+
bands.map{|x| x.albums.map{|y| y.tracks}}.must_equal [[[@t1, @t2], [@t3, @t4]], [[], []]]
|
1338
|
+
bands.map{|x| x.members}.must_equal [[@m1, @m2], [@m4, @m3]]
|
1339
|
+
end
|
1340
|
+
|
1341
|
+
it "should have eager graphs work with self referential associations" do
|
1342
|
+
bands = @Band.order(Sequel[:bands][:name]).eager_graph(:tracks=>{:album=>:band}).all
|
1343
|
+
bands.must_equal [@b1, @b2]
|
1344
|
+
bands.map{|x| x.tracks}.must_equal [[@t1, @t2, @t3, @t4], []]
|
1345
|
+
bands.map{|x| x.tracks.map{|y| y.album}}.must_equal [[@a1, @a1, @a2, @a2], []]
|
1346
|
+
bands.map{|x| x.tracks.map{|y| y.album.band}}.must_equal [[@b1, @b1, @b1, @b1], []]
|
1347
|
+
|
1348
|
+
members = @Member.order(Sequel[:members][:name]).eager_graph(:members).all
|
1349
|
+
members.must_equal [@m4, @m3, @m1, @m2]
|
1350
|
+
members.map{|x| x.members}.must_equal [[@m4, @m3], [@m4, @m3], [@m1, @m2], [@m1, @m2]]
|
1351
|
+
|
1352
|
+
members = @Member.order(Sequel[:members][:name]).eager_graph(:band, :members=>:band).all
|
1353
|
+
members.must_equal [@m4, @m3, @m1, @m2]
|
1354
|
+
members.map{|x| x.band}.must_equal [@b2, @b2, @b1, @b1]
|
1355
|
+
members.map{|x| x.members}.must_equal [[@m4, @m3], [@m4, @m3], [@m1, @m2], [@m1, @m2]]
|
1356
|
+
members.map{|x| x.members.map{|y| y.band}}.must_equal [[@b2, @b2], [@b2, @b2], [@b1, @b1], [@b1, @b1]]
|
1357
|
+
end
|
1358
|
+
|
1359
|
+
it "should have eager graphs work with a from_self dataset" do
|
1360
|
+
bands = @Band.order(Sequel[:bands][:name]).from_self.eager_graph(:tracks=>{:album=>:band}).all
|
1361
|
+
bands.must_equal [@b1, @b2]
|
1362
|
+
bands.map{|x| x.tracks}.must_equal [[@t1, @t2, @t3, @t4], []]
|
1363
|
+
bands.map{|x| x.tracks.map{|y| y.album}}.must_equal [[@a1, @a1, @a2, @a2], []]
|
1364
|
+
bands.map{|x| x.tracks.map{|y| y.album.band}}.must_equal [[@b1, @b1, @b1, @b1], []]
|
1365
|
+
end
|
1366
|
+
|
1367
|
+
it "should have eager graphs work with different types of aliased from tables" do
|
1368
|
+
bands = @Band.order(Sequel[:tracks][:name]).from(Sequel[:s][:bands].as(:tracks)).eager_graph(:tracks).all
|
1369
|
+
bands.must_equal [@b1, @b2]
|
1370
|
+
bands.map{|x| x.tracks}.must_equal [[@t1, @t2, @t3, @t4], []]
|
1371
|
+
|
1372
|
+
bands = @Band.order(Sequel[:tracks][:name]).from(Sequel.expr(Sequel[:s][:bands]).as(:tracks)).eager_graph(:tracks).all
|
1373
|
+
bands.must_equal [@b1, @b2]
|
1374
|
+
bands.map{|x| x.tracks}.must_equal [[@t1, @t2, @t3, @t4], []]
|
1375
|
+
|
1376
|
+
bands = @Band.order(Sequel[:tracks][:name]).from(Sequel.expr(Sequel[:s][:bands]).as(Sequel.identifier(:tracks))).eager_graph(:tracks).all
|
1377
|
+
bands.must_equal [@b1, @b2]
|
1378
|
+
bands.map{|x| x.tracks}.must_equal [[@t1, @t2, @t3, @t4], []]
|
1379
|
+
|
1380
|
+
bands = @Band.order(Sequel[:tracks][:name]).from(Sequel.expr(Sequel[:s][:bands]).as('tracks')).eager_graph(:tracks).all
|
1381
|
+
bands.must_equal [@b1, @b2]
|
1382
|
+
bands.map{|x| x.tracks}.must_equal [[@t1, @t2, @t3, @t4], []]
|
1383
|
+
end
|
1384
|
+
|
1385
|
+
it "should have eager graphs work with join tables with aliases" do
|
1386
|
+
bands = @Band.order(Sequel[:bands][:name]).eager_graph(:members).join(Sequel[:s][:albums].as(:tracks), :band_id=>Sequel.qualify(Sequel[:s][:bands], :id)).eager_graph(:albums=>:tracks).all
|
1387
|
+
bands.must_equal [@b1, @b2]
|
1388
|
+
bands.map{|x| x.albums}.must_equal [[@a1, @a2], [@a3, @a4]]
|
1389
|
+
bands.map{|x| x.members}.must_equal [[@m1, @m2], [@m4, @m3]]
|
1390
|
+
|
1391
|
+
bands = @Band.order(Sequel[:bands][:name]).eager_graph(:members).join(Sequel.as(Sequel[:s][:albums], :tracks), :band_id=>Sequel.qualify(Sequel[:s][:bands], :id)).eager_graph(:albums=>:tracks).all
|
1392
|
+
bands.must_equal [@b1, @b2]
|
1393
|
+
bands.map{|x| x.albums}.must_equal [[@a1, @a2], [@a3, @a4]]
|
1394
|
+
bands.map{|x| x.members}.must_equal [[@m1, @m2], [@m4, @m3]]
|
1395
|
+
|
1396
|
+
bands = @Band.order(Sequel[:bands][:name]).eager_graph(:members).join(Sequel.as(Sequel[:s][:albums], 'tracks'), :band_id=>Sequel.qualify(Sequel[:s][:bands], :id)).eager_graph(:albums=>:tracks).all
|
1397
|
+
bands.must_equal [@b1, @b2]
|
1398
|
+
bands.map{|x| x.albums}.must_equal [[@a1, @a2], [@a3, @a4]]
|
1399
|
+
bands.map{|x| x.members}.must_equal [[@m1, @m2], [@m4, @m3]]
|
1400
|
+
|
1401
|
+
bands = @Band.order(Sequel[:bands][:name]).eager_graph(:members).join(Sequel.as(Sequel[:s][:albums], Sequel.identifier(:tracks)), :band_id=>Sequel.qualify(Sequel[:s][:bands], :id)).eager_graph(:albums=>:tracks).all
|
1402
|
+
bands.must_equal [@b1, @b2]
|
1403
|
+
bands.map{|x| x.albums}.must_equal [[@a1, @a2], [@a3, @a4]]
|
1404
|
+
bands.map{|x| x.members}.must_equal [[@m1, @m2], [@m4, @m3]]
|
1405
|
+
|
1406
|
+
bands = @Band.order(Sequel[:bands][:name]).eager_graph(:members).join(Sequel[:s][:albums], {:band_id=>Sequel.qualify(Sequel[:s][:bands], :id)}, :table_alias=>:tracks).eager_graph(:albums=>:tracks).all
|
1407
|
+
bands.must_equal [@b1, @b2]
|
1408
|
+
bands.map{|x| x.albums}.must_equal [[@a1, @a2], [@a3, @a4]]
|
1409
|
+
bands.map{|x| x.members}.must_equal [[@m1, @m2], [@m4, @m3]]
|
1410
|
+
|
1411
|
+
bands = @Band.order(Sequel[:bands][:name]).eager_graph(:members).join(Sequel[:s][:albums], {:band_id=>Sequel.qualify(Sequel[:s][:bands], :id)}, :table_alias=>'tracks').eager_graph(:albums=>:tracks).all
|
1412
|
+
bands.must_equal [@b1, @b2]
|
1413
|
+
bands.map{|x| x.albums}.must_equal [[@a1, @a2], [@a3, @a4]]
|
1414
|
+
bands.map{|x| x.members}.must_equal [[@m1, @m2], [@m4, @m3]]
|
1415
|
+
|
1416
|
+
bands = @Band.order(Sequel[:bands][:name]).eager_graph(:members).join(Sequel[:s][:albums], {:band_id=>Sequel.qualify(Sequel[:s][:bands], :id)}, :table_alias=>Sequel.identifier(:tracks)).eager_graph(:albums=>:tracks).all
|
1417
|
+
bands.must_equal [@b1, @b2]
|
1418
|
+
bands.map{|x| x.albums}.must_equal [[@a1, @a2], [@a3, @a4]]
|
1419
|
+
bands.map{|x| x.members}.must_equal [[@m1, @m2], [@m4, @m3]]
|
1420
|
+
end
|
1421
|
+
|
1422
|
+
it "should have eager graphs work with different types of qualified from tables" do
|
1423
|
+
bands = @Band.order(Sequel[:bands][:name]).from(Sequel.qualify(:s, :bands)).eager_graph(:tracks).all
|
1424
|
+
bands.must_equal [@b1, @b2]
|
1425
|
+
bands.map{|x| x.tracks}.must_equal [[@t1, @t2, @t3, @t4], []]
|
1426
|
+
|
1427
|
+
bands = @Band.order(Sequel[:bands][:name]).from(Sequel.identifier(:bands).qualify(:s)).eager_graph(:tracks).all
|
1428
|
+
bands.must_equal [@b1, @b2]
|
1429
|
+
bands.map{|x| x.tracks}.must_equal [[@t1, @t2, @t3, @t4], []]
|
1430
|
+
|
1431
|
+
bands = @Band.order(Sequel[:bands][:name]).from(Sequel::SQL::QualifiedIdentifier.new(:s, 'bands')).eager_graph(:tracks).all
|
1432
|
+
bands.must_equal [@b1, @b2]
|
1433
|
+
bands.map{|x| x.tracks}.must_equal [[@t1, @t2, @t3, @t4], []]
|
1434
|
+
end
|
1435
|
+
|
1436
|
+
end
|
1437
|
+
|
1438
|
+
if DB.server_version >= 80300
|
1439
|
+
describe "PostgreSQL tsearch2" do
|
1440
|
+
before(:all) do
|
1441
|
+
DB.create_table! :test6 do
|
1442
|
+
text :title
|
1443
|
+
text :body
|
1444
|
+
full_text_index [:title, :body]
|
1445
|
+
end
|
1446
|
+
@ds = DB[:test6]
|
1447
|
+
end
|
1448
|
+
after do
|
1449
|
+
DB[:test6].delete
|
1450
|
+
end
|
1451
|
+
after(:all) do
|
1452
|
+
DB.drop_table?(:test6)
|
1453
|
+
end
|
1454
|
+
|
1455
|
+
it "should search by indexed column" do
|
1456
|
+
record = {:title => "oopsla conference", :body => "test"}
|
1457
|
+
@ds.insert(record)
|
1458
|
+
@ds.full_text_search(:title, "oopsla").all.must_equal [record]
|
1459
|
+
end
|
1460
|
+
|
1461
|
+
it "should join multiple coumns with spaces to search by last words in row" do
|
1462
|
+
record = {:title => "multiple words", :body => "are easy to search"}
|
1463
|
+
@ds.insert(record)
|
1464
|
+
@ds.full_text_search([:title, :body], "words").all.must_equal [record]
|
1465
|
+
end
|
1466
|
+
|
1467
|
+
it "should return rows with a NULL in one column if a match in another column" do
|
1468
|
+
record = {:title => "multiple words", :body =>nil}
|
1469
|
+
@ds.insert(record)
|
1470
|
+
@ds.full_text_search([:title, :body], "words").all.must_equal [record]
|
1471
|
+
end
|
1472
|
+
end
|
1473
|
+
end
|
1474
|
+
|
1475
|
+
if DB.dataset.supports_window_functions?
|
1476
|
+
describe "Postgres::Dataset named windows" do
|
1477
|
+
before do
|
1478
|
+
@db = DB
|
1479
|
+
@db.create_table!(:i1){Integer :id; Integer :group_id; Integer :amount}
|
1480
|
+
@ds = @db[:i1].order(:id)
|
1481
|
+
@ds.insert(:id=>1, :group_id=>1, :amount=>1)
|
1482
|
+
@ds.insert(:id=>2, :group_id=>1, :amount=>10)
|
1483
|
+
@ds.insert(:id=>3, :group_id=>1, :amount=>100)
|
1484
|
+
@ds.insert(:id=>4, :group_id=>2, :amount=>1000)
|
1485
|
+
@ds.insert(:id=>5, :group_id=>2, :amount=>10000)
|
1486
|
+
@ds.insert(:id=>6, :group_id=>2, :amount=>100000)
|
1487
|
+
end
|
1488
|
+
after do
|
1489
|
+
@db.drop_table?(:i1)
|
1490
|
+
end
|
1491
|
+
|
1492
|
+
it "should give correct results for window functions" do
|
1493
|
+
@ds.window(:win, :partition=>:group_id, :order=>:id).select(:id){sum(:amount).over(:window=>win)}.all.
|
1494
|
+
must_equal [{:sum=>1, :id=>1}, {:sum=>11, :id=>2}, {:sum=>111, :id=>3}, {:sum=>1000, :id=>4}, {:sum=>11000, :id=>5}, {:sum=>111000, :id=>6}]
|
1495
|
+
@ds.window(:win, :partition=>:group_id).select(:id){sum(:amount).over(:window=>win, :order=>id)}.all.
|
1496
|
+
must_equal [{:sum=>1, :id=>1}, {:sum=>11, :id=>2}, {:sum=>111, :id=>3}, {:sum=>1000, :id=>4}, {:sum=>11000, :id=>5}, {:sum=>111000, :id=>6}]
|
1497
|
+
@ds.window(:win, {}).select(:id){sum(:amount).over(:window=>:win, :order=>id)}.all.
|
1498
|
+
must_equal [{:sum=>1, :id=>1}, {:sum=>11, :id=>2}, {:sum=>111, :id=>3}, {:sum=>1111, :id=>4}, {:sum=>11111, :id=>5}, {:sum=>111111, :id=>6}]
|
1499
|
+
@ds.window(:win, :partition=>:group_id).select(:id){sum(:amount).over(:window=>:win, :order=>id, :frame=>:all)}.all.
|
1500
|
+
must_equal [{:sum=>111, :id=>1}, {:sum=>111, :id=>2}, {:sum=>111, :id=>3}, {:sum=>111000, :id=>4}, {:sum=>111000, :id=>5}, {:sum=>111000, :id=>6}]
|
1501
|
+
end
|
1502
|
+
end
|
1503
|
+
end
|
1504
|
+
|
1505
|
+
describe "Postgres::Database functions, languages, schemas, and triggers" do
|
1506
|
+
before do
|
1507
|
+
@d = DB
|
1508
|
+
end
|
1509
|
+
after do
|
1510
|
+
@d.drop_function('tf', :if_exists=>true, :cascade=>true)
|
1511
|
+
@d.drop_function('tf', :if_exists=>true, :cascade=>true, :args=>%w'integer integer')
|
1512
|
+
@d.drop_language(:plpgsql, :if_exists=>true, :cascade=>true) if @d.server_version < 90000
|
1513
|
+
@d.drop_schema(:sequel, :if_exists=>true, :cascade=>true)
|
1514
|
+
@d.drop_table?(:test)
|
1515
|
+
end
|
1516
|
+
|
1517
|
+
it "#create_function and #drop_function should create and drop functions" do
|
1518
|
+
proc{@d['SELECT tf()'].all}.must_raise(Sequel::DatabaseError)
|
1519
|
+
@d.create_function('tf', 'SELECT 1', :returns=>:integer)
|
1520
|
+
@d['SELECT tf()'].all.must_equal [{:tf=>1}]
|
1521
|
+
@d.drop_function('tf')
|
1522
|
+
proc{@d['SELECT tf()'].all}.must_raise(Sequel::DatabaseError)
|
1523
|
+
end
|
1524
|
+
|
1525
|
+
it "#create_function and #drop_function should support options" do
|
1526
|
+
args = ['tf', 'SELECT $1 + $2', {:args=>[[:integer, :a], :integer], :replace=>true, :returns=>:integer, :language=>'SQL', :behavior=>:immutable, :strict=>true, :security_definer=>true, :cost=>2, :set=>{:search_path => 'public'}}]
|
1527
|
+
@d.create_function(*args)
|
1528
|
+
# Make sure replace works
|
1529
|
+
@d.create_function(*args)
|
1530
|
+
@d['SELECT tf(1, 2)'].all.must_equal [{:tf=>3}]
|
1531
|
+
args = ['tf', {:if_exists=>true, :cascade=>true, :args=>[[:integer, :a], :integer]}]
|
1532
|
+
@d.drop_function(*args)
|
1533
|
+
# Make sure if exists works
|
1534
|
+
@d.drop_function(*args)
|
1535
|
+
end
|
1536
|
+
|
1537
|
+
it "#create_language and #drop_language should create and drop languages" do
|
1538
|
+
@d.create_language(:plpgsql, :replace=>true) if @d.server_version < 90000
|
1539
|
+
proc{@d.create_language(:plpgsql)}.must_raise(Sequel::DatabaseError)
|
1540
|
+
@d.drop_language(:plpgsql) if @d.server_version < 90000
|
1541
|
+
proc{@d.drop_language(:plpgsql)}.must_raise(Sequel::DatabaseError) if @d.server_version < 90000
|
1542
|
+
# Make sure if exists works
|
1543
|
+
@d.drop_language(:plpgsql, :if_exists=>true, :cascade=>true) if @d.server_version < 90000
|
1544
|
+
end
|
1545
|
+
|
1546
|
+
it "#create_schema and #drop_schema should create and drop schemas" do
|
1547
|
+
@d.create_schema(:sequel)
|
1548
|
+
@d.create_schema(:sequel, :if_not_exists=>true) if @d.server_version >= 90300
|
1549
|
+
@d.create_table(Sequel[:sequel][:test]){Integer :a}
|
1550
|
+
@d.drop_schema(:sequel, :if_exists=>true, :cascade=>true)
|
1551
|
+
end
|
1552
|
+
|
1553
|
+
it "#create_trigger and #drop_trigger should create and drop triggers" do
|
1554
|
+
@d.create_language(:plpgsql) if @d.server_version < 90000
|
1555
|
+
@d.create_function(:tf, 'BEGIN IF NEW.value IS NULL THEN RAISE EXCEPTION \'Blah\'; END IF; RETURN NEW; END;', :language=>:plpgsql, :returns=>:trigger)
|
1556
|
+
@d.create_table(:test){String :name; Integer :value}
|
1557
|
+
@d.create_trigger(:test, :identity, :tf, :each_row=>true)
|
1558
|
+
@d[:test].insert(:name=>'a', :value=>1)
|
1559
|
+
@d[:test].filter(:name=>'a').all.must_equal [{:name=>'a', :value=>1}]
|
1560
|
+
proc{@d[:test].filter(:name=>'a').update(:value=>nil)}.must_raise(Sequel::DatabaseError)
|
1561
|
+
@d[:test].filter(:name=>'a').all.must_equal [{:name=>'a', :value=>1}]
|
1562
|
+
@d[:test].filter(:name=>'a').update(:value=>3)
|
1563
|
+
@d[:test].filter(:name=>'a').all.must_equal [{:name=>'a', :value=>3}]
|
1564
|
+
@d.drop_trigger(:test, :identity)
|
1565
|
+
# Make sure if exists works
|
1566
|
+
@d.drop_trigger(:test, :identity, :if_exists=>true, :cascade=>true)
|
1567
|
+
|
1568
|
+
if @d.supports_trigger_conditions?
|
1569
|
+
@d.create_trigger(:test, :identity, :tf, :each_row=>true, :events => :update, :when=> {Sequel[:new][:name] => 'b'})
|
1570
|
+
@d[:test].filter(:name=>'a').update(:value=>nil)
|
1571
|
+
@d[:test].filter(:name=>'a').all.must_equal [{:name=>'a', :value=>nil}]
|
1572
|
+
proc{@d[:test].filter(:name=>'a').update(:name=>'b')}.must_raise(Sequel::DatabaseError)
|
1573
|
+
@d[:test].filter(:name=>'a').all.must_equal [{:name=>'a', :value=>nil}]
|
1574
|
+
@d.drop_trigger(:test, :identity)
|
1575
|
+
end
|
1576
|
+
end
|
1577
|
+
end
|
1578
|
+
|
1579
|
+
if DB.adapter_scheme == :postgres
|
1580
|
+
describe "Postgres::Dataset #use_cursor" do
|
1581
|
+
before(:all) do
|
1582
|
+
@db = DB
|
1583
|
+
@db.create_table!(:test_cursor){Integer :x}
|
1584
|
+
@ds = @db[:test_cursor]
|
1585
|
+
@db.transaction{1001.times{|i| @ds.insert(i)}}
|
1586
|
+
end
|
1587
|
+
after(:all) do
|
1588
|
+
@db.drop_table?(:test_cursor)
|
1589
|
+
end
|
1590
|
+
|
1591
|
+
it "should return the same results as the non-cursor use" do
|
1592
|
+
@ds.all.must_equal @ds.use_cursor.all
|
1593
|
+
end
|
1594
|
+
|
1595
|
+
it "should not swallow errors if closing cursor raises an error" do
|
1596
|
+
proc do
|
1597
|
+
@db.synchronize do |c|
|
1598
|
+
@ds.use_cursor.each do |r|
|
1599
|
+
@db.run "CLOSE sequel_cursor"
|
1600
|
+
raise ArgumentError
|
1601
|
+
end
|
1602
|
+
end
|
1603
|
+
end.must_raise(ArgumentError)
|
1604
|
+
end
|
1605
|
+
|
1606
|
+
it "should respect the :rows_per_fetch option" do
|
1607
|
+
i = 0
|
1608
|
+
@ds = @ds.with_extend{define_method(:execute){|*a, &block| i+=1; super(*a, &block);}}
|
1609
|
+
@ds.use_cursor.all
|
1610
|
+
i.must_equal 2
|
1611
|
+
|
1612
|
+
i = 0
|
1613
|
+
@ds.use_cursor(:rows_per_fetch=>100).all
|
1614
|
+
i.must_equal 11
|
1615
|
+
end
|
1616
|
+
|
1617
|
+
it "should respect the :hold=>true option for creating the cursor WITH HOLD and not using a transaction" do
|
1618
|
+
@ds.use_cursor.each{@db.in_transaction?.must_equal true}
|
1619
|
+
@ds.use_cursor(:hold=>true).each{@db.in_transaction?.must_equal false}
|
1620
|
+
end
|
1621
|
+
|
1622
|
+
it "should support updating individual rows based on a cursor" do
|
1623
|
+
@db.transaction(:rollback=>:always) do
|
1624
|
+
@ds.use_cursor(:rows_per_fetch=>1).each do |row|
|
1625
|
+
@ds.where_current_of.update(:x=>Sequel.*(row[:x], 10))
|
1626
|
+
end
|
1627
|
+
@ds.select_order_map(:x).must_equal((0..1000).map{|x| x * 10})
|
1628
|
+
end
|
1629
|
+
@ds.select_order_map(:x).must_equal((0..1000).to_a)
|
1630
|
+
end
|
1631
|
+
|
1632
|
+
it "should respect the :cursor_name option" do
|
1633
|
+
one_rows = []
|
1634
|
+
two_rows = []
|
1635
|
+
@ds.order(:x).use_cursor(:cursor_name => 'cursor_one').each do |one|
|
1636
|
+
one_rows << one
|
1637
|
+
if one[:x] % 1000 == 500
|
1638
|
+
two_rows = []
|
1639
|
+
@ds.order(:x).use_cursor(:cursor_name => 'cursor_two').each do |two|
|
1640
|
+
two_rows << two
|
1641
|
+
end
|
1642
|
+
end
|
1643
|
+
end
|
1644
|
+
one_rows.must_equal two_rows
|
1645
|
+
end
|
1646
|
+
|
1647
|
+
it "should handle returning inside block" do
|
1648
|
+
ds = @ds.with_extend do
|
1649
|
+
def check_return
|
1650
|
+
use_cursor.each{|r| return}
|
1651
|
+
end
|
1652
|
+
end
|
1653
|
+
ds.check_return
|
1654
|
+
ds.all.must_equal ds.use_cursor.all
|
1655
|
+
end
|
1656
|
+
end
|
1657
|
+
|
1658
|
+
describe "Database#add_named_conversion_proc" do
|
1659
|
+
before(:all) do
|
1660
|
+
@db = DB
|
1661
|
+
@old_cp = @db.conversion_procs[1013]
|
1662
|
+
@db.conversion_procs.delete(1013)
|
1663
|
+
@db.add_named_conversion_proc(:oidvector, &:reverse)
|
1664
|
+
end
|
1665
|
+
after(:all) do
|
1666
|
+
@db.conversion_procs.delete(30)
|
1667
|
+
@db.conversion_procs[1013] = @old_cp
|
1668
|
+
@db.drop_table?(:foo)
|
1669
|
+
@db.drop_enum(:foo_enum) rescue nil
|
1670
|
+
end
|
1671
|
+
|
1672
|
+
it "should work for scalar types" do
|
1673
|
+
@db.create_table!(:foo){oidvector :bar}
|
1674
|
+
@db[:foo].insert(Sequel.cast('21', :oidvector))
|
1675
|
+
@db[:foo].get(:bar).must_equal '12'
|
1676
|
+
end
|
1677
|
+
|
1678
|
+
it "should work for array types" do
|
1679
|
+
@db.create_table!(:foo){column :bar, 'oidvector[]'}
|
1680
|
+
@db[:foo].insert(Sequel.pg_array(['21'], :oidvector))
|
1681
|
+
@db[:foo].get(:bar).must_equal ['12']
|
1682
|
+
end
|
1683
|
+
|
1684
|
+
it "should work with for enums" do
|
1685
|
+
@db.drop_enum(:foo_enum) rescue nil
|
1686
|
+
@db.create_enum(:foo_enum, %w(foo bar))
|
1687
|
+
@db.add_named_conversion_proc(:foo_enum){|string| string.reverse}
|
1688
|
+
@db.create_table!(:foo){foo_enum :bar}
|
1689
|
+
@db[:foo].insert(:bar => 'foo')
|
1690
|
+
@db[:foo].get(:bar).must_equal 'foo'.reverse
|
1691
|
+
end
|
1692
|
+
end
|
1693
|
+
end
|
1694
|
+
|
1695
|
+
if uses_pg_or_jdbc && DB.server_version >= 90000
|
1696
|
+
describe "Postgres::Database#copy_into" do
|
1697
|
+
before(:all) do
|
1698
|
+
@db = DB
|
1699
|
+
@db.create_table!(:test_copy){Integer :x; Integer :y}
|
1700
|
+
@ds = @db[:test_copy].order(:x, :y)
|
1701
|
+
end
|
1702
|
+
before do
|
1703
|
+
@db[:test_copy].delete
|
1704
|
+
end
|
1705
|
+
after(:all) do
|
1706
|
+
@db.drop_table?(:test_copy)
|
1707
|
+
end
|
1708
|
+
|
1709
|
+
it "should work with a :data option containing data in PostgreSQL text format" do
|
1710
|
+
@db.copy_into(:test_copy, :data=>"1\t2\n3\t4\n")
|
1711
|
+
@ds.select_map([:x, :y]).must_equal [[1, 2], [3, 4]]
|
1712
|
+
end
|
1713
|
+
|
1714
|
+
it "should work with :format=>:csv option and :data option containing data in CSV format" do
|
1715
|
+
@db.copy_into(:test_copy, :format=>:csv, :data=>"1,2\n3,4\n")
|
1716
|
+
@ds.select_map([:x, :y]).must_equal [[1, 2], [3, 4]]
|
1717
|
+
end
|
1718
|
+
|
1719
|
+
it "should respect given :options" do
|
1720
|
+
@db.copy_into(:test_copy, :options=>"FORMAT csv, HEADER TRUE", :data=>"x,y\n1,2\n3,4\n")
|
1721
|
+
@ds.select_map([:x, :y]).must_equal [[1, 2], [3, 4]]
|
1722
|
+
end
|
1723
|
+
|
1724
|
+
it "should respect given :options options when :format is used" do
|
1725
|
+
@db.copy_into(:test_copy, :options=>"QUOTE '''', DELIMITER '|'", :format=>:csv, :data=>"'1'|'2'\n'3'|'4'\n")
|
1726
|
+
@ds.select_map([:x, :y]).must_equal [[1, 2], [3, 4]]
|
1727
|
+
end
|
1728
|
+
|
1729
|
+
it "should accept :columns option to online copy the given columns" do
|
1730
|
+
@db.copy_into(:test_copy, :data=>"1\t2\n3\t4\n", :columns=>[:y, :x])
|
1731
|
+
@ds.select_map([:x, :y]).must_equal [[2, 1], [4, 3]]
|
1732
|
+
end
|
1733
|
+
|
1734
|
+
it "should accept a block and use returned values for the copy in data stream" do
|
1735
|
+
buf = ["1\t2\n", "3\t4\n"]
|
1736
|
+
@db.copy_into(:test_copy){buf.shift}
|
1737
|
+
@ds.select_map([:x, :y]).must_equal [[1, 2], [3, 4]]
|
1738
|
+
end
|
1739
|
+
|
1740
|
+
it "should work correctly with a block and :format=>:csv" do
|
1741
|
+
buf = ["1,2\n", "3,4\n"]
|
1742
|
+
@db.copy_into(:test_copy, :format=>:csv){buf.shift}
|
1743
|
+
@ds.select_map([:x, :y]).must_equal [[1, 2], [3, 4]]
|
1744
|
+
end
|
1745
|
+
|
1746
|
+
it "should accept an enumerable as the :data option" do
|
1747
|
+
@db.copy_into(:test_copy, :data=>["1\t2\n", "3\t4\n"])
|
1748
|
+
@ds.select_map([:x, :y]).must_equal [[1, 2], [3, 4]]
|
1749
|
+
end
|
1750
|
+
|
1751
|
+
it "should have an exception, cause a rollback of copied data and still have a usable connection" do
|
1752
|
+
2.times do
|
1753
|
+
sent = false
|
1754
|
+
proc{@db.copy_into(:test_copy){raise ArgumentError if sent; sent = true; "1\t2\n"}}.must_raise(ArgumentError)
|
1755
|
+
@ds.select_map([:x, :y]).must_equal []
|
1756
|
+
end
|
1757
|
+
end
|
1758
|
+
|
1759
|
+
it "should handle database errors with a rollback of copied data and still have a usable connection" do
|
1760
|
+
2.times do
|
1761
|
+
proc{@db.copy_into(:test_copy, :data=>["1\t2\n", "3\ta\n"])}.must_raise(Sequel::DatabaseError)
|
1762
|
+
@ds.select_map([:x, :y]).must_equal []
|
1763
|
+
end
|
1764
|
+
end
|
1765
|
+
|
1766
|
+
it "should raise an Error if both :data and a block are provided" do
|
1767
|
+
proc{@db.copy_into(:test_copy, :data=>["1\t2\n", "3\t4\n"]){}}.must_raise(Sequel::Error)
|
1768
|
+
end
|
1769
|
+
|
1770
|
+
it "should raise an Error if neither :data or a block are provided" do
|
1771
|
+
proc{@db.copy_into(:test_copy)}.must_raise(Sequel::Error)
|
1772
|
+
end
|
1773
|
+
end
|
1774
|
+
|
1775
|
+
describe "Postgres::Database#copy_into using UTF-8 encoding" do
|
1776
|
+
before(:all) do
|
1777
|
+
@db = DB
|
1778
|
+
@db.create_table!(:test_copy){String :t}
|
1779
|
+
@ds = @db[:test_copy].order(:t)
|
1780
|
+
end
|
1781
|
+
before do
|
1782
|
+
@db[:test_copy].delete
|
1783
|
+
end
|
1784
|
+
after(:all) do
|
1785
|
+
@db.drop_table?(:test_copy)
|
1786
|
+
end
|
1787
|
+
|
1788
|
+
it "should work with UTF-8 characters using the :data option" do
|
1789
|
+
@db.copy_into(:test_copy, :data=>(["\u00E4\n"]*2))
|
1790
|
+
@ds.select_map([:t]).map{|a| a.map{|s| s.force_encoding('UTF-8')}}.must_equal([["\u00E4"]] * 2)
|
1791
|
+
end
|
1792
|
+
|
1793
|
+
it "should work with UTF-8 characters using a block" do
|
1794
|
+
buf = (["\u00E4\n"]*2)
|
1795
|
+
@db.copy_into(:test_copy){buf.shift}
|
1796
|
+
@ds.select_map([:t]).map{|a| a.map{|s| s.force_encoding('UTF-8')}}.must_equal([["\u00E4"]] * 2)
|
1797
|
+
end
|
1798
|
+
end
|
1799
|
+
|
1800
|
+
describe "Postgres::Database#copy_table" do
|
1801
|
+
before(:all) do
|
1802
|
+
@db = DB
|
1803
|
+
@db.create_table!(:test_copy){Integer :x; Integer :y}
|
1804
|
+
ds = @db[:test_copy]
|
1805
|
+
ds.insert(1, 2)
|
1806
|
+
ds.insert(3, 4)
|
1807
|
+
end
|
1808
|
+
after(:all) do
|
1809
|
+
@db.drop_table?(:test_copy)
|
1810
|
+
end
|
1811
|
+
|
1812
|
+
it "without a block or options should return a text version of the table as a single string" do
|
1813
|
+
@db.copy_table(:test_copy).must_equal "1\t2\n3\t4\n"
|
1814
|
+
end
|
1815
|
+
|
1816
|
+
it "without a block and with :format=>:csv should return a csv version of the table as a single string" do
|
1817
|
+
@db.copy_table(:test_copy, :format=>:csv).must_equal "1,2\n3,4\n"
|
1818
|
+
end
|
1819
|
+
|
1820
|
+
it "should treat string as SQL code" do
|
1821
|
+
@db.copy_table('COPY "test_copy" TO STDOUT').must_equal "1\t2\n3\t4\n"
|
1822
|
+
end
|
1823
|
+
|
1824
|
+
it "should respect given :options options" do
|
1825
|
+
@db.copy_table(:test_copy, :options=>"FORMAT csv, HEADER TRUE").must_equal "x,y\n1,2\n3,4\n"
|
1826
|
+
end
|
1827
|
+
|
1828
|
+
it "should respect given :options options when :format is used" do
|
1829
|
+
@db.copy_table(:test_copy, :format=>:csv, :options=>"QUOTE '''', FORCE_QUOTE *").must_equal "'1','2'\n'3','4'\n"
|
1830
|
+
end
|
1831
|
+
|
1832
|
+
it "should accept dataset as first argument" do
|
1833
|
+
@db.copy_table(@db[:test_copy].cross_join(Sequel[:test_copy].as(:tc)).order(Sequel[:test_copy][:x], Sequel[:test_copy][:y], Sequel[:tc][:x], Sequel[:tc][:y])).must_equal "1\t2\t1\t2\n1\t2\t3\t4\n3\t4\t1\t2\n3\t4\t3\t4\n"
|
1834
|
+
end
|
1835
|
+
|
1836
|
+
it "with a block and no options should yield each row as a string in text format" do
|
1837
|
+
buf = []
|
1838
|
+
@db.copy_table(:test_copy){|b| buf << b}
|
1839
|
+
buf.must_equal ["1\t2\n", "3\t4\n"]
|
1840
|
+
end
|
1841
|
+
|
1842
|
+
it "with a block and :format=>:csv should yield each row as a string in csv format" do
|
1843
|
+
buf = []
|
1844
|
+
@db.copy_table(:test_copy, :format=>:csv){|b| buf << b}
|
1845
|
+
buf.must_equal ["1,2\n", "3,4\n"]
|
1846
|
+
end
|
1847
|
+
|
1848
|
+
it "should work fine when using a block that is terminated early with a following copy_table" do
|
1849
|
+
buf = []
|
1850
|
+
proc{@db.copy_table(:test_copy, :format=>:csv){|b| buf << b; break}}.must_raise(Sequel::DatabaseDisconnectError)
|
1851
|
+
buf.must_equal ["1,2\n"]
|
1852
|
+
buf.clear
|
1853
|
+
proc{@db.copy_table(:test_copy, :format=>:csv){|b| buf << b; raise ArgumentError}}.must_raise(Sequel::DatabaseDisconnectError)
|
1854
|
+
buf.must_equal ["1,2\n"]
|
1855
|
+
buf.clear
|
1856
|
+
@db.copy_table(:test_copy){|b| buf << b}
|
1857
|
+
buf.must_equal ["1\t2\n", "3\t4\n"]
|
1858
|
+
end
|
1859
|
+
|
1860
|
+
it "should work fine when using a block that is terminated early with a following regular query" do
|
1861
|
+
buf = []
|
1862
|
+
proc{@db.copy_table(:test_copy, :format=>:csv){|b| buf << b; break}}.must_raise(Sequel::DatabaseDisconnectError)
|
1863
|
+
buf.must_equal ["1,2\n"]
|
1864
|
+
buf.clear
|
1865
|
+
proc{@db.copy_table(:test_copy, :format=>:csv){|b| buf << b; raise ArgumentError}}.must_raise(Sequel::DatabaseDisconnectError)
|
1866
|
+
buf.must_equal ["1,2\n"]
|
1867
|
+
@db[:test_copy].select_order_map(:x).must_equal [1, 3]
|
1868
|
+
end
|
1869
|
+
|
1870
|
+
it "should not swallow error raised by block" do
|
1871
|
+
begin
|
1872
|
+
@db.copy_table(:test_copy){|b| raise ArgumentError, "foo"}
|
1873
|
+
rescue => e
|
1874
|
+
end
|
1875
|
+
|
1876
|
+
e.must_be_kind_of Sequel::DatabaseDisconnectError
|
1877
|
+
e.wrapped_exception.must_be_kind_of ArgumentError
|
1878
|
+
e.message.must_include "foo"
|
1879
|
+
end
|
1880
|
+
end
|
1881
|
+
end
|
1882
|
+
|
1883
|
+
if uses_pg && DB.server_version >= 90000
|
1884
|
+
describe "Postgres::Database LISTEN/NOTIFY" do
|
1885
|
+
before(:all) do
|
1886
|
+
@db = DB
|
1887
|
+
end
|
1888
|
+
|
1889
|
+
it "should support listen and notify" do
|
1890
|
+
notify_pid = @db.synchronize{|conn| conn.backend_pid}
|
1891
|
+
|
1892
|
+
called = false
|
1893
|
+
@db.listen('foo', :after_listen=>proc{@db.notify('foo')}) do |ev, pid, payload|
|
1894
|
+
ev.must_equal 'foo'
|
1895
|
+
pid.must_equal notify_pid
|
1896
|
+
['', nil].must_include(payload)
|
1897
|
+
called = true
|
1898
|
+
end.must_equal 'foo'
|
1899
|
+
called.must_equal true
|
1900
|
+
|
1901
|
+
# Check weird identifier names
|
1902
|
+
called = false
|
1903
|
+
@db.listen('FOO bar', :after_listen=>proc{@db.notify('FOO bar')}) do |ev, pid, payload|
|
1904
|
+
ev.must_equal 'FOO bar'
|
1905
|
+
pid.must_equal notify_pid
|
1906
|
+
['', nil].must_include(payload)
|
1907
|
+
called = true
|
1908
|
+
end.must_equal 'FOO bar'
|
1909
|
+
called.must_equal true
|
1910
|
+
|
1911
|
+
# Check identifier symbols
|
1912
|
+
called = false
|
1913
|
+
@db.listen(:foo, :after_listen=>proc{@db.notify(:foo)}) do |ev, pid, payload|
|
1914
|
+
ev.must_equal 'foo'
|
1915
|
+
pid.must_equal notify_pid
|
1916
|
+
['', nil].must_include(payload)
|
1917
|
+
called = true
|
1918
|
+
end.must_equal 'foo'
|
1919
|
+
called.must_equal true
|
1920
|
+
|
1921
|
+
called = false
|
1922
|
+
@db.listen('foo', :after_listen=>proc{@db.notify('foo', :payload=>'bar')}) do |ev, pid, payload|
|
1923
|
+
ev.must_equal 'foo'
|
1924
|
+
pid.must_equal notify_pid
|
1925
|
+
payload.must_equal 'bar'
|
1926
|
+
called = true
|
1927
|
+
end.must_equal 'foo'
|
1928
|
+
called.must_equal true
|
1929
|
+
|
1930
|
+
@db.listen('foo', :after_listen=>proc{@db.notify('foo')}).must_equal 'foo'
|
1931
|
+
|
1932
|
+
called = false
|
1933
|
+
called2 = false
|
1934
|
+
i = 0
|
1935
|
+
@db.listen(['foo', 'bar'], :after_listen=>proc{@db.notify('foo', :payload=>'bar'); @db.notify('bar', :payload=>'foo')}, :loop=>proc{i+=1}) do |ev, pid, payload|
|
1936
|
+
if !called
|
1937
|
+
ev.must_equal 'foo'
|
1938
|
+
pid.must_equal notify_pid
|
1939
|
+
payload.must_equal 'bar'
|
1940
|
+
called = true
|
1941
|
+
else
|
1942
|
+
ev.must_equal 'bar'
|
1943
|
+
pid.must_equal notify_pid
|
1944
|
+
payload.must_equal 'foo'
|
1945
|
+
called2 = true
|
1946
|
+
break
|
1947
|
+
end
|
1948
|
+
end.must_be_nil
|
1949
|
+
called.must_equal true
|
1950
|
+
called2.must_equal true
|
1951
|
+
i.must_equal 1
|
1952
|
+
end
|
1953
|
+
|
1954
|
+
it "should accept a :timeout option in listen" do
|
1955
|
+
@db.listen('foo2', :timeout=>0.001).must_be_nil
|
1956
|
+
called = false
|
1957
|
+
@db.listen('foo2', :timeout=>0.001){|ev, pid, payload| called = true}.must_be_nil
|
1958
|
+
called.must_equal false
|
1959
|
+
i = 0
|
1960
|
+
@db.listen('foo2', :timeout=>0.001, :loop=>proc{i+=1; throw :stop if i > 3}){|ev, pid, payload| called = true}.must_be_nil
|
1961
|
+
i.must_equal 4
|
1962
|
+
|
1963
|
+
called = false
|
1964
|
+
i = 0
|
1965
|
+
@db.listen('foo2', :timeout=>proc{i+=1; 0.001}){|ev, pid, payload| called = true}.must_be_nil
|
1966
|
+
called.must_equal false
|
1967
|
+
i.must_equal 1
|
1968
|
+
|
1969
|
+
i = 0
|
1970
|
+
t = 0
|
1971
|
+
@db.listen('foo2', :timeout=>proc{t+=1; 0.001}, :loop=>proc{i+=1; throw :stop if i > 3}){|ev, pid, payload| called = true}.must_be_nil
|
1972
|
+
called.must_equal false
|
1973
|
+
t.must_equal 4
|
1974
|
+
|
1975
|
+
end unless RUBY_PLATFORM =~ /mingw/ # Ruby freezes on this spec on this platform/version
|
1976
|
+
end
|
1977
|
+
end
|
1978
|
+
|
1979
|
+
describe 'PostgreSQL special float handling' do
|
1980
|
+
before do
|
1981
|
+
@db = DB
|
1982
|
+
@db.create_table!(:test5){Float :value}
|
1983
|
+
@ds = @db[:test5]
|
1984
|
+
end
|
1985
|
+
after do
|
1986
|
+
@db.drop_table?(:test5)
|
1987
|
+
end
|
1988
|
+
|
1989
|
+
it 'inserts NaN' do
|
1990
|
+
nan = 0.0/0.0
|
1991
|
+
@ds.insert(:value=>nan)
|
1992
|
+
@ds.all[0][:value].nan?.must_equal true
|
1993
|
+
end
|
1994
|
+
|
1995
|
+
it 'inserts +Infinity' do
|
1996
|
+
inf = 1.0/0.0
|
1997
|
+
@ds.insert(:value=>inf)
|
1998
|
+
@ds.all[0][:value].infinite?.must_be :>, 0
|
1999
|
+
end
|
2000
|
+
|
2001
|
+
it 'inserts -Infinity' do
|
2002
|
+
inf = -1.0/0.0
|
2003
|
+
@ds.insert(:value=>inf)
|
2004
|
+
@ds.all[0][:value].infinite?.must_be :<, 0
|
2005
|
+
end
|
2006
|
+
end if DB.adapter_scheme == :postgres
|
2007
|
+
|
2008
|
+
describe 'PostgreSQL array handling' do
|
2009
|
+
before(:all) do
|
2010
|
+
@db = DB
|
2011
|
+
@ds = @db[:items]
|
2012
|
+
@tp = lambda{@db.schema(:items).map{|a| a.last[:type]}}
|
2013
|
+
end
|
2014
|
+
after do
|
2015
|
+
@db.drop_table?(:items)
|
2016
|
+
end
|
2017
|
+
|
2018
|
+
it 'insert and retrieve integer and float arrays of various sizes' do
|
2019
|
+
@db.create_table!(:items) do
|
2020
|
+
column :i2, 'int2[]'
|
2021
|
+
column :i4, 'int4[]'
|
2022
|
+
column :i8, 'int8[]'
|
2023
|
+
column :r, 'real[]'
|
2024
|
+
column :dp, 'double precision[]'
|
2025
|
+
end
|
2026
|
+
@tp.call.must_equal [:smallint_array, :integer_array, :bigint_array, :real_array, :float_array]
|
2027
|
+
@ds.insert(Sequel.pg_array([1], :int2), Sequel.pg_array([nil, 2], :int4), Sequel.pg_array([3, nil], :int8), Sequel.pg_array([4, nil, 4.5], :real), Sequel.pg_array([5, nil, 5.5], "double precision"))
|
2028
|
+
@ds.count.must_equal 1
|
2029
|
+
rs = @ds.all
|
2030
|
+
rs.must_equal [{:i2=>[1], :i4=>[nil, 2], :i8=>[3, nil], :r=>[4.0, nil, 4.5], :dp=>[5.0, nil, 5.5]}]
|
2031
|
+
rs.first.values.each{|v| v.class.must_equal(Sequel::Postgres::PGArray)}
|
2032
|
+
rs.first.values.each{|v| v.to_a.must_be_kind_of(Array)}
|
2033
|
+
@ds.delete
|
2034
|
+
@ds.insert(rs.first)
|
2035
|
+
@ds.all.must_equal rs
|
2036
|
+
|
2037
|
+
@ds.delete
|
2038
|
+
@ds.insert(Sequel.pg_array([[1], [2]], :int2), Sequel.pg_array([[nil, 2], [3, 4]], :int4), Sequel.pg_array([[3, nil], [nil, nil]], :int8), Sequel.pg_array([[4, nil], [nil, 4.5]], :real), Sequel.pg_array([[5, nil], [nil, 5.5]], "double precision"))
|
2039
|
+
|
2040
|
+
rs = @ds.all
|
2041
|
+
rs.must_equal [{:i2=>[[1], [2]], :i4=>[[nil, 2], [3, 4]], :i8=>[[3, nil], [nil, nil]], :r=>[[4, nil], [nil, 4.5]], :dp=>[[5, nil], [nil, 5.5]]}]
|
2042
|
+
rs.first.values.each{|v| v.class.must_equal(Sequel::Postgres::PGArray)}
|
2043
|
+
rs.first.values.each{|v| v.to_a.must_be_kind_of(Array)}
|
2044
|
+
@ds.delete
|
2045
|
+
@ds.insert(rs.first)
|
2046
|
+
@ds.all.must_equal rs
|
2047
|
+
end
|
2048
|
+
|
2049
|
+
it 'insert and retrieve decimal arrays' do
|
2050
|
+
@db.create_table!(:items) do
|
2051
|
+
column :n, 'numeric[]'
|
2052
|
+
end
|
2053
|
+
@tp.call.must_equal [:decimal_array]
|
2054
|
+
@ds.insert(Sequel.pg_array([BigDecimal.new('1.000000000000000000001'), nil, BigDecimal.new('1')], :numeric))
|
2055
|
+
@ds.count.must_equal 1
|
2056
|
+
rs = @ds.all
|
2057
|
+
rs.must_equal [{:n=>[BigDecimal.new('1.000000000000000000001'), nil, BigDecimal.new('1')]}]
|
2058
|
+
rs.first.values.each{|v| v.class.must_equal(Sequel::Postgres::PGArray)}
|
2059
|
+
rs.first.values.each{|v| v.to_a.must_be_kind_of(Array)}
|
2060
|
+
@ds.delete
|
2061
|
+
@ds.insert(rs.first)
|
2062
|
+
@ds.all.must_equal rs
|
2063
|
+
|
2064
|
+
@ds.delete
|
2065
|
+
@ds.insert(Sequel.pg_array([[BigDecimal.new('1.0000000000000000000000000000001'), nil], [nil, BigDecimal.new('1')]], :numeric))
|
2066
|
+
rs = @ds.all
|
2067
|
+
rs.must_equal [{:n=>[[BigDecimal.new('1.0000000000000000000000000000001'), nil], [nil, BigDecimal.new('1')]]}]
|
2068
|
+
rs.first.values.each{|v| v.class.must_equal(Sequel::Postgres::PGArray)}
|
2069
|
+
rs.first.values.each{|v| v.to_a.must_be_kind_of(Array)}
|
2070
|
+
@ds.delete
|
2071
|
+
@ds.insert(rs.first)
|
2072
|
+
@ds.all.must_equal rs
|
2073
|
+
end
|
2074
|
+
|
2075
|
+
it 'insert and retrieve string arrays' do
|
2076
|
+
@db.create_table!(:items) do
|
2077
|
+
column :c, 'char(4)[]'
|
2078
|
+
column :vc, 'varchar[]'
|
2079
|
+
column :t, 'text[]'
|
2080
|
+
end
|
2081
|
+
@tp.call.must_equal [:character_array, :varchar_array, :string_array]
|
2082
|
+
@ds.insert(Sequel.pg_array(['a', nil, 'NULL', 'b"\'c'], 'char(4)'), Sequel.pg_array(['a', nil, 'NULL', 'b"\'c', '', ''], :varchar), Sequel.pg_array(['a', nil, 'NULL', 'b"\'c'], :text))
|
2083
|
+
@ds.count.must_equal 1
|
2084
|
+
rs = @ds.all
|
2085
|
+
rs.must_equal [{:c=>['a ', nil, 'NULL', 'b"\'c'], :vc=>['a', nil, 'NULL', 'b"\'c', '', ''], :t=>['a', nil, 'NULL', 'b"\'c']}]
|
2086
|
+
rs.first.values.each{|v| v.class.must_equal(Sequel::Postgres::PGArray)}
|
2087
|
+
rs.first.values.each{|v| v.to_a.must_be_kind_of(Array)}
|
2088
|
+
@ds.delete
|
2089
|
+
@ds.insert(rs.first)
|
2090
|
+
@ds.all.must_equal rs
|
2091
|
+
|
2092
|
+
@ds.delete
|
2093
|
+
@ds.insert(Sequel.pg_array([[['a'], [nil]], [['NULL'], ['b"\'c']]], 'char(4)'), Sequel.pg_array([[['a[],\\[\\]\\,\\""NULL",'], ['']], [['NULL'], ['b"\'c']]], :varchar), Sequel.pg_array([[['a'], [nil]], [['NULL'], ['b"\'c']]], :text))
|
2094
|
+
rs = @ds.all
|
2095
|
+
rs.must_equal [{:c=>[[['a '], [nil]], [['NULL'], ['b"\'c']]], :vc=>[[['a[],\\[\\]\\,\\""NULL",'], ['']], [['NULL'], ['b"\'c']]], :t=>[[['a'], [nil]], [['NULL'], ['b"\'c']]]}]
|
2096
|
+
rs.first.values.each{|v| v.class.must_equal(Sequel::Postgres::PGArray)}
|
2097
|
+
rs.first.values.each{|v| v.to_a.must_be_kind_of(Array)}
|
2098
|
+
@ds.delete
|
2099
|
+
@ds.insert(rs.first)
|
2100
|
+
@ds.all.must_equal rs
|
2101
|
+
end
|
2102
|
+
|
2103
|
+
it 'insert and retrieve arrays of other types' do
|
2104
|
+
@db.create_table!(:items) do
|
2105
|
+
column :b, 'bool[]'
|
2106
|
+
column :d, 'date[]'
|
2107
|
+
column :t, 'time[]'
|
2108
|
+
column :ts, 'timestamp[]'
|
2109
|
+
column :tstz, 'timestamptz[]'
|
2110
|
+
end
|
2111
|
+
@tp.call.must_equal [:boolean_array, :date_array, :time_array, :datetime_array, :datetime_timezone_array]
|
2112
|
+
|
2113
|
+
d = Date.today
|
2114
|
+
t = Sequel::SQLTime.create(10, 20, 30)
|
2115
|
+
ts = Time.local(2011, 1, 2, 3, 4, 5)
|
2116
|
+
|
2117
|
+
@ds.insert(Sequel.pg_array([true, false], :bool), Sequel.pg_array([d, nil], :date), Sequel.pg_array([t, nil], :time), Sequel.pg_array([ts, nil], :timestamp), Sequel.pg_array([ts, nil], :timestamptz))
|
2118
|
+
@ds.count.must_equal 1
|
2119
|
+
rs = @ds.all
|
2120
|
+
rs.must_equal [{:b=>[true, false], :d=>[d, nil], :t=>[t, nil], :ts=>[ts, nil], :tstz=>[ts, nil]}]
|
2121
|
+
rs.first.values.each{|v| v.class.must_equal(Sequel::Postgres::PGArray)}
|
2122
|
+
rs.first.values.each{|v| v.to_a.must_be_kind_of(Array)}
|
2123
|
+
@ds.delete
|
2124
|
+
@ds.insert(rs.first)
|
2125
|
+
@ds.all.must_equal rs
|
2126
|
+
|
2127
|
+
@db.create_table!(:items) do
|
2128
|
+
column :ba, 'bytea[]'
|
2129
|
+
column :tz, 'timetz[]'
|
2130
|
+
column :o, 'oid[]'
|
2131
|
+
end
|
2132
|
+
@tp.call.must_equal [:blob_array, :time_timezone_array, :oid_array]
|
2133
|
+
@ds.insert(Sequel.pg_array([Sequel.blob("a\0"), nil], :bytea), Sequel.pg_array([t, nil], :timetz), Sequel.pg_array([1, 2, 3], :oid))
|
2134
|
+
@ds.count.must_equal 1
|
2135
|
+
rs = @ds.all
|
2136
|
+
rs.must_equal [{:ba=>[Sequel.blob("a\0"), nil], :tz=>[t, nil], :o=>[1, 2, 3]}]
|
2137
|
+
rs.first.values.each{|v| v.class.must_equal(Sequel::Postgres::PGArray)}
|
2138
|
+
rs.first.values.each{|v| v.to_a.must_be_kind_of(Array)}
|
2139
|
+
@ds.delete
|
2140
|
+
@ds.insert(rs.first)
|
2141
|
+
@ds.all.must_equal rs
|
2142
|
+
|
2143
|
+
@db.create_table!(:items) do
|
2144
|
+
column :x, 'xml[]'
|
2145
|
+
column :m, 'money[]'
|
2146
|
+
column :b, 'bit[]'
|
2147
|
+
column :vb, 'bit varying[]'
|
2148
|
+
column :u, 'uuid[]'
|
2149
|
+
column :xi, 'xid[]'
|
2150
|
+
column :c, 'cid[]'
|
2151
|
+
column :n, 'name[]'
|
2152
|
+
column :o, 'oidvector[]'
|
2153
|
+
end
|
2154
|
+
@tp.call.must_equal [:xml_array, :money_array, :bit_array, :varbit_array, :uuid_array, :xid_array, :cid_array, :name_array, :oidvector_array]
|
2155
|
+
@ds.insert(Sequel.pg_array(['<a></a>'], :xml),
|
2156
|
+
Sequel.pg_array(['1'], :money),
|
2157
|
+
Sequel.pg_array(['1'], :bit),
|
2158
|
+
Sequel.pg_array(['10'], :varbit),
|
2159
|
+
Sequel.pg_array(['c0f24910-39e7-11e4-916c-0800200c9a66'], :uuid),
|
2160
|
+
Sequel.pg_array(['12'], :xid),
|
2161
|
+
Sequel.pg_array(['12'], :cid),
|
2162
|
+
Sequel.pg_array(['N'], :name),
|
2163
|
+
Sequel.pg_array(['1 2'], :oidvector))
|
2164
|
+
@ds.count.must_equal 1
|
2165
|
+
rs = @ds.all
|
2166
|
+
r = rs.first
|
2167
|
+
m = r.delete(:m)
|
2168
|
+
m.class.must_equal(Sequel::Postgres::PGArray)
|
2169
|
+
m.to_a.must_be_kind_of(Array)
|
2170
|
+
m.first.must_be_kind_of(String)
|
2171
|
+
r.must_be(:==, :x=>['<a></a>'], :b=>['1'], :vb=>['10'], :u=>['c0f24910-39e7-11e4-916c-0800200c9a66'], :xi=>['12'], :c=>['12'], :n=>['N'], :o=>['1 2'])
|
2172
|
+
rs.first.values.each{|v| v.class.must_equal(Sequel::Postgres::PGArray)}
|
2173
|
+
rs.first.values.each{|v| v.to_a.must_be_kind_of(Array)}
|
2174
|
+
r[:m] = m
|
2175
|
+
@ds.delete
|
2176
|
+
@ds.insert(r)
|
2177
|
+
@ds.all.must_equal rs
|
2178
|
+
end
|
2179
|
+
|
2180
|
+
it 'insert and retrieve empty arrays' do
|
2181
|
+
@db.create_table!(:items) do
|
2182
|
+
column :n, 'integer[]'
|
2183
|
+
end
|
2184
|
+
@ds.insert(:n=>Sequel.pg_array([], :integer))
|
2185
|
+
@ds.count.must_equal 1
|
2186
|
+
rs = @ds.all
|
2187
|
+
rs.must_equal [{:n=>[]}]
|
2188
|
+
rs.first.values.each{|v| v.class.must_equal(Sequel::Postgres::PGArray)}
|
2189
|
+
rs.first.values.each{|v| v.to_a.must_be_kind_of(Array)}
|
2190
|
+
@ds.delete
|
2191
|
+
@ds.insert(rs.first)
|
2192
|
+
@ds.all.must_equal rs
|
2193
|
+
end
|
2194
|
+
|
2195
|
+
it 'convert ruby array :default values' do
|
2196
|
+
@db.create_table!(:items) do
|
2197
|
+
column :n, 'integer[]', :default=>[]
|
2198
|
+
end
|
2199
|
+
@ds.insert
|
2200
|
+
@ds.count.must_equal 1
|
2201
|
+
rs = @ds.all
|
2202
|
+
rs.must_equal [{:n=>[]}]
|
2203
|
+
rs.first.values.each{|v| v.class.must_equal(Sequel::Postgres::PGArray)}
|
2204
|
+
rs.first.values.each{|v| v.to_a.must_be_kind_of(Array)}
|
2205
|
+
@ds.delete
|
2206
|
+
@ds.insert(rs.first)
|
2207
|
+
@ds.all.must_equal rs
|
2208
|
+
end
|
2209
|
+
|
2210
|
+
it 'insert and retrieve custom array types' do
|
2211
|
+
int2vector = Class.new do
|
2212
|
+
attr_reader :array
|
2213
|
+
def initialize(array)
|
2214
|
+
@array = array
|
2215
|
+
end
|
2216
|
+
def sql_literal_append(ds, sql)
|
2217
|
+
sql << "'#{array.join(' ')}'"
|
2218
|
+
end
|
2219
|
+
def ==(other)
|
2220
|
+
if other.is_a?(self.class)
|
2221
|
+
array == other.array
|
2222
|
+
else
|
2223
|
+
super
|
2224
|
+
end
|
2225
|
+
end
|
2226
|
+
end
|
2227
|
+
@db.register_array_type(:int2vector){|s| int2vector.new(s.split.map{|i| i.to_i})}
|
2228
|
+
@db.create_table!(:items) do
|
2229
|
+
column :b, 'int2vector[]'
|
2230
|
+
end
|
2231
|
+
@tp.call.must_equal [:int2vector_array]
|
2232
|
+
int2v = int2vector.new([1, 2])
|
2233
|
+
@ds.insert(Sequel.pg_array([int2v], :int2vector))
|
2234
|
+
@ds.count.must_equal 1
|
2235
|
+
rs = @ds.all
|
2236
|
+
rs.must_equal [{:b=>[int2v]}]
|
2237
|
+
rs.first.values.each{|v| v.class.must_equal(Sequel::Postgres::PGArray)}
|
2238
|
+
rs.first.values.each{|v| v.to_a.must_be_kind_of(Array)}
|
2239
|
+
@ds.delete
|
2240
|
+
@ds.insert(rs.first)
|
2241
|
+
@ds.all.must_equal rs
|
2242
|
+
end
|
2243
|
+
|
2244
|
+
it 'retrieve arrays with explicit bounds' do
|
2245
|
+
@db.create_table!(:items) do
|
2246
|
+
column :n, 'integer[]'
|
2247
|
+
end
|
2248
|
+
@ds.insert(:n=>"[0:1]={2,3}")
|
2249
|
+
rs = @ds.all
|
2250
|
+
rs.must_equal [{:n=>[2,3]}]
|
2251
|
+
rs.first.values.each{|v| v.class.must_equal(Sequel::Postgres::PGArray)}
|
2252
|
+
rs.first.values.each{|v| v.to_a.must_be_kind_of(Array)}
|
2253
|
+
@ds.delete
|
2254
|
+
@ds.insert(rs.first)
|
2255
|
+
@ds.all.must_equal rs
|
2256
|
+
|
2257
|
+
@ds.delete
|
2258
|
+
@ds.insert(:n=>"[0:1][0:0]={{2},{3}}")
|
2259
|
+
rs = @ds.all
|
2260
|
+
rs.must_equal [{:n=>[[2], [3]]}]
|
2261
|
+
rs.first.values.each{|v| v.class.must_equal(Sequel::Postgres::PGArray)}
|
2262
|
+
rs.first.values.each{|v| v.to_a.must_be_kind_of(Array)}
|
2263
|
+
@ds.delete
|
2264
|
+
@ds.insert(rs.first)
|
2265
|
+
@ds.all.must_equal rs
|
2266
|
+
end if DB.adapter_scheme == :postgres || DB.adapter_scheme == :jdbc
|
2267
|
+
|
2268
|
+
it 'use arrays in bound variables' do
|
2269
|
+
@db.create_table!(:items) do
|
2270
|
+
column :i, 'int4[]'
|
2271
|
+
end
|
2272
|
+
@ds.call(:insert, {:i=>[1,2]}, {:i=>:$i})
|
2273
|
+
@ds.get(:i).must_equal [1, 2]
|
2274
|
+
@ds.filter(:i=>:$i).call(:first, :i=>[1,2]).must_equal(:i=>[1,2])
|
2275
|
+
@ds.filter(:i=>:$i).call(:first, :i=>[1,3]).must_be_nil
|
2276
|
+
|
2277
|
+
# NULL values
|
2278
|
+
@ds.delete
|
2279
|
+
@ds.call(:insert, {:i=>[nil,nil]}, {:i=>:$i})
|
2280
|
+
@ds.first.must_equal(:i=>[nil, nil])
|
2281
|
+
|
2282
|
+
@db.create_table!(:items) do
|
2283
|
+
column :i, 'text[]'
|
2284
|
+
end
|
2285
|
+
a = ["\"\\\\\"{}\n\t\r \v\b123afP", 'NULL', nil, '']
|
2286
|
+
@ds.call(:insert, {:i=>:$i}, :i=>Sequel.pg_array(a))
|
2287
|
+
@ds.get(:i).must_equal a
|
2288
|
+
@ds.filter(:i=>:$i).call(:first, :i=>a).must_equal(:i=>a)
|
2289
|
+
@ds.filter(:i=>:$i).call(:first, :i=>['', nil, nil, 'a']).must_be_nil
|
2290
|
+
|
2291
|
+
@db.create_table!(:items) do
|
2292
|
+
column :i, 'date[]'
|
2293
|
+
end
|
2294
|
+
a = [Date.today]
|
2295
|
+
@ds.call(:insert, {:i=>:$i}, :i=>Sequel.pg_array(a, 'date'))
|
2296
|
+
@ds.get(:i).must_equal a
|
2297
|
+
@ds.filter(:i=>:$i).call(:first, :i=>a).must_equal(:i=>a)
|
2298
|
+
@ds.filter(:i=>:$i).call(:first, :i=>Sequel.pg_array([Date.today-1], 'date')).must_be_nil
|
2299
|
+
|
2300
|
+
@db.create_table!(:items) do
|
2301
|
+
column :i, 'timestamp[]'
|
2302
|
+
end
|
2303
|
+
a = [Time.local(2011, 1, 2, 3, 4, 5)]
|
2304
|
+
@ds.call(:insert, {:i=>:$i}, :i=>Sequel.pg_array(a, 'timestamp'))
|
2305
|
+
@ds.get(:i).must_equal a
|
2306
|
+
@ds.filter(:i=>:$i).call(:first, :i=>a).must_equal(:i=>a)
|
2307
|
+
@ds.filter(:i=>:$i).call(:first, :i=>Sequel.pg_array([a.first-1], 'timestamp')).must_be_nil
|
2308
|
+
|
2309
|
+
@db.create_table!(:items) do
|
2310
|
+
column :i, 'boolean[]'
|
2311
|
+
end
|
2312
|
+
a = [true, false]
|
2313
|
+
@ds.call(:insert, {:i=>:$i}, :i=>Sequel.pg_array(a, 'boolean'))
|
2314
|
+
@ds.get(:i).must_equal a
|
2315
|
+
@ds.filter(:i=>:$i).call(:first, :i=>a).must_equal(:i=>a)
|
2316
|
+
@ds.filter(:i=>:$i).call(:first, :i=>Sequel.pg_array([false, true], 'boolean')).must_be_nil
|
2317
|
+
|
2318
|
+
@db.create_table!(:items) do
|
2319
|
+
column :i, 'bytea[]'
|
2320
|
+
end
|
2321
|
+
a = [Sequel.blob("a\0'\"")]
|
2322
|
+
@ds.call(:insert, {:i=>:$i}, :i=>Sequel.pg_array(a, 'bytea'))
|
2323
|
+
@ds.get(:i).must_equal a
|
2324
|
+
@ds.filter(:i=>:$i).call(:first, :i=>a).must_equal(:i=>a)
|
2325
|
+
@ds.filter(:i=>:$i).call(:first, :i=>Sequel.pg_array([Sequel.blob("b\0")], 'bytea')).must_be_nil
|
2326
|
+
end if uses_pg_or_jdbc
|
2327
|
+
|
2328
|
+
it 'with models' do
|
2329
|
+
@db.create_table!(:items) do
|
2330
|
+
primary_key :id
|
2331
|
+
column :i, 'integer[]'
|
2332
|
+
column :f, 'double precision[]'
|
2333
|
+
column :d, 'numeric[]'
|
2334
|
+
column :t, 'text[]'
|
2335
|
+
end
|
2336
|
+
c = Class.new(Sequel::Model(@db[:items]))
|
2337
|
+
h = {:i=>[1,2, nil], :f=>[[1, 2.5], [3, 4.5]], :d=>[1, BigDecimal.new('1.000000000000000000001')], :t=>[%w'a b c', ['NULL', nil, '1']]}
|
2338
|
+
o = c.create(h)
|
2339
|
+
o.i.must_equal [1, 2, nil]
|
2340
|
+
o.f.must_equal [[1, 2.5], [3, 4.5]]
|
2341
|
+
o.d.must_equal [BigDecimal.new('1'), BigDecimal.new('1.000000000000000000001')]
|
2342
|
+
o.t.must_equal [%w'a b c', ['NULL', nil, '1']]
|
2343
|
+
c.where(:i=>o.i, :f=>o.f, :d=>o.d, :t=>o.t).all.must_equal [o]
|
2344
|
+
o2 = c.new(h)
|
2345
|
+
c.where(:i=>o2.i, :f=>o2.f, :d=>o2.d, :t=>o2.t).all.must_equal [o]
|
2346
|
+
|
2347
|
+
@db.create_table!(:items) do
|
2348
|
+
primary_key :id
|
2349
|
+
column :i, 'int2[]'
|
2350
|
+
column :f, 'real[]'
|
2351
|
+
column :d, 'numeric(30,28)[]'
|
2352
|
+
column :t, 'varchar[]'
|
2353
|
+
end
|
2354
|
+
c = Class.new(Sequel::Model(@db[:items]))
|
2355
|
+
o = c.create(:i=>[1,2, nil], :f=>[[1, 2.5], [3, 4.5]], :d=>[1, BigDecimal.new('1.000000000000000000001')], :t=>[%w'a b c', ['NULL', nil, '1']])
|
2356
|
+
o.i.must_equal [1, 2, nil]
|
2357
|
+
o.f.must_equal [[1, 2.5], [3, 4.5]]
|
2358
|
+
o.d.must_equal [BigDecimal.new('1'), BigDecimal.new('1.000000000000000000001')]
|
2359
|
+
o.t.must_equal [%w'a b c', ['NULL', nil, '1']]
|
2360
|
+
c.where(:i=>o.i, :f=>o.f, :d=>o.d, :t=>o.t).all.must_equal [o]
|
2361
|
+
o2 = c.new(h)
|
2362
|
+
c.where(:i=>o2.i, :f=>o2.f, :d=>o2.d, :t=>o2.t).all.must_equal [o]
|
2363
|
+
end
|
2364
|
+
|
2365
|
+
it 'operations/functions with pg_array_ops' do
|
2366
|
+
Sequel.extension :pg_array_ops
|
2367
|
+
@db.create_table!(:items){column :i, 'integer[]'; column :i2, 'integer[]'; column :i3, 'integer[]'; column :i4, 'integer[]'; column :i5, 'integer[]'}
|
2368
|
+
@ds.insert(Sequel.pg_array([1, 2, 3]), Sequel.pg_array([2, 1]), Sequel.pg_array([4, 4]), Sequel.pg_array([[5, 5], [4, 3]]), Sequel.pg_array([1, nil, 5]))
|
2369
|
+
|
2370
|
+
@ds.get(Sequel.pg_array(:i) > :i3).must_equal false
|
2371
|
+
@ds.get(Sequel.pg_array(:i3) > :i).must_equal true
|
2372
|
+
|
2373
|
+
@ds.get(Sequel.pg_array(:i) >= :i3).must_equal false
|
2374
|
+
@ds.get(Sequel.pg_array(:i) >= :i).must_equal true
|
2375
|
+
|
2376
|
+
@ds.get(Sequel.pg_array(:i3) < :i).must_equal false
|
2377
|
+
@ds.get(Sequel.pg_array(:i) < :i3).must_equal true
|
2378
|
+
|
2379
|
+
@ds.get(Sequel.pg_array(:i3) <= :i).must_equal false
|
2380
|
+
@ds.get(Sequel.pg_array(:i) <= :i).must_equal true
|
2381
|
+
|
2382
|
+
@ds.get(Sequel.expr(5=>Sequel.pg_array(:i).any)).must_equal false
|
2383
|
+
@ds.get(Sequel.expr(1=>Sequel.pg_array(:i).any)).must_equal true
|
2384
|
+
|
2385
|
+
@ds.get(Sequel.expr(1=>Sequel.pg_array(:i3).all)).must_equal false
|
2386
|
+
@ds.get(Sequel.expr(4=>Sequel.pg_array(:i3).all)).must_equal true
|
2387
|
+
|
2388
|
+
@ds.get(Sequel.expr(1=>Sequel.pg_array(:i)[1..1].any)).must_equal true
|
2389
|
+
@ds.get(Sequel.expr(2=>Sequel.pg_array(:i)[1..1].any)).must_equal false
|
2390
|
+
|
2391
|
+
@ds.get(Sequel.pg_array(:i2)[1]).must_equal 2
|
2392
|
+
@ds.get(Sequel.pg_array(:i2)[1]).must_equal 2
|
2393
|
+
@ds.get(Sequel.pg_array(:i2)[2]).must_equal 1
|
2394
|
+
|
2395
|
+
@ds.get(Sequel.pg_array(:i4)[2][1]).must_equal 4
|
2396
|
+
@ds.get(Sequel.pg_array(:i4)[2][2]).must_equal 3
|
2397
|
+
|
2398
|
+
@ds.get(Sequel.pg_array(:i).contains(:i2)).must_equal true
|
2399
|
+
@ds.get(Sequel.pg_array(:i).contains(:i3)).must_equal false
|
2400
|
+
|
2401
|
+
@ds.get(Sequel.pg_array(:i2).contained_by(:i)).must_equal true
|
2402
|
+
@ds.get(Sequel.pg_array(:i).contained_by(:i2)).must_equal false
|
2403
|
+
|
2404
|
+
@ds.get(Sequel.pg_array(:i).overlaps(:i2)).must_equal true
|
2405
|
+
@ds.get(Sequel.pg_array(:i2).overlaps(:i3)).must_equal false
|
2406
|
+
|
2407
|
+
@ds.get(Sequel.pg_array(:i).dims).must_equal '[1:3]'
|
2408
|
+
@ds.get(Sequel.pg_array(:i).length).must_equal 3
|
2409
|
+
@ds.get(Sequel.pg_array(:i).lower).must_equal 1
|
2410
|
+
|
2411
|
+
if @db.server_version >= 80400
|
2412
|
+
@ds.select(Sequel.pg_array(:i).unnest).from_self.count.must_equal 3
|
2413
|
+
end
|
2414
|
+
if @db.server_version >= 90000
|
2415
|
+
@ds.get(Sequel.pg_array(:i5).join).must_equal '15'
|
2416
|
+
@ds.get(Sequel.pg_array(:i5).join(':')).must_equal '1:5'
|
2417
|
+
@ds.get(Sequel.pg_array(:i5).join(':', '*')).must_equal '1:*:5'
|
2418
|
+
end
|
2419
|
+
if @db.server_version >= 90300
|
2420
|
+
@ds.get(Sequel.pg_array(:i5).remove(1).length).must_equal 2
|
2421
|
+
@ds.get(Sequel.pg_array(:i5).replace(1, 4).contains([1])).must_equal false
|
2422
|
+
@ds.get(Sequel.pg_array(:i5).replace(1, 4).contains([4])).must_equal true
|
2423
|
+
end
|
2424
|
+
if @db.server_version >= 90400
|
2425
|
+
@ds.get(Sequel.pg_array(:i).cardinality).must_equal 3
|
2426
|
+
@ds.get(Sequel.pg_array(:i4).cardinality).must_equal 4
|
2427
|
+
@ds.get(Sequel.pg_array(:i5).cardinality).must_equal 3
|
2428
|
+
|
2429
|
+
@ds.from{Sequel.pg_array([1,2,3]).op.unnest([4,5,6], [7,8]).as(:t1, [:a, :b, :c])}.select_order_map([:a, :b, :c]).must_equal [[1, 4, 7], [2, 5, 8], [3, 6, nil]]
|
2430
|
+
end
|
2431
|
+
|
2432
|
+
@ds.get(Sequel.pg_array(:i).push(4)).must_equal [1, 2, 3, 4]
|
2433
|
+
@ds.get(Sequel.pg_array(:i).unshift(4)).must_equal [4, 1, 2, 3]
|
2434
|
+
@ds.get(Sequel.pg_array(:i).concat(:i2)).must_equal [1, 2, 3, 2, 1]
|
2435
|
+
|
2436
|
+
if @db.type_supported?(:hstore)
|
2437
|
+
Sequel.extension :pg_hstore_ops
|
2438
|
+
@db.get(Sequel.pg_array(['a', 'b']).op.hstore['a']).must_equal 'b'
|
2439
|
+
@db.get(Sequel.pg_array(['a', 'b']).op.hstore(['c', 'd'])['a']).must_equal 'c'
|
2440
|
+
end
|
2441
|
+
end
|
2442
|
+
end
|
2443
|
+
|
2444
|
+
describe 'PostgreSQL hstore handling' do
|
2445
|
+
before(:all) do
|
2446
|
+
@db = DB
|
2447
|
+
@ds = @db[:items]
|
2448
|
+
@h = {'a'=>'b', 'c'=>nil, 'd'=>'NULL', 'e'=>'\\\\" \\\' ,=>'}
|
2449
|
+
end
|
2450
|
+
after do
|
2451
|
+
@db.drop_table?(:items)
|
2452
|
+
end
|
2453
|
+
|
2454
|
+
it 'insert and retrieve hstore values' do
|
2455
|
+
@db.create_table!(:items) do
|
2456
|
+
column :h, :hstore
|
2457
|
+
end
|
2458
|
+
@ds.insert(Sequel.hstore(@h))
|
2459
|
+
@ds.count.must_equal 1
|
2460
|
+
rs = @ds.all
|
2461
|
+
v = rs.first[:h]
|
2462
|
+
v.must_equal @h
|
2463
|
+
v.class.must_equal(Sequel::Postgres::HStore)
|
2464
|
+
v.to_hash.must_be_kind_of(Hash)
|
2465
|
+
v.to_hash.must_equal @h
|
2466
|
+
@ds.delete
|
2467
|
+
@ds.insert(rs.first)
|
2468
|
+
@ds.all.must_equal rs
|
2469
|
+
end
|
2470
|
+
|
2471
|
+
it 'insert and retrieve hstore[] values' do
|
2472
|
+
@db.create_table!(:items) do
|
2473
|
+
column :h, 'hstore[]'
|
2474
|
+
end
|
2475
|
+
@ds.insert(Sequel.pg_array([Sequel.hstore(@h)], :hstore))
|
2476
|
+
@ds.count.must_equal 1
|
2477
|
+
rs = @ds.all
|
2478
|
+
v = rs.first[:h].first
|
2479
|
+
v.class.must_equal(Sequel::Postgres::HStore)
|
2480
|
+
v.to_hash.must_be_kind_of(Hash)
|
2481
|
+
v.to_hash.must_equal @h
|
2482
|
+
@ds.delete
|
2483
|
+
@ds.insert(rs.first)
|
2484
|
+
@ds.all.must_equal rs
|
2485
|
+
end
|
2486
|
+
|
2487
|
+
it 'use hstore in bound variables' do
|
2488
|
+
@db.create_table!(:items) do
|
2489
|
+
column :i, :hstore
|
2490
|
+
end
|
2491
|
+
@ds.call(:insert, {:i=>Sequel.hstore(@h)}, {:i=>:$i})
|
2492
|
+
@ds.get(:i).must_equal @h
|
2493
|
+
@ds.filter(:i=>:$i).call(:first, :i=>Sequel.hstore(@h)).must_equal(:i=>@h)
|
2494
|
+
@ds.filter(:i=>:$i).call(:first, :i=>Sequel.hstore({})).must_be_nil
|
2495
|
+
|
2496
|
+
@ds.delete
|
2497
|
+
@ds.call(:insert, {:i=>Sequel.hstore('a'=>nil)}, {:i=>:$i})
|
2498
|
+
@ds.get(:i).must_equal Sequel.hstore('a'=>nil)
|
2499
|
+
|
2500
|
+
@ds.delete
|
2501
|
+
@ds.call(:insert, {:i=>@h}, {:i=>:$i})
|
2502
|
+
@ds.get(:i).must_equal @h
|
2503
|
+
@ds.filter(:i=>:$i).call(:first, :i=>@h).must_equal(:i=>@h)
|
2504
|
+
@ds.filter(:i=>:$i).call(:first, :i=>{}).must_be_nil
|
2505
|
+
end if uses_pg_or_jdbc
|
2506
|
+
|
2507
|
+
it 'with models and associations' do
|
2508
|
+
@db.create_table!(:items) do
|
2509
|
+
primary_key :id
|
2510
|
+
column :h, :hstore
|
2511
|
+
end
|
2512
|
+
c = Class.new(Sequel::Model(@db[:items])) do
|
2513
|
+
def self.name
|
2514
|
+
'Item'
|
2515
|
+
end
|
2516
|
+
unrestrict_primary_key
|
2517
|
+
def item_id
|
2518
|
+
h['item_id'].to_i if h
|
2519
|
+
end
|
2520
|
+
def left_item_id
|
2521
|
+
h['left_item_id'].to_i if h
|
2522
|
+
end
|
2523
|
+
end
|
2524
|
+
Sequel.extension :pg_hstore_ops
|
2525
|
+
c.plugin :many_through_many
|
2526
|
+
|
2527
|
+
h = {'item_id'=>"2", 'left_item_id'=>"1"}
|
2528
|
+
o2 = c.create(:id=>2)
|
2529
|
+
o = c.create(:id=>1, :h=>h)
|
2530
|
+
o.h.must_equal h
|
2531
|
+
|
2532
|
+
c.many_to_one :item, :class=>c, :key_column=>Sequel.cast(Sequel.hstore(:h)['item_id'], Integer)
|
2533
|
+
c.one_to_many :items, :class=>c, :key=>Sequel.cast(Sequel.hstore(:h)['item_id'], Integer), :key_method=>:item_id
|
2534
|
+
c.many_to_many :related_items, :class=>c, :join_table=>Sequel[:items].as(:i), :left_key=>Sequel.cast(Sequel.hstore(:h)['left_item_id'], Integer), :right_key=>Sequel.cast(Sequel.hstore(:h)['item_id'], Integer)
|
2535
|
+
|
2536
|
+
c.many_to_one :other_item, :class=>c, :key=>:id, :primary_key_method=>:item_id, :primary_key=>Sequel.cast(Sequel.hstore(:h)['item_id'], Integer), :reciprocal=>:other_items
|
2537
|
+
c.one_to_many :other_items, :class=>c, :primary_key=>:item_id, :key=>:id, :primary_key_column=>Sequel.cast(Sequel.hstore(:h)['item_id'], Integer), :reciprocal=>:other_item
|
2538
|
+
c.many_to_many :other_related_items, :class=>c, :join_table=>Sequel[:items].as(:i), :left_key=>:id, :right_key=>:id,
|
2539
|
+
:left_primary_key_column=>Sequel.cast(Sequel.hstore(:h)['left_item_id'], Integer),
|
2540
|
+
:left_primary_key=>:left_item_id,
|
2541
|
+
:right_primary_key=>Sequel.cast(Sequel.hstore(:h)['left_item_id'], Integer),
|
2542
|
+
:right_primary_key_method=>:left_item_id
|
2543
|
+
|
2544
|
+
c.many_through_many :mtm_items, [
|
2545
|
+
[:items, Sequel.cast(Sequel.hstore(:h)['item_id'], Integer), Sequel.cast(Sequel.hstore(:h)['left_item_id'], Integer)],
|
2546
|
+
[:items, Sequel.cast(Sequel.hstore(:h)['left_item_id'], Integer), Sequel.cast(Sequel.hstore(:h)['left_item_id'], Integer)]
|
2547
|
+
],
|
2548
|
+
:class=>c,
|
2549
|
+
:left_primary_key_column=>Sequel.cast(Sequel.hstore(:h)['item_id'], Integer),
|
2550
|
+
:left_primary_key=>:item_id,
|
2551
|
+
:right_primary_key=>Sequel.cast(Sequel.hstore(:h)['left_item_id'], Integer),
|
2552
|
+
:right_primary_key_method=>:left_item_id
|
2553
|
+
|
2554
|
+
# Lazily Loading
|
2555
|
+
o.item.must_equal o2
|
2556
|
+
o2.items.must_equal [o]
|
2557
|
+
o.related_items.must_equal [o2]
|
2558
|
+
o2.other_item.must_equal o
|
2559
|
+
o.other_items.must_equal [o2]
|
2560
|
+
o.other_related_items.must_equal [o]
|
2561
|
+
o.mtm_items.must_equal [o]
|
2562
|
+
|
2563
|
+
# Eager Loading via eager
|
2564
|
+
os = c.eager(:item, :related_items, :other_items, :other_related_items, :mtm_items).where(:id=>1).all.first
|
2565
|
+
os.item.must_equal o2
|
2566
|
+
os.related_items.must_equal [o2]
|
2567
|
+
os.other_items.must_equal [o2]
|
2568
|
+
os.other_related_items.must_equal [o]
|
2569
|
+
os.mtm_items.must_equal [o]
|
2570
|
+
os = c.eager(:items, :other_item).where(:id=>2).all.first
|
2571
|
+
os.items.must_equal [o]
|
2572
|
+
os.other_item.must_equal o
|
2573
|
+
|
2574
|
+
# Eager Loading via eager_graph
|
2575
|
+
c.eager_graph(:item).where(Sequel[:items][:id]=>1).all.first.item.must_equal o2
|
2576
|
+
c.eager_graph(:items).where(Sequel[:items][:id]=>2).all.first.items.must_equal [o]
|
2577
|
+
c.eager_graph(:related_items).where(Sequel[:items][:id]=>1).all.first.related_items.must_equal [o2]
|
2578
|
+
c.eager_graph(:other_item).where(Sequel[:items][:id]=>2).all.first.other_item.must_equal o
|
2579
|
+
c.eager_graph(:other_items).where(Sequel[:items][:id]=>1).all.first.other_items.must_equal [o2]
|
2580
|
+
c.eager_graph(:other_related_items).where(Sequel[:items][:id]=>1).all.first.other_related_items.must_equal [o]
|
2581
|
+
c.eager_graph(:mtm_items).where(Sequel[:items][:id]=>1).all.first.mtm_items.must_equal [o]
|
2582
|
+
|
2583
|
+
# Filter By Associations - Model Instances
|
2584
|
+
c.filter(:item=>o2).all.must_equal [o]
|
2585
|
+
c.filter(:items=>o).all.must_equal [o2]
|
2586
|
+
c.filter(:related_items=>o2).all.must_equal [o]
|
2587
|
+
c.filter(:other_item=>o).all.must_equal [o2]
|
2588
|
+
c.filter(:other_items=>o2).all.must_equal [o]
|
2589
|
+
c.filter(:other_related_items=>o).all.must_equal [o]
|
2590
|
+
c.filter(:mtm_items=>o).all.must_equal [o]
|
2591
|
+
|
2592
|
+
# Filter By Associations - Model Datasets
|
2593
|
+
c.filter(:item=>c.filter(:id=>o2.id)).all.must_equal [o]
|
2594
|
+
c.filter(:items=>c.filter(:id=>o.id)).all.must_equal [o2]
|
2595
|
+
c.filter(:related_items=>c.filter(:id=>o2.id)).all.must_equal [o]
|
2596
|
+
c.filter(:other_item=>c.filter(:id=>o.id)).all.must_equal [o2]
|
2597
|
+
c.filter(:other_items=>c.filter(:id=>o2.id)).all.must_equal [o]
|
2598
|
+
c.filter(:other_related_items=>c.filter(:id=>o.id)).all.must_equal [o]
|
2599
|
+
c.filter(:mtm_items=>c.filter(:id=>o.id)).all.must_equal [o]
|
2600
|
+
end
|
2601
|
+
|
2602
|
+
it 'operations/functions with pg_hstore_ops' do
|
2603
|
+
Sequel.extension :pg_hstore_ops, :pg_array_ops
|
2604
|
+
@db.create_table!(:items){hstore :h1; hstore :h2; hstore :h3; String :t}
|
2605
|
+
@ds.insert(Sequel.hstore('a'=>'b', 'c'=>nil), Sequel.hstore('a'=>'b'), Sequel.hstore('d'=>'e'))
|
2606
|
+
h1 = Sequel.hstore(:h1)
|
2607
|
+
h2 = Sequel.hstore(:h2)
|
2608
|
+
h3 = Sequel.hstore(:h3)
|
2609
|
+
|
2610
|
+
@ds.get(h1['a']).must_equal 'b'
|
2611
|
+
@ds.get(h1['d']).must_be_nil
|
2612
|
+
|
2613
|
+
@ds.get(h2.concat(h3).keys.length).must_equal 2
|
2614
|
+
@ds.get(h1.concat(h3).keys.length).must_equal 3
|
2615
|
+
@ds.get(h2.merge(h3).keys.length).must_equal 2
|
2616
|
+
@ds.get(h1.merge(h3).keys.length).must_equal 3
|
2617
|
+
|
2618
|
+
@ds.get(h1.contain_all(%w'a c')).must_equal true
|
2619
|
+
@ds.get(h1.contain_all(%w'a d')).must_equal false
|
2620
|
+
|
2621
|
+
@ds.get(h1.contain_any(%w'a d')).must_equal true
|
2622
|
+
@ds.get(h1.contain_any(%w'e d')).must_equal false
|
2623
|
+
|
2624
|
+
@ds.get(h1.contains(h2)).must_equal true
|
2625
|
+
@ds.get(h1.contains(h3)).must_equal false
|
2626
|
+
|
2627
|
+
@ds.get(h2.contained_by(h1)).must_equal true
|
2628
|
+
@ds.get(h2.contained_by(h3)).must_equal false
|
2629
|
+
|
2630
|
+
@ds.get(h1.defined('a')).must_equal true
|
2631
|
+
@ds.get(h1.defined('c')).must_equal false
|
2632
|
+
@ds.get(h1.defined('d')).must_equal false
|
2633
|
+
|
2634
|
+
@ds.get(h1.delete('a')['c']).must_be_nil
|
2635
|
+
@ds.get(h1.delete(%w'a d')['c']).must_be_nil
|
2636
|
+
@ds.get(h1.delete(h2)['c']).must_be_nil
|
2637
|
+
|
2638
|
+
@ds.from(Sequel.hstore('a'=>'b', 'c'=>nil).op.each).order(:key).all.must_equal [{:key=>'a', :value=>'b'}, {:key=>'c', :value=>nil}]
|
2639
|
+
|
2640
|
+
@ds.get(h1.has_key?('c')).must_equal true
|
2641
|
+
@ds.get(h1.include?('c')).must_equal true
|
2642
|
+
@ds.get(h1.key?('c')).must_equal true
|
2643
|
+
@ds.get(h1.member?('c')).must_equal true
|
2644
|
+
@ds.get(h1.exist?('c')).must_equal true
|
2645
|
+
@ds.get(h1.has_key?('d')).must_equal false
|
2646
|
+
@ds.get(h1.include?('d')).must_equal false
|
2647
|
+
@ds.get(h1.key?('d')).must_equal false
|
2648
|
+
@ds.get(h1.member?('d')).must_equal false
|
2649
|
+
@ds.get(h1.exist?('d')).must_equal false
|
2650
|
+
|
2651
|
+
@ds.get(h1.hstore.hstore.hstore.keys.length).must_equal 2
|
2652
|
+
@ds.get(h1.keys.length).must_equal 2
|
2653
|
+
@ds.get(h2.keys.length).must_equal 1
|
2654
|
+
@ds.get(h1.akeys.length).must_equal 2
|
2655
|
+
@ds.get(h2.akeys.length).must_equal 1
|
2656
|
+
|
2657
|
+
@ds.from(Sequel.hstore('t'=>'s').op.populate(Sequel::SQL::Cast.new(nil, :items))).select_map(:t).must_equal ['s']
|
2658
|
+
@ds.from(Sequel[:items].as(:i)).select(Sequel.hstore('t'=>'s').op.record_set(:i).as(:r)).from_self(:alias=>:s).select(Sequel.lit('(r).*')).from_self.select_map(:t).must_equal ['s']
|
2659
|
+
|
2660
|
+
@ds.from(Sequel.hstore('t'=>'s', 'a'=>'b').op.skeys.as(:s)).select_order_map(:s).must_equal %w'a t'
|
2661
|
+
@ds.from((Sequel.hstore('t'=>'s', 'a'=>'b').op - 'a').skeys.as(:s)).select_order_map(:s).must_equal %w't'
|
2662
|
+
|
2663
|
+
@ds.get(h1.slice(%w'a c').keys.length).must_equal 2
|
2664
|
+
@ds.get(h1.slice(%w'd c').keys.length).must_equal 1
|
2665
|
+
@ds.get(h1.slice(%w'd e').keys.length).must_be_nil
|
2666
|
+
|
2667
|
+
@ds.from(Sequel.hstore('t'=>'s', 'a'=>'b').op.svals.as(:s)).select_order_map(:s).must_equal %w'b s'
|
2668
|
+
|
2669
|
+
@ds.get(h1.to_array.length).must_equal 4
|
2670
|
+
@ds.get(h2.to_array.length).must_equal 2
|
2671
|
+
|
2672
|
+
@ds.get(h1.to_matrix.length).must_equal 2
|
2673
|
+
@ds.get(h2.to_matrix.length).must_equal 1
|
2674
|
+
|
2675
|
+
@ds.get(h1.values.length).must_equal 2
|
2676
|
+
@ds.get(h2.values.length).must_equal 1
|
2677
|
+
@ds.get(h1.avals.length).must_equal 2
|
2678
|
+
@ds.get(h2.avals.length).must_equal 1
|
2679
|
+
end
|
2680
|
+
end if DB.type_supported?(:hstore)
|
2681
|
+
|
2682
|
+
describe 'PostgreSQL json type' do
|
2683
|
+
before(:all) do
|
2684
|
+
@db = DB
|
2685
|
+
@ds = @db[:items]
|
2686
|
+
@a = [1, 2, {'a'=>'b'}, 3.0]
|
2687
|
+
@h = {'a'=>'b', '1'=>[3, 4, 5]}
|
2688
|
+
end
|
2689
|
+
after do
|
2690
|
+
@db.drop_table?(:items)
|
2691
|
+
end
|
2692
|
+
|
2693
|
+
json_types = [:json]
|
2694
|
+
json_types << :jsonb if DB.server_version >= 90400
|
2695
|
+
json_types.each do |json_type|
|
2696
|
+
json_array_type = "#{json_type}[]"
|
2697
|
+
pg_json = lambda{|v| Sequel.send(:"pg_#{json_type}", v)}
|
2698
|
+
|
2699
|
+
it 'insert and retrieve json values' do
|
2700
|
+
hash_class = json_type == :jsonb ? Sequel::Postgres::JSONBHash : Sequel::Postgres::JSONHash
|
2701
|
+
array_class = json_type == :jsonb ? Sequel::Postgres::JSONBArray : Sequel::Postgres::JSONArray
|
2702
|
+
|
2703
|
+
@db.create_table!(:items){column :j, json_type}
|
2704
|
+
@ds.insert(pg_json.call(@h))
|
2705
|
+
@ds.count.must_equal 1
|
2706
|
+
rs = @ds.all
|
2707
|
+
v = rs.first[:j]
|
2708
|
+
v.class.must_equal(hash_class)
|
2709
|
+
v.to_hash.must_be_kind_of(Hash)
|
2710
|
+
v.must_equal @h
|
2711
|
+
v.to_hash.must_equal @h
|
2712
|
+
@ds.delete
|
2713
|
+
@ds.insert(rs.first)
|
2714
|
+
@ds.all.must_equal rs
|
2715
|
+
|
2716
|
+
@ds.delete
|
2717
|
+
@ds.insert(pg_json.call(@a))
|
2718
|
+
@ds.count.must_equal 1
|
2719
|
+
rs = @ds.all
|
2720
|
+
v = rs.first[:j]
|
2721
|
+
v.class.must_equal(array_class)
|
2722
|
+
v.to_a.must_be_kind_of(Array)
|
2723
|
+
v.must_equal @a
|
2724
|
+
v.to_a.must_equal @a
|
2725
|
+
@ds.delete
|
2726
|
+
@ds.insert(rs.first)
|
2727
|
+
@ds.all.must_equal rs
|
2728
|
+
end
|
2729
|
+
|
2730
|
+
it 'insert and retrieve json[] values' do
|
2731
|
+
@db.create_table!(:items){column :j, json_array_type}
|
2732
|
+
j = Sequel.pg_array([pg_json.call('a'=>1), pg_json.call(['b', 2])])
|
2733
|
+
@ds.insert(j)
|
2734
|
+
@ds.count.must_equal 1
|
2735
|
+
rs = @ds.all
|
2736
|
+
v = rs.first[:j]
|
2737
|
+
v.class.must_equal(Sequel::Postgres::PGArray)
|
2738
|
+
v.to_a.must_be_kind_of(Array)
|
2739
|
+
v.must_equal j
|
2740
|
+
v.to_a.must_equal j
|
2741
|
+
@ds.delete
|
2742
|
+
@ds.insert(rs.first)
|
2743
|
+
@ds.all.must_equal rs
|
2744
|
+
end
|
2745
|
+
|
2746
|
+
it 'with models' do
|
2747
|
+
@db.create_table!(:items) do
|
2748
|
+
primary_key :id
|
2749
|
+
column :h, json_type
|
2750
|
+
end
|
2751
|
+
c = Class.new(Sequel::Model(@db[:items]))
|
2752
|
+
c.create(:h=>pg_json.call(@h)).h.must_equal @h
|
2753
|
+
c.create(:h=>pg_json.call(@a)).h.must_equal @a
|
2754
|
+
end
|
2755
|
+
|
2756
|
+
it 'use json in bound variables' do
|
2757
|
+
@db.create_table!(:items){column :i, json_type}
|
2758
|
+
@ds.call(:insert, {:i=>pg_json.call(@h)}, {:i=>:$i})
|
2759
|
+
@ds.get(:i).must_equal @h
|
2760
|
+
|
2761
|
+
@ds.delete
|
2762
|
+
@ds.call(:insert, {:i=>pg_json.call('a'=>nil)}, {:i=>:$i})
|
2763
|
+
@ds.get(:i).must_equal pg_json.call('a'=>nil)
|
2764
|
+
|
2765
|
+
@db.create_table!(:items){column :i, json_array_type}
|
2766
|
+
j = Sequel.pg_array([pg_json.call('a'=>1), pg_json.call(['b', 2])], json_type)
|
2767
|
+
@ds.call(:insert, {:i=>j}, {:i=>:$i})
|
2768
|
+
@ds.get(:i).must_equal j
|
2769
|
+
end if uses_pg_or_jdbc
|
2770
|
+
|
2771
|
+
it 'operations/functions with pg_json_ops' do
|
2772
|
+
Sequel.extension :pg_json_ops
|
2773
|
+
jo = pg_json.call('a'=>1, 'b'=>{'c'=>2, 'd'=>{'e'=>3}}).op
|
2774
|
+
ja = pg_json.call([2, 3, %w'a b']).op
|
2775
|
+
|
2776
|
+
@db.get(jo['a']).must_equal 1
|
2777
|
+
@db.get(jo['b']['c']).must_equal 2
|
2778
|
+
@db.get(jo[%w'b c']).must_equal 2
|
2779
|
+
@db.get(jo['b'].get_text(%w'd e')).must_equal "3"
|
2780
|
+
@db.get(jo[%w'b d'].get_text('e')).must_equal "3"
|
2781
|
+
@db.get(ja[1]).must_equal 3
|
2782
|
+
@db.get(ja[%w'2 1']).must_equal 'b'
|
2783
|
+
|
2784
|
+
@db.get(jo.extract('a')).must_equal 1
|
2785
|
+
@db.get(jo.extract('b').extract('c')).must_equal 2
|
2786
|
+
@db.get(jo.extract('b', 'c')).must_equal 2
|
2787
|
+
@db.get(jo.extract('b', 'd', 'e')).must_equal 3
|
2788
|
+
@db.get(jo.extract_text('b', 'd')).gsub(' ', '').must_equal '{"e":3}'
|
2789
|
+
@db.get(jo.extract_text('b', 'd', 'e')).must_equal '3'
|
2790
|
+
|
2791
|
+
@db.get(ja.array_length).must_equal 3
|
2792
|
+
@db.from(ja.array_elements.as(:v)).select_map(:v).must_equal [2, 3, %w'a b']
|
2793
|
+
|
2794
|
+
if DB.server_version >= 90400
|
2795
|
+
@db.get(jo.typeof).must_equal 'object'
|
2796
|
+
@db.get(ja.typeof).must_equal 'array'
|
2797
|
+
@db.from(ja.array_elements_text.as(:v)).select_map(:v).map{|s| s.gsub(' ', '')}.must_equal ['2', '3', '["a","b"]']
|
2798
|
+
@db.from(jo.to_record.as(:v, [Sequel.lit('a integer'), Sequel.lit('b text')])).select_map(:a).must_equal [1]
|
2799
|
+
@db.from(pg_json.call([{'a'=>1, 'b'=>1}]).op.to_recordset.as(:v, [Sequel.lit('a integer'), Sequel.lit('b integer')])).select_map(:a).must_equal [1]
|
2800
|
+
|
2801
|
+
if json_type == :jsonb
|
2802
|
+
@db.get(jo.has_key?('a')).must_equal true
|
2803
|
+
@db.get(jo.has_key?('c')).must_equal false
|
2804
|
+
@db.get(pg_json.call(['2', '3', %w'a b']).op.include?('2')).must_equal true
|
2805
|
+
@db.get(pg_json.call(['2', '3', %w'a b']).op.include?('4')).must_equal false
|
2806
|
+
|
2807
|
+
@db.get(jo.contain_all(['a', 'b'])).must_equal true
|
2808
|
+
@db.get(jo.contain_all(['a', 'c'])).must_equal false
|
2809
|
+
@db.get(jo.contain_all(['d', 'c'])).must_equal false
|
2810
|
+
@db.get(jo.contain_any(['a', 'b'])).must_equal true
|
2811
|
+
@db.get(jo.contain_any(['a', 'c'])).must_equal true
|
2812
|
+
@db.get(jo.contain_any(['d', 'c'])).must_equal false
|
2813
|
+
|
2814
|
+
@db.get(jo.contains(jo)).must_equal true
|
2815
|
+
@db.get(jo.contained_by(jo)).must_equal true
|
2816
|
+
@db.get(jo.contains('a'=>1)).must_equal true
|
2817
|
+
@db.get(jo.contained_by('a'=>1)).must_equal false
|
2818
|
+
@db.get(pg_json.call('a'=>1).op.contains(jo)).must_equal false
|
2819
|
+
@db.get(pg_json.call('a'=>1).op.contained_by(jo)).must_equal true
|
2820
|
+
|
2821
|
+
@db.get(ja.contains(ja)).must_equal true
|
2822
|
+
@db.get(ja.contained_by(ja)).must_equal true
|
2823
|
+
@db.get(ja.contains([2,3])).must_equal true
|
2824
|
+
@db.get(ja.contained_by([2,3])).must_equal false
|
2825
|
+
@db.get(pg_json.call([2,3]).op.contains(ja)).must_equal false
|
2826
|
+
@db.get(pg_json.call([2,3]).op.contained_by(ja)).must_equal true
|
2827
|
+
end
|
2828
|
+
end
|
2829
|
+
|
2830
|
+
if DB.server_version >= 90500 && json_type == :jsonb
|
2831
|
+
@db.get(pg_json.call([nil, 2]).op.strip_nulls[1]).must_equal 2
|
2832
|
+
@db.get(pg_json.call([nil, 2]).op.pretty).must_equal "[\n null,\n 2\n]"
|
2833
|
+
@db.from((jo - 'b').keys.as(:k)).select_order_map(:k).must_equal %w'a'
|
2834
|
+
@db.from(jo.delete_path(['b','c'])['b'].keys.as(:k)).select_order_map(:k).must_equal %w'd'
|
2835
|
+
@db.from(jo.concat('c'=>'d').keys.as(:k)).select_order_map(:k).must_equal %w'a b c'
|
2836
|
+
@db.get(jo.set(%w'a', 'f'=>'g')['a']['f']).must_equal 'g'
|
2837
|
+
end
|
2838
|
+
|
2839
|
+
if DB.server_version >= 90600 && json_type == :jsonb
|
2840
|
+
@db.get(pg_json.call([3]).op.insert(['0'], {'a'=>2})[0]['a']).must_equal 2
|
2841
|
+
@db.get(pg_json.call([3]).op.insert(['0'], {'a'=>2}, false)[0]['a']).must_equal 2
|
2842
|
+
@db.get(pg_json.call([3]).op.insert(['0'], {'a'=>2}, true)[0]).must_equal 3
|
2843
|
+
@db.get(pg_json.call([3]).op.insert(['0'], {'a'=>2}, true)[1]['a']).must_equal 2
|
2844
|
+
end
|
2845
|
+
|
2846
|
+
@db.from(jo.keys.as(:k)).select_order_map(:k).must_equal %w'a b'
|
2847
|
+
@db.from(jo.each).select_order_map(:key).must_equal %w'a b'
|
2848
|
+
@db.from(jo.each).order(:key).select_map(:value).must_equal [1, {'c'=>2, 'd'=>{'e'=>3}}]
|
2849
|
+
@db.from(jo.each_text).select_order_map(:key).must_equal %w'a b'
|
2850
|
+
@db.from(jo.each_text).order(:key).where(:key=>'b').get(:value).gsub(' ', '').must_match(/\{"d":\{"e":3\},"c":2\}|\{"c":2,"d":\{"e":3\}\}/)
|
2851
|
+
|
2852
|
+
Sequel.extension :pg_row_ops
|
2853
|
+
@db.create_table!(:items) do
|
2854
|
+
Integer :a
|
2855
|
+
String :b
|
2856
|
+
end
|
2857
|
+
j = Sequel.pg_json('a'=>1, 'b'=>'c').op
|
2858
|
+
@db.get(j.populate(Sequel.cast(nil, :items)).pg_row[:a]).must_equal 1
|
2859
|
+
@db.get(j.populate(Sequel.cast(nil, :items)).pg_row[:b]).must_equal 'c'
|
2860
|
+
j = Sequel.pg_json([{'a'=>1, 'b'=>'c'}, {'a'=>2, 'b'=>'d'}]).op
|
2861
|
+
@db.from(j.populate_set(Sequel.cast(nil, :items))).select_order_map(:a).must_equal [1, 2]
|
2862
|
+
@db.from(j.populate_set(Sequel.cast(nil, :items))).select_order_map(:b).must_equal %w'c d'
|
2863
|
+
end if DB.server_version >= 90300 && (DB.adapter_scheme == :postgres || DB.adapter_scheme == :jdbc)
|
2864
|
+
end
|
2865
|
+
end if DB.server_version >= 90200
|
2866
|
+
|
2867
|
+
describe 'PostgreSQL inet/cidr types' do
|
2868
|
+
ipv6_broken = (IPAddr.new('::1'); false) rescue true
|
2869
|
+
|
2870
|
+
before(:all) do
|
2871
|
+
@db = DB
|
2872
|
+
@ds = @db[:items]
|
2873
|
+
@v4 = '127.0.0.1'
|
2874
|
+
@v4nm = '127.0.0.0/8'
|
2875
|
+
@v6 = '2001:4f8:3:ba:2e0:81ff:fe22:d1f1'
|
2876
|
+
@v6nm = '2001:4f8:3:ba::/64'
|
2877
|
+
@ipv4 = IPAddr.new(@v4)
|
2878
|
+
@ipv4nm = IPAddr.new(@v4nm)
|
2879
|
+
unless ipv6_broken
|
2880
|
+
@ipv6 = IPAddr.new(@v6)
|
2881
|
+
@ipv6nm = IPAddr.new(@v6nm)
|
2882
|
+
end
|
2883
|
+
end
|
2884
|
+
after do
|
2885
|
+
@db.drop_table?(:items)
|
2886
|
+
end
|
2887
|
+
|
2888
|
+
it 'insert and retrieve inet/cidr values' do
|
2889
|
+
@db.create_table!(:items){inet :i; cidr :c}
|
2890
|
+
@ds.insert(@ipv4, @ipv4nm)
|
2891
|
+
@ds.count.must_equal 1
|
2892
|
+
rs = @ds.all
|
2893
|
+
rs.first[:i].must_equal @ipv4
|
2894
|
+
rs.first[:c].must_equal @ipv4nm
|
2895
|
+
rs.first[:i].must_be_kind_of(IPAddr)
|
2896
|
+
rs.first[:c].must_be_kind_of(IPAddr)
|
2897
|
+
@ds.delete
|
2898
|
+
@ds.insert(rs.first)
|
2899
|
+
@ds.all.must_equal rs
|
2900
|
+
|
2901
|
+
unless ipv6_broken
|
2902
|
+
@ds.delete
|
2903
|
+
@ds.insert(@ipv6, @ipv6nm)
|
2904
|
+
@ds.count.must_equal 1
|
2905
|
+
rs = @ds.all
|
2906
|
+
rs.first[:j]
|
2907
|
+
rs.first[:i].must_equal @ipv6
|
2908
|
+
rs.first[:c].must_equal @ipv6nm
|
2909
|
+
rs.first[:i].must_be_kind_of(IPAddr)
|
2910
|
+
rs.first[:c].must_be_kind_of(IPAddr)
|
2911
|
+
@ds.delete
|
2912
|
+
@ds.insert(rs.first)
|
2913
|
+
@ds.all.must_equal rs
|
2914
|
+
end
|
2915
|
+
end
|
2916
|
+
|
2917
|
+
it 'insert and retrieve inet/cidr/macaddr array values' do
|
2918
|
+
@db.create_table!(:items){column :i, 'inet[]'; column :c, 'cidr[]'; column :m, 'macaddr[]'}
|
2919
|
+
@ds.insert(Sequel.pg_array([@ipv4], 'inet'), Sequel.pg_array([@ipv4nm], 'cidr'), Sequel.pg_array(['12:34:56:78:90:ab'], 'macaddr'))
|
2920
|
+
@ds.count.must_equal 1
|
2921
|
+
rs = @ds.all
|
2922
|
+
rs.first.values.all?{|c| c.is_a?(Sequel::Postgres::PGArray)}.must_equal true
|
2923
|
+
rs.first[:i].first.must_equal @ipv4
|
2924
|
+
rs.first[:c].first.must_equal @ipv4nm
|
2925
|
+
rs.first[:m].first.must_equal '12:34:56:78:90:ab'
|
2926
|
+
rs.first[:i].first.must_be_kind_of(IPAddr)
|
2927
|
+
rs.first[:c].first.must_be_kind_of(IPAddr)
|
2928
|
+
@ds.delete
|
2929
|
+
@ds.insert(rs.first)
|
2930
|
+
@ds.all.must_equal rs
|
2931
|
+
end
|
2932
|
+
|
2933
|
+
it 'use ipaddr in bound variables' do
|
2934
|
+
@db.create_table!(:items){inet :i; cidr :c}
|
2935
|
+
|
2936
|
+
@ds.call(:insert, {:i=>@ipv4, :c=>@ipv4nm}, {:i=>:$i, :c=>:$c})
|
2937
|
+
@ds.get(:i).must_equal @ipv4
|
2938
|
+
@ds.get(:c).must_equal @ipv4nm
|
2939
|
+
@ds.filter(:i=>:$i, :c=>:$c).call(:first, :i=>@ipv4, :c=>@ipv4nm).must_equal(:i=>@ipv4, :c=>@ipv4nm)
|
2940
|
+
@ds.filter(:i=>:$i, :c=>:$c).call(:first, :i=>@ipv6, :c=>@ipv6nm).must_be_nil
|
2941
|
+
@ds.filter(:i=>:$i, :c=>:$c).call(:delete, :i=>@ipv4, :c=>@ipv4nm).must_equal 1
|
2942
|
+
|
2943
|
+
unless ipv6_broken
|
2944
|
+
@ds.call(:insert, {:i=>@ipv6, :c=>@ipv6nm}, {:i=>:$i, :c=>:$c})
|
2945
|
+
@ds.get(:i).must_equal @ipv6
|
2946
|
+
@ds.get(:c).must_equal @ipv6nm
|
2947
|
+
@ds.filter(:i=>:$i, :c=>:$c).call(:first, :i=>@ipv6, :c=>@ipv6nm).must_equal(:i=>@ipv6, :c=>@ipv6nm)
|
2948
|
+
@ds.filter(:i=>:$i, :c=>:$c).call(:first, :i=>@ipv4, :c=>@ipv4nm).must_be_nil
|
2949
|
+
@ds.filter(:i=>:$i, :c=>:$c).call(:delete, :i=>@ipv6, :c=>@ipv6nm).must_equal 1
|
2950
|
+
end
|
2951
|
+
|
2952
|
+
@db.create_table!(:items){column :i, 'inet[]'; column :c, 'cidr[]'; column :m, 'macaddr[]'}
|
2953
|
+
@ds.call(:insert, {:i=>[@ipv4], :c=>[@ipv4nm], :m=>['12:34:56:78:90:ab']}, {:i=>:$i, :c=>:$c, :m=>:$m})
|
2954
|
+
@ds.filter(:i=>:$i, :c=>:$c, :m=>:$m).call(:first, :i=>[@ipv4], :c=>[@ipv4nm], :m=>['12:34:56:78:90:ab']).must_equal(:i=>[@ipv4], :c=>[@ipv4nm], :m=>['12:34:56:78:90:ab'])
|
2955
|
+
@ds.filter(:i=>:$i, :c=>:$c, :m=>:$m).call(:first, :i=>[], :c=>[], :m=>[]).must_be_nil
|
2956
|
+
@ds.filter(:i=>:$i, :c=>:$c, :m=>:$m).call(:delete, :i=>[@ipv4], :c=>[@ipv4nm], :m=>['12:34:56:78:90:ab']).must_equal 1
|
2957
|
+
end if uses_pg_or_jdbc
|
2958
|
+
|
2959
|
+
it 'with models' do
|
2960
|
+
@db.create_table!(:items) do
|
2961
|
+
primary_key :id
|
2962
|
+
inet :i
|
2963
|
+
cidr :c
|
2964
|
+
end
|
2965
|
+
c = Class.new(Sequel::Model(@db[:items]))
|
2966
|
+
c.create(:i=>@v4, :c=>@v4nm).values.values_at(:i, :c).must_equal [@ipv4, @ipv4nm]
|
2967
|
+
unless ipv6_broken
|
2968
|
+
c.create(:i=>@ipv6, :c=>@ipv6nm).values.values_at(:i, :c).must_equal [@ipv6, @ipv6nm]
|
2969
|
+
end
|
2970
|
+
end
|
2971
|
+
|
2972
|
+
it 'operations/functions with pg_inet_ops' do
|
2973
|
+
Sequel.extension :pg_inet_ops
|
2974
|
+
|
2975
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4') << '1.2.3.0/24').must_equal true
|
2976
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4') << '1.2.3.4/32').must_equal false
|
2977
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4') << '1.2.2.0/24').must_equal false
|
2978
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4').contained_by('1.2.3.0/24')).must_equal true
|
2979
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4').contained_by('1.2.3.4/32')).must_equal false
|
2980
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4').contained_by('1.2.2.0/24')).must_equal false
|
2981
|
+
|
2982
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4').contained_by_or_equals('1.2.3.0/24')).must_equal true
|
2983
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4').contained_by_or_equals('1.2.3.4/32')).must_equal true
|
2984
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4').contained_by_or_equals('1.2.2.0/24')).must_equal false
|
2985
|
+
|
2986
|
+
@db.get(Sequel.pg_inet_op('1.2.3.0/24') >> '1.2.3.4').must_equal true
|
2987
|
+
@db.get(Sequel.pg_inet_op('1.2.3.0/24') >> '1.2.2.4').must_equal false
|
2988
|
+
@db.get(Sequel.pg_inet_op('1.2.3.0/24').contains('1.2.3.4')).must_equal true
|
2989
|
+
@db.get(Sequel.pg_inet_op('1.2.3.0/24').contains('1.2.2.4')).must_equal false
|
2990
|
+
|
2991
|
+
@db.get(Sequel.pg_inet_op('1.2.3.0/24').contains_or_equals('1.2.3.4')).must_equal true
|
2992
|
+
@db.get(Sequel.pg_inet_op('1.2.3.0/24').contains_or_equals('1.2.2.4')).must_equal false
|
2993
|
+
@db.get(Sequel.pg_inet_op('1.2.3.0/24').contains_or_equals('1.2.3.0/24')).must_equal true
|
2994
|
+
|
2995
|
+
@db.get(Sequel.pg_inet_op('1.2.3.0/32') + 1).must_equal IPAddr.new('1.2.3.1/32')
|
2996
|
+
@db.get(Sequel.pg_inet_op('1.2.3.1/32') - 1).must_equal IPAddr.new('1.2.3.0/32')
|
2997
|
+
@db.get(Sequel.pg_inet_op('1.2.3.1/32') - '1.2.3.0/32').must_equal 1
|
2998
|
+
@db.get(Sequel.pg_inet_op('1.2.3.0/32') & '1.2.0.4/32').must_equal IPAddr.new('1.2.0.0/32')
|
2999
|
+
@db.get(Sequel.pg_inet_op('1.2.0.0/32') | '0.0.3.4/32').must_equal IPAddr.new('1.2.3.4/32')
|
3000
|
+
@db.get(~Sequel.pg_inet_op('0.0.0.0/32')).must_equal IPAddr.new('255.255.255.255/32')
|
3001
|
+
|
3002
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4/24').abbrev).must_equal '1.2.3.4/24'
|
3003
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4/24').broadcast).must_equal IPAddr.new('1.2.3.255/24')
|
3004
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4/24').family).must_equal 4
|
3005
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4/24').host).must_equal '1.2.3.4'
|
3006
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4/24').hostmask).must_equal IPAddr.new('0.0.0.255/32')
|
3007
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4/24').masklen).must_equal 24
|
3008
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4/24').netmask).must_equal IPAddr.new('255.255.255.0/32')
|
3009
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4/24').network).must_equal IPAddr.new('1.2.3.0/24')
|
3010
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4/24').set_masklen(16)).must_equal IPAddr.new('1.2.3.4/16')
|
3011
|
+
@db.get(Sequel.pg_inet_op('1.2.3.4/32').text).must_equal '1.2.3.4/32'
|
3012
|
+
|
3013
|
+
if @db.server_version >= 90400
|
3014
|
+
@db.get(Sequel.pg_inet_op('1.2.3.0/24').contains_or_contained_by('1.2.0.0/16')).must_equal true
|
3015
|
+
@db.get(Sequel.pg_inet_op('1.2.0.0/16').contains_or_contained_by('1.2.3.0/24')).must_equal true
|
3016
|
+
@db.get(Sequel.pg_inet_op('1.3.0.0/16').contains_or_contained_by('1.2.3.0/24')).must_equal false
|
3017
|
+
end
|
3018
|
+
end
|
3019
|
+
end
|
3020
|
+
|
3021
|
+
describe 'PostgreSQL custom range types' do
|
3022
|
+
after do
|
3023
|
+
@db.run "DROP TYPE timerange";
|
3024
|
+
end
|
3025
|
+
|
3026
|
+
it "should allow registration and use" do
|
3027
|
+
@db = DB
|
3028
|
+
@db.run "CREATE TYPE timerange AS range (subtype = time)"
|
3029
|
+
@db.register_range_type('timerange')
|
3030
|
+
r = Sequel::SQLTime.create(10, 11, 12)..Sequel::SQLTime.create(11, 12, 13)
|
3031
|
+
@db.get(Sequel.pg_range(r, :timerange)).to_range.must_equal r
|
3032
|
+
end
|
3033
|
+
end if DB.server_version >= 90200 && DB.adapter_scheme == :postgres || DB.adapter_scheme == :jdbc
|
3034
|
+
|
3035
|
+
describe 'PostgreSQL range types' do
|
3036
|
+
before(:all) do
|
3037
|
+
@db = DB
|
3038
|
+
@ds = @db[:items]
|
3039
|
+
@map = {:i4=>'int4range', :i8=>'int8range', :n=>'numrange', :d=>'daterange', :t=>'tsrange', :tz=>'tstzrange'}
|
3040
|
+
@r = {:i4=>1...2, :i8=>2...3, :n=>BigDecimal.new('1.0')..BigDecimal.new('2.0'), :d=>Date.today...(Date.today+1), :t=>Time.local(2011, 1)..Time.local(2011, 2), :tz=>Time.local(2011, 1)..Time.local(2011, 2)}
|
3041
|
+
@ra = {}
|
3042
|
+
@pgr = {}
|
3043
|
+
@pgra = {}
|
3044
|
+
@r.each{|k, v| @ra[k] = Sequel.pg_array([v], @map[k])}
|
3045
|
+
@r.each{|k, v| @pgr[k] = Sequel.pg_range(v)}
|
3046
|
+
@r.each{|k, v| @pgra[k] = Sequel.pg_array([Sequel.pg_range(v)], @map[k])}
|
3047
|
+
end
|
3048
|
+
after do
|
3049
|
+
@db.drop_table?(:items)
|
3050
|
+
end
|
3051
|
+
|
3052
|
+
it 'insert and retrieve range type values' do
|
3053
|
+
@db.create_table!(:items){int4range :i4; int8range :i8; numrange :n; daterange :d; tsrange :t; tstzrange :tz}
|
3054
|
+
[@r, @pgr].each do |input|
|
3055
|
+
h = {}
|
3056
|
+
input.each{|k, v| h[k] = Sequel.cast(v, @map[k])}
|
3057
|
+
@ds.insert(h)
|
3058
|
+
@ds.count.must_equal 1
|
3059
|
+
rs = @ds.all
|
3060
|
+
rs.first.each do |k, v|
|
3061
|
+
v.class.must_equal(Sequel::Postgres::PGRange)
|
3062
|
+
v.to_range.must_be_kind_of(Range)
|
3063
|
+
v.must_be :==, @r[k]
|
3064
|
+
v.to_range.must_equal @r[k]
|
3065
|
+
end
|
3066
|
+
@ds.delete
|
3067
|
+
@ds.insert(rs.first)
|
3068
|
+
@ds.all.must_equal rs
|
3069
|
+
@ds.delete
|
3070
|
+
end
|
3071
|
+
end
|
3072
|
+
|
3073
|
+
it 'insert and retrieve arrays of range type values' do
|
3074
|
+
@db.create_table!(:items){column :i4, 'int4range[]'; column :i8, 'int8range[]'; column :n, 'numrange[]'; column :d, 'daterange[]'; column :t, 'tsrange[]'; column :tz, 'tstzrange[]'}
|
3075
|
+
[@ra, @pgra].each do |input|
|
3076
|
+
@ds.insert(input)
|
3077
|
+
@ds.count.must_equal 1
|
3078
|
+
rs = @ds.all
|
3079
|
+
rs.first.each do |k, v|
|
3080
|
+
v.class.must_equal(Sequel::Postgres::PGArray)
|
3081
|
+
v.to_a.must_be_kind_of(Array)
|
3082
|
+
v.first.class.must_equal(Sequel::Postgres::PGRange)
|
3083
|
+
v.first.to_range.must_be_kind_of(Range)
|
3084
|
+
v.must_be :==, @ra[k].to_a
|
3085
|
+
v.first.must_be :==, @r[k]
|
3086
|
+
end
|
3087
|
+
@ds.delete
|
3088
|
+
@ds.insert(rs.first)
|
3089
|
+
@ds.all.must_equal rs
|
3090
|
+
@ds.delete
|
3091
|
+
end
|
3092
|
+
end
|
3093
|
+
|
3094
|
+
it 'use range types in bound variables' do
|
3095
|
+
@db.create_table!(:items){int4range :i4; int8range :i8; numrange :n; daterange :d; tsrange :t; tstzrange :tz}
|
3096
|
+
h = {}
|
3097
|
+
@r.keys.each{|k| h[k] = :"$#{k}"}
|
3098
|
+
r2 = {}
|
3099
|
+
@r.each{|k, v| r2[k] = Range.new(v.begin, v.end+2)}
|
3100
|
+
@ds.call(:insert, @r, h)
|
3101
|
+
@ds.first.must_be :==, @r
|
3102
|
+
@ds.filter(h).call(:first, @r).must_be :==, @r
|
3103
|
+
@ds.filter(h).call(:first, @pgr).must_be :==, @r
|
3104
|
+
@ds.filter(h).call(:first, r2).must_be_nil
|
3105
|
+
@ds.filter(h).call(:delete, @r).must_equal 1
|
3106
|
+
|
3107
|
+
@db.create_table!(:items){column :i4, 'int4range[]'; column :i8, 'int8range[]'; column :n, 'numrange[]'; column :d, 'daterange[]'; column :t, 'tsrange[]'; column :tz, 'tstzrange[]'}
|
3108
|
+
@r.each{|k, v| r2[k] = [Range.new(v.begin, v.end+2)]}
|
3109
|
+
@ds.call(:insert, @ra, h)
|
3110
|
+
@ds.filter(h).call(:first, @ra).each{|k, v| v.must_be :==, @ra[k].to_a}
|
3111
|
+
@ds.filter(h).call(:first, @pgra).each{|k, v| v.must_be :==, @ra[k].to_a}
|
3112
|
+
@ds.filter(h).call(:first, r2).must_be_nil
|
3113
|
+
@ds.filter(h).call(:delete, @ra).must_equal 1
|
3114
|
+
end if uses_pg_or_jdbc
|
3115
|
+
|
3116
|
+
it 'with models' do
|
3117
|
+
@db.create_table!(:items){primary_key :id; int4range :i4; int8range :i8; numrange :n; daterange :d; tsrange :t; tstzrange :tz}
|
3118
|
+
c = Class.new(Sequel::Model(@db[:items]))
|
3119
|
+
v = c.create(@r).values
|
3120
|
+
v.delete(:id)
|
3121
|
+
v.must_be :==, @r
|
3122
|
+
|
3123
|
+
@db.create_table!(:items){primary_key :id; column :i4, 'int4range[]'; column :i8, 'int8range[]'; column :n, 'numrange[]'; column :d, 'daterange[]'; column :t, 'tsrange[]'; column :tz, 'tstzrange[]'}
|
3124
|
+
c = Class.new(Sequel::Model(@db[:items]))
|
3125
|
+
v = c.create(@ra).values
|
3126
|
+
v.delete(:id)
|
3127
|
+
v.each{|k,v1| v1.must_be :==, @ra[k].to_a}
|
3128
|
+
end
|
3129
|
+
|
3130
|
+
it 'works with current_datetime_timestamp extension' do
|
3131
|
+
ds = @db.dataset.extension(:current_datetime_timestamp)
|
3132
|
+
tsr = ds.get(Sequel.pg_range(ds.current_datetime..ds.current_datetime, :tstzrange))
|
3133
|
+
tsr.begin.must_be_kind_of Time
|
3134
|
+
tsr.end.must_be_kind_of Time
|
3135
|
+
end
|
3136
|
+
|
3137
|
+
it 'operations/functions with pg_range_ops' do
|
3138
|
+
Sequel.extension :pg_range_ops
|
3139
|
+
|
3140
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.contains(2..4)).must_equal true
|
3141
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.contains(3..6)).must_equal false
|
3142
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.contains(0..6)).must_equal false
|
3143
|
+
|
3144
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.contained_by(0..6)).must_equal true
|
3145
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.contained_by(3..6)).must_equal false
|
3146
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.contained_by(2..4)).must_equal false
|
3147
|
+
|
3148
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.overlaps(5..6)).must_equal true
|
3149
|
+
@db.get(Sequel.pg_range(1...5, :int4range).op.overlaps(5..6)).must_equal false
|
3150
|
+
|
3151
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.left_of(6..10)).must_equal true
|
3152
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.left_of(5..10)).must_equal false
|
3153
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.left_of(-1..0)).must_equal false
|
3154
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.left_of(-1..3)).must_equal false
|
3155
|
+
|
3156
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.right_of(6..10)).must_equal false
|
3157
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.right_of(5..10)).must_equal false
|
3158
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.right_of(-1..0)).must_equal true
|
3159
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.right_of(-1..3)).must_equal false
|
3160
|
+
|
3161
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.ends_before(6..10)).must_equal true
|
3162
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.ends_before(5..10)).must_equal true
|
3163
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.ends_before(-1..0)).must_equal false
|
3164
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.ends_before(-1..3)).must_equal false
|
3165
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.ends_before(-1..7)).must_equal true
|
3166
|
+
|
3167
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.starts_after(6..10)).must_equal false
|
3168
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.starts_after(5..10)).must_equal false
|
3169
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.starts_after(3..10)).must_equal false
|
3170
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.starts_after(-1..10)).must_equal true
|
3171
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.starts_after(-1..0)).must_equal true
|
3172
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.starts_after(-1..3)).must_equal true
|
3173
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.starts_after(-5..-1)).must_equal true
|
3174
|
+
|
3175
|
+
@db.get(Sequel.pg_range(1..5, :int4range).op.adjacent_to(6..10)).must_equal true
|
3176
|
+
@db.get(Sequel.pg_range(1...5, :int4range).op.adjacent_to(6..10)).must_equal false
|
3177
|
+
|
3178
|
+
@db.get((Sequel.pg_range(1..5, :int4range).op + (6..10)).adjacent_to(6..10)).must_equal false
|
3179
|
+
@db.get((Sequel.pg_range(1..5, :int4range).op + (6..10)).adjacent_to(11..20)).must_equal true
|
3180
|
+
|
3181
|
+
@db.get((Sequel.pg_range(1..5, :int4range).op * (2..6)).adjacent_to(6..10)).must_equal true
|
3182
|
+
@db.get((Sequel.pg_range(1..4, :int4range).op * (2..6)).adjacent_to(6..10)).must_equal false
|
3183
|
+
|
3184
|
+
@db.get((Sequel.pg_range(1..5, :int4range).op - (2..6)).adjacent_to(2..10)).must_equal true
|
3185
|
+
@db.get((Sequel.pg_range(0..4, :int4range).op - (3..6)).adjacent_to(4..10)).must_equal false
|
3186
|
+
|
3187
|
+
@db.get(Sequel.pg_range(0..4, :int4range).op.lower).must_equal 0
|
3188
|
+
@db.get(Sequel.pg_range(0..4, :int4range).op.upper).must_equal 5
|
3189
|
+
|
3190
|
+
@db.get(Sequel.pg_range(0..4, :int4range).op.isempty).must_equal false
|
3191
|
+
@db.get(Sequel::Postgres::PGRange.empty(:int4range).op.isempty).must_equal true
|
3192
|
+
|
3193
|
+
@db.get(Sequel.pg_range(1..5, :numrange).op.lower_inc).must_equal true
|
3194
|
+
@db.get(Sequel::Postgres::PGRange.new(1, 5, :exclude_begin=>true, :db_type=>:numrange).op.lower_inc).must_equal false
|
3195
|
+
|
3196
|
+
@db.get(Sequel.pg_range(1..5, :numrange).op.upper_inc).must_equal true
|
3197
|
+
@db.get(Sequel.pg_range(1...5, :numrange).op.upper_inc).must_equal false
|
3198
|
+
|
3199
|
+
@db.get(Sequel::Postgres::PGRange.new(1, 5, :db_type=>:int4range).op.lower_inf).must_equal false
|
3200
|
+
@db.get(Sequel::Postgres::PGRange.new(nil, 5, :db_type=>:int4range).op.lower_inf).must_equal true
|
3201
|
+
|
3202
|
+
@db.get(Sequel::Postgres::PGRange.new(1, 5, :db_type=>:int4range).op.upper_inf).must_equal false
|
3203
|
+
@db.get(Sequel::Postgres::PGRange.new(1, nil, :db_type=>:int4range).op.upper_inf).must_equal true
|
3204
|
+
end
|
3205
|
+
end if DB.server_version >= 90200
|
3206
|
+
|
3207
|
+
describe 'PostgreSQL interval types' do
|
3208
|
+
before(:all) do
|
3209
|
+
@db = DB
|
3210
|
+
@ds = @db[:items]
|
3211
|
+
end
|
3212
|
+
after do
|
3213
|
+
@db.drop_table?(:items)
|
3214
|
+
end
|
3215
|
+
|
3216
|
+
it 'insert and retrieve interval values' do
|
3217
|
+
@db.create_table!(:items){interval :i}
|
3218
|
+
[
|
3219
|
+
['0', '00:00:00', 0, []],
|
3220
|
+
['1', '00:00:01', 1, [[:seconds, 1]]],
|
3221
|
+
['1 microsecond', '00:00:00.000001', 0.000001, [[:seconds, 0.000001]]],
|
3222
|
+
['1 millisecond', '00:00:00.001', 0.001, [[:seconds, 0.001]]],
|
3223
|
+
['1 second', '00:00:01', 1, [[:seconds, 1]]],
|
3224
|
+
['1 minute', '00:01:00', 60, [[:seconds, 60]]],
|
3225
|
+
['1 hour', '01:00:00', 3600, [[:seconds, 3600]]],
|
3226
|
+
['123000 hours', '123000:00:00', 442800000, [[:seconds, 442800000]]],
|
3227
|
+
['1 day', '1 day', 86400, [[:days, 1]]],
|
3228
|
+
['1 week', '7 days', 86400*7, [[:days, 7]]],
|
3229
|
+
['1 month', '1 mon', 86400*30, [[:months, 1]]],
|
3230
|
+
['1 year', '1 year', 31557600, [[:years, 1]]],
|
3231
|
+
['1 decade', '10 years', 31557600*10, [[:years, 10]]],
|
3232
|
+
['1 century', '100 years', 31557600*100, [[:years, 100]]],
|
3233
|
+
['1 millennium', '1000 years', 31557600*1000, [[:years, 1000]]],
|
3234
|
+
['1 year 2 months 3 weeks 4 days 5 hours 6 minutes 7 seconds', '1 year 2 mons 25 days 05:06:07', 31557600 + 2*86400*30 + 3*86400*7 + 4*86400 + 5*3600 + 6*60 + 7, [[:years, 1], [:months, 2], [:days, 25], [:seconds, 18367]]],
|
3235
|
+
['-1 year +2 months -3 weeks +4 days -5 hours +6 minutes -7 seconds', '-10 mons -17 days -04:54:07', -10*86400*30 - 3*86400*7 + 4*86400 - 5*3600 + 6*60 - 7, [[:months, -10], [:days, -17], [:seconds, -17647]]],
|
3236
|
+
['+2 years -1 months +3 weeks -4 days +5 hours -6 minutes +7 seconds', '1 year 11 mons 17 days 04:54:07', 31557600 + 11*86400*30 + 3*86400*7 - 4*86400 + 5*3600 - 6*60 + 7, [[:years, 1], [:months, 11], [:days, 17], [:seconds, 17647]]],
|
3237
|
+
].each do |instr, outstr, value, parts|
|
3238
|
+
@ds.insert(instr)
|
3239
|
+
@ds.count.must_equal 1
|
3240
|
+
@ds.get(Sequel.cast(:i, String)).must_equal outstr
|
3241
|
+
rs = @ds.all
|
3242
|
+
rs.first[:i].is_a?(ActiveSupport::Duration).must_equal true
|
3243
|
+
rs.first[:i].must_equal ActiveSupport::Duration.new(value, parts)
|
3244
|
+
rs.first[:i].parts.sort_by{|k,v| k.to_s}.reject{|k,v| v == 0}.must_equal parts.sort_by{|k,v| k.to_s}
|
3245
|
+
@ds.delete
|
3246
|
+
@ds.insert(rs.first)
|
3247
|
+
@ds.all.must_equal rs
|
3248
|
+
@ds.delete
|
3249
|
+
end
|
3250
|
+
end
|
3251
|
+
|
3252
|
+
it 'insert and retrieve interval array values' do
|
3253
|
+
@db.create_table!(:items){column :i, 'interval[]'}
|
3254
|
+
@ds.insert(Sequel.pg_array(['1 year 2 months 3 weeks 4 days 5 hours 6 minutes 7 seconds'], 'interval'))
|
3255
|
+
@ds.count.must_equal 1
|
3256
|
+
rs = @ds.all
|
3257
|
+
rs.first[:i].is_a?(Sequel::Postgres::PGArray).must_equal true
|
3258
|
+
rs.first[:i].first.is_a?(ActiveSupport::Duration).must_equal true
|
3259
|
+
rs.first[:i].first.must_equal ActiveSupport::Duration.new(31557600 + 2*86400*30 + 3*86400*7 + 4*86400 + 5*3600 + 6*60 + 7, [[:years, 1], [:months, 2], [:days, 25], [:seconds, 18367]])
|
3260
|
+
rs.first[:i].first.parts.sort_by{|k,v| k.to_s}.must_equal [[:years, 1], [:months, 2], [:days, 25], [:seconds, 18367]].sort_by{|k,v| k.to_s}
|
3261
|
+
@ds.delete
|
3262
|
+
@ds.insert(rs.first)
|
3263
|
+
@ds.all.must_equal rs
|
3264
|
+
end
|
3265
|
+
|
3266
|
+
it 'use intervals in bound variables' do
|
3267
|
+
@db.create_table!(:items){interval :i}
|
3268
|
+
@ds.insert('1 year 2 months 3 weeks 4 days 5 hours 6 minutes 7 seconds')
|
3269
|
+
d = @ds.get(:i)
|
3270
|
+
@ds.delete
|
3271
|
+
|
3272
|
+
@ds.call(:insert, {:i=>d}, {:i=>:$i})
|
3273
|
+
@ds.get(:i).must_equal d
|
3274
|
+
@ds.filter(:i=>:$i).call(:first, :i=>d).must_equal(:i=>d)
|
3275
|
+
@ds.filter(:i=>Sequel.cast(:$i, :interval)).call(:first, :i=>'0').must_be_nil
|
3276
|
+
@ds.filter(:i=>:$i).call(:delete, :i=>d).must_equal 1
|
3277
|
+
|
3278
|
+
@db.create_table!(:items){column :i, 'interval[]'}
|
3279
|
+
@ds.call(:insert, {:i=>[d]}, {:i=>:$i})
|
3280
|
+
@ds.filter(:i=>:$i).call(:first, :i=>[d]).must_equal(:i=>[d])
|
3281
|
+
@ds.filter(:i=>:$i).call(:first, :i=>[]).must_be_nil
|
3282
|
+
@ds.filter(:i=>:$i).call(:delete, :i=>[d]).must_equal 1
|
3283
|
+
end if uses_pg_or_jdbc
|
3284
|
+
|
3285
|
+
it 'with models' do
|
3286
|
+
@db.create_table!(:items) do
|
3287
|
+
primary_key :id
|
3288
|
+
interval :i
|
3289
|
+
end
|
3290
|
+
c = Class.new(Sequel::Model(@db[:items]))
|
3291
|
+
v = c.create(:i=>'1 year 2 mons 25 days 05:06:07').i
|
3292
|
+
v.is_a?(ActiveSupport::Duration).must_equal true
|
3293
|
+
v.must_equal ActiveSupport::Duration.new(31557600 + 2*86400*30 + 3*86400*7 + 4*86400 + 5*3600 + 6*60 + 7, [[:years, 1], [:months, 2], [:days, 25], [:seconds, 18367]])
|
3294
|
+
v.parts.sort_by{|k,_| k.to_s}.must_equal [[:years, 1], [:months, 2], [:days, 25], [:seconds, 18367]].sort_by{|k,_| k.to_s}
|
3295
|
+
end
|
3296
|
+
end if (begin require 'active_support/duration'; require 'active_support/inflector'; require 'active_support/core_ext/string/inflections'; true; rescue LoadError; false end)
|
3297
|
+
|
3298
|
+
describe 'PostgreSQL row-valued/composite types' do
|
3299
|
+
before(:all) do
|
3300
|
+
@db = DB
|
3301
|
+
Sequel.extension :pg_array_ops, :pg_row_ops
|
3302
|
+
@ds = @db[:person]
|
3303
|
+
|
3304
|
+
@db.create_table!(:address) do
|
3305
|
+
String :street
|
3306
|
+
String :city
|
3307
|
+
String :zip
|
3308
|
+
end
|
3309
|
+
@db.create_table!(:person) do
|
3310
|
+
Integer :id
|
3311
|
+
address :address
|
3312
|
+
end
|
3313
|
+
@db.create_table!(:company) do
|
3314
|
+
Integer :id
|
3315
|
+
column :employees, 'person[]'
|
3316
|
+
end
|
3317
|
+
oids = @db.conversion_procs.keys
|
3318
|
+
@db.register_row_type(:address)
|
3319
|
+
@db.register_row_type(Sequel.qualify(:public, :person))
|
3320
|
+
@db.register_row_type(Sequel[:public][:company])
|
3321
|
+
@new_oids = @db.conversion_procs.keys - oids
|
3322
|
+
end
|
3323
|
+
after(:all) do
|
3324
|
+
@new_oids.each{|oid| @db.conversion_procs.delete(oid)}
|
3325
|
+
@db.row_types.clear
|
3326
|
+
@db.drop_table?(:company, :person, :address)
|
3327
|
+
end
|
3328
|
+
after do
|
3329
|
+
[:company, :person, :address].each{|t| @db[t].delete}
|
3330
|
+
end
|
3331
|
+
|
3332
|
+
it 'insert and retrieve row types' do
|
3333
|
+
@ds.insert(:id=>1, :address=>Sequel.pg_row(['123 Sesame St', 'Somewhere', '12345']))
|
3334
|
+
@ds.count.must_equal 1
|
3335
|
+
# Single row valued type
|
3336
|
+
rs = @ds.all
|
3337
|
+
v = rs.first[:address]
|
3338
|
+
v.class.superclass.must_equal(Sequel::Postgres::PGRow::HashRow)
|
3339
|
+
v.to_hash.must_be_kind_of(Hash)
|
3340
|
+
v.to_hash.must_equal(:street=>'123 Sesame St', :city=>'Somewhere', :zip=>'12345')
|
3341
|
+
@ds.delete
|
3342
|
+
@ds.insert(rs.first)
|
3343
|
+
@ds.all.must_equal rs
|
3344
|
+
|
3345
|
+
# Nested row value type
|
3346
|
+
p = @ds.get(:person)
|
3347
|
+
p[:id].must_equal 1
|
3348
|
+
p[:address].must_equal v
|
3349
|
+
end
|
3350
|
+
|
3351
|
+
it 'insert and retrieve row types containing domains' do
|
3352
|
+
begin
|
3353
|
+
@db << "DROP DOMAIN IF EXISTS positive_integer CASCADE"
|
3354
|
+
@db << "CREATE DOMAIN positive_integer AS integer CHECK (VALUE > 0)"
|
3355
|
+
@db.create_table!(:domain_check) do
|
3356
|
+
positive_integer :id
|
3357
|
+
end
|
3358
|
+
@db.register_row_type(:domain_check)
|
3359
|
+
@db.get(@db.row_type(:domain_check, [1])).must_equal(:id=>1)
|
3360
|
+
@db.register_row_type(Sequel[:public][:domain_check])
|
3361
|
+
@db.get(@db.row_type(Sequel[:public][:domain_check], [1])).must_equal(:id=>1)
|
3362
|
+
@db.get(@db.row_type(Sequel.qualify(:public, :domain_check), [1])).must_equal(:id=>1)
|
3363
|
+
ensure
|
3364
|
+
@db.drop_table(:domain_check)
|
3365
|
+
@db << "DROP DOMAIN positive_integer"
|
3366
|
+
end
|
3367
|
+
end if DB.adapter_scheme == :postgres || DB.adapter_scheme == :jdbc
|
3368
|
+
|
3369
|
+
it 'insert and retrieve arrays of row types' do
|
3370
|
+
@ds = @db[:company]
|
3371
|
+
@ds.insert(:id=>1, :employees=>Sequel.pg_array([@db.row_type(:person, [1, Sequel.pg_row(['123 Sesame St', 'Somewhere', '12345'])])]))
|
3372
|
+
@ds.count.must_equal 1
|
3373
|
+
v = @ds.get(:company)
|
3374
|
+
v.class.superclass.must_equal(Sequel::Postgres::PGRow::HashRow)
|
3375
|
+
v.to_hash.must_be_kind_of(Hash)
|
3376
|
+
v[:id].must_equal 1
|
3377
|
+
employees = v[:employees]
|
3378
|
+
employees.class.must_equal(Sequel::Postgres::PGArray)
|
3379
|
+
employees.to_a.must_be_kind_of(Array)
|
3380
|
+
employees.must_equal [{:id=>1, :address=>{:street=>'123 Sesame St', :city=>'Somewhere', :zip=>'12345'}}]
|
3381
|
+
@ds.delete
|
3382
|
+
@ds.insert(v[:id], v[:employees])
|
3383
|
+
@ds.get(:company).must_equal v
|
3384
|
+
end
|
3385
|
+
|
3386
|
+
it 'use row types in bound variables' do
|
3387
|
+
@ds.call(:insert, {:address=>Sequel.pg_row(['123 Sesame St', 'Somewhere', '12345'])}, {:address=>:$address, :id=>1})
|
3388
|
+
@ds.get(:address).must_equal(:street=>'123 Sesame St', :city=>'Somewhere', :zip=>'12345')
|
3389
|
+
@ds.filter(:address=>Sequel.cast(:$address, :address)).call(:first, :address=>Sequel.pg_row(['123 Sesame St', 'Somewhere', '12345']))[:id].must_equal 1
|
3390
|
+
@ds.filter(:address=>Sequel.cast(:$address, :address)).call(:first, :address=>Sequel.pg_row(['123 Sesame St', 'Somewhere', '12356'])).must_be_nil
|
3391
|
+
|
3392
|
+
@ds.delete
|
3393
|
+
@ds.call(:insert, {:address=>Sequel.pg_row([nil, nil, nil])}, {:address=>:$address, :id=>1})
|
3394
|
+
@ds.get(:address).must_equal(:street=>nil, :city=>nil, :zip=>nil)
|
3395
|
+
end if uses_pg_or_jdbc
|
3396
|
+
|
3397
|
+
it 'use arrays of row types in bound variables' do
|
3398
|
+
@ds = @db[:company]
|
3399
|
+
@ds.call(:insert, {:employees=>Sequel.pg_array([@db.row_type(:person, [1, Sequel.pg_row(['123 Sesame St', 'Somewhere', '12345'])])])}, {:employees=>:$employees, :id=>1})
|
3400
|
+
@ds.get(:company).must_equal(:id=>1, :employees=>[{:id=>1, :address=>{:street=>'123 Sesame St', :city=>'Somewhere', :zip=>'12345'}}])
|
3401
|
+
@ds.filter(:employees=>Sequel.cast(:$employees, 'person[]')).call(:first, :employees=>Sequel.pg_array([@db.row_type(:person, [1, Sequel.pg_row(['123 Sesame St', 'Somewhere', '12345'])])]))[:id].must_equal 1
|
3402
|
+
@ds.filter(:employees=>Sequel.cast(:$employees, 'person[]')).call(:first, :employees=>Sequel.pg_array([@db.row_type(:person, [1, Sequel.pg_row(['123 Sesame St', 'Somewhere', '12356'])])])).must_be_nil
|
3403
|
+
|
3404
|
+
@ds.delete
|
3405
|
+
@ds.call(:insert, {:employees=>Sequel.pg_array([@db.row_type(:person, [1, Sequel.pg_row([nil, nil, nil])])])}, {:employees=>:$employees, :id=>1})
|
3406
|
+
@ds.get(:employees).must_equal [{:address=>{:city=>nil, :zip=>nil, :street=>nil}, :id=>1}]
|
3407
|
+
end if uses_pg_or_jdbc
|
3408
|
+
|
3409
|
+
it 'operations/functions with pg_row_ops' do
|
3410
|
+
@ds.insert(:id=>1, :address=>Sequel.pg_row(['123 Sesame St', 'Somewhere', '12345']))
|
3411
|
+
@ds.get(Sequel.pg_row(:address)[:street]).must_equal '123 Sesame St'
|
3412
|
+
@ds.get(Sequel.pg_row(:address)[:city]).must_equal 'Somewhere'
|
3413
|
+
@ds.get(Sequel.pg_row(:address)[:zip]).must_equal '12345'
|
3414
|
+
|
3415
|
+
@ds = @db[:company]
|
3416
|
+
@ds.insert(:id=>1, :employees=>Sequel.pg_array([@db.row_type(:person, [1, Sequel.pg_row(['123 Sesame St', 'Somewhere', '12345'])])]))
|
3417
|
+
@ds.get(Sequel.pg_row(:company)[:id]).must_equal 1
|
3418
|
+
@ds.get(Sequel.pg_row(:company)[:employees]).must_equal [{:id=>1, :address=>{:street=>'123 Sesame St', :city=>'Somewhere', :zip=>'12345'}}]
|
3419
|
+
@ds.get(Sequel.pg_row(:company)[:employees][1]).must_equal(:id=>1, :address=>{:street=>'123 Sesame St', :city=>'Somewhere', :zip=>'12345'})
|
3420
|
+
@ds.get(Sequel.pg_row(:company)[:employees][1][:address]).must_equal(:street=>'123 Sesame St', :city=>'Somewhere', :zip=>'12345')
|
3421
|
+
@ds.get(Sequel.pg_row(:company)[:employees][1][:id]).must_equal 1
|
3422
|
+
@ds.get(Sequel.pg_row(:company)[:employees][1][:address][:street]).must_equal '123 Sesame St'
|
3423
|
+
@ds.get(Sequel.pg_row(:company)[:employees][1][:address][:city]).must_equal 'Somewhere'
|
3424
|
+
@ds.get(Sequel.pg_row(:company)[:employees][1][:address][:zip]).must_equal '12345'
|
3425
|
+
end
|
3426
|
+
|
3427
|
+
describe "#splat and #*" do
|
3428
|
+
before(:all) do
|
3429
|
+
@db.create_table!(:a){Integer :a}
|
3430
|
+
@db.create_table!(:b){a :b; Integer :a}
|
3431
|
+
@db.register_row_type(:a)
|
3432
|
+
@db.register_row_type(:b)
|
3433
|
+
@db[:b].insert(:a=>1, :b=>@db.row_type(:a, [2]))
|
3434
|
+
end
|
3435
|
+
after(:all) do
|
3436
|
+
@db.drop_table?(:b, :a)
|
3437
|
+
end
|
3438
|
+
|
3439
|
+
it "splat should reference the table type" do
|
3440
|
+
@db[:b].select(:a).first.must_equal(:a=>1)
|
3441
|
+
@db[:b].select(Sequel[:b][:a]).first.must_equal(:a=>1)
|
3442
|
+
@db[:b].select(Sequel.pg_row(:b)[:a]).first.must_equal(:a=>2)
|
3443
|
+
@db[:b].select(Sequel.pg_row(:b).splat[:a]).first.must_equal(:a=>1)
|
3444
|
+
|
3445
|
+
@db[:b].select(:b).first.must_equal(:b=>{:a=>2})
|
3446
|
+
@db[:b].select(Sequel.pg_row(:b).splat).first.must_equal(:a=>1, :b=>{:a=>2})
|
3447
|
+
@db[:b].select(Sequel.pg_row(:b).splat(:b)).first.must_equal(:b=>{:a=>1, :b=>{:a=>2}})
|
3448
|
+
end
|
3449
|
+
|
3450
|
+
it "* should expand the table type into separate columns" do
|
3451
|
+
ds = @db[:b].select(Sequel.pg_row(:b).splat(:b)).from_self(:alias=>:t)
|
3452
|
+
ds.first.must_equal(:b=>{:a=>1, :b=>{:a=>2}})
|
3453
|
+
ds.select(Sequel.pg_row(:b).*).first.must_equal(:a=>1, :b=>{:a=>2})
|
3454
|
+
ds.select(Sequel.pg_row(:b)[:b]).first.must_equal(:b=>{:a=>2})
|
3455
|
+
ds.select(Sequel.pg_row(Sequel[:t][:b]).*).first.must_equal(:a=>1, :b=>{:a=>2})
|
3456
|
+
ds.select(Sequel.pg_row(Sequel[:t][:b])[:b]).first.must_equal(:b=>{:a=>2})
|
3457
|
+
ds.select(Sequel.pg_row(:b)[:a]).first.must_equal(:a=>1)
|
3458
|
+
ds.select(Sequel.pg_row(Sequel[:t][:b])[:a]).first.must_equal(:a=>1)
|
3459
|
+
end
|
3460
|
+
end
|
3461
|
+
|
3462
|
+
describe "with models" do
|
3463
|
+
before(:all) do
|
3464
|
+
class Address < Sequel::Model(:address)
|
3465
|
+
plugin :pg_row
|
3466
|
+
end
|
3467
|
+
class Person < Sequel::Model(:person)
|
3468
|
+
plugin :pg_row
|
3469
|
+
end
|
3470
|
+
class Company < Sequel::Model(:company)
|
3471
|
+
plugin :pg_row
|
3472
|
+
end
|
3473
|
+
@a = Address.new(:street=>'123 Sesame St', :city=>'Somewhere', :zip=>'12345')
|
3474
|
+
@es = Sequel.pg_array([Person.new(:id=>1, :address=>@a)])
|
3475
|
+
end
|
3476
|
+
after(:all) do
|
3477
|
+
Object.send(:remove_const, :Address) rescue nil
|
3478
|
+
Object.send(:remove_const, :Person) rescue nil
|
3479
|
+
Object.send(:remove_const, :Company) rescue nil
|
3480
|
+
end
|
3481
|
+
|
3482
|
+
it 'insert and retrieve row types as model objects' do
|
3483
|
+
@ds.insert(:id=>1, :address=>@a)
|
3484
|
+
@ds.count.must_equal 1
|
3485
|
+
# Single row valued type
|
3486
|
+
rs = @ds.all
|
3487
|
+
v = rs.first[:address]
|
3488
|
+
v.must_be_kind_of(Address)
|
3489
|
+
v.must_equal @a
|
3490
|
+
@ds.delete
|
3491
|
+
@ds.insert(rs.first)
|
3492
|
+
@ds.all.must_equal rs
|
3493
|
+
|
3494
|
+
# Nested row value type
|
3495
|
+
p = @ds.get(:person)
|
3496
|
+
p.must_be_kind_of(Person)
|
3497
|
+
p.id.must_equal 1
|
3498
|
+
p.address.must_be_kind_of(Address)
|
3499
|
+
p.address.must_equal @a
|
3500
|
+
end
|
3501
|
+
|
3502
|
+
it 'insert and retrieve arrays of row types as model objects' do
|
3503
|
+
@ds = @db[:company]
|
3504
|
+
@ds.insert(:id=>1, :employees=>@es)
|
3505
|
+
@ds.count.must_equal 1
|
3506
|
+
v = @ds.get(:company)
|
3507
|
+
v.must_be_kind_of(Company)
|
3508
|
+
v.id.must_equal 1
|
3509
|
+
employees = v[:employees]
|
3510
|
+
employees.class.must_equal(Sequel::Postgres::PGArray)
|
3511
|
+
employees.to_a.must_be_kind_of(Array)
|
3512
|
+
employees.must_equal @es
|
3513
|
+
@ds.delete
|
3514
|
+
@ds.insert(v.id, v.employees)
|
3515
|
+
@ds.get(:company).must_equal v
|
3516
|
+
end
|
3517
|
+
|
3518
|
+
it 'use model objects in bound variables' do
|
3519
|
+
@ds.call(:insert, {:address=>@a}, {:address=>:$address, :id=>1})
|
3520
|
+
@ds.get(:address).must_equal @a
|
3521
|
+
@ds.filter(:address=>Sequel.cast(:$address, :address)).call(:first, :address=>@a)[:id].must_equal 1
|
3522
|
+
@ds.filter(:address=>Sequel.cast(:$address, :address)).call(:first, :address=>Address.new(:street=>'123 Sesame St', :city=>'Somewhere', :zip=>'12356')).must_be_nil
|
3523
|
+
end if uses_pg_or_jdbc
|
3524
|
+
|
3525
|
+
it 'use arrays of model objects in bound variables' do
|
3526
|
+
@ds = @db[:company]
|
3527
|
+
@ds.call(:insert, {:employees=>@es}, {:employees=>:$employees, :id=>1})
|
3528
|
+
@ds.get(:company).must_equal Company.new(:id=>1, :employees=>@es)
|
3529
|
+
@ds.filter(:employees=>Sequel.cast(:$employees, 'person[]')).call(:first, :employees=>@es)[:id].must_equal 1
|
3530
|
+
@ds.filter(:employees=>Sequel.cast(:$employees, 'person[]')).call(:first, :employees=>Sequel.pg_array([@db.row_type(:person, [1, Sequel.pg_row(['123 Sesame St', 'Somewhere', '12356'])])])).must_be_nil
|
3531
|
+
end if uses_pg_or_jdbc
|
3532
|
+
|
3533
|
+
it 'model typecasting' do
|
3534
|
+
a = Address.new(:street=>'123 Sesame St', :city=>'Somewhere', :zip=>'12345')
|
3535
|
+
o = Person.create(:id=>1, :address=>['123 Sesame St', 'Somewhere', '12345'])
|
3536
|
+
o.address.must_equal a
|
3537
|
+
o = Person.create(:id=>1, :address=>{:street=>'123 Sesame St', :city=>'Somewhere', :zip=>'12345'})
|
3538
|
+
o.address.must_equal a
|
3539
|
+
o = Person.create(:id=>1, :address=>a)
|
3540
|
+
o.address.must_equal a
|
3541
|
+
|
3542
|
+
e = Person.new(:id=>1, :address=>a)
|
3543
|
+
o = Company.create(:id=>1, :employees=>[{:id=>1, :address=>{:street=>'123 Sesame St', :city=>'Somewhere', :zip=>'12345'}}])
|
3544
|
+
o.employees.must_equal [e]
|
3545
|
+
o = Company.create(:id=>1, :employees=>[e])
|
3546
|
+
o.employees.must_equal [e]
|
3547
|
+
end
|
3548
|
+
end
|
3549
|
+
end
|
3550
|
+
|
3551
|
+
describe 'pg_static_cache_updater extension' do
|
3552
|
+
before(:all) do
|
3553
|
+
@db = DB
|
3554
|
+
@db.extension :pg_static_cache_updater
|
3555
|
+
@db.drop_function(@db.default_static_cache_update_name, :cascade=>true, :if_exists=>true)
|
3556
|
+
@db.create_static_cache_update_function
|
3557
|
+
|
3558
|
+
@db.create_table!(:things) do
|
3559
|
+
primary_key :id
|
3560
|
+
String :name
|
3561
|
+
end
|
3562
|
+
@Thing = Class.new(Sequel::Model(:things))
|
3563
|
+
@Thing.plugin :static_cache
|
3564
|
+
@db.create_static_cache_update_trigger(:things)
|
3565
|
+
end
|
3566
|
+
after(:all) do
|
3567
|
+
@db.drop_table(:things)
|
3568
|
+
@db.drop_function(@db.default_static_cache_update_name)
|
3569
|
+
end
|
3570
|
+
|
3571
|
+
it "should reload model static cache when underlying table changes" do
|
3572
|
+
@Thing.all.must_equal []
|
3573
|
+
q = Queue.new
|
3574
|
+
q1 = Queue.new
|
3575
|
+
|
3576
|
+
@db.listen_for_static_cache_updates(@Thing, :timeout=>0, :loop=>proc{q.push(nil); q1.pop.call}, :before_thread_exit=>proc{q.push(nil)})
|
3577
|
+
|
3578
|
+
q.pop
|
3579
|
+
q1.push(proc{@db[:things].insert(1, 'A')})
|
3580
|
+
q.pop
|
3581
|
+
@Thing.all.must_equal [@Thing.load(:id=>1, :name=>'A')]
|
3582
|
+
|
3583
|
+
q1.push(proc{@db[:things].update(:name=>'B')})
|
3584
|
+
q.pop
|
3585
|
+
@Thing.all.must_equal [@Thing.load(:id=>1, :name=>'B')]
|
3586
|
+
|
3587
|
+
q1.push(proc{@db[:things].delete})
|
3588
|
+
q.pop
|
3589
|
+
@Thing.all.must_equal []
|
3590
|
+
|
3591
|
+
q1.push(proc{throw :stop})
|
3592
|
+
q.pop
|
3593
|
+
end
|
3594
|
+
end if uses_pg && DB.server_version >= 90000
|
3595
|
+
|
3596
|
+
describe 'PostgreSQL enum types' do
|
3597
|
+
before do
|
3598
|
+
@db = DB
|
3599
|
+
@db.create_enum(:test_enum, %w'a b c d')
|
3600
|
+
|
3601
|
+
@db.create_table!(:test_enumt) do
|
3602
|
+
test_enum :t
|
3603
|
+
end
|
3604
|
+
end
|
3605
|
+
after do
|
3606
|
+
@db.drop_table?(:test_enumt)
|
3607
|
+
@db.drop_enum(:test_enum)
|
3608
|
+
end
|
3609
|
+
|
3610
|
+
it "should return correct entries in the schema" do
|
3611
|
+
s = @db.schema(:test_enumt)
|
3612
|
+
s.first.last[:type].must_equal :enum
|
3613
|
+
s.first.last[:enum_values].must_equal %w'a b c d'
|
3614
|
+
end
|
3615
|
+
|
3616
|
+
it "should add array parsers for enum values" do
|
3617
|
+
@db.get(Sequel.pg_array(%w'a b', :test_enum)).must_equal %w'a b'
|
3618
|
+
end if DB.adapter_scheme == :postgres || DB.adapter_scheme == :jdbc
|
3619
|
+
|
3620
|
+
it "should set up model typecasting correctly" do
|
3621
|
+
c = Class.new(Sequel::Model(:test_enumt))
|
3622
|
+
o = c.new
|
3623
|
+
o.t = :a
|
3624
|
+
o.t.must_equal 'a'
|
3625
|
+
end
|
3626
|
+
|
3627
|
+
it "should add values to existing enum" do
|
3628
|
+
@db.add_enum_value(:test_enum, 'e')
|
3629
|
+
@db.add_enum_value(:test_enum, 'f', :after=>'a')
|
3630
|
+
@db.add_enum_value(:test_enum, 'g', :before=>'b')
|
3631
|
+
@db.add_enum_value(:test_enum, 'a', :if_not_exists=>true) if @db.server_version >= 90300
|
3632
|
+
@db.schema(:test_enumt, :reload=>true).first.last[:enum_values].must_equal %w'a f g b c d e'
|
3633
|
+
end if DB.server_version >= 90100
|
3634
|
+
end
|
3635
|
+
|
3636
|
+
describe "PostgreSQL stored procedures for datasets" do
|
3637
|
+
before do
|
3638
|
+
@db = DB
|
3639
|
+
@db.create_table!(:items) do
|
3640
|
+
primary_key :id
|
3641
|
+
integer :numb
|
3642
|
+
end
|
3643
|
+
@db.execute(<<-SQL)
|
3644
|
+
create or replace function insert_item(numb bigint)
|
3645
|
+
returns items.id%type
|
3646
|
+
as $$
|
3647
|
+
declare
|
3648
|
+
l_id items.id%type;
|
3649
|
+
begin
|
3650
|
+
l_id := 1;
|
3651
|
+
|
3652
|
+
insert into items(id, numb) values(l_id, numb);
|
3653
|
+
|
3654
|
+
return l_id;
|
3655
|
+
end;
|
3656
|
+
$$ language plpgsql;
|
3657
|
+
SQL
|
3658
|
+
|
3659
|
+
@ds = @db[:items]
|
3660
|
+
end
|
3661
|
+
|
3662
|
+
after do
|
3663
|
+
@db.drop_function("insert_item", :if_exists=>true)
|
3664
|
+
@db.drop_table?(:items)
|
3665
|
+
end
|
3666
|
+
|
3667
|
+
it "should correctly call stored procedure for inserting record" do
|
3668
|
+
result = @ds.call_sproc(:insert, :insert_item, 100)
|
3669
|
+
result.must_be_nil
|
3670
|
+
|
3671
|
+
@ds.call(:all).must_equal [{:id=>1, :numb=>100}]
|
3672
|
+
end
|
3673
|
+
end if DB.adapter_scheme == :jdbc
|