rack-graphiql 0.1.1 → 0.2.0
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 +5 -5
- data/.github/workflows/publish-gem.yaml +24 -0
- data/.github/workflows/test.yaml +31 -0
- data/CHANGELOG.md +14 -0
- data/lib/rack/graphiql/version.rb +1 -1
- data/lib/rack/graphiql.rb +5 -13
- data/rack-graphiql.gemspec +2 -2
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2dc523ef7fdb49702d5f6b396a837283297156869ed824f68294ff42006c1f7d
|
4
|
+
data.tar.gz: 5a5812b17cc967c64ec58f461803f788a55ae2968bf4fe3c360a06b97b15c36c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f164c947a3819498c69732910f286ed02a2de81851773b4d7a2a182fc82faa632c37ecb83b097a374840ecd0d3e8d29ccd6400128f86dee108e98fc67bb519b7
|
7
|
+
data.tar.gz: 8eda7e1a9f290b272d9ecd1bd7e0b7e6e911e52bdc132a75951cd5d434193bc12c18ac22f9eb801539439ce234152582f3b836ab2df148b9ee18139b93d5a0d5
|
@@ -0,0 +1,24 @@
|
|
1
|
+
name: publish-gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- v*
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
publish-gem:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- uses: ruby/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: '3.1'
|
17
|
+
bundler-cache: true
|
18
|
+
- name: Release Gem
|
19
|
+
if: contains(github.ref, 'refs/tags/v')
|
20
|
+
uses: cadwallion/publish-rubygems-action@v1.0.0
|
21
|
+
env:
|
22
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
23
|
+
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
|
24
|
+
RELEASE_COMMAND: rake release
|
@@ -0,0 +1,31 @@
|
|
1
|
+
name: test
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
|
6
|
+
push:
|
7
|
+
branches:
|
8
|
+
- main
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
test:
|
12
|
+
strategy:
|
13
|
+
fail-fast: false
|
14
|
+
matrix:
|
15
|
+
os:
|
16
|
+
- ubuntu-latest
|
17
|
+
- macos-latest
|
18
|
+
ruby:
|
19
|
+
- '2.6'
|
20
|
+
- '2.7'
|
21
|
+
- '3.0'
|
22
|
+
- '3.1'
|
23
|
+
runs-on: ${{ matrix.os }}
|
24
|
+
steps:
|
25
|
+
- uses: actions/checkout@v2
|
26
|
+
- uses: ruby/setup-ruby@v1
|
27
|
+
with:
|
28
|
+
ruby-version: ${{ matrix.ruby }}
|
29
|
+
bundler-cache: true
|
30
|
+
- run: |
|
31
|
+
find lib -name '*.rb' -exec bash -c 'echo {}: $(ruby -c {})' \;
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [0.2.0] - 2022-01-31
|
4
|
+
|
5
|
+
* Update development dependencies [#2](https://github.com/yuya-takeyama/rack-graphiql/pull/2)
|
6
|
+
* Update GraphiQL, React and React DOM [#3](https://github.com/yuya-takeyama/rack-graphiql/pull/3)
|
7
|
+
|
8
|
+
## [0.1.1] - 2017-06-26
|
9
|
+
|
10
|
+
* Fix TypeError when GraphQL variables is not set
|
11
|
+
|
12
|
+
## [0.1.0] - 2017-06-25
|
13
|
+
|
14
|
+
* Initial release
|
data/lib/rack/graphiql.rb
CHANGED
@@ -4,10 +4,9 @@ require 'json'
|
|
4
4
|
|
5
5
|
module Rack
|
6
6
|
class GraphiQL
|
7
|
-
GRAPHIQL_VERSION = '
|
8
|
-
|
9
|
-
|
10
|
-
REACT_DOM_VERSION = '15.5.4'
|
7
|
+
GRAPHIQL_VERSION = '1'
|
8
|
+
REACT_VERSION = '17'
|
9
|
+
REACT_DOM_VERSION = '17'
|
11
10
|
|
12
11
|
include ERB::Util
|
13
12
|
|
@@ -38,10 +37,6 @@ module Rack
|
|
38
37
|
GRAPHIQL_VERSION
|
39
38
|
end
|
40
39
|
|
41
|
-
def fetch_version
|
42
|
-
FETCH_VERSION
|
43
|
-
end
|
44
|
-
|
45
40
|
def react_version
|
46
41
|
REACT_VERSION
|
47
42
|
end
|
@@ -71,11 +66,8 @@ __END__
|
|
71
66
|
width: 100%;
|
72
67
|
}
|
73
68
|
</style>
|
74
|
-
<link href="
|
75
|
-
<script src="
|
76
|
-
<script src="//cdn.jsdelivr.net/react/<%=h react_version %>/react.min.js"></script>
|
77
|
-
<script src="//cdn.jsdelivr.net/react/<%=h react_dom_version %>/react-dom.min.js"></script>
|
78
|
-
<script src="//cdn.jsdelivr.net/graphiql/<%=h graphiql_version %>/graphiql.min.js"></script>
|
69
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/graphiql@<%= graphiql_version %>/graphiql.min.css">
|
70
|
+
<script src="https://cdn.jsdelivr.net/combine/npm/react@<%= react_version %>/umd/react.production.min.js,npm/react-dom@<%= react_dom_version %>/umd/react-dom.production.min.js,npm/graphiql@<%= graphiql_version %>/graphiql.min.js"></script>
|
79
71
|
</head>
|
80
72
|
<body>
|
81
73
|
<script>
|
data/rack-graphiql.gemspec
CHANGED
@@ -21,6 +21,6 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_development_dependency "bundler", "~>
|
25
|
-
spec.add_development_dependency "rake", "~>
|
24
|
+
spec.add_development_dependency "bundler", "~> 2.3"
|
25
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-graphiql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuya Takeyama
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13.0'
|
41
41
|
description: GraphiQL as Rack application.
|
42
42
|
email:
|
43
43
|
- sign.of.the.wolf.pentagram@gmail.com
|
@@ -45,7 +45,10 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
+
- ".github/workflows/publish-gem.yaml"
|
49
|
+
- ".github/workflows/test.yaml"
|
48
50
|
- ".gitignore"
|
51
|
+
- CHANGELOG.md
|
49
52
|
- Gemfile
|
50
53
|
- LICENSE.txt
|
51
54
|
- README.md
|
@@ -75,8 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
78
|
- !ruby/object:Gem::Version
|
76
79
|
version: '0'
|
77
80
|
requirements: []
|
78
|
-
|
79
|
-
rubygems_version: 2.6.8
|
81
|
+
rubygems_version: 3.0.1
|
80
82
|
signing_key:
|
81
83
|
specification_version: 4
|
82
84
|
summary: GraphiQL as Rack application.
|