souls 0.7.3 → 0.7.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08a1ab75d267de552b5a5fb5e0b6e9ad35a61aeed0ff2167132bc19fdd7831b3'
4
- data.tar.gz: 9d4f4ae3d1b9f4b3814eb469a2652ae86493cd3bc430fc02cc0ba48d62f07f3c
3
+ metadata.gz: 0f5bbeaad6e7ccce929325b5a2bf909a4a6e1d5836c00856b0fa04cd373a5b61
4
+ data.tar.gz: df3ade898f6d605d1b372136701b8d72b7509e91f0be594e2ea5a8cb91e4aa0c
5
5
  SHA512:
6
- metadata.gz: bcf2e667107e76569b1a4039b594fc03728add902700b2a097fd558c99a665c7184355c779d645dbe095601bfcea4ad2d2bd3f9875af696335ae44fab4017443
7
- data.tar.gz: 9ff355f1fb46dfe32bb75340f6a996d6edba6da88178471bf35a7c6305b9819efff7539a3d574c23efb25c17966c10c19d7fb81a2c75aced162c37f1e0208a35
6
+ metadata.gz: 4c8c11a33a54a4e37f47b0201154158b0c4849a8a28e932dd5bd084910a345ae24ad28ae26fe7ff33778e4547767faa3285e735ede3a0d23cbd3b1659a280e1f
7
+ data.tar.gz: 37c09659fc9e1702438e2a79528c268b0839cec5af64323ea658ffada6129070ec306f669ccaa95923ccd6bd1cd51c9eabf7c09997ef6f403f726fa23cfd11a5
data/.irbrc CHANGED
@@ -1,3 +0,0 @@
1
- require "souls"
2
- require "./config/initialize/souls"
3
- require "google/cloud/firestore"
@@ -1 +1 @@
1
- 2.7.2
1
+ 3.0.0
data/Gemfile CHANGED
@@ -5,3 +5,4 @@ gemspec
5
5
 
6
6
  gem "rake", "13.0.3"
7
7
  gem "rspec", "3.1.0"
8
+ gem "steep", "0.39.0"
@@ -1,13 +1,39 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- souls (0.7.3)
4
+ souls (0.7.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
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)
19
+ concurrent-ruby (1.1.7)
9
20
  diff-lcs (1.4.4)
21
+ ffi (1.14.2)
22
+ i18n (1.8.7)
23
+ concurrent-ruby (~> 1.0)
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)
10
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)
11
37
  rspec (3.1.0)
12
38
  rspec-core (~> 3.1.0)
13
39
  rspec-expectations (~> 3.1.0)
@@ -20,6 +46,18 @@ GEM
20
46
  rspec-mocks (3.1.3)
21
47
  rspec-support (~> 3.1.0)
22
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)
23
61
 
24
62
  PLATFORMS
25
63
  ruby
@@ -28,6 +66,7 @@ DEPENDENCIES
28
66
  rake (= 13.0.3)
29
67
  rspec (= 3.1.0)
30
68
  souls!
69
+ steep (= 0.39.0)
31
70
 
32
71
  BUNDLED WITH
33
- 2.1.4
72
+ 2.2.4
@@ -0,0 +1,9 @@
1
+ # Steepfile
2
+
3
+ target :app do
4
+ signature "lib/souls/"
5
+
6
+ # check 'app'
7
+ check "rbs"
8
+
9
+ end
data/exe/souls CHANGED
@@ -41,8 +41,23 @@ begin
41
41
  Souls::Init.config
42
42
  when "-v", "--version"
43
43
  puts Souls::VERSION
44
- when "test"
45
- system "ruby greeter_client.rb 'SOULS TEST RUN!'"
44
+ when "g", "generate"
45
+ `touch .rubocop.yml`
46
+ `touch .env`
47
+ `touch .gitignore`
48
+ `touch .irbrc`
49
+ when "t", "test"
50
+ case ARGV[1]
51
+ when "-r"
52
+ `bundle exec rspec`
53
+ when "-s"
54
+ `bundle exec steep check`
55
+ else
56
+ `bundle exec steep check`
57
+ `bundle exec rspec`
58
+ end
59
+ when "deploy"
60
+ `gcloud builds submit --config=cloudbuild.yml --project $PROJECT_ID`
46
61
  else
47
62
  puts "Welcome to Souls!Yeah!"
48
63
  end
@@ -1,5 +1,6 @@
1
1
  require "souls/version"
2
2
  require "souls/init"
3
+ require "json"
3
4
 
4
5
  module Souls
5
6
  class Error < StandardError; end
@@ -148,6 +149,11 @@ module Souls
148
149
  system "gcloud config set project #{project_id}"
149
150
  end
150
151
 
152
+ def config_set
153
+ project_id = Souls.configuration.project_id
154
+ system "gcloud config set project #{project_id}"
155
+ end
156
+
151
157
  def create_cluster
152
158
  app = Souls.configuration.app
153
159
  network = Souls.configuration.network
@@ -192,8 +198,8 @@ module Souls
192
198
  end
193
199
 
194
200
  def create_namespace
195
- app = Souls.configuration.app
196
- system("kubectl create namespace #{app}")
201
+ namespace = Souls.configuration.namespace
202
+ system("kubectl create namespace #{namespace}")
197
203
  end
198
204
 
199
205
  def create_ip
@@ -245,13 +251,21 @@ module Souls
245
251
  app = Souls.configuration.app
246
252
  namespace = Souls.configuration.namespace
247
253
  domain = Souls.configuration.domain
248
- `echo "#{domain}. 300 IN A $(kubectl get ingress --namespace #{namespace} | grep #{app} | awk '{print $3}')" >> ./infra/config/dns_conf`
254
+ `echo "#{domain}. 300 IN A $(kubectl get ingress --namespace #{namespace} | grep #{app} | awk '{print $3}')" >> ./infra/dns_conf`
249
255
  "created dns file!"
250
256
  end
251
257
 
252
258
  def set_dns
253
- project_id = Souls.configuration.project_id
254
- `gcloud dns record-sets import -z=#{project_id} --zone-file-format ./infra/config/dns_conf`
259
+ project_id = Souls.configuration.main_project_id
260
+ `gcloud dns record-sets import -z=#{project_id} --zone-file-format ./infra/dns_conf`
261
+ end
262
+
263
+ def service_api_enable
264
+ `gcloud services enable iam.googleapis.com`
265
+ `gcloud services enable dns.googleapis.com`
266
+ `gcloud services enable container.googleapis.com`
267
+ `gcloud services enable containerregistry.googleapis.com`
268
+ `gcloud services enable servicenetworking.googleapis.com`
255
269
  end
256
270
 
257
271
  def update_container zone: :asia
@@ -163,6 +163,7 @@ module Souls
163
163
  end
164
164
 
165
165
  def api_deploy
166
+ Souls.service_api_enable
166
167
  Souls.create_service_account
167
168
  Souls.create_service_account_key
168
169
  Souls.add_service_account_role
@@ -1,3 +1,3 @@
1
1
  module Souls
2
- VERSION = "0.7.3"
2
+ VERSION = "0.7.9"
3
3
  end
@@ -0,0 +1,2 @@
1
+ module Souls
2
+ end
Binary file
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.7.3
4
+ version: 0.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-01-02 00:00:00.000000000 Z
12
+ date: 2021-01-05 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: SOULS is a Web Application Framework for Microservices on Multi Cloud
15
15
  Platform such as Google Cloud Platform, Amazon Web Services, and Alibaba Cloud.
@@ -35,6 +35,7 @@ files:
35
35
  - LICENSE.txt
36
36
  - README.md
37
37
  - Rakefile
38
+ - Steepfile
38
39
  - bin/console
39
40
  - bin/setup
40
41
  - config/initializers/souls.rb
@@ -42,7 +43,9 @@ files:
42
43
  - lib/souls.rb
43
44
  - lib/souls/init.rb
44
45
  - lib/souls/version.rb
46
+ - rbs/init.rbs
45
47
  - souls.gemspec
48
+ - v0.0.8.tar.gz
46
49
  homepage: https://github.com/elsoul/souls
47
50
  licenses:
48
51
  - Apache-2.0
@@ -65,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
68
  - !ruby/object:Gem::Version
66
69
  version: '0'
67
70
  requirements: []
68
- rubygems_version: 3.1.4
71
+ rubygems_version: 3.2.3
69
72
  signing_key:
70
73
  specification_version: 4
71
74
  summary: SOULS is a Web Application Framework for Microservices on Multi Cloud Platform