termium 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/termium/entry_term.rb +7 -1
- data/lib/termium/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6e0e5aefeb1e77b272a066f4e530779c522fa1d58d1e4890beda19db2e2c203
|
4
|
+
data.tar.gz: eccef83149a4c29c751ada19d6d1db07fa961d983322986b49ff40d33954255d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2feb9eef3d42a4f9d07e710c2608ab00bb903484a98ba890ed259a7e7cbc7dbcea68b00bf69e493d9921f4362b79bfc314e961ccb147a559c5e835b287942b62
|
7
|
+
data.tar.gz: 70544c5334f85c6b8a7d7087840169a98578d57249d6ac3eb29412c70ae04759f0f28bc488ebba333a1ac3dbeac55122e44f9dd63baa74757baf9f08ddb3f7ee
|
data/lib/termium/entry_term.rb
CHANGED
@@ -62,11 +62,17 @@ module Termium
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
def normative_status
|
66
|
+
return "deprecated" if deprecated
|
67
|
+
|
68
|
+
order == 1 ? "preferred" : "admitted"
|
69
|
+
end
|
70
|
+
|
65
71
|
def to_h
|
66
72
|
set = {
|
67
73
|
"designation" => value,
|
68
74
|
"type" => "expression",
|
69
|
-
"normative_status" =>
|
75
|
+
"normative_status" => normative_status
|
70
76
|
}
|
71
77
|
|
72
78
|
set["geographical_area"] = geographical_area if geographical_area
|
data/lib/termium/version.rb
CHANGED