relaton-ogc 0.2.1 → 0.3.0

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
  SHA256:
3
- metadata.gz: 0da47cdfe49ae2e8d98c228fcc1263e6fa9468ac3f1e11771b0ed24ae7296d46
4
- data.tar.gz: d33635804651942b1964153d6d0d62d6c05431e31cdda0b733951ad99b232dde
3
+ metadata.gz: dd369bd93e7d9ccc286c604e7750ccb3e66b583872da0d5765941ea5060c8a6e
4
+ data.tar.gz: be011f5b6a0057252be6e9c9f16d1c866dd031235200dd4ec6ad5941f25f6d88
5
5
  SHA512:
6
- metadata.gz: 815d3a7e44e78695438a7d4d6cc7635ca1c1fb2789c51876051f3719d355fd41ebdd34d477d753083c5eb6ed0a21f5eebd9e1d76e4e20f7bf77af907ce8299be
7
- data.tar.gz: 8606ab24757f04bf89e560c9c3c896e11e9cd494c634e92053d8de88512603ba33eb1220232de1e9674487d4d5cf9aa807aab58f7284d25a773768cef7029c81
6
+ metadata.gz: 9bfa6e97f6a5fe77c113adf7ee7dcf1cb312ce46bafbc78fd1827fe1fc36c3de143b293bc114fbfdded130cb8580adcf59c31c4622debbc252125a2a309a3b2f
7
+ data.tar.gz: 0b02cf99a358149c541a8e6351c841f2e871eab916c215f337ce78d8aae7ec3fa081d63e4d093a0f4b46e4957723f104774b93ff666df5b0cc21a3d54cd03716
data/.gitignore CHANGED
@@ -11,3 +11,4 @@
11
11
  # rspec failure tracking
12
12
  .rspec_status
13
13
  .rubocop-https---raw-githubusercontent-com-riboseinc-oss-guides-master-ci-rubocop-yml
14
+ Gemfile.lock
data/README.adoc CHANGED
@@ -1,5 +1,13 @@
1
1
  = RelatonOgc
2
2
 
3
+ image:https://img.shields.io/gem/v/relaton-ogc.svg["Gem Version", link="https://rubygems.org/gems/relaton-ogc"]
4
+ image:https://github.com/relaton/relaton-ogc/workflows/macos/badge.svg["Build Status (macOS)", link="https://github.com/relaton/relaton-ogc/actions?workflow=macos"]
5
+ image:https://github.com/relaton/relaton-ogc/workflows/windows/badge.svg["Build Status (Windows)", link="https://github.com/relaton/relaton-ogc/actions?workflow=windows"]
6
+ image:https://github.com/relaton/relaton-ogc/workflows/ubuntu/badge.svg["Build Status (Ubuntu)", link="https://github.com/relaton/relaton-ogc/actions?workflow=ubuntu"]
7
+ image:https://codeclimate.com/github/relaton/relaton-ogc/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/relaton/relaton-ogc"]
8
+ image:https://img.shields.io/github/issues-pr-raw/relaton/relaton-ogc.svg["Pull Requests", link="https://github.com/relaton/relaton-ogc/pulls"]
9
+ image:https://img.shields.io/github/commits-since/relaton/relaton-ogc/latest.svg["Commits since latest",link="https://github.com/relaton/relaton-ogc/releases"]
10
+
3
11
  RelatonOgc is a Ruby gem that implements the https://github.com/metanorma/metanorma-model-iso#iso-bibliographic-item[IsoBibliographicItem model].
4
12
 
5
13
  You can use it to retrieve metadata of OGC Standards from https://raw.githubusercontent.com/opengeospatial/NamingAuthority/master/incubation/bibliography/bibliography.json, and access such metadata through the `OgcBibliographicItem` object.
data/grammars/biblio.rng CHANGED
@@ -638,9 +638,9 @@
638
638
  <zeroOrMore>
639
639
  <ref name="license"/>
640
640
  </zeroOrMore>
641
- <optional>
641
+ <zeroOrMore>
642
642
  <ref name="bclassification"/>
643
- </optional>
643
+ </zeroOrMore>
644
644
  <zeroOrMore>
645
645
  <ref name="bkeyword"/>
646
646
  </zeroOrMore>
@@ -5,7 +5,7 @@ module RelatonOgc
5
5
  # @return [RelatonOgc::HitCollection]
6
6
  def search(text, year = nil, opts = {})
7
7
  HitCollection.new text, year, opts
8
- rescue Faraday::Error::ConnectionFailed
8
+ rescue Faraday::ConnectionFailed
9
9
  raise RelatonBib::RequestError, "Could not access https://www.nist.gov"
10
10
  end
11
11
 
@@ -1,3 +1,3 @@
1
1
  module RelatonOgc
2
- VERSION = "0.2.1".freeze
2
+ VERSION = "0.3.0".freeze
3
3
  end
data/relaton_ogc.gemspec CHANGED
@@ -24,7 +24,6 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
25
  spec.require_paths = ["lib"]
26
26
 
27
- spec.add_development_dependency "bundler", "~> 2.0"
28
27
  spec.add_development_dependency "debase"
29
28
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
30
29
  spec.add_development_dependency "rake", "~> 10.0"
@@ -35,6 +34,6 @@ Gem::Specification.new do |spec|
35
34
  spec.add_development_dependency "vcr"
36
35
  spec.add_development_dependency "webmock"
37
36
 
38
- spec.add_dependency "faraday"
39
- spec.add_dependency "relaton-iso-bib", "~> 0.4.0"
37
+ spec.add_dependency "faraday", "~> 1.0.0"
38
+ spec.add_dependency "relaton-iso-bib", "~> 0.5.0"
40
39
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ogc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-16 00:00:00.000000000 Z
11
+ date: 2020-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '2.0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '2.0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: debase
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -154,30 +140,30 @@ dependencies:
154
140
  name: faraday
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
- - - ">="
143
+ - - "~>"
158
144
  - !ruby/object:Gem::Version
159
- version: '0'
145
+ version: 1.0.0
160
146
  type: :runtime
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
- - - ">="
150
+ - - "~>"
165
151
  - !ruby/object:Gem::Version
166
- version: '0'
152
+ version: 1.0.0
167
153
  - !ruby/object:Gem::Dependency
168
154
  name: relaton-iso-bib
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
157
  - - "~>"
172
158
  - !ruby/object:Gem::Version
173
- version: 0.4.0
159
+ version: 0.5.0
174
160
  type: :runtime
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
164
  - - "~>"
179
165
  - !ruby/object:Gem::Version
180
- version: 0.4.0
166
+ version: 0.5.0
181
167
  description: 'RelatonIso: retrieve ISO Standards for bibliographic use using the IsoBibliographicItem
182
168
  model'
183
169
  email:
@@ -193,7 +179,6 @@ files:
193
179
  - ".rspec"
194
180
  - ".rubocop.yml"
195
181
  - Gemfile
196
- - Gemfile.lock
197
182
  - LICENSE.txt
198
183
  - README.adoc
199
184
  - Rakefile
data/Gemfile.lock DELETED
@@ -1,88 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- relaton-ogc (0.2.1)
5
- faraday
6
- relaton-iso-bib (~> 0.4.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- addressable (2.7.0)
12
- public_suffix (>= 2.0.2, < 5.0)
13
- crack (0.4.3)
14
- safe_yaml (~> 1.0.0)
15
- debase (0.2.4)
16
- debase-ruby_core_source (>= 0.10.2)
17
- debase-ruby_core_source (0.10.5)
18
- diff-lcs (1.3)
19
- docile (1.3.2)
20
- equivalent-xml (0.6.0)
21
- nokogiri (>= 1.4.3)
22
- faraday (0.17.1)
23
- multipart-post (>= 1.2, < 3)
24
- hashdiff (1.0.0)
25
- isoics (0.1.8)
26
- json (2.2.0)
27
- mini_portile2 (2.4.0)
28
- multipart-post (2.1.1)
29
- nokogiri (1.10.7)
30
- mini_portile2 (~> 2.4.0)
31
- optout (0.0.2)
32
- public_suffix (4.0.1)
33
- rake (10.5.0)
34
- relaton-bib (0.4.1)
35
- addressable
36
- nokogiri
37
- relaton-iso-bib (0.4.1)
38
- isoics (~> 0.1.6)
39
- relaton-bib (~> 0.4.0)
40
- ruby_deep_clone (~> 0.8.0)
41
- rspec (3.8.0)
42
- rspec-core (~> 3.8.0)
43
- rspec-expectations (~> 3.8.0)
44
- rspec-mocks (~> 3.8.0)
45
- rspec-core (3.8.2)
46
- rspec-support (~> 3.8.0)
47
- rspec-expectations (3.8.4)
48
- diff-lcs (>= 1.2.0, < 2.0)
49
- rspec-support (~> 3.8.0)
50
- rspec-mocks (3.8.1)
51
- diff-lcs (>= 1.2.0, < 2.0)
52
- rspec-support (~> 3.8.0)
53
- rspec-support (3.8.2)
54
- ruby-debug-ide (0.7.0)
55
- rake (>= 0.8.1)
56
- ruby-jing (0.0.1)
57
- optout (>= 0.0.2)
58
- ruby_deep_clone (0.8.0)
59
- safe_yaml (1.0.5)
60
- simplecov (0.17.0)
61
- docile (~> 1.1)
62
- json (>= 1.8, < 3)
63
- simplecov-html (~> 0.10.0)
64
- simplecov-html (0.10.2)
65
- vcr (5.0.0)
66
- webmock (3.7.1)
67
- addressable (>= 2.3.6)
68
- crack (>= 0.3.2)
69
- hashdiff (>= 0.4.0, < 2.0.0)
70
-
71
- PLATFORMS
72
- ruby
73
-
74
- DEPENDENCIES
75
- bundler (~> 2.0)
76
- debase
77
- equivalent-xml (~> 0.6)
78
- rake (~> 10.0)
79
- relaton-ogc!
80
- rspec (~> 3.0)
81
- ruby-debug-ide
82
- ruby-jing
83
- simplecov
84
- vcr
85
- webmock
86
-
87
- BUNDLED WITH
88
- 2.0.2