timber 2.2.2 → 2.2.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: 62c1e9bd7a4079eb4ed1a4eb32a7ab86fb778aff
4
- data.tar.gz: 3b691205541b0b4ee5167b4de97f140d564c0488
3
+ metadata.gz: ef7182ad5bb03fc0f9a971879ae012c10520f359
4
+ data.tar.gz: 384aa8c04255fb098c6611e36ab30e9684dbcc75
5
5
  SHA512:
6
- metadata.gz: 623d729db1e9877541ceef08dce3539f6035730b26b9a99fd8369baa01b5caaa71c311a202066bddcd312fd2b73312c285dfc4fe957fdf2d5aa9130115a10c98
7
- data.tar.gz: 68520ef4be2813478114db8554543a938f801a782ffafc19c4ffb8cde032532200bb2e169f222e751b042fad86a314765ec16e1165965740faf70ba6dba10e67
6
+ metadata.gz: 06b4a003bf003e06c6a775e48d573571ded4604daff22a120d00ed8ee3eec1f5a8dcdb7747648a1df48b6ff99a863e0287a89e7a1ffadf29bbc0a11813f94f0b
7
+ data.tar.gz: 8bfdbdc650516fd1aa24ba9c6c8955f849167a7fd4a8291f03929e1bac437b48f691bde7c3c8fd49a61b8911947ae2e4934540634bbb1d3404d153ade9f630a9
@@ -7,13 +7,23 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.2.3] - 2017-09-18
11
+
12
+ ### Fixed
13
+
14
+ - Update the installer to be platform aware, recommending the appropriate delivery method
15
+ for the application's platform.
16
+
17
+
10
18
  ## [2.2.2] - 2017-09-14
19
+
11
20
  ### Fixed
12
21
 
13
22
  - Remove Railtie ordering clause based on devise omniauth initializer. This is no longer
14
23
  necessary since we do not integrate with Omniauth anymore.
15
24
 
16
25
  ## [2.2.1] - 2017-09-13
26
+
17
27
  ### Changed
18
28
 
19
29
  - Omniauth integration was removed since it only captures user context during the Authentication
@@ -21,6 +31,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
21
31
  and could cause unintended issues.
22
32
 
23
33
  ## [2.2.0] - 2017-09-13
34
+
24
35
  ### Changed
25
36
 
26
37
  - The default HTTP log device queue type was switched to a
@@ -29,7 +40,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
29
40
  instead of applying back pressure.
30
41
 
31
42
 
32
- [Unreleased]: https://github.com/timberio/timber-ruby/compare/v2.2.2...HEAD
33
- [2.2.2]: https://github.com/timberio/timber-ruby/compare/v2.2.0...v2.2.2
43
+ [Unreleased]: https://github.com/timberio/timber-ruby/compare/v2.2.3...HEAD
44
+ [2.2.2]: https://github.com/timberio/timber-ruby/compare/v2.2.2...v2.2.3
45
+ [2.2.2]: https://github.com/timberio/timber-ruby/compare/v2.2.1...v2.2.2
34
46
  [2.2.1]: https://github.com/timberio/timber-ruby/compare/v2.2.0...v2.2.1
35
47
  [2.2.0]: https://github.com/timberio/timber-ruby/compare/v2.1.10...v2.2.0
data/README.md CHANGED
@@ -48,9 +48,9 @@ logger.error("Error message")
48
48
  logger.fatal("Fatal message")
49
49
  ```
50
50
 
51
- 1. [Search it](https://timber.io/docs/app/console/searching) with queries like: `error message`
52
- 2. [Alert on it](https://timber.io/docs/app/console/alerts) with threshold based alerts
53
- 3. [View this event's metadata and context](https://timber.io/docs/app/console/view-metadata-and-context)
51
+ * [Search it](https://timber.io/docs/app/console/searching) with queries like: `error message`
52
+ * [Alert on it](https://timber.io/docs/app/console/alerts) with threshold based alerts
53
+ * [View this event's metadata and context](https://timber.io/docs/app/console/view-metadata-and-context)
54
54
 
55
55
  [...read more in our docs](https://timber.io/docs/languages/ruby/usage/basic-logging)
56
56
 
@@ -66,9 +66,9 @@ Log structured data without sacrificing readability:
66
66
  logger.warn "Payment rejected", payment_rejected: {customer_id: "abcd1234", amount: 100, reason: "Card expired"}
67
67
  ```
68
68
 
69
- 1. [Search it](https://timber.io/docs/app/console/searching) with queries like: `type:payment_rejected` or `payment_rejected.amount:>100`
70
- 2. [Alert on it](https://timber.io/docs/app/console/alerts) with threshold based alerts
71
- 4. [View this event's data and context](https://timber.io/docs/app/console/view-metadata-and-context)
69
+ * [Search it](https://timber.io/docs/app/console/searching) with queries like: `type:payment_rejected` or `payment_rejected.amount:>100`
70
+ * [Alert on it](https://timber.io/docs/app/console/alerts) with threshold based alerts
71
+ * [View this event's data and context](https://timber.io/docs/app/console/view-metadata-and-context)
72
72
 
73
73
  ...[read more in our docs](https://timber.io/docs/languages/ruby/usage/custom-events)
74
74
 
@@ -88,8 +88,8 @@ Timber.with_context(job: {id: 123}) do
88
88
  end
89
89
  ```
90
90
 
91
- 1. [Search it](https://timber.io/docs/app/console/searching) with queries like: `job.id:123`
92
- 2. [View this context when viewing a log's metadata](https://timber.io/docs/app/console/view-metadata-and-context)
91
+ * [Search it](https://timber.io/docs/app/console/searching) with queries like: `job.id:123`
92
+ * [View this context when viewing a log's metadata](https://timber.io/docs/app/console/view-metadata-and-context)
93
93
 
94
94
  ...[read more in our docs](https://timber.io/docs/languages/ruby/usage/custom-context)
95
95
 
@@ -113,9 +113,9 @@ Log generic metrics:
113
113
  logger.info("Credit card charged", credit_card_charge: {amount: 123.23})
114
114
  ```
115
115
 
116
- 1. [Search it](https://timber.io/docs/app/console/searching) with queries like: `background_job.time_ms:>500`
117
- 2. [Alert on it](https://timber.io/docs/app/console/alerts) with threshold based alerts
118
- 3. [View this log's metadata in the console](https://timber.io/docs/app/console/view-metadata-and-context)
116
+ * [Search it](https://timber.io/docs/app/console/searching) with queries like: `background_job.time_ms:>500`
117
+ * [Alert on it](https://timber.io/docs/app/console/alerts) with threshold based alerts
118
+ * [View this log's metadata in the console](https://timber.io/docs/app/console/view-metadata-and-context)
119
119
 
120
120
  ...[read more in our docs](https://timber.io/docs/languages/ruby/usage/metrics-and-timings)
121
121
 
@@ -4,6 +4,8 @@ require "timber/cli/io/messages"
4
4
  module Timber
5
5
  class CLI
6
6
  class Installer
7
+ DEPRIORITIZED_PLATFORMS = ["linux", "other"].freeze
8
+
7
9
  attr_reader :io, :api, :file_helper
8
10
 
9
11
  def initialize(io, api)
@@ -18,10 +20,10 @@ module Timber
18
20
 
19
21
  private
20
22
  def get_delivery_strategy(app)
21
- if app.heroku?
22
- :stdout
23
- else
23
+ if DEPRIORITIZED_PLATFORMS.include?(app.platform_type)
24
24
  :http
25
+ else
26
+ :stdout
25
27
  end
26
28
  end
27
29
 
@@ -6,12 +6,13 @@ module Timber
6
6
  module Installers
7
7
  class Other < Installer
8
8
  def run(app)
9
- if app.heroku?
10
- install_stdout
11
- else
9
+ case get_delivery_strategy(app)
10
+ when :http
12
11
  api_key_storage_preference = get_api_key_storage_preference
13
12
  api_key_code = get_api_key_code(api_key_storage_preference)
14
13
  install_http(api_key_code)
14
+ when :stdout
15
+ install_stdout
15
16
  end
16
17
 
17
18
  ask_to_proceed
@@ -1,3 +1,3 @@
1
1
  module Timber
2
- VERSION = "2.2.2"
2
+ VERSION = "2.2.3"
3
3
  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.2.2
4
+ version: 2.2.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-09-14 00:00:00.000000000 Z
11
+ date: 2017-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack