quail-graphql 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4a7270de975b06407fbe6b81ed40135a4c94e2816cc556dbd388fd5b673db12
4
- data.tar.gz: 5deb33482ef22b0b18dc230fca7a8f90051f09ed81c09e88438d8ff5c19b9f3d
3
+ metadata.gz: d8d29b5d0fb8b5b47f5c9db6cce596955975b7648404fe12e216ba5a4d2e1a7b
4
+ data.tar.gz: f340a5c3eb0e324183cb1e282e7e6863e5e992ba458b682f4690f42585c44647
5
5
  SHA512:
6
- metadata.gz: afa695056fd8c70acf472243252c5415c5c0a3b89e236499718ced6adfd8ba80a5ae7089fc105df615ba5208c2ef18598a548a98c8aa0d0fbcdc8d78451c5c94
7
- data.tar.gz: 7ff9e3ed9a03729f13b64d40549fe1fcb9a4304a76a45db46426f41f42cb155598eb91a75f4778a1e5b6469c8adcb616c8adbe6abd99cb50572d3001d479a9b2
6
+ metadata.gz: 76c29a5a573fb30b9d784844f5a4c8d12a5aff1c60e582a4702dc0c53fcc79e7cf0d4160ccb6abc2b0c539df6561d8ae9a3faaa74809d8bfaea92b0e64fed308
7
+ data.tar.gz: 403f51353cb848b7c5c60f5a78ddd8a9b4ed08e5b11dea4c0eb6e5b451e38f2c18f178e6f3c40e7833b2700a69dff1cab883a72384593f84459f2441dc76cc9a
data/README.md CHANGED
@@ -3,17 +3,17 @@
3
3
 
4
4
  <strong>A Rails-first GraphQL library with a declarative, <a href="https://github.com/okuramasafumi/alba">Alba</a>-inspired DSL built on top of <a href="https://github.com/rmosolgo/graphql-ruby">graphql-ruby</a>.</strong>
5
5
 
6
- [![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop/rubocop)
6
+ [![Gem Version](https://badge.fury.io/rb/quail-graphql.svg)](https://badge.fury.io/rb/quail-graphql)
7
+ [![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop/rubocop)
8
+ [![Gem Downloads](https://img.shields.io/gem/dt/quail-graphql)](https://rubygems.org/gems/quail-graphql)
7
9
  </div>
8
10
 
9
- > ⚠️ **This gem is under active development and has not been published to RubyGems. Please do not use in production.**
10
-
11
11
  ## Installation
12
12
 
13
13
  Add Quail to your Gemfile:
14
14
 
15
15
  ```Gemfile
16
- gem "quail", git: "https://github.com/taywils/quail.git", branch: "main"
16
+ gem "quail-graphql"
17
17
  ```
18
18
 
19
19
  ## Quick Start
data/lib/quail/railtie.rb CHANGED
@@ -9,13 +9,13 @@ module Quail
9
9
  initializer "quail.autoload_paths", before: :set_autoload_paths do |app|
10
10
  # These subdirectories define top-level constants (e.g. UserResource, not Resources::UserResource)
11
11
  # Note: types/ is excluded because custom types use the Types:: namespace by convention
12
- %w[resources queries mutations subscriptions].each do |subdir|
12
+ paths = %w[resources queries mutations subscriptions].filter_map do |subdir|
13
13
  path = Rails.root.join("app/graphql/#{subdir}").to_s
14
- next unless Dir.exist?(path)
15
-
16
- app.config.autoload_paths << path
17
- app.config.eager_load_paths << path
14
+ path if Dir.exist?(path)
18
15
  end
16
+
17
+ app.config.autoload_paths += paths
18
+ app.config.eager_load_paths += paths
19
19
  end
20
20
 
21
21
  # Tell Zeitwerk to ignore these subdirectories from the parent app/graphql/ root
data/lib/quail/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Quail
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file exists so that `gem "quail-graphql"` auto-requires correctly.
4
+ # The gem name on RubyGems is "quail-graphql" but the library entry point is "quail".
5
+ require "quail"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quail-graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Demetrious Wilson
@@ -73,6 +73,7 @@ files:
73
73
  - lib/generators/quail/templates/initializer.rb.tt
74
74
  - lib/generators/quail/templates/resource.rb.tt
75
75
  - lib/generators/quail/templates/schema.rb.tt
76
+ - lib/quail-graphql.rb
76
77
  - lib/quail.rb
77
78
  - lib/quail/channel.rb
78
79
  - lib/quail/controller_helpers.rb
@@ -117,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
118
  - !ruby/object:Gem::Version
118
119
  version: '0'
119
120
  requirements: []
120
- rubygems_version: 4.0.3
121
+ rubygems_version: 4.0.10
121
122
  specification_version: 4
122
123
  summary: Rails-first GraphQL with an Alba-inspired declarative DSL
123
124
  test_files: []