cm-graphql 0.0.16 → 0.0.17

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: e208a4149a2f430397eb52c9b1607eff36daa49855fea35928d8f58a6a023469
4
- data.tar.gz: c9577f78b6605eab7cd235dcf416077b760b68a1804d7c27e87f7dfa762956f8
3
+ metadata.gz: 26b3848e56eff643c974b44dda066ecae2f75c0aa9c5d0f7808fac663b5c8f99
4
+ data.tar.gz: c7c63fefc2d2cb9f2d6fac6be972599e812a2ddba2fd7c24de76bbcc1d212f64
5
5
  SHA512:
6
- metadata.gz: e3a3846a68d9bc237cdba5bc4ed80f5183cf2347dedc69f62d685650dd60022871040f93fb007a143055fe01a6aed19df7b73cb64b68f85b3dd9970ea4f3332a
7
- data.tar.gz: 5709fd50e1e93cc71beb6b223fc2af15cfee22f05a7567a505bc47bc385402ce64904afa65fd28f54aa5a9a0551e3b5d0a98cb5d947e7c2d56f3acbaaa76b508
6
+ metadata.gz: 77b290f0898228dc5222e929a59ae26c23178cd559edbcd8cbb6b9886e427a3b30aea19ca8da2824066ca0830348aaeaedd122084c2bda1c664a0264cb225c22
7
+ data.tar.gz: 2755211973020ca7d323afc72f824c2e91be5c09ab4e0edabd3ce980232f0f09fc39d16f992b8c11db2dbe24259e4c684758ade3454420f20462e9d83aafba5b
@@ -1,6 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Mutations
2
4
  class AuthenticatedMutation < BaseMutation
3
- def self.authorized?(object, context)
5
+ def self.authorized?(_object, context)
4
6
  context[:current_user].present?
5
7
  end
6
8
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Queries
4
+ class AuthenticatedQuery < Queries::BaseQuery
5
+ def self.authorized?(_object, context)
6
+ context[:current_user].present?
7
+ end
8
+ end
9
+ end
data/cm-graphql.gemspec CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'cm-graphql'
5
- spec.version = '0.0.16'
6
- spec.date = '2026-09-02'
5
+ spec.version = '0.0.17'
6
+ spec.date = '2026-09-30'
7
7
  spec.summary = 'A gem to setup grapqhl basics like pagination, file upload'
8
8
  spec.description = 'A gem to setup grapqhl basics like pagination, file upload'
9
9
  spec.authors = ['Anbazhagan Palani']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm-graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anbazhagan Palani
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-09-02 00:00:00.000000000 Z
11
+ date: 2026-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphiql-rails
@@ -90,6 +90,7 @@ files:
90
90
  - app/graphql/cm_graphql/types/objects/base/image_variants_type.rb
91
91
  - app/graphql/mutations/authenticated_mutation.rb
92
92
  - app/graphql/mutations/base_mutation.rb
93
+ - app/graphql/queries/authenticated_query.rb
93
94
  - app/graphql/queries/base_query.rb
94
95
  - app/graphql/types/base_connection.rb
95
96
  - app/graphql/types/enum_helpers.rb