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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ba7cbdf7d7e3c9778939325506aef341f9ccfc0dcd553a9478ba18953a106b7
4
- data.tar.gz: cf3ad3a94a6dab3334bd096afa58755e630475c669858f14f309f514e1260b33
3
+ metadata.gz: ce5cf3f3cb79016d886ed4328ede57e3e99839ba31bcac71415df1ebdc851284
4
+ data.tar.gz: c06c955085d5d6698380ff7ed957a98225b9425e1572fe5a8d5fdc83e9aa5e35
5
5
  SHA512:
6
- metadata.gz: 4e49f69138da36f0b9eef8c9bfe6216845be086dce6f0614a7e019d34ae8099f841400f2a6f740b4040180952123ff7bf692bd636d839ab9ebe5f8aa236a9d94
7
- data.tar.gz: 77249264571810fd29580c1e06b814c3c249a74dee29432e381fcb31c1923d33c8a3af55160ec1e4cb4c4411deaffb61077c96936cbd5a119a30eacc4051ef26
6
+ metadata.gz: b7e0d78c9f709da5611e24c5b7c43f8ad656bc1112b2a755bb3319f9e3e921d5e70f4424c047e6d172e723e5fba8f054e036024cadea0faaf052bab0358e203d
7
+ data.tar.gz: 2045203ae2931e3a9950d218d5c6c67df4d585ee3b13fd367745b2e30870705ea33398db8352f17bd28636ce36ce28478a14e0b32e3061a0c1cbb283f0997ecf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neeto-commons-backend (1.0.105)
4
+ neeto-commons-backend (1.0.107)
5
5
  actionview
6
6
  bullet
7
7
  database_cleaner
@@ -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.#{Rails.application.secrets[:application_name].downcase}",
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.#{Rails.application.secrets[:application_name].downcase}.staging",
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NeetoCommonsBackend
4
- VERSION = "1.0.105"
4
+ VERSION = "1.0.107"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neeto-commons-backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.105
4
+ version: 1.0.107
5
5
  platform: ruby
6
6
  authors:
7
7
  - Prasanth Chaduvula