herdst_worker 0.1.14 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8ee87eb31076a5197533170b8cc692ca76281d962a0e296f8ed88bbc535e1af
4
- data.tar.gz: 436409adc17f62f031236eb19d9bd536dc8538b37f435e0853a2c61637896b9a
3
+ metadata.gz: e6b16f6978e9ae1f573c171ed88dc37c7780fe9c320c42e6471f693b723bc23a
4
+ data.tar.gz: 48e44a51345d0caa11c424e547ab35e56165ca7acfd105b738860175700a8097
5
5
  SHA512:
6
- metadata.gz: 750580eba97495e1dcacaeefb309ba4fb60d1562f3235903c0f0ee345301bc145704969beb336515b3ed75890f0b75b8511a305065a4b70ddd096e0f92ed163c
7
- data.tar.gz: c76aece17773f0cf7e9847f1557734835ffaffac2a335a07a11d8480a8418d937481182cdc2ea74373d36640623c0f57724aba4bbb6ed4a7b06f6db71b0b95bd
6
+ metadata.gz: 6682d0b3b950d385405f1180a011c8245fec09c96236c18afdfe1332e38d36c2c0095ad1e047a985eb39d5d69776f96e3563b26055c831f215035e40a7e3fcb5
7
+ data.tar.gz: 25a0be1ce27f3d3363cd7a662c91a96f8eb47ed106ac9d1ea6d64c92243429ebeb836cb18c71cac5d00ec6f0d0d1ee8aebe2cfc57a683e7ae9feed2e95ce5b15
data/ReadMe.md ADDED
File without changes
@@ -74,7 +74,7 @@ module HerdstWorker
74
74
  )
75
75
 
76
76
  Aws.config.update(
77
- region: self.get_aws_region,
77
+ region: self.get_aws_region(credentials),
78
78
  credentials: self.aws_credentials
79
79
  )
80
80
 
@@ -82,10 +82,14 @@ module HerdstWorker
82
82
  end
83
83
 
84
84
 
85
- def get_aws_region
86
- # "ap-southeast-2"
85
+ def get_aws_region(credentials = nil)
86
+ default_region = "ap-southeast-2"
87
87
 
88
- self["AWS_REGION"] = (ENV["AWS_REGION"] || "us-east-1")
88
+ if self.is_prod?
89
+ self["AWS_REGION"] = (ENV["AWS_REGION"] || default_region)
90
+ else
91
+ self["AWS_REGION"] = credentials && credentials["Region"] || default_region
92
+ end
89
93
  end
90
94
 
91
95
 
@@ -103,7 +103,7 @@ module HerdstWorker
103
103
  data[:app_id] = company.id
104
104
  data[:app_name] = company.name
105
105
  data[:app_slug] = company.get_host_name
106
- data[:app_brand_id] = company.brand_id
106
+ data[:app_theme] = company.get_brand
107
107
  data[:app_host] = company.get_url
108
108
  data[:type] = "email"
109
109
  data[:template] = template
@@ -1,3 +1,3 @@
1
1
  module HerdstWorker
2
- VERSION = '0.1.14'
2
+ VERSION = '0.1.16'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: herdst_worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Herd.St
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-21 00:00:00.000000000 Z
11
+ date: 2023-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -230,6 +230,7 @@ extensions: []
230
230
  extra_rdoc_files: []
231
231
  files:
232
232
  - Rakefile
233
+ - ReadMe.md
233
234
  - bin/herdst_worker
234
235
  - bin/herdst_worker_console
235
236
  - lib/herdst_worker.rb