timber 2.6.0.pre.beta2 → 2.6.0
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 +4 -4
- data/CHANGELOG.md +3 -10
- data/lib/timber/current_context.rb +1 -7
- data/lib/timber/log_devices/http.rb +0 -1
- data/lib/timber/version.rb +1 -1
- data/spec/timber/current_context_spec.rb +0 -12
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c0070dc6695f710539f3827bf7587eefaec03979
|
|
4
|
+
data.tar.gz: 775ab9aec9ad834e629ccdddd0ff08e045d76378
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c8dc7a46f2a2d30a778290a9238d64c0725b6be34f62ff98485fd1d2305e69c359e966d5ff3f111ad31168a364ebf9e9c15e5af9103aaa0c81b334fa0bd8e925
|
|
7
|
+
data.tar.gz: 4fe9551096dde4ad67b8e9876e6c1d6bf4f51b9eb155f633ff178abe3dd1544ff867de64d40d065522106ec5e87f1c0d537956a43ed4daa53ac5c00756c03824
|
data/CHANGELOG.md
CHANGED
|
@@ -7,13 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
## [2.6.0
|
|
11
|
-
|
|
12
|
-
### Fixed
|
|
13
|
-
|
|
14
|
-
- Fixes an issue where a reference to the current custom context map was being capture during log line creation and then later self-modifying to make the context invalid.
|
|
15
|
-
|
|
16
|
-
## [2.6.0-beta1] - 2017-10-28
|
|
10
|
+
## [2.6.0] - 2017-11-28
|
|
17
11
|
|
|
18
12
|
### Fixed
|
|
19
13
|
|
|
@@ -118,9 +112,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
118
112
|
instead of applying back pressure.
|
|
119
113
|
|
|
120
114
|
|
|
121
|
-
[Unreleased]: https://github.com/timberio/timber-ruby/compare/v2.6.0
|
|
122
|
-
[2.6.0
|
|
123
|
-
[2.6.0-beta1]: https://github.com/timberio/timber-ruby/compare/v2.5.1...v2.6.0-beta1
|
|
115
|
+
[Unreleased]: https://github.com/timberio/timber-ruby/compare/v2.6.0...HEAD
|
|
116
|
+
[2.6.0]: https://github.com/timberio/timber-ruby/compare/v2.5.1...v2.6.0
|
|
124
117
|
[2.5.1]: https://github.com/timberio/timber-ruby/compare/v2.5.0...v2.5.1
|
|
125
118
|
[2.5.0]: https://github.com/timberio/timber-ruby/compare/v2.4.0...v2.5.0
|
|
126
119
|
[2.4.0]: https://github.com/timberio/timber-ruby/compare/v2.3.4...v2.4.0
|
|
@@ -120,13 +120,7 @@ module Timber
|
|
|
120
120
|
# since the context can change as execution proceeds. Note that individual contexts
|
|
121
121
|
# should be immutable, and we implement snapshot caching as a result of this assumption.
|
|
122
122
|
def snapshot
|
|
123
|
-
@snapshot ||=
|
|
124
|
-
snapshot = hash.clone
|
|
125
|
-
if snapshot.key?(:custom)
|
|
126
|
-
snapshot[:custom] = hash[:custom].clone
|
|
127
|
-
end
|
|
128
|
-
snapshot
|
|
129
|
-
end
|
|
123
|
+
@snapshot ||= hash.clone
|
|
130
124
|
end
|
|
131
125
|
|
|
132
126
|
private
|
data/lib/timber/version.rb
CHANGED
|
@@ -98,18 +98,6 @@ describe Timber::CurrentContext, :rails_23 => true do
|
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
-
describe ".snapshot" do
|
|
102
|
-
it "shoud properly snapshot custom contexts" do
|
|
103
|
-
snapshot = nil
|
|
104
|
-
|
|
105
|
-
described_class.with({build: {version: "1.0.0"}}) do
|
|
106
|
-
snapshot = described_class.instance.snapshot
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
expect(snapshot[:custom]).to eq({:build=>{:version=>"1.0.0"}})
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
|
-
|
|
113
101
|
describe ".with" do
|
|
114
102
|
it "should merge the context and cleanup on block exit" do
|
|
115
103
|
expect(described_class.instance.send(:hash)[:custom]).to be_nil
|
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.6.0
|
|
4
|
+
version: 2.6.0
|
|
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-
|
|
11
|
+
date: 2017-11-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: msgpack
|
|
@@ -309,9 +309,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
309
309
|
version: 1.9.0
|
|
310
310
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
311
311
|
requirements:
|
|
312
|
-
- - "
|
|
312
|
+
- - ">="
|
|
313
313
|
- !ruby/object:Gem::Version
|
|
314
|
-
version:
|
|
314
|
+
version: '0'
|
|
315
315
|
requirements: []
|
|
316
316
|
rubyforge_project:
|
|
317
317
|
rubygems_version: 2.4.5.2
|