ibrain-core 0.5.5 → 0.5.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '082ccfa655b3f8a6574a155335e68dc25fc9f122d251a86fe899490d4e71cbfd'
|
4
|
+
data.tar.gz: 2d356e73203f168cdcea21030960389eb6865e2554ccd6b04fce5d8d283beb7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91a864f18e78ff1d4ff9fc5c86cb805291280a40b7239ebc84d3ac7f91fc5dedb6ae8f5a719ea17f1f8c4e9174ba02968771b8539361b27f6b68e376e4199c95
|
7
|
+
data.tar.gz: 82ae6d5b5e41e27d7b54cde0c46f1ec754a873ee9a7a5f9f2545f45f568062960e63cd2d75e9f4996347ad70ba81ac80e7995515caaf9c95273835a5f76642b8
|
@@ -1,15 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
<% module_namespacing_when_supported do -%>
|
4
|
-
|
5
|
-
|
6
|
-
class <%= type_ruby_name.split('::')[-1] %> < Ibrain::Types::BaseType
|
7
|
-
implements Ibrain::Interfaces::RecordInterface
|
4
|
+
class Types::Objects::<%= type_ruby_name.split('::')[-1] %> < Ibrain::Types::BaseObject
|
5
|
+
implements Ibrain::Interfaces::RecordInterface
|
8
6
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
end
|
7
|
+
description '<%= type_ruby_name.split('::')[-1] %>'
|
8
|
+
graphql_name <%= type_model_name %>.table_name
|
9
|
+
|
10
|
+
<% normalized_fields.each do |f| %> <%= f.to_ruby %>
|
11
|
+
<% end %>end
|
15
12
|
<% end -%>
|
@@ -66,6 +66,10 @@ module Ibrain
|
|
66
66
|
@type_ruby_name ||= self.class.normalize_type_expression(type_name, mode: :ruby)[0]
|
67
67
|
end
|
68
68
|
|
69
|
+
def type_model_name
|
70
|
+
@type_model_name ||= type_name.camelize
|
71
|
+
end
|
72
|
+
|
69
73
|
# @return [String] The user-provided type name, as a GraphQL name
|
70
74
|
def type_graphql_name
|
71
75
|
@type_graphql_name ||= self.class.normalize_type_expression(type_name, mode: :graphql)[0]
|
data/lib/ibrain/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ibrain-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tai Nguyen Van
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord-session_store
|
@@ -214,6 +214,7 @@ files:
|
|
214
214
|
- app/models/ibrain/role.rb
|
215
215
|
- app/models/ibrain/role_user.rb
|
216
216
|
- app/repositories/ibrain/base_repository.rb
|
217
|
+
- app/services/ibrain/mailer_service.rb
|
217
218
|
- config/locales/en.yml
|
218
219
|
- config/locales/jp.yml
|
219
220
|
- config/locales/vi.yml
|