graphiti_scaffold_generator 0.1.4 → 0.1.6

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: d2718e44766428effbfed02407b623b01cbcd17ecd046ce3da9b3284fe6302dc
4
- data.tar.gz: 565bcc3aaa7933d18c34971203cb93220de791b6f1a1d788f4a8f67f7bfd4ea4
3
+ metadata.gz: df20b10ead6bed6f97b54c1bca81fd541563bda557b45e78523b8f2d33f0c822
4
+ data.tar.gz: 51c94a247bdf1654543883990dd611d7380d3995e037ba65171a86e3b7164dd6
5
5
  SHA512:
6
- metadata.gz: 7248f258a895f6f0229ddaa43f299d7195aa4830c4c3ca37e8c134c8a934b4b7cd0d3b257b8d5229ade79ed20cae82a6b2067ef57e2948e4995f09a81a865133
7
- data.tar.gz: bfc15159d09c2b6e16cf1e2d4603dd0514070032a74b667be4646c9f8670797af36b4ce3711f4a8785576dbf72bd04a9b7d7811a3c7e304cef028f81eeb79b80
6
+ metadata.gz: 6aac1bac0efa2d2037f3e5599ec62bdb9b42ce944e6525c5b4bbc3eeffb85188df883a86893b3e5a15ed14d9b8e64f50af3ee125e9cb9de209522042739666e9
7
+ data.tar.gz: fd310bdb09ba0b7ad3b6e9c81778e38e5a25426ace21fa9b8a624fe4420ededd25c1894999f98b7f374a5cc83214153b38990083789c3218caf96e36e7838111
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphiti_scaffold_generator (0.1.4)
4
+ graphiti_scaffold_generator (0.1.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -14,6 +14,8 @@
14
14
  type ||= primary_key_type || :integer
15
15
  name += '_id'
16
16
  type
17
+ when :json, :json
18
+ type = :hash
17
19
  when :text
18
20
  type = :string
19
21
  end
@@ -60,7 +60,7 @@ describe "Request /<%= name.underscore.pluralize %>", <%= type_metatag(:request)
60
60
  <% if pundit -%>
61
61
  before do
62
62
  allow_any_instance_of(GraphitiApiController).to receive(:authorize)
63
- .and_return UserAbsence
63
+ .and_return <%= class_name %>
64
64
  allow_any_instance_of(GraphitiApiController).to receive(:current_user)
65
65
  .and_return(user)
66
66
  allow_any_instance_of(GraphitiApiController).to receive :authenticate_user!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GraphitiScaffoldGenerator
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti_scaffold_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Kulikov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-22 00:00:00.000000000 Z
11
+ date: 2023-11-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  The graphiti gem has no support for scaffold generator.