souls 0.10.1 → 0.10.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 +4 -4
- data/Gemfile.lock +1 -1
- data/exe/souls +8 -6
- data/lib/souls/init.rb +12 -16
- data/lib/souls/version.rb +1 -1
- metadata +3 -4
- data/v0.0.8.tar.gz +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6509bef1c404da5a8fd24bdca10de869c1b1c04235efde007698457ab8276a2e
|
|
4
|
+
data.tar.gz: dd7d5536a3df51475f1521bc24025052e1840772fd52702fa0e2cb7d77996cf6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f2ac59232c0ba1af44e80ec08a47201a94c1515f32e22c354de23482946c28f538d1e5edf94e5a91e784221eaf4e74cb4ac9b8b35e066c3badf9130e5af41db3
|
|
7
|
+
data.tar.gz: a6297e166a94bb704e263c7c75c3e80d71a453e0415458b1fa074e8f63505aa569f03ef556af336daa6790e398b5eea2f56f38dc95cc408fb29c90e336114397
|
data/Gemfile.lock
CHANGED
data/exe/souls
CHANGED
|
@@ -20,7 +20,7 @@ begin
|
|
|
20
20
|
when "s", "server"
|
|
21
21
|
strain = Souls.configuration.strain
|
|
22
22
|
case strain
|
|
23
|
-
when "api"
|
|
23
|
+
when "api", "graph"
|
|
24
24
|
system "bundle exec puma -p 3000"
|
|
25
25
|
when "service"
|
|
26
26
|
system "bundle exec rake run_server"
|
|
@@ -30,9 +30,7 @@ begin
|
|
|
30
30
|
when "c", "console"
|
|
31
31
|
strain = Souls.configuration.strain
|
|
32
32
|
case strain
|
|
33
|
-
when "api"
|
|
34
|
-
system "bundle exec irb"
|
|
35
|
-
when "service"
|
|
33
|
+
when "api", "graph", "service"
|
|
36
34
|
system "bundle exec irb"
|
|
37
35
|
else
|
|
38
36
|
system "yarn dev"
|
|
@@ -74,10 +72,14 @@ begin
|
|
|
74
72
|
when "rspec_type"
|
|
75
73
|
Souls::Init.rspec_type class_name: ARGV[2]
|
|
76
74
|
else
|
|
75
|
+
"SOULs!"
|
|
77
76
|
end
|
|
78
77
|
when "t", "test"
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
`rubocop`
|
|
79
|
+
`bundle exec rspec`
|
|
80
|
+
when "run"
|
|
81
|
+
`docker build . -t souls:latest`
|
|
82
|
+
`docker run --rm -p 3000:3000 souls:latest`
|
|
81
83
|
when "deploy"
|
|
82
84
|
project_id = Souls.configuration.project_id
|
|
83
85
|
`gcloud builds submit --config=cloudbuild.yml --project #{project_id}`
|
data/lib/souls/init.rb
CHANGED
|
@@ -3,7 +3,7 @@ module Souls
|
|
|
3
3
|
module Init
|
|
4
4
|
class << self
|
|
5
5
|
def create_souls strain: 1, app_name: "souls"
|
|
6
|
-
config_needed = (1..
|
|
6
|
+
config_needed = (1..3)
|
|
7
7
|
project = {}
|
|
8
8
|
project[:strain] = STRAINS[strain.to_i - 1]
|
|
9
9
|
begin
|
|
@@ -49,7 +49,6 @@ module Souls
|
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
def initial_config_init app_name: "souls", project: {}
|
|
52
|
-
puts "Generating souls conf..."
|
|
53
52
|
`touch "#{app_name}/config/initializers/souls.rb"`
|
|
54
53
|
file_path = "#{app_name}/config/initializers/souls.rb"
|
|
55
54
|
File.open(file_path, "w") do |f|
|
|
@@ -449,9 +448,9 @@ module Souls
|
|
|
449
448
|
singularized_class_name = class_name.singularize
|
|
450
449
|
if Dir.exist? "./app/graphql/mutations/#{singularized_class_name}"
|
|
451
450
|
create_confirm dir_path: "./app/graphql/mutations/#{singularized_class_name}"
|
|
452
|
-
|
|
451
|
+
else
|
|
452
|
+
Dir.mkdir "./app/graphql/mutations/#{singularized_class_name}"
|
|
453
453
|
end
|
|
454
|
-
Dir.mkdir "./app/graphql/mutations/#{singularized_class_name}"
|
|
455
454
|
create_mutation_head class_name: singularized_class_name
|
|
456
455
|
create_mutation_params class_name: singularized_class_name
|
|
457
456
|
[
|
|
@@ -680,13 +679,13 @@ module Souls
|
|
|
680
679
|
query: query_path,
|
|
681
680
|
mutation: mutation_path,
|
|
682
681
|
add_query_type: [
|
|
683
|
-
"field :#{singularized_class_name}, resolver: Queries::#{singularized_class_name.camelize}",
|
|
684
|
-
"field :#{singularized_class_name.pluralize}, Types::#{singularized_class_name.camelize}Type.connection_type, null: true"
|
|
682
|
+
" field :#{singularized_class_name}, resolver: Queries::#{singularized_class_name.camelize}",
|
|
683
|
+
" field :#{singularized_class_name.pluralize}, Types::#{singularized_class_name.camelize}Type.connection_type, null: true"
|
|
685
684
|
],
|
|
686
685
|
add_mutation_type: [
|
|
687
|
-
"field :create_#{singularized_class_name}, mutation: Mutations::#{singularized_class_name.camelize}::Create#{singularized_class_name.camelize}",
|
|
688
|
-
"field :update_#{singularized_class_name}, mutation: Mutations::#{singularized_class_name.camelize}::Update#{singularized_class_name.camelize}",
|
|
689
|
-
"field :delete_#{singularized_class_name}, mutation: Mutations::#{singularized_class_name.camelize}::Delete#{singularized_class_name.camelize}"
|
|
686
|
+
" field :create_#{singularized_class_name}, mutation: Mutations::#{singularized_class_name.camelize}::Create#{singularized_class_name.camelize}",
|
|
687
|
+
" field :update_#{singularized_class_name}, mutation: Mutations::#{singularized_class_name.camelize}::Update#{singularized_class_name.camelize}",
|
|
688
|
+
" field :delete_#{singularized_class_name}, mutation: Mutations::#{singularized_class_name.camelize}::Delete#{singularized_class_name.camelize}"
|
|
690
689
|
]
|
|
691
690
|
]
|
|
692
691
|
end
|
|
@@ -745,14 +744,11 @@ module Souls
|
|
|
745
744
|
path[:add_query_type].each { |line| puts line }
|
|
746
745
|
end
|
|
747
746
|
end
|
|
748
|
-
puts "\n
|
|
747
|
+
puts "\n ## Connection Type\n\n"
|
|
749
748
|
get_tables.each do |class_name|
|
|
750
|
-
puts
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
end
|
|
754
|
-
\n
|
|
755
|
-
EOS
|
|
749
|
+
puts " def #{class_name.pluralize}"
|
|
750
|
+
puts " #{class_name.singularize.camelize}.all.order(id: :desc)"
|
|
751
|
+
puts " end\n\n"
|
|
756
752
|
end
|
|
757
753
|
puts "\n#############################################################\n"
|
|
758
754
|
puts "# #\n"
|
data/lib/souls/version.rb
CHANGED
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: 0.10.
|
|
4
|
+
version: 0.10.6
|
|
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-01-
|
|
13
|
+
date: 2021-01-24 00:00:00.000000000 Z
|
|
14
14
|
dependencies: []
|
|
15
15
|
description: SOULS is a Web Application Framework for Microservices on Multi Cloud
|
|
16
16
|
Platform such as Google Cloud Platform, Amazon Web Services, and Alibaba Cloud.
|
|
@@ -47,7 +47,6 @@ files:
|
|
|
47
47
|
- lib/souls/version.rb
|
|
48
48
|
- rbs/init.rbs
|
|
49
49
|
- souls.gemspec
|
|
50
|
-
- v0.0.8.tar.gz
|
|
51
50
|
homepage: https://github.com/elsoul/souls
|
|
52
51
|
licenses:
|
|
53
52
|
- Apache-2.0
|
|
@@ -70,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
70
69
|
- !ruby/object:Gem::Version
|
|
71
70
|
version: '0'
|
|
72
71
|
requirements: []
|
|
73
|
-
rubygems_version: 3.2.
|
|
72
|
+
rubygems_version: 3.2.4
|
|
74
73
|
signing_key:
|
|
75
74
|
specification_version: 4
|
|
76
75
|
summary: SOULS is a Web Application Framework for Microservices on Multi Cloud Platform
|
data/v0.0.8.tar.gz
DELETED
|
Binary file
|