adiwg-mdtranslator 1.0.0rc3 → 1.0.0rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/lib/adiwg/mdtranslator/readers/mdReaders.rb +1 -1
  3. data/lib/adiwg/mdtranslator/version.rb +1 -1
  4. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_associationType.rb +2 -2
  5. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_characterSet.rb +2 -2
  6. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_classification.rb +2 -2
  7. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_datatype.rb +2 -2
  8. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_dateType.rb +2 -2
  9. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_initiativeType.rb +2 -2
  10. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_keywordType.rb +2 -2
  11. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_maintenanceFrequency.rb +2 -2
  12. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_mediumFormat.rb +2 -2
  13. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_mediumName.rb +2 -2
  14. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_obligation.rb +1 -1
  15. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_onlineFunction.rb +2 -2
  16. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_presentationForm.rb +2 -2
  17. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_progress.rb +2 -2
  18. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_restriction.rb +2 -2
  19. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_role.rb +2 -2
  20. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_scope.rb +2 -2
  21. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_spatialRepresentationType.rb +2 -2
  22. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_topicCategory.rb +1 -1
  23. data/lib/adiwg/mdtranslator/writers/mdWriters.rb +1 -1
  24. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75bc75900fe465a528e7aa5d8f38cbd3fb0b56ac
4
- data.tar.gz: 384f89370f670a8a54fa826100f411b9630ad07a
3
+ metadata.gz: 8f7625afb1133caabe7a7cb101e53e9fe9672e05
4
+ data.tar.gz: 9bab5fff66849950423734dcf2f96497892aceeb
5
5
  SHA512:
6
- metadata.gz: 1673a5248854afd2fd52bdc50e516f12ba2ce083f1e332cf22ebbc44978c9a32af5962d8a79e137919477f27b12583c0ba98a33fc003e713052b0527427cc628
7
- data.tar.gz: 88b3b88bd852e70e505a870fe62f8f56364ec52a7889a04aa7ee9e80461d520b2b4aafe0dd91c3c1b31737b38d996494a93cad4807f355c0cbf715871ae7588c
6
+ metadata.gz: 9d47e890f147f02a963e66d5185182a0ec1f1cf93272027f8c8a668ca31bffe9ff06f0e9b225246bcd7618120e73eadd140232acf97c3cbd0e1ac1e466cc960d
7
+ data.tar.gz: e2508ba2c9ef189438189fcbb4be8898748517b7729a4d1e6fb60782c7024d72424b03a4f32798092213999bebd6553e6ddf0f1b23711a9315d072406e59a2cc
@@ -19,7 +19,7 @@ module ADIWG
19
19
  # if directory path exists, build reader file name and require it
20
20
  readerFile = File.join(readerDir, $response[:readerRequested] + '_reader')
21
21
  require readerFile
22
- readerClassName = $response[:readerRequested].clone
22
+ readerClassName = $response[:readerRequested].dup
23
23
  readerClassName[0] = readerClassName[0].upcase
24
24
  $ReaderNS = ADIWG::Mdtranslator::Readers.const_get(readerClassName)
25
25
 
@@ -41,7 +41,7 @@
41
41
  module ADIWG
42
42
  module Mdtranslator
43
43
  # current mdtranslator version
44
- VERSION = "1.0.0rc3"
44
+ VERSION = "1.0.0rc4"
45
45
  end
46
46
  end
47
47
 
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:MD_ClassificationCode
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2013-10-21 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -34,7 +34,7 @@ module ADIWG
34
34
  end
35
35
 
36
36
  # write xml
37
- @xml.tag!('gmd:DS_AssociationTypeCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#DS_AssociationTypeCode',
37
+ @xml.tag!('gmd:DS_AssociationTypeCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#DS_AssociationTypeCode',
38
38
  :codeListValue => "#{codeName}",
39
39
  :codeSpace => "#{codeID}"})
40
40
  end
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:MD_CharacterSetCode
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2013-08-09 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -80,7 +80,7 @@ module ADIWG
80
80
  end
81
81
 
82
82
  # write xml
83
- @xml.tag!('gmd:MD_CharacterSetCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#MD_CharacterSetCode',
83
+ @xml.tag!('gmd:MD_CharacterSetCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#MD_CharacterSetCode',
84
84
  :codeListValue => "#{codeName}",
85
85
  :codeSpace => "#{codeID}"})
86
86
  end
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:MD_ClassificationCode
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2013-10-21 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -35,7 +35,7 @@ module ADIWG
35
35
  end
36
36
 
37
37
  # write xml
38
- @xml.tag!('gmd:MD_ClassificationCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#MD_ClassificationCode',
38
+ @xml.tag!('gmd:MD_ClassificationCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#MD_ClassificationCode',
39
39
  :codeListValue => "#{codeName}",
40
40
  :codeSpace => "#{codeID}"})
41
41
  end
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:MD_DatatypeCode
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2013-10-21 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -54,7 +54,7 @@ module ADIWG
54
54
  end
55
55
 
56
56
  # write xml
57
- @xml.tag!('gmd:MD_DatatypeCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#MD_DatatypeCode',
57
+ @xml.tag!('gmd:MD_DatatypeCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#MD_DatatypeCode',
58
58
  :codeListValue => "#{codeName}",
59
59
  :codeSpace => "#{codeID}"})
60
60
  end
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:CI_DateTypeCode
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2013-08-09 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -31,7 +31,7 @@ module ADIWG
31
31
  end
32
32
 
33
33
  # write xml
34
- @xml.tag!('gmd:CI_DateTypeCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#CI_DateTypeCode',
34
+ @xml.tag!('gmd:CI_DateTypeCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#CI_DateTypeCode',
35
35
  :codeListValue => "#{codeName}",
36
36
  :codeSpace => "#{codeID}"})
37
37
  end
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:DS_InitiativeTypeCode
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2014-05-21 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -34,7 +34,7 @@ module ADIWG
34
34
  end
35
35
 
36
36
  # write xml
37
- @xml.tag!('gmd:DS_InitiativeTypeCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#DS_InitiativeTypeCode',
37
+ @xml.tag!('gmd:DS_InitiativeTypeCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#DS_InitiativeTypeCode',
38
38
  :codeListValue => "#{codeName}",
39
39
  :codeSpace => "#{codeID}"})
40
40
  end
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:MD_KeywordTypeCode
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2013-09-18 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -39,7 +39,7 @@ module ADIWG
39
39
  end
40
40
 
41
41
  # write xml
42
- @xml.tag!('gmd:MD_KeywordTypeCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#MD_KeywordTypeCode',
42
+ @xml.tag!('gmd:MD_KeywordTypeCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#MD_KeywordTypeCode',
43
43
  :codeListValue => "#{codeName}",
44
44
  :codeSpace => "#{codeID}"})
45
45
  end
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:MD_MaintenanceFrequencyCode
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2013-10-21 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -48,7 +48,7 @@ module ADIWG
48
48
  end
49
49
 
50
50
  # write xml
51
- @xml.tag!('gmd:MD_MaintenanceFrequencyCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#MD_MaintenanceFrequencyCode',
51
+ @xml.tag!('gmd:MD_MaintenanceFrequencyCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#MD_MaintenanceFrequencyCode',
52
52
  :codeListValue => "#{codeName}",
53
53
  :codeSpace => "#{codeID}"})
54
54
  end
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:MD_MediumFormatCode
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2013-09-24 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -37,7 +37,7 @@ module ADIWG
37
37
  end
38
38
 
39
39
  # write xml
40
- @xml.tag!('gmd:MD_MediumFormatCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#MD_MediumFormatCode',
40
+ @xml.tag!('gmd:MD_MediumFormatCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#MD_MediumFormatCode',
41
41
  :codeListValue => "#{codeName}",
42
42
  :codeSpace => "#{codeID}"})
43
43
  end
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:MD_MediumNameCode
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2013-09-24 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -61,7 +61,7 @@ module ADIWG
61
61
  end
62
62
 
63
63
  # write xml
64
- @xml.tag!('gmd:MD_MediumNameCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#MD_MediumNameCode',
64
+ @xml.tag!('gmd:MD_MediumNameCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#MD_MediumNameCode',
65
65
  :codeListValue => "#{codeName}",
66
66
  :codeSpace => "#{codeID}"})
67
67
  end
@@ -1,7 +1,7 @@
1
1
  # ISO <<CodeLists>> gmd:MD_ObligationCode
2
2
  # enumeration
3
3
 
4
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
4
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
5
5
 
6
6
  # History:
7
7
  # Stan Smith 2013-10-21 original script
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:CI_OnLineFunctionCode
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2013-09-26 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -35,7 +35,7 @@ module ADIWG
35
35
  end
36
36
 
37
37
  # write xml
38
- @xml.tag!('gmd:CI_OnLineFunctionCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#CI_OnLineFunctionCode',
38
+ @xml.tag!('gmd:CI_OnLineFunctionCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#CI_OnLineFunctionCode',
39
39
  :codeListValue => "#{codeName}",
40
40
  :codeSpace => "#{codeID}"})
41
41
  end
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:CI_PresentationForm
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2013-11-20 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -52,7 +52,7 @@ module ADIWG
52
52
  end
53
53
 
54
54
  # write xml
55
- @xml.tag!('gmd:CI_PresentationFormCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#CI_PresentationFormCode',
55
+ @xml.tag!('gmd:CI_PresentationFormCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#CI_PresentationFormCode',
56
56
  :codeListValue => "#{codeName}",
57
57
  :codeSpace => "#{codeID}"})
58
58
  end
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:MD_ProgressCode
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2013-08-26 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -39,7 +39,7 @@ module ADIWG
39
39
  end
40
40
 
41
41
  # write xml
42
- @xml.tag!('gmd:MD_ProgressCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#CI_ProgressCode',
42
+ @xml.tag!('gmd:MD_ProgressCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#CI_ProgressCode',
43
43
  :codeListValue => "#{codeName}",
44
44
  :codeSpace => "#{codeID}"})
45
45
  end
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:MD_RestrictionCode
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2013-10-21 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -40,7 +40,7 @@ module ADIWG
40
40
  end
41
41
 
42
42
  # write xml
43
- @xml.tag!('gmd:MD_RestrictionCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#MD_RestrictionCode',
43
+ @xml.tag!('gmd:MD_RestrictionCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#MD_RestrictionCode',
44
44
  :codeListValue => "#{codeName}",
45
45
  :codeSpace => "#{codeID}"})
46
46
  end
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:CI_RoleCode
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2013-08-09 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -47,7 +47,7 @@ module ADIWG
47
47
  end
48
48
 
49
49
  # write xml
50
- @xml.tag!('gmd:CI_RoleCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#CI_RoleCode',
50
+ @xml.tag!('gmd:CI_RoleCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#CI_RoleCode',
51
51
  :codeListValue => "#{codeName}",
52
52
  :codeSpace => "#{codeID}"})
53
53
  end
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:MD_ScopeCode
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2013-08-09 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -56,7 +56,7 @@ module ADIWG
56
56
  end
57
57
 
58
58
  # write xml
59
- @xml.tag!('gmd:MD_ScopeCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#MD_ScopeCode',
59
+ @xml.tag!('gmd:MD_ScopeCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#MD_ScopeCode',
60
60
  :codeListValue => "#{codeName}",
61
61
  :codeSpace => "#{codeID}"})
62
62
  end
@@ -1,6 +1,6 @@
1
1
  # ISO <<CodeLists>> gmd:MD_SpatialRepresentationTypeCode
2
2
 
3
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
3
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
4
4
  # History:
5
5
  # Stan Smith 2013-10-21 original script
6
6
  # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered
@@ -36,7 +36,7 @@ module ADIWG
36
36
  end
37
37
 
38
38
  # write xml
39
- @xml.tag!('gmd:MD_SpatialRepresentationTypeCode', {:codeList => 'http://mdtranslator.herokuapp.com/api/codelists?format=xml#MD_SpatialRepresentationTypeCode',
39
+ @xml.tag!('gmd:MD_SpatialRepresentationTypeCode', {:codeList => 'http://mdtranslator.adiwg.org/api/codelists?format=xml#MD_SpatialRepresentationTypeCode',
40
40
  :codeListValue => "#{codeName}",
41
41
  :codeSpace => "#{codeID}"})
42
42
  end
@@ -1,7 +1,7 @@
1
1
  # ISO <<CodeLists>> gmd:MD_TopicCategoryCode
2
2
  # Enumeration
3
3
 
4
- # from http://mdtranslator.herokuapp.com/api/codelists?format=xml
4
+ # from http://mdtranslator.adiwg.org/api/codelists?format=xml
5
5
  # History:
6
6
  # Stan Smith 2013-10-21 original script
7
7
  # Stan Smith 2014-12-12 refactored to handle namespacing readers and writers
@@ -27,7 +27,7 @@ module ADIWG
27
27
  # if directory path exists, build writer file name and then require it
28
28
  writerFile = File.join(writerDir, $response[:writerName] + '_writer')
29
29
  require writerFile
30
- writerClassName = $response[:writerName].clone
30
+ writerClassName = $response[:writerName].dup
31
31
  writerClassName[0] = writerClassName[0].upcase
32
32
  $WriterNS = ADIWG::Mdtranslator::Writers.const_get(writerClassName)
33
33
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adiwg-mdtranslator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0rc3
4
+ version: 1.0.0rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stan Smith