ralphql_generator 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 424c0525b6ba37043784f664352284c95a761e514567097a1078e5a9a62f68ce
4
- data.tar.gz: b6f2c7930183531db5d6d7d674d346eb850e0ee1b7dc028daca13f5d75092db0
3
+ metadata.gz: d1c424e21e74920e40e82b1ae26035b15c315c4b804cee71fdc1cafcf95d6820
4
+ data.tar.gz: 99c7016923e19cd41a11eb4e7f1779dd8b4dbf5ae69eb2c2fba4c6190ab88c64
5
5
  SHA512:
6
- metadata.gz: 419ccaca078fd4e800ada37e6d7a92aa9462a11c2e26d42b7a1aacee9c19f10e6a4e4ae223f26bcd8e7b1aa243ab529aed7af379f8db458d7d4855d26a77b135
7
- data.tar.gz: c2384bd3f947cde30351f00f005257b281baf7bdc84cd20d43fd4fce8b7aea5bc61fabcffb37a016a7a2013e768fde89f0facc225374b0d583eaeac1cea21978
6
+ metadata.gz: dc802b62434c184de644bcfa4317acd50e4b588bd4c5f9546761f5a7732488e844273e5ab45f32c77be2273d831d79d361c56ead9a0f853fb88b8df48c5f5f1b
7
+ data.tar.gz: ba8fe6902a8ff3a02be0deed85704bb0c992fb9630d95973f1e31c75bb876ae917202c9cb10c9beeed20be174f37bd3add7502a292467590a1b89efb11ad44d9
@@ -24,11 +24,5 @@ RSpec.describe Types::QueryType, type: :request do
24
24
  end
25
25
  end
26
26
 
27
- describe 'when unauthenticated' do
28
- before do
29
- do_graphql_request
30
- end
31
-
32
- include_examples 'when unauthenticated'
33
- end
27
+ include_examples 'when unauthenticated'
34
28
  end
@@ -4,6 +4,7 @@ require 'rails_helper'
4
4
 
5
5
  RSpec.describe Mutations::<%= class_name %>, type: :request do
6
6
  let(:query) { '<%= class_name.camelize(:lower) %>' }
7
+ let(:data) { json.dig(:data, :<%= class_name.camelize(:lower).pluralize %>, :change_me) }
7
8
 
8
9
  # let(:object) { Fabricate :object }
9
10
 
@@ -19,7 +20,6 @@ RSpec.describe Mutations::<%= class_name %>, type: :request do
19
20
  xit '<%= class_name %>' do
20
21
  do_graphql_request
21
22
  expect(errors).to be_blank
22
- data = json.dig('data', '<%= class_name.camelize(:lower) %>', 'object').deep_symbolize_keys
23
23
  expect(data).not_to be_empty
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module Ralphql
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ralphql_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Delpierre
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-03 00:00:00.000000000 Z
11
+ date: 2024-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '7.0'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 7.0.4.3
19
+ version: '7.1'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '7.0'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 7.0.4.3
26
+ version: '7.1'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: puma
35
29
  requirement: !ruby/object:Gem::Requirement