hot_catch 0.1.6.2 → 0.1.6.3
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 +5 -5
- data/lib/generators/hot_catch/install_generator.rb +13 -8
- data/lib/hot_catch/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 6e7c255b348cce45bdd28c7640570671c816e39aef5390c67989e304e03d521b
|
|
4
|
+
data.tar.gz: e962ec7f2e85b23dcd99a792cbe11fa160b6fcafbd49fb0b2df908fd687305a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a7010331793cb1d66bdb7d6c8da96bcfb64dfda8858152cc3263967290720511bf25020dbc27ad9791d21f0754b9c43b5bd39262e6cd82378674b282032d1e48
|
|
7
|
+
data.tar.gz: c23bda010071fd6daaada178a5b2d306ebd263d03dd166ae7fd16409c3a6b2abacada37e505f9bd4acd9e1f75335584b23b9cd80a755daa242fd2691c2a2d408
|
|
@@ -13,16 +13,20 @@ module HotCatch
|
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
def change_files
|
|
16
|
-
insert_into_file "config/application.rb", "\nrequire_relative 'hot_catch_logger'\n",
|
|
16
|
+
insert_into_file "config/application.rb", "\nrequire_relative 'hot_catch_logger'\n",
|
|
17
|
+
:before => "module"
|
|
17
18
|
|
|
18
|
-
application "config.middleware.insert_before Rails::Rack::Logger, Rails::Rack::HotCatchLogger\n
|
|
19
|
-
|
|
19
|
+
application "config.middleware.insert_before Rails::Rack::Logger, Rails::Rack::HotCatchLogger\n" +
|
|
20
|
+
"config.middleware.delete Rails::Rack::Logger"
|
|
20
21
|
|
|
21
|
-
insert_string = "\n require 'hot_catch/custom_log_subscribers.rb'
|
|
22
|
-
config.logger = ActiveSupport::TaggedLogging
|
|
22
|
+
insert_string = "\n require 'hot_catch/custom_log_subscribers.rb'" +
|
|
23
|
+
" config.logger = ActiveSupport::TaggedLogging" +
|
|
24
|
+
".new(ActiveSupport::Logger.new('tmp/hot_catch_buf_file'))\n"
|
|
23
25
|
|
|
24
|
-
insert_into_file "config/environments/development.rb", insert_string,
|
|
25
|
-
|
|
26
|
+
insert_into_file "config/environments/development.rb", insert_string,
|
|
27
|
+
:after => "Rails.application.configure do"
|
|
28
|
+
insert_into_file "config/environments/production.rb", insert_string,
|
|
29
|
+
:after => "Rails.application.configure do"
|
|
26
30
|
end
|
|
27
31
|
|
|
28
32
|
def add_hot_catch_config
|
|
@@ -36,7 +40,8 @@ module HotCatch
|
|
|
36
40
|
create_file "config/initializers/hot_catch_sender_logs.rb" do
|
|
37
41
|
"require 'sidekiq-cron'\n" +
|
|
38
42
|
"Rails.application.config.sender_logs = HotCatch::MakeHttpsRequest.new\n" +
|
|
39
|
-
"Sidekiq::Cron::Job.create(name: 'NginxSystemWorker - every 1min', cron:
|
|
43
|
+
"Sidekiq::Cron::Job.create(name: 'NginxSystemWorker - every 1min', cron: " +
|
|
44
|
+
"'*/1 * * * *', class: 'NginxSystemWorker')\n"
|
|
40
45
|
end
|
|
41
46
|
end
|
|
42
47
|
|
data/lib/hot_catch/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hot_catch
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.6.
|
|
4
|
+
version: 0.1.6.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Davhot
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-01-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sidekiq
|
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
93
93
|
version: '0'
|
|
94
94
|
requirements: []
|
|
95
95
|
rubyforge_project:
|
|
96
|
-
rubygems_version: 2.6
|
|
96
|
+
rubygems_version: 2.7.6
|
|
97
97
|
signing_key:
|
|
98
98
|
specification_version: 4
|
|
99
99
|
summary: Summary of Testgem.
|