ibrain-core 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/graphql/ibrain/lazy/base.rb +1 -1
- data/app/graphql/ibrain/types/base_node.rb +1 -1
- data/app/models/{ibrain/concerns → concerns/ibrain}/ransackable_attributes.rb +0 -0
- data/app/models/{ibrain/concerns → concerns/ibrain}/soft_deletable.rb +0 -0
- data/app/models/{ibrain/concerns → concerns/ibrain}/user_api_authentication.rb +0 -0
- data/app/models/{ibrain/concerns → concerns/ibrain}/user_methods.rb +0 -2
- data/app/models/ibrain/legacy_user.rb +1 -1
- data/lib/ibrain/core/version.rb +2 -2
- data/lib/ibrain/core.rb +1 -0
- metadata +19 -6
- data/app/graphql/mutations/insert_user.rb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57017a63ef4f94fba49be6f78fa18d5754bd81109f144995c44d8ff38a7c8bc0
|
4
|
+
data.tar.gz: 7204281494ec365f7528714301bf1fd7b2b40eff3f9e29e874207f8592c8fe33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 948449257443e847916a2281a7acd9c346579a800d98af65e2bad7e32cf3812b8b69ff768dc760b0d4fcf098c1eba412e674ec5b34b87fa6e3a75415d69df1c7
|
7
|
+
data.tar.gz: 33f5104110a2912405452c65829076ffb92b217835c2a1e9d0b4f7991c3577d35a739342a8e4e99215115f4af0dfcae73b6b3b32c491706432a00a68eee8a207
|
File without changes
|
File without changes
|
File without changes
|
@@ -5,10 +5,8 @@ module Ibrain
|
|
5
5
|
extend ActiveSupport::Concern
|
6
6
|
|
7
7
|
include Ibrain::UserApiAuthentication
|
8
|
-
include Ibrain::UserReporting
|
9
8
|
|
10
9
|
included do
|
11
|
-
extend Ibrain::DisplayMoney
|
12
10
|
after_create :auto_generate_ibrain_api_key
|
13
11
|
|
14
12
|
include Ibrain::RansackableAttributes unless included_modules.include?(Ibrain::RansackableAttributes)
|
data/lib/ibrain/core/version.rb
CHANGED
data/lib/ibrain/core.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ibrain-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tai Nguyen Van
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 1.15.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: discard
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.2'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.2'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: friendly_id
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -200,14 +214,13 @@ files:
|
|
200
214
|
- app/graphql/ibrain/types/node_type.rb
|
201
215
|
- app/graphql/ibrain/util/field_combiner.rb
|
202
216
|
- app/graphql/ibrain/util/query_combiner.rb
|
203
|
-
- app/
|
217
|
+
- app/models/concerns/ibrain/ransackable_attributes.rb
|
218
|
+
- app/models/concerns/ibrain/soft_deletable.rb
|
219
|
+
- app/models/concerns/ibrain/user_api_authentication.rb
|
220
|
+
- app/models/concerns/ibrain/user_methods.rb
|
204
221
|
- app/models/ibrain/ability.rb
|
205
222
|
- app/models/ibrain/application_record.rb
|
206
223
|
- app/models/ibrain/base.rb
|
207
|
-
- app/models/ibrain/concerns/ransackable_attributes.rb
|
208
|
-
- app/models/ibrain/concerns/soft_deletable.rb
|
209
|
-
- app/models/ibrain/concerns/user_api_authentication.rb
|
210
|
-
- app/models/ibrain/concerns/user_methods.rb
|
211
224
|
- app/models/ibrain/legacy_user.rb
|
212
225
|
- app/models/ibrain/role.rb
|
213
226
|
- app/models/ibrain/role_user.rb
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Ibrain
|
4
|
-
module Mutations
|
5
|
-
class InsertUser < Ibrain::Mutations::BaseMutation
|
6
|
-
# TODO: define return fields
|
7
|
-
# field :post, Types::PostType, null: false
|
8
|
-
|
9
|
-
# TODO: define arguments
|
10
|
-
# argument :name, String, required: true
|
11
|
-
|
12
|
-
# TODO: define resolve method
|
13
|
-
# def resolve(name:)
|
14
|
-
# { post: ... }
|
15
|
-
# end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|