altair-rails 0.0.3 → 5.0.28.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -3
- data/lib/altair/rails/engine.rb +8 -5
- data/lib/altair/rails/version.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79e6cb84dd11b90d2cfc705aa2219485440d1b88ea886de72150a0a4ca7f4541
|
4
|
+
data.tar.gz: 0aa8d1c434abfa77fc250df92c6f3fcfc973d318b6b073db4fae13dd4aae0c3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b4276dc2985aa9b2531838314b795ed1ced88251a41eb20ad60cbb26d15ab7ccb1c233ccaac1ec0dc6fd5b9a40d825da2391b6fecd3be23e46cf6f009efa3a3
|
7
|
+
data.tar.gz: eff049b5703a3683daba8ee9d4554ccce9f233d5f8051bad26cd0e17ce06e289185dda58c8d0d94d5eac40c835380361b56aafb74b643683cf3b5ef8a0bccade
|
data/README.md
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
# Altair Rails - The Altair GraphQL Client for Rails
|
2
2
|
|
3
|
-
[![Gem Version](https://
|
4
|
-
[![License](https://img.shields.io/
|
5
|
-
[![
|
3
|
+
[![Gem Version](https://img.shields.io/gem/v/altair-rails.svg?label=gem%20version)](https://rubygems.org/gems/altair-rails)
|
4
|
+
[![MIT License](https://img.shields.io/github/license/jejacks0n/altair-rails.svg)](https://opensource.org/licenses/MIT)
|
5
|
+
[![Build Status](https://img.shields.io/github/actions/workflow/status/jejacks0n/altair-rails/ci.yml.svg?label=build%20status)](https://github.com/jejacks0n/altair-rails/actions/workflows/ci.yml)
|
6
|
+
[![Maintainability](https://img.shields.io/codeclimate/coverage-letter/jejacks0n/altair-rails.svg?label=maintainability)](https://codeclimate.com/github/jejacks0n/altair-rails/maintainability)
|
7
|
+
[![Test Coverage](https://img.shields.io/codeclimate/coverage/jejacks0n/altair-rails.svg?label=test%20coverage)](https://codeclimate.com/github/jejacks0n/altair-rails/test_coverage)
|
8
|
+
[![RubyGems](https://img.shields.io/gem/dt/altair-rails.svg?label=rubygems%20downloads)](https://rubygems.org/gems/altair-rails)
|
6
9
|
|
7
10
|
Altair Rails is a Rails engine that provides a mountable endpoint for the [Altair GraphQL Client](https://altairgraphql.dev/).
|
8
11
|
|
@@ -49,6 +52,14 @@ Altair::Rails.configure do |config|
|
|
49
52
|
end
|
50
53
|
```
|
51
54
|
|
55
|
+
## Similar Projects
|
56
|
+
|
57
|
+
I created this project after battling GraphQL subscriptions, and GraphiQLs lack of support for ActionCable.
|
58
|
+
|
59
|
+
That being said, there are still great projects worth checking out:
|
60
|
+
|
61
|
+
- [graphiql-rails](https://github.com/rmosolgo/graphiql-rails) - A Rails engine that provides a mountable endpoint for GraphiQL.
|
62
|
+
|
52
63
|
## License
|
53
64
|
|
54
65
|
This project is released under the MIT license:
|
data/lib/altair/rails/engine.rb
CHANGED
@@ -5,12 +5,15 @@ module Altair
|
|
5
5
|
class Engine < ::Rails::Engine
|
6
6
|
isolate_namespace Altair::Rails
|
7
7
|
|
8
|
-
|
9
|
-
opts = { at: conf.mount_at, as: :altair }
|
8
|
+
routes { root to: Altair::Rails.configuration.altair_template }
|
10
9
|
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
if Altair::Rails.configuration.mount_at.present?
|
11
|
+
config.after_initialize do |app|
|
12
|
+
app.routes.prepend do
|
13
|
+
mount(Engine, at: Altair::Rails.configuration.mount_at, as: :altair)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
14
17
|
end
|
15
18
|
end
|
16
19
|
end
|
data/lib/altair/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: altair-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.28.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Jackson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
|
-
rubygems_version: 3.4.
|
66
|
+
rubygems_version: 3.4.17
|
67
67
|
signing_key:
|
68
68
|
specification_version: 4
|
69
69
|
summary: Altair GraphQL Client for Rails.
|