graphiti_scaffold_generator 0.1.6 → 0.1.8

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: df20b10ead6bed6f97b54c1bca81fd541563bda557b45e78523b8f2d33f0c822
4
- data.tar.gz: 51c94a247bdf1654543883990dd611d7380d3995e037ba65171a86e3b7164dd6
3
+ metadata.gz: e6fe6ece0b31cfb8fb477a63eff20c71ed6497ed109e098af94d62afbdebc673
4
+ data.tar.gz: 0ea00548c3843fb7a13b63738bc13487e824569015a6f584493c0ff90d10493e
5
5
  SHA512:
6
- metadata.gz: 6aac1bac0efa2d2037f3e5599ec62bdb9b42ce944e6525c5b4bbc3eeffb85188df883a86893b3e5a15ed14d9b8e64f50af3ee125e9cb9de209522042739666e9
7
- data.tar.gz: fd310bdb09ba0b7ad3b6e9c81778e38e5a25426ace21fa9b8a624fe4420ededd25c1894999f98b7f374a5cc83214153b38990083789c3218caf96e36e7838111
6
+ metadata.gz: 8cf7f67401d9be96bd69b9a642e31a5d7c60bb91fe94f0140f2cf5aa9c2e42f7bfb38c324b7f5f7b6d9153518d3ebe8a8aeed3f5494ebeaf69a46859dc63f10f
7
+ data.tar.gz: 9adb2a2e0cdc7239b9d90fddd5e15fa75e955f339778aed423c387bac9fac7ae4aa2629a981e95b15cb21b14841298848b5c8413adb3d4c88f30904a7f33034a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphiti_scaffold_generator (0.1.6)
4
+ graphiti_scaffold_generator (0.1.8)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -14,7 +14,7 @@
14
14
  type ||= primary_key_type || :integer
15
15
  name += '_id'
16
16
  type
17
- when :json, :json
17
+ when :json, :jsonb
18
18
  type = :hash
19
19
  when :text
20
20
  type = :string
@@ -37,10 +37,10 @@ describe '<%= class_name %>Resource', type: :resource do
37
37
  subject(:attributes) { config[:attributes] }
38
38
 
39
39
  it 'equal to [<%= all_attributes.map{|a| ":#{a.first}"}.join ", " %>]' do
40
- expect(attributes.keys)
40
+ expect(attributes.keys.sort)
41
41
  .to eq %i[
42
42
  <%= all_attributes.map(&:first).join "\n " %>
43
- ]
43
+ ].sort
44
44
  end
45
45
  <% all_attributes.each do |name, type| -%>
46
46
 
@@ -55,8 +55,8 @@ describe '<%= class_name %>Resource', type: :resource do
55
55
  expect(attr_<%= name %>[:filterable]).to be <%= name == 'id' %>
56
56
  end
57
57
 
58
- it 'is readable' do
59
- expect(attr_<%= name %>[:readable]).to be true
58
+ it 'is <%= name == 'id' ? 'not' : ' ' %>readable' do
59
+ expect(attr_<%= name %>[:readable]).to be <%= name != 'id' %>
60
60
  end
61
61
 
62
62
  it 'is not writable' do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GraphitiScaffoldGenerator
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.8"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti_scaffold_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Kulikov