ibrain-core 0.5.5 → 0.5.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: a4efce65a5ebfdbbd09e276c87e01399cf4f7d68a90555c1dcde1031fc9d59ee
4
- data.tar.gz: 3cc3a8efa0ed9d585fbf63433b65f8fb4525364fa4ed63abdc9f15335f880f62
3
+ metadata.gz: '082ccfa655b3f8a6574a155335e68dc25fc9f122d251a86fe899490d4e71cbfd'
4
+ data.tar.gz: 2d356e73203f168cdcea21030960389eb6865e2554ccd6b04fce5d8d283beb7e
5
5
  SHA512:
6
- metadata.gz: f37e88b7c92780d9e1f092e1f9275fefb49a9f34cf6f34e7a06021301a7198d4d1d0a97313e938b87d7c01f460336690c7e22530a9846f1d9b50a53c232917bd
7
- data.tar.gz: 2271a8863458476386fa74cf7548add69f44e734cd248e603d2de54225c76b373abbda4e8b789a3760c271eb81a0d4c74c7c46efc2266de65a9464849544c03f
6
+ metadata.gz: 91a864f18e78ff1d4ff9fc5c86cb805291280a40b7239ebc84d3ac7f91fc5dedb6ae8f5a719ea17f1f8c4e9174ba02968771b8539361b27f6b68e376e4199c95
7
+ data.tar.gz: 82ae6d5b5e41e27d7b54cde0c46f1ec754a873ee9a7a5f9f2545f45f568062960e63cd2d75e9f4996347ad70ba81ac80e7995515caaf9c95273835a5f76642b8
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Ibrain
4
+ class MailerService
5
+ def initialize
6
+ end
7
+ end
8
+ end
@@ -1,15 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  <% module_namespacing_when_supported do -%>
4
- module Types
5
- module Objects
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
- description '<%= type_ruby_name.split('::')[-1] %>'
10
-
11
- <% normalized_fields.each do |f| %> <%= f.to_ruby %>
12
- <% end %>end
13
- end
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]
@@ -1,14 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ibrain
4
- VERSION = "0.5.5"
4
+ VERSION = "0.5.6"
5
5
 
6
6
  def self.ibrain_version
7
7
  VERSION
8
8
  end
9
9
 
10
10
  def self.previous_ibrain_minor_version
11
- '0.5.4'
11
+ '0.5.5'
12
12
  end
13
13
 
14
14
  def self.ibrain_gem_version
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.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-09-22 00:00:00.000000000 Z
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