neeto-commons-backend 1.0.105 → 1.0.107
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/controllers/neeto_commons_backend/well_knowns_controller.rb +10 -0
- data/app/views/neeto_commons_backend/well_knowns/apple_app_site_association.json.jbuilder +1 -5
- data/app/views/neeto_commons_backend/well_knowns/assetlinks.json.jbuilder +1 -9
- data/lib/neeto_commons_backend/initializers/sidekiq.rb +1 -1
- data/lib/neeto_commons_backend/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce5cf3f3cb79016d886ed4328ede57e3e99839ba31bcac71415df1ebdc851284
|
4
|
+
data.tar.gz: c06c955085d5d6698380ff7ed957a98225b9425e1572fe5a8d5fdc83e9aa5e35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7e0d78c9f709da5611e24c5b7c43f8ad656bc1112b2a755bb3319f9e3e921d5e70f4424c047e6d172e723e5fba8f054e036024cadea0faaf052bab0358e203d
|
7
|
+
data.tar.gz: 2045203ae2931e3a9950d218d5c6c67df4d585ee3b13fd367745b2e30870705ea33398db8352f17bd28636ce36ce28478a14e0b32e3061a0c1cbb283f0997ecf
|
data/Gemfile.lock
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
module NeetoCommonsBackend
|
4
4
|
class WellKnownsController < ApplicationController
|
5
|
+
before_action :build_app_name
|
6
|
+
|
5
7
|
def assetlinks
|
6
8
|
render
|
7
9
|
end
|
@@ -9,5 +11,13 @@ module NeetoCommonsBackend
|
|
9
11
|
def apple_app_site_association
|
10
12
|
render
|
11
13
|
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def build_app_name
|
18
|
+
@app_name = Rails.env.staging? ?
|
19
|
+
"#{Rails.application.secrets[:application_name].downcase}.staging" :
|
20
|
+
Rails.application.secrets[:application_name].downcase
|
21
|
+
end
|
12
22
|
end
|
13
23
|
end
|
@@ -5,11 +5,7 @@ json.applinks(
|
|
5
5
|
apps: [],
|
6
6
|
details: [
|
7
7
|
{
|
8
|
-
appID: "5V896MVJUP.com.bigbinary.mobile.#{
|
9
|
-
paths: ["*"]
|
10
|
-
},
|
11
|
-
{
|
12
|
-
appID: "5V896MVJUP.com.bigbinary.mobile.#{Rails.application.secrets[:application_name].downcase}.staging",
|
8
|
+
appID: "5V896MVJUP.com.bigbinary.mobile.#{@app_name}",
|
13
9
|
paths: ["*"]
|
14
10
|
}
|
15
11
|
]
|
@@ -5,15 +5,7 @@ json.array! [
|
|
5
5
|
"relation": ["delegate_permission/common.handle_all_urls"],
|
6
6
|
"target": {
|
7
7
|
"namespace": "android_app",
|
8
|
-
"package_name": "com.bigbinary.mobile.#{
|
9
|
-
"sha256_cert_fingerprints": Rails.application.secrets[:sha256_cert_fingerprints_staging]
|
10
|
-
}
|
11
|
-
},
|
12
|
-
{
|
13
|
-
"relation": ["delegate_permission/common.handle_all_urls"],
|
14
|
-
"target": {
|
15
|
-
"namespace": "android_app",
|
16
|
-
"package_name": "com.bigbinary.mobile.#{Rails.application.secrets[:application_name].downcase}",
|
8
|
+
"package_name": "com.bigbinary.mobile.#{@app_name}",
|
17
9
|
"sha256_cert_fingerprints": Rails.application.secrets[:sha256_cert_fingerprints]
|
18
10
|
}
|
19
11
|
}
|
@@ -29,7 +29,7 @@ module NeetoCommonsBackend
|
|
29
29
|
schedule_file = "config/scheduled_jobs.yml"
|
30
30
|
if File.exist?(schedule_file)
|
31
31
|
Sidekiq::Cron::Job.load_from_hash! YAML.load_file(schedule_file, aliases: true)[Rails.env] ||
|
32
|
-
YAML.load_file(schedule_file)
|
32
|
+
YAML.load_file(schedule_file, aliases: true)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|