souls 0.67.0 → 0.68.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: 1a8a73d2576e7e778ac9c146e667f6a0c6c5b7d60f14d9cd3f87d7a782455da3
4
- data.tar.gz: c6ce668992cb359293852b9e417136d9fd52188e6a2b5c3e33442540856bb827
3
+ metadata.gz: 344ff76de6a0a8d6c520215f572455bcb0f83131e636c0b0fd8ecb2fd6f31255
4
+ data.tar.gz: 18be246dcd49f8b2863861b588c6066361fe984d73a22180c883b33e32e0eb0b
5
5
  SHA512:
6
- metadata.gz: 40eb1a0cab71929a0fec2e6b51c7b8a0a91258065ad1e2f657657be9432c3699fb85a6c67098237bb3da9271384f8dcb9afd569ddb7ad5e918d869a5fa719c44
7
- data.tar.gz: 62f392d86d935bdb41d8976a322e981bd4ab3d069227fd3f6fd1a82b5ce6e7239a14b2ce5cc71b873d7ede4d70382372b31b7ed3b3db48231c009b04fd070bdc
6
+ metadata.gz: f937b45df604657f676dde4a085b9d572e03ed7afec4e6db30029f8c5bb3663bafe781b62428d8ee13fa4dc4b584d6602e95b036e932b5d57e62835e1d89d3d0
7
+ data.tar.gz: c2777fda8e56d4decd0d732bd8758026332dcc5808a337a19e45d91b5f87a2c20f0510306b99decc11e6139551f65a681369bf5c62a036edb72418fc684c58b6
@@ -49,6 +49,8 @@ module Souls
49
49
  end
50
50
  end
51
51
  end
52
+ FileUtils.rm(file_path)
53
+ FileUtils.mv(new_file_path, file_path)
52
54
  end
53
55
 
54
56
  def procfile(worker_name: "mailer", port: 3000)
@@ -11,13 +11,11 @@ module Souls
11
11
  file_path = "#{file_dir}#{singularized_class_name}.rbs"
12
12
  File.open(file_path, "w") do |f|
13
13
  f.write(<<~TEXT)
14
- module Types
15
- module Mutations
16
- String: String
17
- class #{singularized_class_name.camelize} < BaseMutation
18
- def self.description: (String) -> untyped
19
- def self.field: (:response, String, null: false) -> untyped
20
- end
14
+ module Mutations
15
+ String: String
16
+ class #{singularized_class_name.camelize} < BaseMutation
17
+ def self.description: (String) -> untyped
18
+ def self.field: (:response, String, null: false) -> untyped
21
19
  end
22
20
  end
23
21
  TEXT
@@ -28,7 +28,7 @@ module Souls
28
28
 
29
29
  it "return StockSheet Data" do
30
30
  begin
31
- a1 = result.dig("data", "#{singularized_class_name.camelize(:lower)}", "response")
31
+ a1 = result.dig("data", "#{singularized_class_name.camelize(:lower)}")
32
32
  raise unless a1.present?
33
33
  rescue StandardError
34
34
  raise(StandardError, result)
@@ -14,7 +14,7 @@ module Souls
14
14
  def get_topics(workers: {})
15
15
  app_name = Souls.configuration.app
16
16
  project_id = Souls.configuration.project_id
17
- pubsub = Google::Cloud::Pubsub.new
17
+ pubsub = Google::Cloud::Pubsub.new(project_id: ENV["PROJECT_ID"])
18
18
  topics = pubsub.topics
19
19
 
20
20
  topic_names =
@@ -41,7 +41,7 @@ module Souls
41
41
 
42
42
  def create_topic(topic_id: "mailer")
43
43
  app_name = Souls.configuration.app
44
- pubsub = Google::Cloud::Pubsub.new
44
+ pubsub = Google::Cloud::Pubsub.new(project_id: ENV["PROJECT_ID"])
45
45
  topic_name = "souls_#{app_name}_#{topic_id}"
46
46
  topic = pubsub.create_topic(topic_name.to_s)
47
47
  puts("Topic #{topic.name} created.")
@@ -49,7 +49,7 @@ module Souls
49
49
 
50
50
  def delete_topic(topic_id: "mailer")
51
51
  app_name = Souls.configuration.app
52
- pubsub = Google::Cloud::Pubsub.new
52
+ pubsub = Google::Cloud::Pubsub.new(project_id: ENV["PROJECT_ID"])
53
53
  topic_name = "souls_#{app_name}_#{topic_id}"
54
54
  topic = pubsub.topic(topic_name.to_s)
55
55
  topic.delete
@@ -69,7 +69,7 @@ module Souls
69
69
  endpoint = worker[:endpoint] if worker[:name] == worker_name
70
70
  end
71
71
 
72
- pubsub = Google::Cloud::Pubsub.new
72
+ pubsub = Google::Cloud::Pubsub.new(project_id: ENV["PROJECT_ID"])
73
73
 
74
74
  topic = pubsub.topic(topic_name)
75
75
  sub = topic.subscribe(subscription_id, endpoint: endpoint, deadline: 20)
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.67.0".freeze
2
+ VERSION = "0.68.0".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.46.0
1
+ 0.47.0
@@ -1 +1 @@
1
- 0.46.0
1
+ 0.47.0
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.67.0
4
+ version: 0.68.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
8
8
  - KishiTheMechanic
9
9
  - James Neve
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-10-01 00:00:00.000000000 Z
13
+ date: 2021-10-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -207,7 +207,7 @@ metadata:
207
207
  homepage_uri: https://souls.elsoul.nl
208
208
  source_code_uri: https://github.com/elsoul/souls
209
209
  changelog_uri: https://github.com/elsoul/souls
210
- post_install_message:
210
+ post_install_message:
211
211
  rdoc_options: []
212
212
  require_paths:
213
213
  - lib
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  version: '0'
224
224
  requirements: []
225
225
  rubygems_version: 3.2.22
226
- signing_key:
226
+ signing_key:
227
227
  specification_version: 4
228
228
  summary: Welcome to SOULs Serverless Application Framework! - Focus on business logic
229
229
  in serverless environment - Maximize development efficiency with CI / CD standard