quail-graphql 0.1.0 → 0.1.1

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: 533ee34f833eda1f6f2778525b7c7ebeb74cefa5079f6d975036beadf6e7806f
4
+ data.tar.gz: 5a0cfcb41cacb78a2c14d6991540cce0ec7b668aa29d272e7d5903fbb1680b55
5
5
  SHA512:
6
- metadata.gz: afa695056fd8c70acf472243252c5415c5c0a3b89e236499718ced6adfd8ba80a5ae7089fc105df615ba5208c2ef18598a548a98c8aa0d0fbcdc8d78451c5c94
7
- data.tar.gz: 7ff9e3ed9a03729f13b64d40549fe1fcb9a4304a76a45db46426f41f42cb155598eb91a75f4778a1e5b6469c8adcb616c8adbe6abd99cb50572d3001d479a9b2
6
+ metadata.gz: 1c352c4130697b4b12d0e65e0c48cc915fb5973a29570a21ede1cf3daae1c83f826dda8dd28484a0bc41c7c3a799aadcca2b6d4ef127d714060be78d7f5ad62f
7
+ data.tar.gz: 953b975db29131c9174453ccfac1acc57d93ced08a80462ce3b6a9a64156c739bfb9f233eae6a4c29155f3dca41f8f71e5d0e27b6098e02a9f1ca93b68db31d6
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.1"
5
5
  end
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Demetrious Wilson