adiwg-mdcodes 2.1.3.pre.beta2 → 2.1.3.pre.beta4
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 +4 -4
- data/lib/adiwg/mdcodes.rb +1 -1
- data/lib/adiwg/mdcodes/version.rb +1 -1
- data/package.json +1 -1
- data/resources/adiwg_addressType.yml +1 -1
- data/resources/{iso_contectCode.yml → iso_contextCode.yml} +0 -0
- data/resources/{iso_country.yml → iso_countries.yml} +0 -0
- data/test/tc_mdcodes.rb +10 -4
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d534db4deac4fb57dcf251ced14d8c29716967f6
|
|
4
|
+
data.tar.gz: c4969b12c1efcd6f6b4b4308cdb90cdc6645eb01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 03c3ab97ca355bd814455440f87d76e03a805dc3b54839a9eaaeeac69e597cfb69e84ec1bf0d26fbed3a59b5698b9e59dc81ace37910ffecd76ac1c7c977c34e
|
|
7
|
+
data.tar.gz: ffbd45b0f8d480ebb0926a2bb4b0d6ea7f1172daa35fdc75df3f32d546fcd72a2566bc7e8123c212abd67c5ebbabe80a008ffb01b582790443edafd5e683ad81
|
data/lib/adiwg/mdcodes.rb
CHANGED
|
@@ -20,7 +20,7 @@ module ADIWG
|
|
|
20
20
|
|
|
21
21
|
# return the path to yaml files.
|
|
22
22
|
def self.getYamlPath
|
|
23
|
-
File.join(File.dirname(__FILE__),'..','..','resources')
|
|
23
|
+
File.join(File.dirname(File.expand_path(__FILE__)),'..','..','resources')
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
# return all codelists with full details
|
data/package.json
CHANGED
|
File without changes
|
|
File without changes
|
data/test/tc_mdcodes.rb
CHANGED
|
@@ -32,8 +32,11 @@ class TestMdcodes < Minitest::Test
|
|
|
32
32
|
|
|
33
33
|
def test_getCodelistDetail
|
|
34
34
|
yaml = ADIWG::Mdcodes.getAllCodeistsDetail
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
refute_empty(yaml)
|
|
36
|
+
|
|
37
|
+
yaml.keys.each do |key|
|
|
38
|
+
assert_instance_of(Hash,ADIWG::Mdcodes.getCodelistDetail(key), 'Failed to load ' + key)
|
|
39
|
+
end
|
|
37
40
|
end
|
|
38
41
|
|
|
39
42
|
def test_getAllStaticCodelists
|
|
@@ -42,7 +45,10 @@ class TestMdcodes < Minitest::Test
|
|
|
42
45
|
|
|
43
46
|
def test_getStaticCodelist
|
|
44
47
|
yaml = ADIWG::Mdcodes.getAllStaticCodelists
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
refute_empty(yaml)
|
|
49
|
+
|
|
50
|
+
yaml.keys.each do |key|
|
|
51
|
+
assert_instance_of(Hash,ADIWG::Mdcodes.getStaticCodelist(key), 'Failed to load ' + key)
|
|
52
|
+
end
|
|
47
53
|
end
|
|
48
54
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: adiwg-mdcodes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.3.pre.
|
|
4
|
+
version: 2.1.3.pre.beta4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- stansmith907, jlblcc
|
|
@@ -97,8 +97,8 @@ files:
|
|
|
97
97
|
- resources/iso_cellGeometry.yml
|
|
98
98
|
- resources/iso_characterSet.yml
|
|
99
99
|
- resources/iso_classification.yml
|
|
100
|
-
- resources/
|
|
101
|
-
- resources/
|
|
100
|
+
- resources/iso_contextCode.yml
|
|
101
|
+
- resources/iso_countries.yml
|
|
102
102
|
- resources/iso_coverageContentType.yml
|
|
103
103
|
- resources/iso_currency.yml
|
|
104
104
|
- resources/iso_dataType.yml
|