graphiti_scaffold_generator 0.1.7 → 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: 8cee16fe4204531ffc3adbef0d4c156243842e7eed7f0747e5c9c852efc96420
4
- data.tar.gz: 8bb01c8d72e9ac6778ecfaf1f4bffd054a7c31f7d87afeee38504f81564bcfa5
3
+ metadata.gz: e6fe6ece0b31cfb8fb477a63eff20c71ed6497ed109e098af94d62afbdebc673
4
+ data.tar.gz: 0ea00548c3843fb7a13b63738bc13487e824569015a6f584493c0ff90d10493e
5
5
  SHA512:
6
- metadata.gz: f569f4075134199251e6c63e5083cbd86f42798d437289442b11c5f7293fbfc4259ca79a4409960c1b47fbcd0093bb7a063cb51972ca5a019c238bee023b0db2
7
- data.tar.gz: 8fffea2235e82d2ce3062a26c3619eb1ad65280285bbf57cb6c6df475ca3ea9139b5d751d2857a987e5738864d6977a604013b18749b7f5196da95f18b09b668
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.7)
4
+ graphiti_scaffold_generator (0.1.8)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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.7"
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Kulikov