activeadmin-graphql 0.1.0 → 0.1.2
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/CHANGELOG.md +9 -1
- data/activeadmin-graphql.gemspec +1 -1
- data/docs/graphql-api.md +1 -1
- data/lib/active_admin/graphql/resource_query_proxy.rb +4 -1
- data/lib/active_admin/graphql/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc303bd74d84b05385c3a3af874e1dd66957029746729122a5d684ac9720a4cd
|
|
4
|
+
data.tar.gz: c2ab55694cb7b62773fd22db7fb219850fb3901a3d5bf9565a9ac00b0804db6e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c90194015f4ad4ff7ebf9125ad6c7b2b4c0cf800a622f7cafba0d9a88945bdc57956eca598b2991aa32ceeec66ea925c5e9e5749ab38ad56a042c22f1de6437
|
|
7
|
+
data.tar.gz: f023d72351949ed1b0817ec01839ff1ce45aeae3d5ffba51a7651307fdf51c598171e085a5f0fe9b0b183bb62ff4da09e0810c57e4afb5c54ded43db1f9b12e2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.2 (2026-03-30)
|
|
4
|
+
|
|
5
|
+
- Fix TruffleRuby compatibility issue with JSON.dump
|
|
6
|
+
|
|
7
|
+
## 0.1.1 (2026-03-30)
|
|
8
|
+
|
|
9
|
+
- Fix repository URL in gemspec
|
|
10
|
+
|
|
11
|
+
## 0.1.0 (2026-03-30)
|
|
4
12
|
|
|
5
13
|
- Initial release: GraphQL API for ActiveAdmin extracted from the `activeadmin` fork, usable as `gem "activeadmin-graphql"` alongside `activeadmin` and `graphql`.
|
|
6
14
|
- Docs: full guide in [`docs/graphql-api.md`](docs/graphql-api.md), including a “Migrating GraphQL clients” section (enum names, typed CRUD inputs, `ActiveAdminKeyValuePair` lists). Links from an optional ActiveAdmin fork or doc site are mainly for discovery.
|
data/activeadmin-graphql.gemspec
CHANGED
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
|
13
13
|
spec.platform = Gem::Platform::RUBY
|
|
14
14
|
spec.required_ruby_version = ">= 3.2"
|
|
15
15
|
|
|
16
|
-
repository_url = "https://github.com/amkisko/activeadmin-graphql"
|
|
16
|
+
repository_url = "https://github.com/amkisko/activeadmin-graphql.rb"
|
|
17
17
|
|
|
18
18
|
spec.homepage = repository_url
|
|
19
19
|
spec.metadata = {
|
data/docs/graphql-api.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# GraphQL API
|
|
2
2
|
|
|
3
|
-
This guide documents the [activeadmin-graphql](https://github.com/amkisko/activeadmin-graphql) gem: an optional GraphQL HTTP API for each ActiveAdmin namespace, built with [graphql-ruby](https://graphql-ruby.org/). The API mirrors the same resources, scoping, and controller behavior as the HTML and JSON admin endpoints: Ransack `q`, menu `scope`, sort `order`, nested `belongs_to` parents, CRUD, batch actions, and custom member and collection actions.
|
|
3
|
+
This guide documents the [activeadmin-graphql](https://github.com/amkisko/activeadmin-graphql.rb) gem: an optional GraphQL HTTP API for each ActiveAdmin namespace, built with [graphql-ruby](https://graphql-ruby.org/). The API mirrors the same resources, scoping, and controller behavior as the HTML and JSON admin endpoints: Ransack `q`, menu `scope`, sort `order`, nested `belongs_to` parents, CRUD, batch actions, and custom member and collection actions.
|
|
4
4
|
|
|
5
5
|
The HTTP feature is off until you set `graphql = true` on a namespace. That adds a `POST` endpoint only (for example `POST /admin/graphql` for the default `admin` namespace); it does not replace the existing admin UI.
|
|
6
6
|
|
|
@@ -49,7 +49,10 @@ module ActiveAdmin
|
|
|
49
49
|
extra = {
|
|
50
50
|
"batch_action" => batch_sym.to_s,
|
|
51
51
|
"collection_selection" => Array(ids).map(&:to_s),
|
|
52
|
-
|
|
52
|
+
# JSON.generate/to_json can attempt to append to a frozen literal on TruffleRuby.
|
|
53
|
+
# Using JSON.dump with an explicit mutable buffer avoids mutating the gem's internal
|
|
54
|
+
# literals while still serializing to the string that ActiveAdmin expects.
|
|
55
|
+
"batch_action_inputs" => JSON.dump(inputs, +"")
|
|
53
56
|
}
|
|
54
57
|
c = controller_for("batch_action", extra)
|
|
55
58
|
perform_controller_command!(c) { c.send(:batch_action) }
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeadmin-graphql
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrei Makarov
|
|
@@ -359,15 +359,15 @@ files:
|
|
|
359
359
|
- lib/active_admin/graphql/version.rb
|
|
360
360
|
- lib/active_admin/primary_key.rb
|
|
361
361
|
- lib/activeadmin/graphql.rb
|
|
362
|
-
homepage: https://github.com/amkisko/activeadmin-graphql
|
|
362
|
+
homepage: https://github.com/amkisko/activeadmin-graphql.rb
|
|
363
363
|
licenses:
|
|
364
364
|
- MIT
|
|
365
365
|
metadata:
|
|
366
|
-
homepage_uri: https://github.com/amkisko/activeadmin-graphql
|
|
367
|
-
source_code_uri: https://github.com/amkisko/activeadmin-graphql/tree/main
|
|
368
|
-
changelog_uri: https://github.com/amkisko/activeadmin-graphql/blob/main/CHANGELOG.md
|
|
369
|
-
documentation_uri: https://github.com/amkisko/activeadmin-graphql/blob/main/docs/graphql-api.md
|
|
370
|
-
bug_tracker_uri: https://github.com/amkisko/activeadmin-graphql/issues
|
|
366
|
+
homepage_uri: https://github.com/amkisko/activeadmin-graphql.rb
|
|
367
|
+
source_code_uri: https://github.com/amkisko/activeadmin-graphql.rb/tree/main
|
|
368
|
+
changelog_uri: https://github.com/amkisko/activeadmin-graphql.rb/blob/main/CHANGELOG.md
|
|
369
|
+
documentation_uri: https://github.com/amkisko/activeadmin-graphql.rb/blob/main/docs/graphql-api.md
|
|
370
|
+
bug_tracker_uri: https://github.com/amkisko/activeadmin-graphql.rb/issues
|
|
371
371
|
rubygems_mfa_required: 'true'
|
|
372
372
|
rdoc_options: []
|
|
373
373
|
require_paths:
|