souls 1.10.0 → 1.10.4
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 +4 -4
- data/CODE_OF_CONDUCT.md +1 -1
- data/README.md +1 -8
- data/lib/souls/app/graphql/souls_connection.rb +18 -0
- data/lib/souls/app/graphql/types/base_argument.rb +6 -0
- data/lib/souls/app/graphql/types/base_enum.rb +6 -0
- data/lib/souls/app/graphql/types/base_field.rb +7 -0
- data/lib/souls/app/graphql/types/base_input_object.rb +7 -0
- data/lib/souls/app/graphql/types/base_interface.rb +9 -0
- data/lib/souls/app/graphql/types/base_object.rb +8 -0
- data/lib/souls/app/graphql/types/base_scalar.rb +6 -0
- data/lib/souls/app/graphql/types/base_union.rb +6 -0
- data/lib/souls/app/graphql/types/index.rb +11 -0
- data/lib/souls/app/index.rb +2 -0
- data/lib/souls/cli/delete/rspec_mutation.rb +0 -2
- data/lib/souls/cli/gcloud/scheduler/index.rb +2 -1
- data/lib/souls/cli/gcloud/sql/index.rb +6 -6
- data/lib/souls/cli/generate/manager.rb +1 -0
- data/lib/souls/cli/generate/resolver.rb +1 -1
- data/lib/souls/version.rb +1 -1
- data/lib/souls/versions/.souls_api_version +1 -1
- data/lib/souls/versions/.souls_worker_version +1 -1
- metadata +12 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa6220fd948d6e29a5a3bce93ee00a152dde8067a73f7e9159495fbb16fd5bcd
|
4
|
+
data.tar.gz: 122f1c303883c441d911de3fa0cbe067cf7b703d1afa1e54dcdd90f9708531f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b12467ee5c2c662e0ea007d73d4518b940f70721ff4da637bb4dcef19ca182f2d71b0e6da38f578567c50e549c5b433fff1967d788d222653a07ae3b0a28a72
|
7
|
+
data.tar.gz: 88e8cd539c7e1192354e4d272d6822bdc65bd2a3da558c4984d254c08f8fc2c600f001911855d7586abe66c6246a99e94006047f166d7dd0095edd2854e36868
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -61,7 +61,7 @@ representative at an online or offline event.
|
|
61
61
|
|
62
62
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
63
63
|
reported to the community leaders responsible for enforcement at
|
64
|
-
|
64
|
+
conduct@elsoul.nl.
|
65
65
|
All complaints will be reviewed and investigated promptly and fairly.
|
66
66
|
|
67
67
|
All community leaders are obligated to respect the privacy and security of the
|
data/README.md
CHANGED
@@ -115,13 +115,6 @@ Or install it yourself as:
|
|
115
115
|
And Create Your APP
|
116
116
|
|
117
117
|
$ souls new app_name
|
118
|
-
$ cd apps/api/app_name
|
119
|
-
$ souls s
|
120
|
-
|
121
|
-
Check your GraphQL PlayGround
|
122
|
-
|
123
|
-
[localhost:4000/playground](localhost:4000/playground)
|
124
|
-
|
125
118
|
|
126
119
|
|
127
120
|
## Development
|
@@ -150,4 +143,4 @@ The gem is available as open source under the terms of the [Apache-2.0 License](
|
|
150
143
|
|
151
144
|
## Code of Conduct
|
152
145
|
|
153
|
-
Everyone interacting in the
|
146
|
+
Everyone interacting in the Souls project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/elsoul/souls/blob/master/CODE_OF_CONDUCT.md).
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Souls
|
2
|
+
class SoulsConnection < GraphQL::Types::Relay::BaseConnection
|
3
|
+
field :total_count, Integer, null: false do
|
4
|
+
description "Total number of items"
|
5
|
+
end
|
6
|
+
field :total_pages, Integer, null: false do
|
7
|
+
description "Total number of pages"
|
8
|
+
end
|
9
|
+
|
10
|
+
def total_count
|
11
|
+
object.items.size
|
12
|
+
end
|
13
|
+
|
14
|
+
def total_pages
|
15
|
+
(total_count / object.max_page_size) + 1
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require_relative "base_argument"
|
2
|
+
require_relative "base_enum"
|
3
|
+
require_relative "base_field"
|
4
|
+
require_relative "base_input_object"
|
5
|
+
require_relative "base_interface"
|
6
|
+
require_relative "base_object"
|
7
|
+
require_relative "base_scalar"
|
8
|
+
require_relative "base_union"
|
9
|
+
|
10
|
+
module Souls
|
11
|
+
end
|
data/lib/souls/app/index.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
require_relative "graphql/souls_mutation"
|
2
2
|
require_relative "graphql/souls_query"
|
3
|
+
require_relative "graphql/souls_connection"
|
3
4
|
require_relative "utils/souls_logger"
|
4
5
|
require_relative "utils/firebase_id_token"
|
6
|
+
require_relative "graphql/types/index"
|
5
7
|
|
6
8
|
module Souls
|
7
9
|
end
|
@@ -48,7 +48,8 @@ module Souls
|
|
48
48
|
|
49
49
|
def current_schedules
|
50
50
|
current_schedules = {}
|
51
|
-
`gcloud scheduler jobs list
|
51
|
+
jobs = `gcloud scheduler jobs list`
|
52
|
+
jobs.split("\n")[1..].each do |line|
|
52
53
|
columns = line.split(/\t| {2,}/)
|
53
54
|
job_name = columns[0].to_sym
|
54
55
|
crontab = columns[2].split(" (")[0]
|
@@ -95,12 +95,12 @@ module Souls
|
|
95
95
|
project_id = Souls.configuration.project_id
|
96
96
|
system(
|
97
97
|
"
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
98
|
+
gcloud services vpc-peerings connect \
|
99
|
+
--service=servicenetworking.googleapis.com \
|
100
|
+
--ranges=#{app_name}-ip-range \
|
101
|
+
--network=#{app_name} \
|
102
|
+
--project=#{project_id}
|
103
|
+
"
|
104
104
|
)
|
105
105
|
end
|
106
106
|
|
@@ -3,6 +3,7 @@ module Souls
|
|
3
3
|
desc "manager [MANAGER_NAME]", "Generate GraphQL Mutation Template"
|
4
4
|
method_option :mutation, aliases: "--mutation", required: true, desc: "Mutation File Name"
|
5
5
|
def manager(class_name)
|
6
|
+
singularized_class_name = class_name.underscore.singularize
|
6
7
|
create_manager(class_name, options[:mutation])
|
7
8
|
Souls::Generate.new.invoke(:manager_rbs, [singularized_class_name], { mutation: options[:mutation] })
|
8
9
|
Souls::Generate.new.invoke(:rspec_manager, [singularized_class_name], { mutation: options[:mutation] })
|
@@ -30,7 +30,7 @@ module Souls
|
|
30
30
|
type Types::#{class_name.camelize}Type.connection_type, null: false
|
31
31
|
description "Search #{class_name.camelize}"
|
32
32
|
|
33
|
-
class #{class_name.camelize}Filter < ::Types::BaseInputObject
|
33
|
+
class #{class_name.camelize}Filter < Souls::Types::BaseInputObject
|
34
34
|
argument :OR, [self], required: false
|
35
35
|
TEXT
|
36
36
|
end
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.10.
|
1
|
+
1.10.4
|
@@ -1 +1 @@
|
|
1
|
-
1.10.
|
1
|
+
1.10.4
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: souls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- POPPIN-FUMI
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-12-
|
13
|
+
date: 2021-12-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -156,8 +156,18 @@ files:
|
|
156
156
|
- README.md
|
157
157
|
- exe/souls
|
158
158
|
- lib/souls.rb
|
159
|
+
- lib/souls/app/graphql/souls_connection.rb
|
159
160
|
- lib/souls/app/graphql/souls_mutation.rb
|
160
161
|
- lib/souls/app/graphql/souls_query.rb
|
162
|
+
- lib/souls/app/graphql/types/base_argument.rb
|
163
|
+
- lib/souls/app/graphql/types/base_enum.rb
|
164
|
+
- lib/souls/app/graphql/types/base_field.rb
|
165
|
+
- lib/souls/app/graphql/types/base_input_object.rb
|
166
|
+
- lib/souls/app/graphql/types/base_interface.rb
|
167
|
+
- lib/souls/app/graphql/types/base_object.rb
|
168
|
+
- lib/souls/app/graphql/types/base_scalar.rb
|
169
|
+
- lib/souls/app/graphql/types/base_union.rb
|
170
|
+
- lib/souls/app/graphql/types/index.rb
|
161
171
|
- lib/souls/app/index.rb
|
162
172
|
- lib/souls/app/utils/firebase_id_token.rb
|
163
173
|
- lib/souls/app/utils/souls_logger.rb
|