adiwg-mdcodes 1.0.0 → 1.0.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: 8e71aabb7f9d80b5d44032686d6daa7f5ee40584
4
- data.tar.gz: 142754c39535af53bfe11f6e87650507c9914ee0
3
+ metadata.gz: c99c8b1eb19957e7ba77db01b48524ab59d910af
4
+ data.tar.gz: a72c34aeabaf37afb730715691bd79af186fc06b
5
5
  SHA512:
6
- metadata.gz: d877a2358a6dbd8bc058b471072ca93a0fbea72c578b60435087e20f2d541997cb92a69a7153a63000869d52ae9b914ffa44e6ce4e12c5661bf950972468d6db
7
- data.tar.gz: 87a36fd236b3ab267d95049df0e9c64a7a6c9adaae9c516b23d19ee621c000163df6a7951b1ba5e116e121f57a395f0f4e1ffd817b98c4feecc83755ca3d5d1b
6
+ metadata.gz: 6b0af1c4e2a0905327e596df7fd1f6afd4dd467692a21f1419ff5915ce09cd35c8040433bf9b87ce4d3a5f0e66f90282a65fceb1dbe9752a9aebd8921733d8b3
7
+ data.tar.gz: 637070fda3852335700df804344a2c8cab3af011b174b502bf06014a5e306c1346940657621d3e5911f1bee8ca3c40c82844b2a5fb2adc48b4896a180ee43a23
data/.gitignore CHANGED
@@ -1,5 +1,4 @@
1
1
  /.project
2
- /resources/json
3
2
  *.gem
4
3
  *.rbc
5
4
  .bundle
@@ -15,18 +15,29 @@ module.exports = function(grunt) {
15
15
  }]
16
16
  }
17
17
  },
18
-
18
+ "concat-json": {
19
+ mdjson: {
20
+ src: ["iso_*.json"],
21
+ dest: "resources/json/mdcodes.json",
22
+ cwd: "resources/json",
23
+ options: {
24
+ space: " "
25
+ }
26
+ }
27
+ },
19
28
  yamllint: {
20
29
  all: ['resources/**/*.yaml']
21
30
  }
22
31
  });
23
32
  // Each plugin must be loaded following this pattern
24
33
  grunt.loadNpmTasks('grunt-convert');
34
+ grunt.loadNpmTasks('grunt-concat-json');
25
35
  grunt.loadNpmTasks('grunt-yamllint');
26
36
  // Custom task(s).
27
37
  // First argument names the task for use in command line
28
38
  // Second argument is a list of tasks to be run
29
- grunt.registerTask('default', ['yamllint:all', 'convert:yml2json']);
39
+ grunt.registerTask('default', ['yamllint:all', 'convert:yml2json', 'concat-json:mdjson']);
40
+ grunt.registerTask('concat', ['concat-json:mdjson']);
30
41
  grunt.registerTask('lint', ['yamllint:all']);
31
42
 
32
43
  };
data/Rakefile CHANGED
@@ -8,5 +8,14 @@ Rake::TestTask.new do |t|
8
8
  t.verbose = true
9
9
  end
10
10
 
11
+ task :grunt do
12
+ system("rm -rf ./resources/json") # empty the public directory
13
+ system("grunt")
14
+
15
+ system("git add ./resources/json")
16
+ system("git commit -m \"Updating JSON files\"")
17
+ end
18
+
11
19
  desc "Run tests"
12
- task :default => :test
20
+ task default: %w[test]
21
+ task build: %w[grunt]
@@ -10,11 +10,11 @@ Gem::Specification.new do |spec|
10
10
  spec.authors = ["stansmith907, jlblcc"]
11
11
  spec.email = ["stansmith@usgs.gov"]
12
12
  spec.summary = %q{adiwg-mdcodes provides code lists for mdJSON.}
13
- spec.description = %q{adiwg-mdcodes provides code lists for use in ISO 19139 compliant metadata, especially mdJSON. The codes include all ISO 19115-2 and ISO 19115-1 codes plus additional codes from NGDC and ADIwg.}
13
+ spec.description = %q{adiwg-mdcodes provides code lists for use in ISO 19139 compliant metadata, especially mdJSON. The codes include all ISO 19115-1 code extensions from the Alaska Data Integration working group (ADIwg).}
14
14
  spec.homepage = "https://github.com/adiwg/mdCodes"
15
15
  spec.license = "UNLICENSED"
16
16
 
17
- spec.files = %x(git ls-files).split($/)
17
+ spec.files = %x(git ls-files).split($/).delete_if {|fn| /resources\/json\/.*$/.match(fn) }
18
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
19
  spec.test_files = spec.files.grep(%r{^(tc|test|spec|features)/})
20
20
  spec.require_paths = ["lib"]
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "mdcodes",
3
+ "version": "1.0.1",
4
+ "homepage": "https://github.com/adiwg/mdCodes",
5
+ "authors": [
6
+ "Josh Bradley <jbradley@arcticlcc.org>"
7
+ ],
8
+ "description": "Provides code lists for use in ISO 19139 compliant metadata, especially mdJSON. The codes include all ISO 19115-1 code extensions from the Alaska Data Integration working group (ADIwg).",
9
+ "main": "resources/json/mdcodes.json",
10
+ "keywords": [
11
+ "adiwg",
12
+ "metadata",
13
+ "json"
14
+ ],
15
+ "license": "Unlicense",
16
+ "ignore": [
17
+ "**/.*",
18
+ "node_modules",
19
+ "bower_components",
20
+ "test",
21
+ "tests",
22
+ "lib",
23
+ "*.gemspec",
24
+ "Gemfile",
25
+ "Gemfile.lock",
26
+ "pkg",
27
+ "Rakefile",
28
+ "resources/*.yml"
29
+ ]
30
+ }
@@ -9,11 +9,13 @@
9
9
  # 0.2.1 2014-11-10 added support for JSON returns
10
10
  # 0.3.0 2014-11-18 added administrator to role codelist
11
11
  # 0.4.0 2014-12-18 split codelists into individual YAML file
12
+ # 1.0.0 2015-03-11 roll out as version 1
13
+ # 1.0.1 2015-06-11 added new codes to 'scope'
12
14
 
13
15
  module ADIWG
14
16
 
15
17
  module Mdcodes
16
- VERSION = "1.0.0"
18
+ VERSION = "1.0.1"
17
19
  end
18
20
 
19
21
  end
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "mdCodes",
3
- "version": "0.2.1",
2
+ "name": "mdcodes",
3
+ "version": "1.0.1",
4
4
  "description": "CodeLists for ADIwg mdJSON",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,13 +12,14 @@
12
12
  "json"
13
13
  ],
14
14
  "author": "https://github.com/stansmith907, https://github.com/jlblcc",
15
- "license": "UNLICENSE",
15
+ "license": "Unlicense",
16
16
  "bugs": {
17
17
  "url": "https://github.com/adiwg/mdCodes/issues"
18
18
  },
19
19
  "homepage": "https://github.com/adiwg/mdCodes",
20
20
  "devDependencies": {
21
21
  "grunt": "^0.4.5",
22
+ "grunt-concat-json": "0.0.8",
22
23
  "grunt-convert": "^0.1.11",
23
24
  "grunt-yamllint": "^0.2.0"
24
25
  }
@@ -3,7 +3,7 @@
3
3
  # base codelist for ISO 19115-2, 19115-1
4
4
 
5
5
  codelistType: "staticList"
6
- codelistName: iso_"dataType"
6
+ codelistName: "iso_dataType"
7
7
  source: "ISO"
8
8
  sourceName: "MD_DatatypeCode"
9
9
  extensible: true
@@ -6,7 +6,7 @@
6
6
  codelistType: "staticList"
7
7
  codelistName: "iso_onlineFunction"
8
8
  source: "ISO"
9
- sourceName: "CI_OnlineFunctionCode"
9
+ sourceName: "CI_OnLineFunctionCode"
10
10
  extensible: true
11
11
  description: "function performed by the resource"
12
12
  codelist:
@@ -14,7 +14,7 @@ codelist:
14
14
  - {code: "002", codeName: attributeType, description: "information applies to the characteristic of a feature"}
15
15
  - {code: "003", codeName: collectionHardware, description: "information applies to the collection hardware class"}
16
16
  - {code: "004", codeName: collectionSession, description: "information applies to the collection session"}
17
- - {code: "005", codeName: dataset, description: "information applies to the dataset"}
17
+ - {code: "005", codeName: dataset, description: "information applies to a geographic dataset"}
18
18
  - {code: "006", codeName: series, description: "information applies to the series"}
19
19
  - {code: "007", codeName: nonGeographicDataset, description: "information applies to non-geographic data"}
20
20
  - {code: "008", codeName: dimensionGroup, description: "information applies to a dimension group"}
@@ -46,3 +46,9 @@ codelist:
46
46
  - {code: "adiwg008", codeName: collectionSite, description: "Locations where data are collected for scientific research"}
47
47
  - {code: "adiwg009", codeName: project, description: "high level information that applies to research activity such as project title, location, contacts, timeframe, abstract, etc."}
48
48
  - {code: "adiwg010", codeName: factSheet, description: "information applies to fact sheet, pamphlet, flyer, or brochure"}
49
+ - {code: "adiwg011", codeName: tabularDataset, description: "information applies to a tabular dataset, spreadsheet, or relational database"}
50
+ - {code: "adiwg012", codeName: map, description: "information applies to a printed or electronic map"}
51
+ - {code: "adiwg013", codeName: drawing, description: "information applies to a hand drawn or digital drawing"}
52
+ - {code: "adiwg014", codeName: photographicImage, description: "information applies to a still or moving film or video image"}
53
+ - {code: "adiwg015", codeName: presentation, description: "information applies to a collection of presentation slides or recorded presentation"}
54
+
@@ -12,7 +12,7 @@ codelist:
12
12
  - {code: "001", codeName: farming, description: "rearing of animals and/or cultivation of plants. Examples: agriculture, irrigation, aquaculture, plantations, herding, pests and diseases affecting crops and livestock"}
13
13
  - {code: "002", codeName: biota, description: "flora and/or fauna in natural environment. Examples: wildlife, vegetation, biological sciences, ecology, wilderness, sealife, wetlands, habitat."}
14
14
  - {code: "003", codeName: boundaries, description: "legal land descriptions. Examples: political and administrative boundaries."}
15
- - {code: "004", codeName: climatolotyMeteorologyAtmoshphere, description: "processes and phenomena of the atmosphere. Examples: cloud cover, weather, climate, atmospheric conditions, climate change, precipitation"}
15
+ - {code: "004", codeName: climatologyMeteorologyAtmosphere, description: "processes and phenomena of the atmosphere. Examples: cloud cover, weather, climate, atmospheric conditions, climate change, precipitation"}
16
16
  - {code: "005", codeName: economy, description: "economic activities, conditions and employment. Examples: production, labour, revenue, commerce, industry, tourism and ecotourism, forestry, fisheries, commercial or subsistence hunting, exploration and exploitation of resources such as minerals, oil and gas"}
17
17
  - {code: "006", codeName: elevation, description: "height above or below sea level. Examples: altitude, bathymetry, digital elevation models, slope, derived products"}
18
18
  - {code: "007", codeName: environment, description: "environmental resources, protection and conservation. Examples: environmental pollution, waste storage and treatment, environmental impact assessment, monitoring environmental risk, nature reserves, landscape"}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adiwg-mdcodes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - stansmith907, jlblcc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-28 00:00:00.000000000 Z
11
+ date: 2015-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -67,8 +67,8 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.8'
69
69
  description: adiwg-mdcodes provides code lists for use in ISO 19139 compliant metadata,
70
- especially mdJSON. The codes include all ISO 19115-2 and ISO 19115-1 codes plus
71
- additional codes from NGDC and ADIwg.
70
+ especially mdJSON. The codes include all ISO 19115-1 code extensions from the Alaska
71
+ Data Integration working group (ADIwg).
72
72
  email:
73
73
  - stansmith@usgs.gov
74
74
  executables: []
@@ -83,7 +83,7 @@ files:
83
83
  - README.md
84
84
  - Rakefile
85
85
  - adiwg-mdcodes.gemspec
86
- - dev/dev.rb
86
+ - bower.json
87
87
  - lib/adiwg-mdcodes.rb
88
88
  - lib/adiwg/mdcodes.rb
89
89
  - lib/adiwg/mdcodes/version.rb