tdc 0.4.4 → 0.4.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/tdc/extended_attributes/interpreter_registry.rb +7 -0
- data/lib/tdc/fatal_error.rb +0 -3
- data/lib/tdc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eca13ff55c92fc5eb5b78f57e7d4e21fab8cffbc6a06eb3f1e824339b678736b
|
4
|
+
data.tar.gz: '057623005580c59c306cf9efd677cfc36547cba6f2bc633ac456d7d219a0fa90'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f130af08383189a6b21cb2d35a71705efecc6e64fe17e44f13265bc8b4b0967b7a85e8baea4ca1a84effb60b6998de5e57c53c6eff8f1ad979917f37f161093
|
7
|
+
data.tar.gz: 1b3cf70a0abe5fa1b6f6cfcf1c3d3455a227ceeca98ed39714ad65b8ecf786a04af9c83ce5452840b469038661acbc076f6657251c3660519a6dbd2bf2efa98c
|
data/CHANGELOG.md
CHANGED
@@ -14,6 +14,10 @@ module Tdc
|
|
14
14
|
@interpreters = []
|
15
15
|
end
|
16
16
|
|
17
|
+
def clear
|
18
|
+
@interpreters = []
|
19
|
+
end
|
20
|
+
|
17
21
|
def interpreters
|
18
22
|
@interpreters.empty? ? [default_interpreter] : @interpreters
|
19
23
|
end
|
@@ -23,6 +27,9 @@ module Tdc
|
|
23
27
|
Cannot register an interpreter unless it inherits from Tdc::ExtendedAttributes::InterpreterBase
|
24
28
|
MSG
|
25
29
|
|
30
|
+
# Avoid registering the same class of interpreter a second time.
|
31
|
+
return if @interpreters.map(&:class).include?(interpreter.class)
|
32
|
+
|
26
33
|
@interpreters << interpreter
|
27
34
|
end
|
28
35
|
|
data/lib/tdc/fatal_error.rb
CHANGED
data/lib/tdc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tdc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.4
|
4
|
+
version: 0.4.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alistair McKinnell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|