influxer 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/influxer/client.rb +1 -1
- data/lib/influxer/metrics/scoping/current_scope.rb +16 -2
- data/lib/influxer/version.rb +1 -1
- data/lib/influxer.rb +4 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc1ab76fd0f5d70b0f876a0259d1d46cc3c8e878527a7aadf26c56834db55b55
|
4
|
+
data.tar.gz: 6f31a226c184219b583528d2f3f57d5482839f66dd6bec240ff8bf296360a9f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8661b96cded076dbf6674dd72ade16886ca18f375acdb8406b54a1cb89b25e10efd78aa70d90d1e26cab4dd8356ba57bb1fa2125107ebe07ca308f9b294d4d47
|
7
|
+
data.tar.gz: c7edf962257966dbbc829f0c9cd4dc0d8b924329c3ecd4ca689aaf61c54c6254e7c2f6f06e9b254131578945dcdf5dbceb292de85e934cdcda3bdfcae41393f0
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
## master (unreleased)
|
4
4
|
|
5
|
+
## 1.4.0 (2022-01-24)
|
6
|
+
|
7
|
+
- Fixes [#55](https://github.com/palkan/influxer/issues/55) Rails 7 deprecation warning
|
8
|
+
- Add Ruby3 Support
|
9
|
+
- Updates InfluxDB client dependency
|
10
|
+
- Removes Ruby 2.4 supporting
|
11
|
+
|
5
12
|
## 1.3.0 (2020-10-27)
|
6
13
|
|
7
14
|
- Fixes [#53](https://github.com/palkan/influxer/issues/53) Influxer client configuration issue with anyway config v2 and higher.([@AlexanderShvaykin][])
|
data/lib/influxer/client.rb
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
if Influxer.thread_registry_support?
|
4
|
+
require "active_support/per_thread_registry"
|
5
|
+
else
|
6
|
+
require "active_support/core_ext/module/delegation"
|
7
|
+
end
|
4
8
|
|
5
9
|
module Influxer
|
6
10
|
module Scoping
|
@@ -15,7 +19,17 @@ module Influxer
|
|
15
19
|
end
|
16
20
|
|
17
21
|
class ScopeRegistry # :nodoc:
|
18
|
-
|
22
|
+
if Influxer.thread_registry_support?
|
23
|
+
extend ActiveSupport::PerThreadRegistry
|
24
|
+
else
|
25
|
+
class << self
|
26
|
+
delegate :value_for, :set_value_for, to: :instance
|
27
|
+
|
28
|
+
def instance
|
29
|
+
ActiveSupport::IsolatedExecutionState[:influxer_scope_registry] ||= new
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
19
33
|
|
20
34
|
VALID_SCOPE_TYPES = [:current_scope].freeze
|
21
35
|
|
data/lib/influxer/version.rb
CHANGED
data/lib/influxer.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: influxer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vlad Dem
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.8'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.8'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: anyway_config
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -182,14 +182,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
182
182
|
requirements:
|
183
183
|
- - ">="
|
184
184
|
- !ruby/object:Gem::Version
|
185
|
-
version: 2.
|
185
|
+
version: 2.5.0
|
186
186
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
187
|
requirements:
|
188
188
|
- - ">="
|
189
189
|
- !ruby/object:Gem::Version
|
190
190
|
version: '0'
|
191
191
|
requirements: []
|
192
|
-
rubygems_version: 3.
|
192
|
+
rubygems_version: 3.2.32
|
193
193
|
signing_key:
|
194
194
|
specification_version: 4
|
195
195
|
summary: InfluxDB for Rails
|