adiwg-json_schemas 0.9.0 → 0.9.1

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
  SHA1:
3
- metadata.gz: bf61f69818c170122477fc6357525588b26f3b3c
4
- data.tar.gz: 59566cb829bce2b701f1872bea01bdd6fe4b4b00
3
+ metadata.gz: 63e0cc40589c24d9525d81b0d86fa497c19d9e76
4
+ data.tar.gz: ee6c150c94d7f0786b9137d8e31d5a542e2e5fb7
5
5
  SHA512:
6
- metadata.gz: f8d84782365c586d4b07d45838f2687b7a789bec3ccdee1398618af4ef5580034b01975618452476c009fcad1391253e4cf57850a49e1c01e093010c4cabf68e
7
- data.tar.gz: 43b25a41518c2c39cab662d29ceee04fc25dc45c17f731fc2ee762b281d0560c891e97b95e71bc1b03576e8fd1ca86477ab173f7248c1af9f8f209059509c9d1
6
+ metadata.gz: 84da83cd876c4709a25b17aa5005ea48e15ff509626b1290636c9f0cf4725fc99879b22c6da793f7b33d739d7cf21aaa3032bf5c14d5137442a0d202ea03cc76
7
+ data.tar.gz: f70457995c726cd888f73dead532e1b615eb26651ac86ce77044ef5770284088a6aaae101068b036bbf8e67ed541976cfeff380c6e607f62c355a1d1e61cde8a
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- [![Build Status](https://travis-ci.org/adiwg/adiwg-json-schemas.svg?branch=master)](https://travis-ci.org/adiwg/adiwg-json-schemas)
1
+ [![Build Status](https://travis-ci.org/adiwg/mdJson-schemas.svg?branch=master)](https://travis-ci.org/adiwg/mdJson-schemas)
2
2
 
3
- # adiwg-json-schemas
3
+ # mdJson-schemas
4
4
 
5
5
 
6
6
  JSON schemas for the ADIwg project and data metadata standard
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["jbradley@arcticlcc.org"]
11
11
  spec.description = %q{JSON schemas for validating according to the the ADIwg project and data metadata standard. The schemas comply with JSON Schema draft version 4.}
12
12
  spec.summary = %q{JSON schemas for the ADIwg metadata standard}
13
- spec.homepage = "https://github.com/adiwg/adiwg-json-schemas"
13
+ spec.homepage = "https://github.com/adiwg/mdJson-schemas"
14
14
  spec.license = "UNLICENSE"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
@@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake", ">= 0"
23
23
  spec.add_development_dependency "json-schema", "~> 2.2"
24
- spec.add_development_dependency "test-unit", ">= 0"
24
+ spec.add_development_dependency "minitest", "~>5"
25
25
  end
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version":{
3
3
  "name":"adiwgJson",
4
- "version":"0.8.0"
4
+ "version":"0.9.0"
5
5
  },
6
6
  "contact":[
7
7
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version":{
3
3
  "name":"adiwgJson",
4
- "version":"0.7.0"
4
+ "version":"0.9.0"
5
5
  },
6
6
  "contact":[
7
7
  {
@@ -2322,4 +2322,4 @@
2322
2322
  }
2323
2323
  ]
2324
2324
  }
2325
- }
2325
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version":{
3
3
  "name":"adiwgJson",
4
- "version":"0.8.0"
4
+ "version":"0.9.0"
5
5
  },
6
6
  "contact":[
7
7
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": {
3
3
  "name": "adiwgJson",
4
- "version": "0.8.1"
4
+ "version": "0.9.0"
5
5
  },
6
6
  "contact": [
7
7
  {
@@ -1,6 +1,6 @@
1
1
  module ADIWG
2
2
  module JsonSchemas
3
3
  # Current schema version number
4
- VERSION = "0.9.0"
4
+ VERSION = "0.9.1"
5
5
  end
6
6
  end
@@ -184,7 +184,7 @@
184
184
  "properties": {
185
185
  "individualName": {
186
186
  "type": "string",
187
- "description": "Name of the person surname, given name, title separated by a delimiter.",
187
+ "description": "Name of the person - surname, given name, title separated by a delimiter.",
188
188
  "translation": {
189
189
  "ISO 19115-2": ["CI_ResponsibleParty > individualName"],
190
190
  "FGDC CSDGM": ["cntinfo > cntperp > cntper"]
@@ -36,7 +36,7 @@
36
36
  "properties": {
37
37
  "statement": {
38
38
  "type": "string",
39
- "description": "General explanation of the data producers knowledge about the lineage of a dataset.",
39
+ "description": "General explanation of the data producer's knowledge about the lineage of a dataset.",
40
40
  "translation": {
41
41
  "ISO 19115-2": ["LI_Lineage > statement"]
42
42
  }
@@ -109,7 +109,7 @@
109
109
  "properties": {
110
110
  "name": {
111
111
  "type": "string",
112
- "description": "Name of the format the data is distributed in, such as; dvd, hardcopy, etc.",
112
+ "description": "Name of the format the data is distributed in, such as: dvd, hardcopy, etc.",
113
113
  "translation": {
114
114
  "ISO 19115-2": ["MD_Medium > name [MD_MediumNameCode]"],
115
115
  "FGDC CSDGM": ["distinfo > stdorder > digform > digtopt > offoptn > offmedia"]
@@ -117,7 +117,7 @@
117
117
  },
118
118
  "mediumFormat": {
119
119
  "type": "string",
120
- "description": "Method used by the resource provider to write to the medium, such as; tar, iso9660, etc.",
120
+ "description": "Method used by the resource provider to write to the medium, such as: tar, iso9660, etc.",
121
121
  "translation": {
122
122
  "ISO 19115-2": ["MD_Medium > mediumFormat [MD_MediumFormatCode]"],
123
123
  "FGDC CSDGM": ["distinfo > stdorder > digform > digtopt > offoptn > recfmt"]
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "fileType": {
26
26
  "type": "string",
27
- "description": "Format of the browse graphic, such as; PDF, JPEG, TIFF, etc.",
27
+ "description": "Format of the browse graphic, such as: PDF, JPEG, TIFF, etc.",
28
28
  "translation": {
29
29
  "ISO 19115-2": ["MD_BrowseGraphic > fileType"],
30
30
  "FGDC CSDGM": ["idinfo > browse > browset"]
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "metadataCharacterSet": {
48
48
  "type": "string",
49
- "description": "Full name of the character coding standard used for the metadata set. ",
49
+ "description": "Full name of the character coding standard used for the metadata set.",
50
50
  "translation": {
51
51
  "ISO 19115-2": ["MI_Metadata > characterSet [MD_CharacterSetCode]"]
52
52
  }
@@ -118,7 +118,7 @@
118
118
  "properties": {
119
119
  "associationType": {
120
120
  "type": "string",
121
- "description": "Identifies the type of association, such as; source, cross reference, etc.",
121
+ "description": "Identifies the type of association, such as: source, cross reference, etc.",
122
122
  "translation": {
123
123
  "ISO 19115-2": ["MD_AggregateInformation > associationType [DS_AssociationTypeCode]"]
124
124
  }
@@ -132,7 +132,7 @@
132
132
  },
133
133
  "resourceType": {
134
134
  "type": "string",
135
- "description": "Identifies the type of resource, such as; a dataset, study, publication, etc."
135
+ "description": "Identifies the type of resource, such as: a dataset, study, publication, etc."
136
136
  },
137
137
  "resourceCitation": {
138
138
  "description": "Citation for the associated resource.",
@@ -151,7 +151,7 @@
151
151
  },
152
152
  "additionalDocumentation": {
153
153
  "type": "array",
154
- "description": "Additional references associated with the resource, such as; web sites, documents for additional reading, etc.",
154
+ "description": "Additional references associated with the resource, such as: web sites, documents for additional reading, etc.",
155
155
  "translation": {
156
156
  "ISO 19115-2": ["MD_DataIdentification > aggregationInfo > MD_AggregateInformation > aggregateDataSetName > CI_Citation"],
157
157
  "FGDC CSDGM": ["idinfo > crossref "]
@@ -161,7 +161,7 @@
161
161
  "properties": {
162
162
  "resourceType": {
163
163
  "type": "string",
164
- "description": "Identifies the type of resource, such as; userGuide, website, report, etc."
164
+ "description": "Identifies the type of resource, such as: userGuide, website, report, etc."
165
165
  },
166
166
  "citation": {
167
167
  "$ref": "citation.json#"
@@ -2,7 +2,7 @@
2
2
  "id": "onlineResource.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
4
  "type": "object",
5
- "description": "Information about accessing on-line resources and services.",
5
+ "description": "Information about accessing online resources and services.",
6
6
  "required": ["uri"],
7
7
  "additionalProperties": false,
8
8
  "properties": {
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "protocol": {
20
20
  "type": "string",
21
- "description": "The connection protocol to be used such as ftp, http, etc.",
21
+ "description": "The connection protocol to be used such as: ftp, http, etc.",
22
22
  "translation": {
23
23
  "ISO 19115-2": ["CI_OnlineResource > protocol"]
24
24
  }
@@ -14,7 +14,7 @@
14
14
  "definitions": {
15
15
  "useLimitation": {
16
16
  "type": "string",
17
- "description": "Limitation affecting the fitness for use of the resource or metadata. For example, not to be used for navigation”.",
17
+ "description": "Limitation affecting the fitness for use of the resource or metadata. For example, \"not to be used for navigation\".",
18
18
  "translation": {
19
19
  "ISO 19115-2": ["MD_Constraints > useLimitation"]
20
20
  }
@@ -13,7 +13,7 @@
13
13
  "properties": {
14
14
  "resourceType": {
15
15
  "type": "string",
16
- "description": "Identifies the type of resource, such as; a dataset, study, publication, etc.",
16
+ "description": "Identifies the type of resource, such as: a dataset, study, publication, etc.",
17
17
  "translation": {
18
18
  "ISO 19115-2": ["MI_Metadata > hierarchyLevel [MD_ScopeCode]"]
19
19
  }
@@ -104,7 +104,7 @@
104
104
  },
105
105
  "topicCategory": {
106
106
  "type": "array",
107
- "description": "General theme keyword of the resource, such as; oceans, biota atmosphere, etc.",
107
+ "description": "General theme keyword of the resource, such as: oceans, biota atmosphere, etc.",
108
108
  "translation": {
109
109
  "ISO 19115-2": ["MD_DataIdentification > topicCategory"]
110
110
  },
@@ -114,7 +114,7 @@
114
114
  },
115
115
  "environmentDescription": {
116
116
  "type": "string",
117
- "description": "Description of the dataset in the producers processing environment, including items such as the software, the computer, the computer operating system, file name, and the dataset size.",
117
+ "description": "Description of the dataset in the producer's processing environment, including items such as the software, the computer, the computer operating system, file name, and the dataset size.",
118
118
  "translation": {
119
119
  "ISO 19115-2": ["MD_DataIdentification > environmentDescription"],
120
120
  "FGDC CSDGM": ["idinfo > native"]
@@ -251,7 +251,7 @@
251
251
  },
252
252
  "spatialRepresentation": {
253
253
  "type": "array",
254
- "description": "Format of the resource geographic extent, such as; vector, grid, etc.",
254
+ "description": "Format of the resource geographic extent, such as: vector, grid, etc.",
255
255
  "translation": {
256
256
  "ISO 19115-2": ["MD_DataIdenification > spatialRepresentationType [MD_SpatialRepresentationTypeCode]"],
257
257
  "FGDC CSDGM": ["spdoinfo"]
data/schema/schema.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "id": "schema.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
- "version": "0.8.1",
5
- "description": "schema for ADIwg JSON metadata",
4
+ "version": "0.9.1",
5
+ "description": "schema for ADIwg mdJSON metadata",
6
6
  "type": "object",
7
7
  "required": ["version", "contact", "metadata"],
8
8
  "properties": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": {
3
3
  "name": "adiwgJson",
4
- "version": "0.8.0"
4
+ "version": "0.9.0"
5
5
  },
6
6
  "contact": [
7
7
  {
data/test/tc_schemas.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  * License: Public Domain
6
6
  =end
7
7
 
8
- require 'test/unit'
8
+ require 'minitest/autorun'
9
9
  require 'json'
10
10
  require 'json-schema'
11
11
  require File.join(File.dirname(__FILE__),'..','lib', 'adiwg-json_schemas.rb')
@@ -13,7 +13,7 @@ require File.join(File.dirname(__FILE__),'..','lib', 'adiwg-json_schemas.rb')
13
13
  #json-schema patch
14
14
  require File.join(File.dirname(__FILE__),'..','lib', 'adiwg', 'json_schemas', 'validator.rb')
15
15
 
16
- class TestExamples < Test::Unit::TestCase
16
+ class TestExamples < Minitest::Test
17
17
 
18
18
  @@dir = File.join(File.dirname(__FILE__),'..','schema/')
19
19
  @@ex = File.join(File.dirname(__FILE__),'..','examples/')
data/test/tc_utils.rb CHANGED
@@ -5,10 +5,10 @@
5
5
  * License: Public Domain
6
6
  =end
7
7
 
8
- require "test/unit"
8
+ require 'minitest/autorun'
9
9
  require File.join(File.dirname(__FILE__),'..','lib', 'adiwg-json_schemas.rb')
10
10
 
11
- class TestUtils < Test::Unit::TestCase
11
+ class TestUtils < Minitest::Test
12
12
  def test_examples_dir
13
13
  errors = File.exist?(ADIWG::JsonSchemas::Utils.examples_dir)
14
14
  assert_equal( true, errors, failure_message = 'Examples directory does not exist.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adiwg-json_schemas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Bradley, Stan Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-07 00:00:00.000000000 Z
11
+ date: 2014-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -53,19 +53,19 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.2'
55
55
  - !ruby/object:Gem::Dependency
56
- name: test-unit
56
+ name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '5'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '5'
69
69
  description: JSON schemas for validating according to the the ADIwg project and data
70
70
  metadata standard. The schemas comply with JSON Schema draft version 4.
71
71
  email:
@@ -137,7 +137,7 @@ files:
137
137
  - templates/adiwg_metadata_template.json
138
138
  - test/tc_schemas.rb
139
139
  - test/tc_utils.rb
140
- homepage: https://github.com/adiwg/adiwg-json-schemas
140
+ homepage: https://github.com/adiwg/mdJson-schemas
141
141
  licenses:
142
142
  - UNLICENSE
143
143
  metadata: {}
@@ -164,4 +164,3 @@ summary: JSON schemas for the ADIwg metadata standard
164
164
  test_files:
165
165
  - test/tc_schemas.rb
166
166
  - test/tc_utils.rb
167
- has_rdoc: