--- !ruby/object:Gem::Specification name: appquery version: !ruby/object:Gem::Version version: 0.2.0 platform: ruby authors: - Gert Goet autorequire: bindir: exe cert_chain: [] date: 2024-11-13 00:00:00.000000000 Z dependencies: [] description: "Improving introspection and testability of raw SQL queries in Rails\nThis gem improves introspection and testability of raw SQL queries in Rails by:\n- ...providing a separate query-folder and easy instantiation \n A query like `AppQuery[:some_query]` is read from app/queries/some_query.sql.\n\n- ...providing options for rewriting a query:\n\n Query a CTE by replacing the select:\n query.select_all(select: \"select * from some_cte\").entries\n\n ...similarly, query the end result (i.e. CTE `_`):\n \ query.select_all(select: \"select count(*) from _\").entries\n\n- ...providing (custom) casting: \n AppQuery(\"select array[1,2]\").select_value(cast: true)\n\n \ custom deserializers:\n AppQuery(\"select '1' id\").select_all(cast: {\"id\" => ActiveRecord::Type::Integer.new}).entries\n\n- ...providing spec-helpers and generators\n" email: - gert@thinkcreate.dk executables: [] extensions: [] extra_rdoc_files: [] files: - ".envrc" - ".envrc.private.example" - ".rspec" - ".standard.yml" - CHANGELOG.md - LICENSE.txt - README.md - Rakefile - lib/app_query.rb - lib/app_query/rspec.rb - lib/app_query/rspec/helpers.rb - lib/app_query/tokenizer.rb - lib/app_query/version.rb - lib/appquery.rb - lib/rails/generators/query/USAGE - lib/rails/generators/query/query_generator.rb - lib/rails/generators/query/templates/query.sql.tt - lib/rails/generators/rspec/query_generator.rb - lib/rails/generators/rspec/templates/query_spec.rb.tt - sig/appquery.rbs - tmp/.gitkeep homepage: https://github.com/eval/appquery licenses: - MIT metadata: homepage_uri: https://github.com/eval/appquery source_code_uri: https://github.com/eval/appquery changelog_uri: https://github.com/eval/gem-try/blob/main/CHANGELOG.md post_install_message: rdoc_options: [] require_paths: - lib required_ruby_version: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version version: 3.1.0 required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version version: '0' requirements: [] rubygems_version: 3.5.22 signing_key: specification_version: 4 summary: "raw SQL \U0001F966, cooked \U0001F372 or: make working with raw SQL queries in Rails convenient by improving their introspection and testability." test_files: []