souls 0.33.14 → 0.35.0

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: 15f9c74575ad4f3d425e1e24a912c1018a0afcb6a75b013a8d1d4766c6ae522e
4
- data.tar.gz: f77611374d57e3fef5cee516c86e54454f0bd8284a0e65b67e1d0ed7aecddc79
3
+ metadata.gz: a5811e7d1669c33a4c847ce4a8cc1d39983e1764faac97712fd63287c8cd1b6b
4
+ data.tar.gz: d26cdd9dc0e0c1973b237b23ad0060bfe773c8e43ed56ef7fdef4323a87223af
5
5
  SHA512:
6
- metadata.gz: 81049293753c7fbb341ce97c4064360e4255b34c7b3059e04f288d25e5619476db9a53a14ab65423da11399753f27b8c14afb3e91b94c9a89fd188c13b406c7a
7
- data.tar.gz: 696d8002644a878f3cf8acfe3aebda9bd935a9096d9371e8f72185224c9fb11e980f553bd52b83a821a4e9e5a00c9c83f1eda656df201b2ee629eb30c9dfb606
6
+ metadata.gz: 7c0574be87356a6329d6b0dd3ff3ad1eb7cb31044bccc6d68399ce35548cddb758bb553e0ba80b290d2b0c241a997a8ee1bc489a82e84cf8da323d0413c5a302
7
+ data.tar.gz: 8eae9a2a555476d8cf6a3a0749c612dbaba7735d4df9fb11803291303b5f5c52549e7d207b90cd7f07a848bc6543c0bf701966a04629904e80bb6d768b7cd03f
@@ -28,7 +28,7 @@ module Souls
28
28
  end
29
29
  key = text.join(",").gsub(/^,/, "").chomp!
30
30
  github_repo = `git remote show origin -n | grep 'Fetch URL:' | awk '{print $3}'`.strip
31
- github_repo = "https://github.com/#{github_repo.match(/\:(.+).git/)[1]}" if github_repo.include?("git@github")
31
+ github_repo = "https://github.com/#{github_repo.match(/:(.+).git/)[1]}" if github_repo.include?("git@github")
32
32
  puts(Paint[key, :white])
33
33
  puts(Paint["======= above(ここまで)=======", :cyan])
34
34
  github_secret_url = "#{github_repo}/settings/secrets/actions"
@@ -53,7 +53,9 @@ module Souls
53
53
  FileUtils.rm(file_path)
54
54
  end
55
55
 
56
- def add_service_account_role(service_account: "souls-app", project_id: "souls-app", role: "roles/firebase.admin")
56
+ def add_service_account_role(
57
+ service_account: "souls-app", project_id: "souls-app", role: "roles/firebase.admin"
58
+ )
57
59
  system(
58
60
  "gcloud projects add-iam-policy-binding #{project_id} \
59
61
  --member='serviceAccount:#{service_account}@#{project_id}.iam.gserviceaccount.com' \
@@ -70,8 +72,7 @@ module Souls
70
72
  "roles/iam.serviceAccountUser",
71
73
  "roles/run.admin",
72
74
  "roles/storage.admin",
73
- "roles/storage.objectAdmin",
74
- "roles/iam.serviceAccounts.actAs"
75
+ "roles/storage.objectAdmin"
75
76
  ]
76
77
  roles.each do |role|
77
78
  add_service_account_role(service_account: service_account, project_id: project_id, role: role)
@@ -42,9 +42,10 @@ module Souls
42
42
  else
43
43
  api_file_data = file_diff(Dir["#{api_dir}/*.rb"])
44
44
  worker_file_data = file_diff(Dir["#{worker_dir}/*.rb"])
45
-
46
- api_latest_date = Time.parse(api_file_data.max)
47
- worker_latest_date = Time.parse(worker_file_data.max)
45
+ # rubocop:disable Style/DateTime
46
+ api_latest_date = DateTime.parse(api_file_data.max)
47
+ worker_latest_date = DateTime.parse(worker_file_data.max)
48
+ # rubocop:enable Style/DateTime
48
49
  end
49
50
 
50
51
  if api_latest_date < worker_latest_date
@@ -57,7 +58,7 @@ module Souls
57
58
  system("cp -r #{api_dir}/* #{worker_dir}")
58
59
  end
59
60
  rescue StandardError => e
60
- puts(Paint["`souls api g scaffold $model` at `api` dir first!", :red])
61
+ puts(Paint[e, :red])
61
62
  end
62
63
 
63
64
  def get_models_path(service_name: "api")
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.33.14".freeze
2
+ VERSION = "0.35.0".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.12.14
1
+ 0.14.0
@@ -1 +1 @@
1
- 0.12.14
1
+ 0.14.0
@@ -1,2 +1,2 @@
1
1
  require_relative "./mailer"
2
- require_relative "./mutation"
2
+ require_relative "./mutation"
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.14
4
+ version: 0.35.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
@@ -145,7 +145,6 @@ files:
145
145
  - lib/souls/version.rb
146
146
  - lib/souls/versions/.souls_api_version
147
147
  - lib/souls/versions/.souls_worker_version
148
- - lib/souls/worker/generate.rb
149
148
  - lib/souls/worker/generate/index.rb
150
149
  - lib/souls/worker/generate/mailer.rb
151
150
  - lib/souls/worker/generate/mutation.rb
File without changes