timber 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -8
- data/lib/timber/cli/api/application.rb +2 -3
- data/lib/timber/cli/installers.rb +2 -2
- data/lib/timber/cli/io/messages.rb +1 -2
- data/lib/timber/events/exception.rb +9 -0
- data/lib/timber/version.rb +2 -2
- data/spec/timber/cli/installers/config_file_spec.rb +1 -2
- data/spec/timber/cli/installers/other_spec.rb +1 -2
- data/spec/timber/cli/installers/rails_spec.rb +1 -2
- data/spec/timber/cli/installers/root_spec.rb +1 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 551b1cf8e53fd0ba73e513e32377ad3d6113dfed
|
4
|
+
data.tar.gz: 7f701ccda19d0ba463605a217f59433484303206
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bf3d315d1f5d9a8bcfdbc4020fc712e709e7d74ddb4223e50b8f15b7dbaecfc4a068621282dbfe05c198d2b08e6704fafc1feae5ab7f798ed59de4f3a6d8c76
|
7
|
+
data.tar.gz: 2186c8a2d25d2d06f47af2f4b6093c0b1d364ada661b7c965387e91978323211e6387cbb078550f1ab1c29716351e9f832465acc948ffaa287f55e044ab4be15
|
data/README.md
CHANGED
@@ -1,20 +1,19 @@
|
|
1
1
|
# 🌲 Timber - Log Better. Solve Problems Faster.
|
2
2
|
|
3
3
|
[![ISC License](https://img.shields.io/badge/license-ISC-ff69b4.svg)](LICENSE.md)
|
4
|
-
[![
|
5
|
-
[![Documentation](https://img.shields.io/badge/hexdocs-latest-blue.svg)](https://hexdocs.pm/timber/index.html)
|
4
|
+
[![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://www.rubydoc.info/github/timberio/timber-ruby)
|
6
5
|
[![Build Status](https://travis-ci.org/timberio/timber-ruby.svg?branch=master)](https://travis-ci.org/timberio/timber-ruby)
|
7
6
|
|
8
7
|
## Overview
|
9
8
|
|
10
|
-
|
11
|
-
|
12
|
-
your
|
13
|
-
|
9
|
+
Timber for Ruby is an drop-in replacement for your ruby `Logger` that transparently augments your
|
10
|
+
logs with critical metadata and context. It's structured logging without all of the noise; turning
|
11
|
+
your logs into rich, useful, readable events. When paired with the
|
12
|
+
[Timber console](#the-timber-console), Timber will fundamentally change the way you use your logs.
|
14
13
|
|
15
|
-
1. [**Easy setup** - `
|
14
|
+
1. [**Easy setup** - `bundle exec timber install`](#installation)
|
16
15
|
2. [**Seamlessly integrates with popular libraries and frameworks**](#jibber-jabber)
|
17
|
-
3. [**Modern fast console, designed
|
16
|
+
3. [**Modern fast console, designed for Ruby application logging**](#the-timber-console)
|
18
17
|
|
19
18
|
|
20
19
|
## Installation
|
@@ -6,13 +6,12 @@ module Timber
|
|
6
6
|
TEST_ENVIRONMENT = "test".freeze
|
7
7
|
HEROKU = "heroku".freeze
|
8
8
|
|
9
|
-
attr_accessor :api_key, :environment, :
|
9
|
+
attr_accessor :api_key, :environment, :heroku_drain_url,
|
10
10
|
:name, :platform_type
|
11
11
|
|
12
12
|
def initialize(attributes)
|
13
13
|
@api_key = attributes.fetch("api_key")
|
14
14
|
@environment = attributes.fetch("environment")
|
15
|
-
@framework_type = attributes.fetch("framework_type")
|
16
15
|
@heroku_drain_url = attributes.fetch("heroku_drain_url")
|
17
16
|
@name = attributes.fetch("name")
|
18
17
|
@platform_type = attributes.fetch("platform_type")
|
@@ -32,4 +31,4 @@ module Timber
|
|
32
31
|
end
|
33
32
|
end
|
34
33
|
end
|
35
|
-
end
|
34
|
+
end
|
@@ -53,7 +53,7 @@ module Timber
|
|
53
53
|
io.puts ""
|
54
54
|
io.puts "Once you obtain your API key, you can run the installer like"
|
55
55
|
io.puts ""
|
56
|
-
io.puts " #{IO::ANSI.colorize("bundle exec timber my-api-key", :blue)}"
|
56
|
+
io.puts " #{IO::ANSI.colorize("bundle exec timber install my-api-key", :blue)}"
|
57
57
|
io.puts ""
|
58
58
|
io.puts "See you soon! 🎈"
|
59
59
|
io.puts ""
|
@@ -72,4 +72,4 @@ module Timber
|
|
72
72
|
end
|
73
73
|
end
|
74
74
|
end
|
75
|
-
end
|
75
|
+
end
|
@@ -23,7 +23,6 @@ module Timber
|
|
23
23
|
Woot! Your API 🔑 is valid:
|
24
24
|
|
25
25
|
Name: #{app.name} (#{app.environment})
|
26
|
-
Framework: #{app.framework_type}
|
27
26
|
Platform: #{app.platform_type}
|
28
27
|
MESSAGE
|
29
28
|
message.rstrip
|
@@ -209,4 +208,4 @@ MESSAGE
|
|
209
208
|
end
|
210
209
|
end
|
211
210
|
end
|
212
|
-
end
|
211
|
+
end
|
data/lib/timber/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Timber
|
2
|
-
VERSION = "2.1.
|
3
|
-
end
|
2
|
+
VERSION = "2.1.3"
|
3
|
+
end
|
@@ -6,7 +6,6 @@ describe Timber::CLI::Installers::ConfigFile, :rails_23 => true do
|
|
6
6
|
attributes = {
|
7
7
|
"api_key" => api_key,
|
8
8
|
"environment" => "development",
|
9
|
-
"framework_type" => "rails",
|
10
9
|
"heroku_drain_url" => "http://drain.heroku.com",
|
11
10
|
"name" => "My Rails App",
|
12
11
|
"platform_type" => "other"
|
@@ -55,4 +54,4 @@ describe Timber::CLI::Installers::ConfigFile, :rails_23 => true do
|
|
55
54
|
end
|
56
55
|
end
|
57
56
|
end
|
58
|
-
end
|
57
|
+
end
|
@@ -8,7 +8,6 @@ describe Timber::CLI::Installers::Other, :rails_23 => true do
|
|
8
8
|
attributes = {
|
9
9
|
"api_key" => api_key,
|
10
10
|
"environment" => "development",
|
11
|
-
"framework_type" => "rails",
|
12
11
|
"heroku_drain_url" => "http://drain.heroku.com",
|
13
12
|
"name" => "My Rails App",
|
14
13
|
"platform_type" => "other"
|
@@ -47,4 +46,4 @@ describe Timber::CLI::Installers::Other, :rails_23 => true do
|
|
47
46
|
end
|
48
47
|
end
|
49
48
|
end
|
50
|
-
end
|
49
|
+
end
|
@@ -6,7 +6,6 @@ describe Timber::CLI::Installers::Rails, :rails_23 => true do
|
|
6
6
|
attributes = {
|
7
7
|
"api_key" => api_key,
|
8
8
|
"environment" => "development",
|
9
|
-
"framework_type" => "rails",
|
10
9
|
"heroku_drain_url" => "http://drain.heroku.com",
|
11
10
|
"name" => "My Rails App",
|
12
11
|
"platform_type" => "other"
|
@@ -352,4 +351,4 @@ CODE
|
|
352
351
|
end
|
353
352
|
end
|
354
353
|
end
|
355
|
-
end
|
354
|
+
end
|
@@ -8,7 +8,6 @@ describe Timber::CLI::Installers::Root, :rails_23 => true do
|
|
8
8
|
attributes = {
|
9
9
|
"api_key" => api_key,
|
10
10
|
"environment" => "development",
|
11
|
-
"framework_type" => "rails",
|
12
11
|
"heroku_drain_url" => "http://drain.heroku.com",
|
13
12
|
"name" => "My Rails App",
|
14
13
|
"platform_type" => "other"
|
@@ -98,4 +97,4 @@ describe Timber::CLI::Installers::Root, :rails_23 => true do
|
|
98
97
|
end
|
99
98
|
end
|
100
99
|
end
|
101
|
-
end
|
100
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timber Technologies, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|
@@ -183,6 +183,7 @@ files:
|
|
183
183
|
- lib/timber/events/controller_call.rb
|
184
184
|
- lib/timber/events/custom.rb
|
185
185
|
- lib/timber/events/error.rb
|
186
|
+
- lib/timber/events/exception.rb
|
186
187
|
- lib/timber/events/http_request.rb
|
187
188
|
- lib/timber/events/http_response.rb
|
188
189
|
- lib/timber/events/sql_query.rb
|