app_manager 1.0.0 → 1.0.1

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: 5d1ca5e305b62425f916bcb20e5677a2bc0be1e4b16f2d68879dcce443da5ffe
4
- data.tar.gz: 1d174e5fbd19029a498c539ae908089dfcab7dea8b4d2f43d8e3bf48b9b354ca
3
+ metadata.gz: 8e6965769520fe875a92f79820bd1288c4d46166b3527d3a6a4417d65b530510
4
+ data.tar.gz: e84cdb37ae65da5f86e86630b1892ba335939ff46e61309965c7c12a4974c51d
5
5
  SHA512:
6
- metadata.gz: 1b846e8b38a8fcb8301715c137f23e875828195c9b73bca8e1bbb814cf66fee9565690a296465757955d267fc290f574ba3434a63449657444c52144e0ad7c31
7
- data.tar.gz: 00cdb184943ace69f37c5e166950791e193c67e071a88692a7b81d45de79a5d648ee2c70887c5f3cc1eea1d2ec5df82a7632aa9ae241c7f518c7f8ef52f31abe
6
+ metadata.gz: f1241ef8b8d0bc7c754f0df7647d3c2402eef5eddbba89f6360844c73cdff81c79ec962bd6322aa8a265fcff07c8296abad3ea5034032eb5c2799262a2b39ad4
7
+ data.tar.gz: 43097bc92bad6bb5b7cc43c918b869d565f9bbc2c795312ec15933a71494673c00f79378f2c0e1afbc2cacc75020c05141375b4dec6a77518fb6106fb55318fc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_manager (1.0.0)
4
+ app_manager (1.0.1)
5
5
  httparty
6
6
  kaminari (>= 0.16.3)
7
7
  rails (>= 5.2.0)
@@ -105,18 +105,20 @@ module AppManager
105
105
 
106
106
  def fail_safe_backup
107
107
  params_permit
108
- @fs = AppManager::FailSafe.new
109
- begin
110
- @fs.sync_app_manager
111
- rescue Exception => e
112
- Rails.logger.info "APP MANGAGER >>>> LOCAL DB couldn't sync with POTAL DB #{e.inspect}"
113
- end
114
-
115
- begin
116
- @fs.save_api_data(params)
117
- rescue Exception => e
118
- Rails.logger.info "APP MANGAGER >>>> #{e.inspect}"
119
- end
108
+ Thread.new do
109
+ @fs = AppManager::FailSafe.new
110
+ begin
111
+ @fs.sync_app_manager
112
+ rescue Exception => e
113
+ Rails.logger.info "APP MANGAGER >>>> LOCAL DB couldn't sync with POTAL DB #{e.inspect}"
114
+ end
115
+
116
+ begin
117
+ @fs.save_api_data(params)
118
+ rescue Exception => e
119
+ Rails.logger.info "APP MANGAGER >>>> #{e.inspect}"
120
+ end
121
+ end
120
122
  head :ok
121
123
  end
122
124
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppManager
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hulkapps