adiwg-mdcodes 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.npmignore +31 -0
- data/.travis.yml +1 -0
- data/README.md +14 -1
- data/bower.json +1 -1
- data/lib/adiwg/mdcodes/version.rb +4 -3
- data/package.json +8 -1
- data/scripts/prepublish.js +32 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67581a0a44a181317960e6c3ba4e5a1d18ae58d1
|
4
|
+
data.tar.gz: 1607524034464481e48e801196353b77af2e1164
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e8bca76e6bfa65ed099231d17f94daf1edef7eb585fa960fb44f3fb32599e35329923086a7d7af881cc68c4c88c45a418f3c8bb02a802a563e05c152bc19d56
|
7
|
+
data.tar.gz: 8f3ab994efa27f33558eea3442c11958680ada78134a98212d781abdc9e6b0dab753805f874f079fd4006ce10c04ba77f79c2250019b31bc29b19ae280760cbb
|
data/.gitignore
CHANGED
data/.npmignore
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
adiwg-mdcodes.gemspec
|
2
|
+
test/*.rb
|
3
|
+
Gemfile
|
4
|
+
lib
|
5
|
+
Rakefile
|
6
|
+
/.project
|
7
|
+
*.gem
|
8
|
+
*.rbc
|
9
|
+
.bundle
|
10
|
+
.config
|
11
|
+
.yardoc
|
12
|
+
.idea
|
13
|
+
Gemfile.lock
|
14
|
+
InstalledFiles
|
15
|
+
_yardoc
|
16
|
+
coverage
|
17
|
+
doc/
|
18
|
+
lib/bundler/man
|
19
|
+
pkg
|
20
|
+
rdoc
|
21
|
+
spec/reports
|
22
|
+
test/tmp
|
23
|
+
test/version_tmp
|
24
|
+
tmp
|
25
|
+
dev
|
26
|
+
*.bundle
|
27
|
+
*.so
|
28
|
+
*.o
|
29
|
+
*.a
|
30
|
+
mkmf.log
|
31
|
+
node_modules
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
[![Build Status](https://travis-ci.org/adiwg/mdCodes.svg)](https://travis-ci.org/adiwg/mdCodes)
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/adiwg-mdcodes.svg)](http://badge.fury.io/rb/adiwg-mdcodes)
|
3
|
+
[![Bower version](https://badge.fury.io/bo/mdcodes.svg)](https://badge.fury.io/bo/mdcodes)
|
4
|
+
[![npm version](https://badge.fury.io/js/mdcodes.svg)](https://badge.fury.io/js/mdcodes)
|
3
5
|
|
4
6
|
# mdCodes
|
5
7
|
|
@@ -7,7 +9,18 @@ mdCodes provides code lists in hash or JSON formats for loading of mdEditor and
|
|
7
9
|
tools that use the ADIwg [mdJson-schemas](https://github.com/adiwg/mdJson-schemas). The code lists
|
8
10
|
include all ISO 19115-2 and ISO 19115-1 codes plus supplemental codes added by NGDC and ADIwg. The
|
9
11
|
code lists may be accessed in Ruby using the gem. Alternatively, JSON may be generated from the YAML
|
10
|
-
using [Grunt](http://gruntjs.com/getting-started).
|
12
|
+
using [Grunt](http://gruntjs.com/getting-started). Bower and NPM packages are available as well.
|
13
|
+
See the following for instructions.
|
14
|
+
|
15
|
+
## Bower
|
16
|
+
|
17
|
+
bower install mdcodes
|
18
|
+
|
19
|
+
## npm
|
20
|
+
|
21
|
+
npm install mdcodes
|
22
|
+
|
23
|
+
**Note:** The npm install will also create JavaScript modules for the codelists.
|
11
24
|
|
12
25
|
## Ruby
|
13
26
|
|
data/bower.json
CHANGED
@@ -13,12 +13,13 @@
|
|
13
13
|
# 1.0.1 2015-06-11 added new codes to 'scope'
|
14
14
|
# 1.1.0 2015-07-22 added codelists for cellGeometry, dimensionNameType, imageCondition, coverageContentType
|
15
15
|
# 1.1.0 2015-07-28 added codelists for country, languages
|
16
|
-
# 1.
|
16
|
+
# 1.2.0 2015-09-18 change source of characterSet from ISO to IANA
|
17
|
+
# 1.2.1 2015-09-28 bumped version number to match gem
|
17
18
|
|
18
19
|
module ADIWG
|
19
20
|
|
20
21
|
module Mdcodes
|
21
|
-
VERSION = "1.2.
|
22
|
+
VERSION = "1.2.2"
|
22
23
|
end
|
23
24
|
|
24
|
-
end
|
25
|
+
end
|
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "mdcodes",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.2",
|
4
4
|
"description": "CodeLists for ADIwg mdJSON",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -22,5 +22,12 @@
|
|
22
22
|
"grunt-concat-json": "0.0.8",
|
23
23
|
"grunt-convert": "^0.1.11",
|
24
24
|
"grunt-yamllint": "^0.2.0"
|
25
|
+
},
|
26
|
+
"scripts": {
|
27
|
+
"prepublish": "scripts/prepublish.js"
|
28
|
+
},
|
29
|
+
"dependencies": {
|
30
|
+
"buildify": "^0.4.0",
|
31
|
+
"rimraf": "^2.4.4"
|
25
32
|
}
|
26
33
|
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
|
3
|
+
'use strict';
|
4
|
+
|
5
|
+
let fs = require('fs');
|
6
|
+
let buildify = require('buildify');
|
7
|
+
let rimraf = require('rimraf');
|
8
|
+
let path = 'resources/js';
|
9
|
+
|
10
|
+
if (fs.statSync(path).isDirectory()) {
|
11
|
+
rimraf.sync(path);
|
12
|
+
console.log('Removed existing resources/js files.');
|
13
|
+
}
|
14
|
+
|
15
|
+
fs.mkdirSync(path);
|
16
|
+
console.log('Created resources/js');
|
17
|
+
|
18
|
+
let files = fs.readdirSync('resources/json');
|
19
|
+
|
20
|
+
for (let file of files) {
|
21
|
+
let name = path + '/' + file.split('.')[0] + '.js';
|
22
|
+
|
23
|
+
buildify()
|
24
|
+
.load('resources/json/' + file)
|
25
|
+
.perform(function(content) {
|
26
|
+
return 'export default ' + content + ';';
|
27
|
+
})
|
28
|
+
.save(name);
|
29
|
+
//console.log('Created ' + name);
|
30
|
+
}
|
31
|
+
|
32
|
+
process.exit();
|
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.2.
|
4
|
+
version: 1.2.2
|
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-
|
11
|
+
date: 2015-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -76,6 +76,7 @@ extensions: []
|
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
78
|
- ".gitignore"
|
79
|
+
- ".npmignore"
|
79
80
|
- ".travis.yml"
|
80
81
|
- Gemfile
|
81
82
|
- Gruntfile.js
|
@@ -114,6 +115,7 @@ files:
|
|
114
115
|
- resources/iso_spatialRepresentation.yml
|
115
116
|
- resources/iso_telephone.yml
|
116
117
|
- resources/iso_topicCategory.yml
|
118
|
+
- scripts/prepublish.js
|
117
119
|
- test/tc_mdcodes.rb
|
118
120
|
homepage: https://github.com/adiwg/mdCodes
|
119
121
|
licenses:
|