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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fbf04b7803b278fe7386975994f5c16d019b125b
4
- data.tar.gz: 27b112405610ebb0b2c948ba4e1ae0f698fd5ac0
3
+ metadata.gz: 551b1cf8e53fd0ba73e513e32377ad3d6113dfed
4
+ data.tar.gz: 7f701ccda19d0ba463605a217f59433484303206
5
5
  SHA512:
6
- metadata.gz: a474845f4dc5c7c328d860458ce93d5a2769cd850ebb7117cf442662565ab654e1c57f3a209037d43f80a8f5b0b27e54cebfb581f6505aad8f0939c8e14285a1
7
- data.tar.gz: 0f60bc9a972900139d780a22c9c10c0e35afaa46689c5cc8a4bacd22ee1db454fbb34f3ef003d5a92a070255c7f309d0c2fcd3e38e4ffce6c48bfbdff9de2f96
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
- [![Hex.pm](https://img.shields.io/hexpm/v/timber.svg?maxAge=18000=plastic)](https://hex.pm/packages/timber)
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
- [Timber](https://timber.io) is a logging platform with one major difference: Instead of parsing,
11
- which relies on unreadable, unpredictable, hard to use text logs, Timber integrates directly with
12
- your application, producing rich structured events containing metadata and context you couldn't
13
- capture otherwise. It fundamentally changes the way you use your logs.
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** - `mix timber.install`](#installation)
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 specifically for your application**](#the-timber-console)
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, :framework_type, :heroku_drain_url,
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
@@ -0,0 +1,9 @@
1
+ require "timber/events/error"
2
+
3
+ module Timber
4
+ module Events
5
+ # DEPRECATION: This class is deprecated in favor of using {Timber:Events:Error}.
6
+ class Exception < Error
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module Timber
2
- VERSION = "2.1.2"
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.2
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-07-31 00:00:00.000000000 Z
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