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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7280a88a1db044b52f0b7d41ba523f165516d8dd11d7aab97f4f3ea857f1237b
4
- data.tar.gz: 35cdf2b394b11536301ca4f405f794ad27e50a6d530386331a26a9a2748e2c7e
3
+ metadata.gz: cc303bd74d84b05385c3a3af874e1dd66957029746729122a5d684ac9720a4cd
4
+ data.tar.gz: c2ab55694cb7b62773fd22db7fb219850fb3901a3d5bf9565a9ac00b0804db6e
5
5
  SHA512:
6
- metadata.gz: e363650ebc0646cb24e5fac85d954c175555e1f6a827c697a20d21e07bcb05fc60439d42a676f0987a3141fdd6fadd8e9fce17c2ba2b2308446f5b3b7c4e3c1c
7
- data.tar.gz: 4fd30f0ae38793a83e9524429648e3c30d8b414ad9c2003ffed16680d39c21cab6505a13cd8fb17083b175f030fdfd5623e12b8af48c0814d77562cdcca88e8a
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.0
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.
@@ -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
- "batch_action_inputs" => inputs.to_json
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) }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveAdmin
4
4
  module GraphQL
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
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.0
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: