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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52dde0fadd6632da69428d41199325ddebf0e6a4
4
- data.tar.gz: 4f313fdc346a21c1a5ad34ceb384068bab70a6d1
3
+ metadata.gz: c0070dc6695f710539f3827bf7587eefaec03979
4
+ data.tar.gz: 775ab9aec9ad834e629ccdddd0ff08e045d76378
5
5
  SHA512:
6
- metadata.gz: c851eb624acd150eb033bbcdc31685916112ba8d0e69816955d6b66b056cb0aadba55231519299ce409ca487c33e01f6fa0168a7c982734c95c1434830280a4c
7
- data.tar.gz: 20143122643afb851984e7b44cf3f52a6cdf300b8a15e21df332c83f0e1dcd6bbd6881c2acb01dedf3e59dde85b604c2d03a6eb075a921aeccb7c269278baa0a
6
+ metadata.gz: c8dc7a46f2a2d30a778290a9238d64c0725b6be34f62ff98485fd1d2305e69c359e966d5ff3f111ad31168a364ebf9e9c15e5af9103aaa0c81b334fa0bd8e925
7
+ data.tar.gz: 4fe9551096dde4ad67b8e9876e6c1d6bf4f51b9eb155f633ff178abe3dd1544ff867de64d40d065522106ec5e87f1c0d537956a43ed4daa53ac5c00756c03824
@@ -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-beta2] - 2017-11-16
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-beta2...HEAD
122
- [2.6.0-beta2]: https://github.com/timberio/timber-ruby/compare/v2.6.0-beta1...v2.6.0-beta2
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 ||= begin
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
@@ -147,7 +147,6 @@ module Timber
147
147
  req['Authorization'] = authorization_payload
148
148
  req['Content-Type'] = CONTENT_TYPE
149
149
  req['User-Agent'] = USER_AGENT
150
-
151
150
  req.body = msgs.to_msgpack
152
151
  req
153
152
  end
@@ -1,3 +1,3 @@
1
1
  module Timber
2
- VERSION = "2.6.0-beta2"
2
+ VERSION = "2.6.0"
3
3
  end
@@ -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.pre.beta2
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-16 00:00:00.000000000 Z
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: 1.3.1
314
+ version: '0'
315
315
  requirements: []
316
316
  rubyforge_project:
317
317
  rubygems_version: 2.4.5.2