Skip to content

Commit

Permalink
Jk/lumberaxe enhancements (#21)
Browse files Browse the repository at this point in the history
* Ignore uploaded files in dev

* Don't implicity setup Rails app

* Bump version
  • Loading branch information
that-jill authored Aug 22, 2022
1 parent f8dc07f commit bde4d45
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
4 changes: 4 additions & 0 deletions packages/lumberaxe/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ vendor/bundle
*.sqlite
*.sqlite3
Gemfile.lock

# Ignore uploaded files in development
/storage/*
!/storage/.keep
2 changes: 1 addition & 1 deletion packages/lumberaxe/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ After installing the gem, require it as part of your application configuration.
```ruby
# application.rb

require "lumberaxe"
require "lumberaxe/railtie"
```

## Setting JSON logging
Expand Down
1 change: 0 additions & 1 deletion packages/lumberaxe/lib/lumberaxe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

require "logger"
require "active_support"
require "lumberaxe/railtie" if defined?(Rails)
require "lumberaxe/logger"
require "lumberaxe/json_formatter"

Expand Down
2 changes: 1 addition & 1 deletion packages/lumberaxe/lib/lumberaxe/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Lumberaxe
class Logger < ::ActiveSupport::Logger
cattr_accessor :log_level
cattr_accessor(:log_level) { :debug }

def initialize(output = $stdout, progname:, level: log_level)
super output
Expand Down
1 change: 1 addition & 0 deletions packages/lumberaxe/lib/lumberaxe/railtie.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require "lograge"
require "lumberaxe"

module Lumberaxe
class Railtie < Rails::Railtie
Expand Down
2 changes: 1 addition & 1 deletion packages/lumberaxe/lib/lumberaxe/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Lumberaxe
VERSION = "0.1.0"
VERSION = "0.1.1"
end
3 changes: 0 additions & 3 deletions packages/lumberaxe/spec/internal/config/storage.yml

This file was deleted.

0 comments on commit bde4d45

Please sign in to comment.