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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f70731b11f532a8b696a9a5d0b856aaaa96fd874
4
- data.tar.gz: 15d133308c41ab3d8e816a1d11af74d53252e61d
2
+ SHA256:
3
+ metadata.gz: 6e7c255b348cce45bdd28c7640570671c816e39aef5390c67989e304e03d521b
4
+ data.tar.gz: e962ec7f2e85b23dcd99a792cbe11fa160b6fcafbd49fb0b2df908fd687305a4
5
5
  SHA512:
6
- metadata.gz: 5107635fb617db5ce4f44976ed253c6deff86f1fb4a27b2829a46bf519941783a83375199e6b04a99c3da981c3c68742eae8d6720f1d06460d944eec71aab7c3
7
- data.tar.gz: b7f5d8aa157b8c9837d8d3913168f99988f222254a555d65e776d28fe1d731372b2dd27ee45c1287c4c30fbb8e406ce81441e4abf8f7e7d7366aade373b161f6
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", :before => "module"
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
- config.middleware.delete Rails::Rack::Logger"
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.new(ActiveSupport::Logger.new('tmp/hot_catch_buf_file'))\n"
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, :after => "Rails.application.configure do"
25
- insert_into_file "config/environments/production.rb", insert_string, :after => "Rails.application.configure do"
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: '*/1 * * * *', class: 'NginxSystemWorker')\n" +
43
+ "Sidekiq::Cron::Job.create(name: 'NginxSystemWorker - every 1min', cron: " +
44
+ "'*/1 * * * *', class: 'NginxSystemWorker')\n"
40
45
  end
41
46
  end
42
47
 
@@ -1,3 +1,3 @@
1
1
  module HotCatch
2
- VERSION = '0.1.6.2'
2
+ VERSION = '0.1.6.3'
3
3
  end
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.2
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: 2017-10-15 00:00:00.000000000 Z
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.12
96
+ rubygems_version: 2.7.6
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Summary of Testgem.