rails_audit_log 1.4.0 → 1.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e3de1e31a64d33c94042ea45ff4eeb391d48cc65db934bf7b7256656326c480
4
- data.tar.gz: e34d558b4687f61336af9a7f7e6ae3faebe6ea77533e7da8e360d27dbfc70060
3
+ metadata.gz: 3d3b4d1da5762600dfdf6708c7190332a28d1f4dd38061198edbee520032c0e5
4
+ data.tar.gz: 5eb30c1b5bac8cd6597280fea14772535236283259107c55e5f400f7b7f17b15
5
5
  SHA512:
6
- metadata.gz: cd8d51146c5b915b5c00cc863f23cffc70066cf4cfaafc5e667e9b064b225168b71f45d5699199ba37de78f0089cebabb8a1707f6f837642c32b0fb73c290a6c
7
- data.tar.gz: 3abf1d5c1894de5496a76b8827eb23f6f8b430e9a4a192505e1012a3be022cf01290b5ef38cc3d9b43e2e4dc5f46c2e2667fdd77015ce0dfb111fab6141530b5
6
+ metadata.gz: ad86cfe01077841234ad0bbe9b0a84b3329e3ad3553b5da4ce238d3feb774cc7229a8dce5ebbb242a22180bf00def009a19965dde01199688e019f18069d48aa
7
+ data.tar.gz: e92ede455fc5423f1254e2e7ee15da94a843c2f54c9439d0e84111834919d68e8e79f2adf77cc319de14208e2780a95854bf8a98fa8738f624f1b7d1f96888ae
data/README.md CHANGED
@@ -909,13 +909,40 @@ article.paper_trail.version_at(1.week.ago) # reconstructed state at a point in t
909
909
 
910
910
  [↑ Table of contents](#table-of-contents)
911
911
 
912
- > Coming in the 1.x series
912
+ Each companion gem declares `rails_audit_log` as a dependency so you only add what you use.
913
913
 
914
- | Gem | What it adds |
915
- |---|---|
916
- | `rails_audit_log-graphql` | Mountable GraphQL endpoint at `/audit/graphql` — queryable audit trail for API-first apps without forcing `graphql-ruby` on users who don't need it |
914
+ ### `rails_audit_log-graphql`
917
915
 
918
- Each companion gem declares `rails_audit_log` as a dependency so you only add what you use.
916
+ [![Gem Version](https://img.shields.io/gem/v/rails_audit_log-graphql.svg)](https://rubygems.org/gems/rails_audit_log-graphql)
917
+
918
+ A mountable GraphQL endpoint for API-first apps. Shipped as a separate gem so `graphql-ruby` is never a transitive dependency for users who don't need it.
919
+
920
+ Add both gems to your `Gemfile`:
921
+
922
+ ```ruby
923
+ gem "rails_audit_log"
924
+ gem "rails_audit_log-graphql"
925
+ ```
926
+
927
+ Mount the GraphQL engine alongside the main engine:
928
+
929
+ ```ruby
930
+ # config/routes.rb
931
+ mount RailsAuditLog::Engine, at: "/audit"
932
+ mount RailsAuditLog::GraphQL::Engine, at: "/audit/graphql"
933
+ ```
934
+
935
+ Authentication re-uses `RailsAuditLog.authenticate` — nothing extra to configure.
936
+
937
+ **Queries and subscriptions:**
938
+
939
+ | Operation | Signature | Description |
940
+ |---|---|---|
941
+ | `Query.auditLogEntries` | `(event:, itemType:, itemId:, actorId:, since:, until:, page:)` | Filterable, paginated list |
942
+ | `Query.auditLogEntry` | `(id:)` | Single entry lookup with full diff |
943
+ | `Subscription.auditLogEntryCreated` | `(itemType:, itemId:)` | Real-time stream for a resource (requires Action Cable) |
944
+
945
+ All fields on `AuditLogEntry` are exposed via `AuditLogEntryType`.
919
946
 
920
947
  ## Requirements
921
948
 
@@ -1,3 +1,3 @@
1
1
  module RailsAuditLog
2
- VERSION = "1.4.0"
2
+ VERSION = "1.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_audit_log
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chuck Smith