log_bench 0.1.0 → 0.1.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: e097c5b1822d427d807fe466addf85d9036141cad8922b37c0db0ae79dee994d
4
- data.tar.gz: 4f207f350da8fc94ae2fcbfff2a0b4bfd8021bc477e9093e87c4bb2fb0371c45
3
+ metadata.gz: b0d92e6c1086ecfd4c9905cf1bf5aaaa30491254665629cf52ac5b4a7e25e6b9
4
+ data.tar.gz: 55bbebccbc40cd6de19af7a6cb16368196af421d69906911febabbf2f4732842
5
5
  SHA512:
6
- metadata.gz: c732968d82ef380e7cff012fef5d71ad0996a3b075143226a949881a26e918f72da5776d1fb5b34cf23c346afc3bd4a84dfbc780c93abcb2a2da745801e82d00
7
- data.tar.gz: c543a20c55ed6270612d9ad369c4fe527b94520d0c9d5d7feb9df3c811416476ea9d6b9d08aa4519adc39a4886cb4eb59738aa02e389abdcb4786ca44ba54e21
6
+ metadata.gz: a7f9d99742038dd519e135978620f5550517d9979bdae1f52c8ed52b79ce0b877cb36e97e5a33a05b9b6c53b7af38d61ac354807b9d3745aa5fcc3273e943f51
7
+ data.tar.gz: 42bd3295bdd4fd628bfe145aead3c8d29918200aebf81420306d1ad79ef355904c6c8bd212f0dc03ed4afe4fc67d9d716003174ef3342726ff8c790062b21bbd
@@ -4,10 +4,7 @@ module LogBench
4
4
  class Railtie < Rails::Railtie
5
5
  railtie_name :log_bench
6
6
 
7
- # Add LogBench generators to Rails
8
- generators do
9
- require "generators/log_bench/install_generator"
10
- end
7
+ # LogBench uses manual configuration (see README.md)
11
8
 
12
9
  # Provide helpful rake tasks
13
10
  rake_tasks do
@@ -30,10 +27,11 @@ module LogBench
30
27
  puts "🚀 LogBench is ready to configure!"
31
28
  puts "=" * 70
32
29
  puts "To start using LogBench:"
33
- puts " 1. Configure lograge: bundle exec rails generate log_bench:install"
34
- puts " 2. Restart your Rails server"
35
- puts " 3. Make some requests to generate logs"
36
- puts " 4. View logs: bundle exec log_bench log/development.log"
30
+ puts " 1. See README.md for configuration instructions"
31
+ puts " 2. Configure lograge in config/environments/development.rb"
32
+ puts " 3. Restart your Rails server"
33
+ puts " 4. Make some requests to generate logs"
34
+ puts " 5. View logs: bundle exec log_bench log/development.log"
37
35
  puts
38
36
  end
39
37
  puts "For help: bundle exec log_bench --help"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LogBench
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -1,15 +1,16 @@
1
1
  namespace :log_bench do
2
- desc "Install and configure LogBench with lograge"
2
+ desc "Show LogBench configuration instructions"
3
3
  task :install do
4
- puts "Installing LogBench configuration..."
5
-
6
- if defined?(Rails)
7
- # Run the Rails generator
8
- system("rails generate log_bench:install")
9
- else
10
- puts "This task should be run from a Rails application directory."
11
- puts "Alternatively, run: rails generate log_bench:install"
12
- end
4
+ puts "LogBench Configuration Instructions:"
5
+ puts
6
+ puts "Please see the README.md for complete setup instructions:"
7
+ puts "https://github.com/silva96/log_bench#configuration"
8
+ puts
9
+ puts "Quick setup:"
10
+ puts "1. Add 'require \"lograge\"' to config/environments/development.rb"
11
+ puts "2. Configure lograge and JsonFormatter (see README)"
12
+ puts "3. Set up Current model and ApplicationController"
13
+ puts "4. Restart Rails server"
13
14
  end
14
15
 
15
16
  desc "Check LogBench configuration"
@@ -27,7 +28,7 @@ namespace :log_bench do
27
28
  else
28
29
  puts "⚠️ JSON formatter is not configured"
29
30
  puts " LogBench requires JSON format"
30
- puts " Run: rails generate log_bench:install"
31
+ puts " See README.md for configuration instructions"
31
32
  end
32
33
 
33
34
  # Check if log file exists and has content
@@ -46,10 +47,11 @@ namespace :log_bench do
46
47
  puts "❌ Lograge is not enabled"
47
48
  puts
48
49
  puts "To fix this:"
49
- puts " 1. Run: bundle exec rails generate log_bench:install"
50
- puts " 2. Restart your Rails server"
51
- puts " 3. Make some requests"
52
- puts " 4. Run: bundle exec log_bench log/development.log"
50
+ puts " 1. See README.md for configuration instructions"
51
+ puts " 2. Configure lograge in config/environments/development.rb"
52
+ puts " 3. Restart your Rails server"
53
+ puts " 4. Make some requests"
54
+ puts " 5. Run: bundle exec log_bench log/development.log"
53
55
  end
54
56
  puts "=" * 60 + "\n"
55
57
  end
@@ -66,8 +68,8 @@ namespace :log_bench do
66
68
  2. Run bundle install:
67
69
  bundle install
68
70
 
69
- 3. Configure lograge:
70
- rails generate log_bench:install
71
+ 3. Configure lograge (see README.md):
72
+ https://github.com/silva96/log_bench#configuration
71
73
 
72
74
  4. Restart your Rails server
73
75
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: log_bench
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamín Silva
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-06-05 00:00:00.000000000 Z
10
+ date: 2025-06-06 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: zeitwerk