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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67894dc9503115a270183203cec5bf556adbef6de7e91603363398f59fee6601
4
- data.tar.gz: f95954755b496799dc4a563c05e9e2d5161d38911d51e8f71bb419a92d5c3c2a
3
+ metadata.gz: b6e0e5aefeb1e77b272a066f4e530779c522fa1d58d1e4890beda19db2e2c203
4
+ data.tar.gz: eccef83149a4c29c751ada19d6d1db07fa961d983322986b49ff40d33954255d
5
5
  SHA512:
6
- metadata.gz: ab19d943d236d7737b3145a7ea0c76e68ca4a553b879dea44ef421da09bbe6cfb96c8dfdc09ea4b635cf1db904d617c2c3e322ec2ace6f42110578417aa93308
7
- data.tar.gz: 9157b3203796559c6c7fe5ed86dc52772716b3c1c89c1b6ff6ed94db92032ee739d1e54734516cf6edec5a256d768d6552a275d5d32e11a37e9aa84d538b51f5
6
+ metadata.gz: 2feb9eef3d42a4f9d07e710c2608ab00bb903484a98ba890ed259a7e7cbc7dbcea68b00bf69e493d9921f4362b79bfc314e961ccb147a559c5e835b287942b62
7
+ data.tar.gz: 70544c5334f85c6b8a7d7087840169a98578d57249d6ac3eb29412c70ae04759f0f28bc488ebba333a1ac3dbeac55122e44f9dd63baa74757baf9f08ddb3f7ee
@@ -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" => deprecated ? "deprecated" : "preferred"
75
+ "normative_status" => normative_status
70
76
  }
71
77
 
72
78
  set["geographical_area"] = geographical_area if geographical_area
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Termium
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: termium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose