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 +4 -4
- data/README.md +4 -4
- data/lib/quail/railtie.rb +5 -5
- data/lib/quail/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 533ee34f833eda1f6f2778525b7c7ebeb74cefa5079f6d975036beadf6e7806f
|
|
4
|
+
data.tar.gz: 5a0cfcb41cacb78a2c14d6991540cce0ec7b668aa29d272e7d5903fbb1680b55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
6
|
+
[](https://badge.fury.io/rb/quail-graphql)
|
|
7
|
+
[](https://github.com/rubocop/rubocop)
|
|
8
|
+
[](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"
|
|
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].
|
|
12
|
+
paths = %w[resources queries mutations subscriptions].filter_map do |subdir|
|
|
13
13
|
path = Rails.root.join("app/graphql/#{subdir}").to_s
|
|
14
|
-
|
|
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