altair-rails 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 344439a2ddfd5623e093e51a9ca06500e41bc98164e2e1882d40a78f36ce8972
4
- data.tar.gz: 54c35fb4b182cfdf734e39b098ac09ba0f8b04626986cbb8ed664987e4c23d78
3
+ metadata.gz: 12e6e222762759b0a6f2152bebba6843b6aefdc5e0011b2e411c67520f7e512a
4
+ data.tar.gz: 4c13d79a2d3d412079fc6788f3dc6e2227c548010dfb12d2f867fc4a1bf20fc9
5
5
  SHA512:
6
- metadata.gz: b3425f713767207c1fdac7c65bb9638ff230ac39646174b587a43031375fa594bfec27036f66ed98088707ee367d845c7ff0a97b7e75ad8aff1ab1df965ebf05
7
- data.tar.gz: 85ed28c6666dab28382765b14c26724ad37ad563e9cf1e14943c0403a8505a9f7b80ffb7137a54692d69a8307e7140cba930a8cd869f706845b1cee7575af241
6
+ metadata.gz: 5c984089da04c2718f3153036d4e1168b180356d7908625e9d3759695ad23019835d114181a64970a79e40f87afd33d2cab9a517ddce36e4dc4b730599c45916
7
+ data.tar.gz: 4d9fad827e9325cfaeb6e0649ec09300e044223a73727a71f163588b689c2bca22d38bc0935ed8305311c0503c0def3259cc51b70570ede44d0939094560f883
data/README.md CHANGED
@@ -1,8 +1,11 @@
1
1
  # Altair Rails - The Altair GraphQL Client for Rails
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/altair-rails.svg)](https://badge.fury.io/rb/altair-rails)
4
- [![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)
5
- [![Maintainability](https://api.codeclimate.com/v1/badges/22128c5c828a8eed6f95/maintainability)](https://codeclimate.com/github/jejacks0n/altair-rails/maintainability)
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:
@@ -5,12 +5,15 @@ module Altair
5
5
  class Engine < ::Rails::Engine
6
6
  isolate_namespace Altair::Rails
7
7
 
8
- conf = Altair::Rails.configuration
9
- opts = { at: conf.mount_at, as: :altair }
8
+ routes { root to: Altair::Rails.configuration.altair_template }
10
9
 
11
- routes { root to: conf.altair_template }
12
-
13
- config.after_initialize { |app| app.routes.prepend { mount(Engine, opts) } } if conf.mount_at.present?
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
@@ -10,7 +10,7 @@ module Altair
10
10
  module VERSION
11
11
  MAJOR = 0
12
12
  MINOR = 0
13
- TINY = 3
13
+ TINY = 4
14
14
  PRE = nil
15
15
 
16
16
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
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: 0.0.3
4
+ version: 0.0.4
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-23 00:00:00.000000000 Z
11
+ date: 2023-07-24 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.14
66
+ rubygems_version: 3.4.17
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: Altair GraphQL Client for Rails.