# -*- encoding: utf-8 -*- # stub: appquery 0.2.0 ruby lib Gem::Specification.new do |s| s.name = "appquery".freeze s.version = "0.2.0".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "changelog_uri" => "https://github.com/eval/gem-try/blob/main/CHANGELOG.md", "homepage_uri" => "https://github.com/eval/appquery", "source_code_uri" => "https://github.com/eval/appquery" } if s.respond_to? :metadata= s.require_paths = ["lib".freeze] s.authors = ["Gert Goet".freeze] s.bindir = "exe".freeze s.date = "2024-11-13" s.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".freeze s.email = ["gert@thinkcreate.dk".freeze] s.files = [".envrc".freeze, ".envrc.private.example".freeze, ".rspec".freeze, ".standard.yml".freeze, "CHANGELOG.md".freeze, "LICENSE.txt".freeze, "README.md".freeze, "Rakefile".freeze, "lib/app_query.rb".freeze, "lib/app_query/rspec.rb".freeze, "lib/app_query/rspec/helpers.rb".freeze, "lib/app_query/tokenizer.rb".freeze, "lib/app_query/version.rb".freeze, "lib/appquery.rb".freeze, "lib/rails/generators/query/USAGE".freeze, "lib/rails/generators/query/query_generator.rb".freeze, "lib/rails/generators/query/templates/query.sql.tt".freeze, "lib/rails/generators/rspec/query_generator.rb".freeze, "lib/rails/generators/rspec/templates/query_spec.rb.tt".freeze, "sig/appquery.rbs".freeze, "tmp/.gitkeep".freeze] s.homepage = "https://github.com/eval/appquery".freeze s.licenses = ["MIT".freeze] s.required_ruby_version = Gem::Requirement.new(">= 3.1.0".freeze) s.rubygems_version = "3.5.10".freeze s.summary = "raw SQL \u{1F966}, cooked \u{1F372} or: make working with raw SQL queries in Rails convenient by improving their introspection and testability.".freeze end