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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 344439a2ddfd5623e093e51a9ca06500e41bc98164e2e1882d40a78f36ce8972
4
- data.tar.gz: 54c35fb4b182cfdf734e39b098ac09ba0f8b04626986cbb8ed664987e4c23d78
3
+ metadata.gz: 79e6cb84dd11b90d2cfc705aa2219485440d1b88ea886de72150a0a4ca7f4541
4
+ data.tar.gz: 0aa8d1c434abfa77fc250df92c6f3fcfc973d318b6b073db4fae13dd4aae0c3a
5
5
  SHA512:
6
- metadata.gz: b3425f713767207c1fdac7c65bb9638ff230ac39646174b587a43031375fa594bfec27036f66ed98088707ee367d845c7ff0a97b7e75ad8aff1ab1df965ebf05
7
- data.tar.gz: 85ed28c6666dab28382765b14c26724ad37ad563e9cf1e14943c0403a8505a9f7b80ffb7137a54692d69a8307e7140cba930a8cd869f706845b1cee7575af241
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://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
@@ -8,10 +8,10 @@ module Altair
8
8
  end
9
9
 
10
10
  module VERSION
11
- MAJOR = 0
11
+ MAJOR = 5
12
12
  MINOR = 0
13
- TINY = 3
14
- PRE = nil
13
+ TINY = 28
14
+ PRE = 1
15
15
 
16
16
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
17
17
  end
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: 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-23 00:00:00.000000000 Z
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.14
66
+ rubygems_version: 3.4.17
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: Altair GraphQL Client for Rails.