souls 0.7.0 → 0.7.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/.irbrc +1 -2
- data/.ruby-version +1 -1
- data/Gemfile +3 -4
- data/Gemfile.lock +54 -104
- data/Steepfile +9 -0
- data/exe/souls +11 -4
- data/lib/souls.rb +1 -1
- data/lib/souls/init.rb +7 -6
- data/lib/souls/version.rb +1 -1
- data/rbs/init.rbs +2 -0
- data/souls.gemspec +0 -2
- data/v0.0.8.tar.gz +0 -0
- metadata +10 -35
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 47e6b2a079af928e185a0ccf769e97eaa932cd994bf05e16451c13db6ec3071c
|
|
4
|
+
data.tar.gz: 04c96c6478eb1e02fa2b290f056a2e292becb8fad8ebb0ea2df6cddf006eeb70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2f9a60b24b5882c764f4ace8a4c286c81776e3deec45d7cf13c607b7e9067271497b67520b7ea4c8b11f0b8ab3e25565de3c54103220be91099191c8b1d4a8f
|
|
7
|
+
data.tar.gz: 5bb96be89d348a6d85e041dc0ebf733bc90f955848323570eb10333af48e170d7d6be9199905b7b87f453cee02462282123bdf80de054380fc8eb6f646cfd009
|
data/.irbrc
CHANGED
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3.0.0
|
data/Gemfile
CHANGED
|
@@ -3,7 +3,6 @@ source "https://rubygems.org"
|
|
|
3
3
|
# Specify your gem's dependencies in souls.gemspec
|
|
4
4
|
gemspec
|
|
5
5
|
|
|
6
|
-
gem "
|
|
7
|
-
gem "
|
|
8
|
-
gem "
|
|
9
|
-
gem "rspec", "~> 3.0"
|
|
6
|
+
gem "rake", "13.0.3"
|
|
7
|
+
gem "rspec", "3.1.0"
|
|
8
|
+
gem "steep", "0.39.0"
|
data/Gemfile.lock
CHANGED
|
@@ -1,122 +1,72 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
|
|
5
|
-
google-cloud-firestore (= 2.4.0)
|
|
6
|
-
mechanize (= 2.7.6)
|
|
4
|
+
souls (0.7.5)
|
|
7
5
|
|
|
8
6
|
GEM
|
|
9
7
|
remote: https://rubygems.org/
|
|
10
8
|
specs:
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
activesupport (6.1.0)
|
|
10
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
11
|
+
i18n (>= 1.6, < 2)
|
|
12
|
+
minitest (>= 5.1)
|
|
13
|
+
tzinfo (~> 2.0)
|
|
14
|
+
zeitwerk (~> 2.3)
|
|
15
|
+
ast (2.4.1)
|
|
16
|
+
ast_utils (0.3.0)
|
|
17
|
+
parser (~> 2.4)
|
|
18
|
+
thor (>= 0.19)
|
|
13
19
|
concurrent-ruby (1.1.7)
|
|
14
|
-
connection_pool (2.2.3)
|
|
15
20
|
diff-lcs (1.4.4)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
faraday (1.1.0)
|
|
19
|
-
multipart-post (>= 1.2, < 3)
|
|
20
|
-
ruby2_keywords
|
|
21
|
-
gapic-common (0.3.4)
|
|
22
|
-
google-protobuf (~> 3.12, >= 3.12.2)
|
|
23
|
-
googleapis-common-protos (>= 1.3.9, < 2.0)
|
|
24
|
-
googleapis-common-protos-types (>= 1.0.4, < 2.0)
|
|
25
|
-
googleauth (~> 0.9)
|
|
26
|
-
grpc (~> 1.25)
|
|
27
|
-
google-cloud-core (1.5.0)
|
|
28
|
-
google-cloud-env (~> 1.0)
|
|
29
|
-
google-cloud-errors (~> 1.0)
|
|
30
|
-
google-cloud-env (1.4.0)
|
|
31
|
-
faraday (>= 0.17.3, < 2.0)
|
|
32
|
-
google-cloud-errors (1.0.1)
|
|
33
|
-
google-cloud-firestore (2.4.0)
|
|
21
|
+
ffi (1.14.2)
|
|
22
|
+
i18n (1.8.7)
|
|
34
23
|
concurrent-ruby (~> 1.0)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
grpc (1.32.0)
|
|
56
|
-
google-protobuf (~> 3.13)
|
|
57
|
-
googleapis-common-protos-types (~> 1.0)
|
|
58
|
-
http-cookie (1.0.3)
|
|
59
|
-
domain_name (~> 0.5)
|
|
60
|
-
jwt (2.2.2)
|
|
61
|
-
mechanize (2.7.6)
|
|
62
|
-
domain_name (~> 0.5, >= 0.5.1)
|
|
63
|
-
http-cookie (~> 1.0)
|
|
64
|
-
mime-types (>= 1.17.2)
|
|
65
|
-
net-http-digest_auth (~> 1.1, >= 1.1.1)
|
|
66
|
-
net-http-persistent (>= 2.5.2)
|
|
67
|
-
nokogiri (~> 1.6)
|
|
68
|
-
ntlm-http (~> 0.1, >= 0.1.1)
|
|
69
|
-
webrobots (>= 0.0.9, < 0.2)
|
|
70
|
-
memoist (0.16.2)
|
|
71
|
-
mime-types (3.3.1)
|
|
72
|
-
mime-types-data (~> 3.2015)
|
|
73
|
-
mime-types-data (3.2020.1104)
|
|
74
|
-
mini_portile2 (2.4.0)
|
|
75
|
-
multi_json (1.15.0)
|
|
76
|
-
multipart-post (2.1.1)
|
|
77
|
-
net-http-digest_auth (1.4.1)
|
|
78
|
-
net-http-persistent (4.0.0)
|
|
79
|
-
connection_pool (~> 2.2)
|
|
80
|
-
nokogiri (1.10.10)
|
|
81
|
-
mini_portile2 (~> 2.4.0)
|
|
82
|
-
ntlm-http (0.1.1)
|
|
83
|
-
os (1.1.1)
|
|
84
|
-
public_suffix (4.0.6)
|
|
85
|
-
rake (12.3.3)
|
|
86
|
-
rbtree (0.4.2)
|
|
87
|
-
rspec (3.9.0)
|
|
88
|
-
rspec-core (~> 3.9.0)
|
|
89
|
-
rspec-expectations (~> 3.9.0)
|
|
90
|
-
rspec-mocks (~> 3.9.0)
|
|
91
|
-
rspec-core (3.9.3)
|
|
92
|
-
rspec-support (~> 3.9.3)
|
|
93
|
-
rspec-expectations (3.9.2)
|
|
24
|
+
language_server-protocol (3.15.0.1)
|
|
25
|
+
listen (3.4.0)
|
|
26
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
27
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
|
28
|
+
minitest (5.14.2)
|
|
29
|
+
parser (2.7.2.0)
|
|
30
|
+
ast (~> 2.4.1)
|
|
31
|
+
rainbow (3.0.0)
|
|
32
|
+
rake (13.0.3)
|
|
33
|
+
rb-fsevent (0.10.4)
|
|
34
|
+
rb-inotify (0.10.1)
|
|
35
|
+
ffi (~> 1.0)
|
|
36
|
+
rbs (1.0.0)
|
|
37
|
+
rspec (3.1.0)
|
|
38
|
+
rspec-core (~> 3.1.0)
|
|
39
|
+
rspec-expectations (~> 3.1.0)
|
|
40
|
+
rspec-mocks (~> 3.1.0)
|
|
41
|
+
rspec-core (3.1.7)
|
|
42
|
+
rspec-support (~> 3.1.0)
|
|
43
|
+
rspec-expectations (3.1.2)
|
|
94
44
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
95
|
-
rspec-support (~> 3.
|
|
96
|
-
rspec-mocks (3.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
45
|
+
rspec-support (~> 3.1.0)
|
|
46
|
+
rspec-mocks (3.1.3)
|
|
47
|
+
rspec-support (~> 3.1.0)
|
|
48
|
+
rspec-support (3.1.2)
|
|
49
|
+
steep (0.39.0)
|
|
50
|
+
activesupport (>= 5.1)
|
|
51
|
+
ast_utils (~> 0.3.0)
|
|
52
|
+
language_server-protocol (~> 3.15.0.1)
|
|
53
|
+
listen (~> 3.0)
|
|
54
|
+
parser (~> 2.7.0)
|
|
55
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
56
|
+
rbs (~> 1.0.0)
|
|
57
|
+
thor (1.0.1)
|
|
58
|
+
tzinfo (2.0.4)
|
|
59
|
+
concurrent-ruby (~> 1.0)
|
|
60
|
+
zeitwerk (2.4.2)
|
|
110
61
|
|
|
111
62
|
PLATFORMS
|
|
112
63
|
ruby
|
|
113
64
|
|
|
114
65
|
DEPENDENCIES
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
rspec (~> 3.0)
|
|
66
|
+
rake (= 13.0.3)
|
|
67
|
+
rspec (= 3.1.0)
|
|
68
|
+
souls!
|
|
69
|
+
steep (= 0.39.0)
|
|
120
70
|
|
|
121
71
|
BUNDLED WITH
|
|
122
|
-
2.
|
|
72
|
+
2.2.4
|
data/Steepfile
ADDED
data/exe/souls
CHANGED
|
@@ -9,9 +9,9 @@ begin
|
|
|
9
9
|
puts "you need to specify your app name \n `souls new app_name`"
|
|
10
10
|
exit
|
|
11
11
|
end
|
|
12
|
-
puts "Which framework: \n 1. SOULS gRPC Service \n 2. SOULS GraphQL API \n 3. SOULS Media Web \n
|
|
12
|
+
puts "Which framework: \n 1. SOULS gRPC Service \n 2. SOULS GraphQL API gRPC compatible \n 3. SOULS GraphQL API \n 4. SOULS Media Web \n 5. SOULS Admin Web \n Enter Number: "
|
|
13
13
|
strain = STDIN.gets.chomp.to_i
|
|
14
|
-
(1..
|
|
14
|
+
(1..5).include?(strain) ? puts("Generating Souls.. \n") : raise(StandardError, "Choose Number 1..5")
|
|
15
15
|
Souls::Init.create_souls strain: strain, app_name: ARGV[1]
|
|
16
16
|
when "s", "server"
|
|
17
17
|
strain = Souls.configuration.strain
|
|
@@ -41,8 +41,15 @@ begin
|
|
|
41
41
|
Souls::Init.config
|
|
42
42
|
when "-v", "--version"
|
|
43
43
|
puts Souls::VERSION
|
|
44
|
-
when "
|
|
45
|
-
|
|
44
|
+
when "g", "generate"
|
|
45
|
+
`touch .rubocop.yml`
|
|
46
|
+
`touch .env`
|
|
47
|
+
`touch .gitignore`
|
|
48
|
+
`touch .irbrc`
|
|
49
|
+
when "t", "test"
|
|
50
|
+
`bundle exec rspec`
|
|
51
|
+
when "deploy"
|
|
52
|
+
`gcloud builds submit --config=cloudbuild.yml --project $PROJECT_ID`
|
|
46
53
|
else
|
|
47
54
|
puts "Welcome to Souls!Yeah!"
|
|
48
55
|
end
|
data/lib/souls.rb
CHANGED
data/lib/souls/init.rb
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
require "mechanize"
|
|
2
|
-
|
|
3
1
|
module Souls
|
|
4
|
-
STRAINS = ["service", "api", "media", "admin"]
|
|
2
|
+
STRAINS = ["service", "api", "graph", "media", "admin"]
|
|
5
3
|
module Init
|
|
6
4
|
class << self
|
|
7
5
|
def create_souls strain: 1, app_name: "souls"
|
|
@@ -73,9 +71,10 @@ module Souls
|
|
|
73
71
|
end
|
|
74
72
|
|
|
75
73
|
def get_version repository_name: "souls_service"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
data = JSON.parse `curl \
|
|
75
|
+
-H "Accept: application/vnd.github.v3+json" \
|
|
76
|
+
-s https://api.github.com/repos/elsoul/#{repository_name}/releases`
|
|
77
|
+
data[0]["tag_name"]
|
|
79
78
|
end
|
|
80
79
|
|
|
81
80
|
def download_souls app_name: "souls", repository_name: "souls_service"
|
|
@@ -121,6 +120,8 @@ module Souls
|
|
|
121
120
|
new_line.write "# Generated by the SOULs protocol buffer compiler. DO NOT EDIT!\n"
|
|
122
121
|
when 3
|
|
123
122
|
next
|
|
123
|
+
when 4
|
|
124
|
+
new_line.write "require_relative \"#{service}_pb\""
|
|
124
125
|
else
|
|
125
126
|
puts "#{i}: #{line}"
|
|
126
127
|
new_line.write line.to_s
|
data/lib/souls/version.rb
CHANGED
data/rbs/init.rbs
ADDED
data/souls.gemspec
CHANGED
|
@@ -24,6 +24,4 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
spec.bindir = "exe"
|
|
25
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
26
26
|
spec.require_paths = ["lib"]
|
|
27
|
-
spec.add_dependency("google-cloud-firestore", "2.4.0")
|
|
28
|
-
spec.add_dependency("mechanize", "2.7.6")
|
|
29
27
|
end
|
data/v0.0.8.tar.gz
ADDED
|
Binary file
|
metadata
CHANGED
|
@@ -1,44 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: souls
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- POPPIN-FUMI
|
|
8
8
|
- KishiTheMechanic
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
13
|
-
dependencies:
|
|
14
|
-
- !ruby/object:Gem::Dependency
|
|
15
|
-
name: google-cloud-firestore
|
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
requirements:
|
|
18
|
-
- - '='
|
|
19
|
-
- !ruby/object:Gem::Version
|
|
20
|
-
version: 2.4.0
|
|
21
|
-
type: :runtime
|
|
22
|
-
prerelease: false
|
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
24
|
-
requirements:
|
|
25
|
-
- - '='
|
|
26
|
-
- !ruby/object:Gem::Version
|
|
27
|
-
version: 2.4.0
|
|
28
|
-
- !ruby/object:Gem::Dependency
|
|
29
|
-
name: mechanize
|
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
|
31
|
-
requirements:
|
|
32
|
-
- - '='
|
|
33
|
-
- !ruby/object:Gem::Version
|
|
34
|
-
version: 2.7.6
|
|
35
|
-
type: :runtime
|
|
36
|
-
prerelease: false
|
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
38
|
-
requirements:
|
|
39
|
-
- - '='
|
|
40
|
-
- !ruby/object:Gem::Version
|
|
41
|
-
version: 2.7.6
|
|
12
|
+
date: 2021-01-05 00:00:00.000000000 Z
|
|
13
|
+
dependencies: []
|
|
42
14
|
description: SOULS is a Web Application Framework for Microservices on Multi Cloud
|
|
43
15
|
Platform such as Google Cloud Platform, Amazon Web Services, and Alibaba Cloud.
|
|
44
16
|
Auto deploy with scalable condition. You can focus on business logic. No more infra
|
|
@@ -63,6 +35,7 @@ files:
|
|
|
63
35
|
- LICENSE.txt
|
|
64
36
|
- README.md
|
|
65
37
|
- Rakefile
|
|
38
|
+
- Steepfile
|
|
66
39
|
- bin/console
|
|
67
40
|
- bin/setup
|
|
68
41
|
- config/initializers/souls.rb
|
|
@@ -70,7 +43,9 @@ files:
|
|
|
70
43
|
- lib/souls.rb
|
|
71
44
|
- lib/souls/init.rb
|
|
72
45
|
- lib/souls/version.rb
|
|
46
|
+
- rbs/init.rbs
|
|
73
47
|
- souls.gemspec
|
|
48
|
+
- v0.0.8.tar.gz
|
|
74
49
|
homepage: https://github.com/elsoul/souls
|
|
75
50
|
licenses:
|
|
76
51
|
- Apache-2.0
|
|
@@ -78,7 +53,7 @@ metadata:
|
|
|
78
53
|
homepage_uri: https://github.com/elsoul/souls
|
|
79
54
|
source_code_uri: https://github.com/elsoul/souls
|
|
80
55
|
changelog_uri: https://github.com/elsoul/souls
|
|
81
|
-
post_install_message:
|
|
56
|
+
post_install_message:
|
|
82
57
|
rdoc_options: []
|
|
83
58
|
require_paths:
|
|
84
59
|
- lib
|
|
@@ -93,8 +68,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
93
68
|
- !ruby/object:Gem::Version
|
|
94
69
|
version: '0'
|
|
95
70
|
requirements: []
|
|
96
|
-
rubygems_version: 3.
|
|
97
|
-
signing_key:
|
|
71
|
+
rubygems_version: 3.2.3
|
|
72
|
+
signing_key:
|
|
98
73
|
specification_version: 4
|
|
99
74
|
summary: SOULS is a Web Application Framework for Microservices on Multi Cloud Platform
|
|
100
75
|
such as Google Cloud Platform, Amazon Web Services, and Alibaba Cloud. Auto deploy
|