souls 0.33.3 → 0.33.7

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: adf31a88940fff2ee709f3e6a65a8c0b380c8a98d2c219f15b3205020a90b272
4
- data.tar.gz: 4cb05c4da3e40a9d739d7225e18ecdf5b247883a45a6d62715ae7308b4dfea35
3
+ metadata.gz: 0a6f4928cb5e49f41978f3820bdb8d7382e8433b0af9ca9910dd46fef8192c71
4
+ data.tar.gz: 36933a33337761ef2a04487ca141036f000c0312e0ffa8bbad819a118bfa2cac
5
5
  SHA512:
6
- metadata.gz: de578128a64aa2c1785a7ef263485735ff34beb07c9da88728b437244f18771c48858603bbc3ef37bef2d35cc8e7a638a5862f95c482ae7ea61ca7b83a2c0176
7
- data.tar.gz: a6d3cb9080a7ec39750ba2035f889e99bd348a9e2b4db7507873ff5f9da44e15addf8662f29acdc2f693f200f42ba1d15bd10943b039718349e5a6ad61d44b0f
6
+ metadata.gz: d7fb6c262cddaa13bfd101456ba195e37503894f1c0de81b0a5c77d58e9993bd4b5f241c8a37b2a6a2a47ea201c11cc7d71afb53d37240a1c44d9c692b7ddb48
7
+ data.tar.gz: b6b5de2a7db9ae4796b2881d0a15573b380ac6adfa63b100944d7b700e480c145ac9bf7a2ca32eb67f324a8c8b7deae5c422859a815be8f16d9c79c2df9269c3
data/README.md CHANGED
@@ -36,7 +36,7 @@ SOULs フレームワークでは [Monorepo](https://en.wikipedia.org/wiki/Monor
36
36
  SOULs creates 3 types of framework.
37
37
 
38
38
  1. API - GraphQL (Ruby) - Simple API - Cloud Run
39
- 2. Worker - Google Pub/Sub Worker API (Ruby) - Cloud Run
39
+ 2. Worker - Google Pub/Sub Messaging Worker API (Ruby) - Cloud Run
40
40
  3. Frontend - React Application (TypeScript) - Firebase
41
41
 
42
42
  ## Dependency
@@ -53,7 +53,6 @@ SOULs creates 3 types of framework.
53
53
  - [Google Cloud Pub/Sub](https://cloud.google.com/pubsub)
54
54
  - [Google Cloud Storage](https://cloud.google.com/run)
55
55
  - [Google Cloud IAM](https://cloud.google.com/iam)
56
- - [Google Cloud DNS](https://cloud.google.com/dns)
57
56
  - [Google Cloud Container Registry](https://cloud.google.com/container-registry)
58
57
  - [Google Firebase](https://firebase.google.com/)
59
58
  - [Google Cloud Scheduler](https://cloud.google.com/scheduler)
@@ -90,7 +89,7 @@ And Create Your APP
90
89
  `Gemfile`, `Gemfile.lock` を最新のバージョンに自動更新します。
91
90
 
92
91
  ```
93
- souls gem:update
92
+ souls upgrade gemfile
94
93
  ```
95
94
 
96
95
 
@@ -103,7 +102,6 @@ Souls.configure do |config|
103
102
  config.app = "souls-api"
104
103
  config.project_id = "souls-api"
105
104
  config.strain = "api"
106
- config.github_repo = "elsoul/souls"
107
105
  config.fixed_gems = ["selenium-webdriver", "pg"]
108
106
  end
109
107
  ```
data/exe/souls CHANGED
@@ -60,6 +60,8 @@ begin
60
60
  when "new"
61
61
  args = ARGV
62
62
  Souls::Init.start(args)
63
+ when "bashrc", "zshrc"
64
+ Souls::Init.generate_cd
63
65
  when "s", "server"
64
66
  system("foreman start -f Procfile.dev")
65
67
  when "c", "console"
@@ -5,6 +5,20 @@ module Souls
5
5
  def create_migration(class_name: "user")
6
6
  pluralized_class_name = class_name.underscore.pluralize
7
7
  system("rake db:create_migration NAME=create_#{pluralized_class_name}")
8
+ file_path = Dir["db/migrate/*create_#{pluralized_class_name}.rb"].first
9
+ File.open(file_path, "w") do |f|
10
+ f.write(<<~TEXT)
11
+ class Create#{pluralized_class_name.camelize} < ActiveRecord::Migration[6.1]
12
+ def change
13
+ create_table :#{pluralized_class_name} do |t|
14
+
15
+ t.boolean :is_deleted, null: false, default: false
16
+ t.timestamps
17
+ end
18
+ end
19
+ end
20
+ TEXT
21
+ end
8
22
  end
9
23
 
10
24
  def add_column(class_name: "user")
@@ -18,7 +18,6 @@ module Souls
18
18
  end
19
19
 
20
20
  def export_key_to_console
21
- github_repo = Souls.configuration.github_repo || "elsoul/souls"
22
21
  file_path = "config/keyfile.json"
23
22
  puts(Paint["======= below(ここから)=======", :cyan])
24
23
  text = []
@@ -28,9 +27,10 @@ module Souls
28
27
  end
29
28
  end
30
29
  key = text.join(",").gsub(/^,/, "").chomp!
30
+ github_repo = `git remote show origin -n | grep 'Fetch URL:' | awk '{print $3}'`.strip
31
31
  puts(Paint[key, :white])
32
32
  puts(Paint["======= above(ここまで)=======", :cyan])
33
- github_secret_url = "https://github.com/#{github_repo}/settings/secrets/actions"
33
+ github_secret_url = "#{github_repo}/settings/secrets/actions"
34
34
  souls_doc_url = "https://souls.elsoul.nl/docs/tutorial/zero-to-deploy/#43-github-シークレットキーの登録"
35
35
  txt1 = <<~TEXT
36
36
 
data/lib/souls/init.rb CHANGED
@@ -17,7 +17,7 @@ module Souls
17
17
  else
18
18
  "bash"
19
19
  end
20
- system("echo 'alias api=\'cd apps/api\'' >> ~/.#{rc}")
20
+ system("echo '\nalias api=\'cd apps/api\'' >> ~/.#{rc}")
21
21
  system("echo 'alias mother=\'...\'' >> ~/.#{rc}")
22
22
  system("echo 'alias worker=\'cd apps/worker\'' >> ~/.#{rc}")
23
23
  puts(Paint["run `source ~/.#{rc}` to reflect your .#{rc}", :yellow])
@@ -72,7 +72,6 @@ module Souls
72
72
  config.app = "#{app_name}"
73
73
  config.project_id = "#{app_name}"
74
74
  config.strain = "mother"
75
- config.github_repo = "elsoul/souls"
76
75
  config.fixed_gems = ["excluded_gem"]
77
76
  end
78
77
  TEXT
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.33.3".freeze
2
+ VERSION = "0.33.7".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.12.3
1
+ 0.12.7
@@ -1 +1 @@
1
- 0.12.3
1
+ 0.12.7
@@ -18,7 +18,7 @@ module Souls
18
18
  def resolve
19
19
  # Define Job Here
20
20
 
21
- { response: "Job queued!" }
21
+ { response: "Job done!" }
22
22
  rescue StandardError => e
23
23
  GraphQL::ExecutionError.new(e.to_s)
24
24
  end
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.33.3
4
+ version: 0.33.7
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-08-27 00:00:00.000000000 Z
13
+ date: 2021-08-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport