logtail-rails 0.1.4 → 0.1.5

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: e8a2816aef51d0ea967a9442a2f564e52688eb284221db42fa5e70ce5bf958df
4
- data.tar.gz: 9bc07029b6fc8b5312f4b71c391b7fc5ac1097f4d5610ffb397efbfd333bdc18
3
+ metadata.gz: f06ff6f125635b3e0222d5b1b4c9a4b1de20dd7a73084144bab4a60b6ae348bd
4
+ data.tar.gz: a94abe2bbc571c46981e65a6f70e00d973745b3147157fa9decd789cc5af78a2
5
5
  SHA512:
6
- metadata.gz: aabbf1f5c8f2b6ae439534d2fb01b9438d304c03edbc1de6383fd28db60be866fc287d74c4ab213881f19a99feb95d87964120143b0ca954f732ec55453a59b1
7
- data.tar.gz: e59e3bc6c3856972092e02907dc1a97f203c6508ddc648dd56db30aee9485f028d4352bf2f05ca11736a8491c09978a2e07fc488c46514a6b3fce6977ee4789a
6
+ metadata.gz: 754a9a6d710e7ac3bf553ef28d882e211356a54f0316b5dd1c56471548bda41bcc6af00c624396a5b5a56323e9959b58080cf76e4f885eb19aeb8578d4ea9b68
7
+ data.tar.gz: b060cafd810fd71accf2838538ee149e88fb325031e12ea55796984b4631e66c71029fc43b07a2a5821267e635d14cc25e9f95a1249acc6ad9b78fee70c67427
@@ -21,24 +21,37 @@ namespace :logtail do
21
21
  config_file = 'config/initializers/logtail.rb'
22
22
 
23
23
  if File.exist?(config_file) && !force
24
- puts "logtail.rb file already exists. Use `rake logtail:install force=true` to overwrite."
24
+ puts "logtail.rb file already exists. Use `rake logtail:install force=true` to overwrite."
25
25
  next
26
26
  end
27
27
 
28
28
  File.open(config_file, 'w') { |out| out.puts(content(source_token)) }
29
29
 
30
- puts <<~EOF unless quiet
31
- Installed a default configuration file at #{config_file}.
32
- EOF
33
-
34
- puts <<~EOF unless quiet
35
- To monitor your logs in production mode, sign up for an account
36
- at logtail.com, and replace the source token in the logtail.rb file
37
- with the one you receive upon registration.
38
- EOF
39
-
40
- puts <<~EOF unless quiet
41
- Visit logtail.com/help if you are experiencing installation issues.
42
- EOF
30
+ return if quiet
31
+
32
+ if source_token.nil? || source_token == ''
33
+ puts <<~EOF
34
+ Installed a default configuration file at #{config_file}.
35
+ EOF
36
+
37
+ puts <<~EOF
38
+ To monitor your logs in production mode, sign up for an account
39
+ at logtail.com, and replace the source token in the logtail.rb file
40
+ with the one you receive upon registration.
41
+ EOF
42
+
43
+ puts <<~EOF
44
+ Visit logtail.com/help if you are experiencing installation issues.
45
+ EOF
46
+ else
47
+ puts <<~EOF
48
+ Installed a configuration file at #{config_file} with a source token
49
+ ending with '#{source_token[-4..]}'.
50
+ EOF
51
+
52
+ puts <<~EOF
53
+ Visit logtail.com/help if you are experiencing installation issues.
54
+ EOF
55
+ end
43
56
  end
44
57
  end
@@ -1,7 +1,7 @@
1
1
  module Logtail
2
2
  module Integrations
3
3
  module Rails
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logtail-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logtail
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-09 00:00:00.000000000 Z
11
+ date: 2021-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logtail