iecbib 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/README.adoc +15 -4
- data/iecbib.gemspec +1 -1
- data/lib/iecbib/iec_bibliography.rb +1 -1
- data/lib/iecbib/version.rb +1 -1
- data/lib/relaton/processor.rb +4 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 734a19a758fa1e66bd77553d4d0112fe916d020e3e767c98a834ea279e97f5e3
|
4
|
+
data.tar.gz: ce07f84366f28b2f3d43ea477b7810024da673783fef07636ad28f25da8efcf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96b342ed0b6c2dde9319a5580553609ccc5a1637273e50f01e22ee1c0b0e1f2319004b9e1ebe203fb9886b8c0782fe6c18ff3d1b346a9217b1464b3e1185bfa9
|
7
|
+
data.tar.gz: 258909fd3da87275d645480d685ef3ae60bdf41e4648fd33e9f8503eb0bd0399242d60e3bae7e3dfe9ad598e0e230bde8481b409cb4c5a2030bb7049382a576e
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
iecbib (0.
|
4
|
+
iecbib (0.2.0)
|
5
5
|
addressable
|
6
|
-
iso-bib-item (~> 0.
|
6
|
+
iso-bib-item (~> 0.4.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -19,7 +19,7 @@ GEM
|
|
19
19
|
equivalent-xml (0.6.0)
|
20
20
|
nokogiri (>= 1.4.3)
|
21
21
|
hashdiff (0.3.7)
|
22
|
-
iso-bib-item (0.
|
22
|
+
iso-bib-item (0.4.0)
|
23
23
|
isoics (~> 0.1.6)
|
24
24
|
nokogiri (~> 1.8.4)
|
25
25
|
ruby_deep_clone (~> 0.8.0)
|
@@ -27,7 +27,7 @@ GEM
|
|
27
27
|
json (2.1.0)
|
28
28
|
method_source (0.9.0)
|
29
29
|
mini_portile2 (2.3.0)
|
30
|
-
nokogiri (1.8.
|
30
|
+
nokogiri (1.8.5)
|
31
31
|
mini_portile2 (~> 2.3.0)
|
32
32
|
pry (0.11.3)
|
33
33
|
coderay (~> 1.1.0)
|
@@ -43,7 +43,7 @@ GEM
|
|
43
43
|
rspec-mocks (~> 3.8.0)
|
44
44
|
rspec-core (3.8.0)
|
45
45
|
rspec-support (~> 3.8.0)
|
46
|
-
rspec-expectations (3.8.
|
46
|
+
rspec-expectations (3.8.2)
|
47
47
|
diff-lcs (>= 1.2.0, < 2.0)
|
48
48
|
rspec-support (~> 3.8.0)
|
49
49
|
rspec-mocks (3.8.0)
|
@@ -78,4 +78,4 @@ DEPENDENCIES
|
|
78
78
|
webmock
|
79
79
|
|
80
80
|
BUNDLED WITH
|
81
|
-
1.16.
|
81
|
+
1.16.6
|
data/README.adoc
CHANGED
@@ -1,8 +1,12 @@
|
|
1
|
-
= Iecbib
|
1
|
+
= Iecbib: retrieve IEC Standards for bibliographic use using the BibliographicItem model
|
2
2
|
|
3
|
-
|
3
|
+
image:https://img.shields.io/gem/v/iecbib.svg["Gem Version", link="https://rubygems.org/gems/iecbib"]
|
4
|
+
image:https://img.shields.io/travis/riboseinc/iecbib/master.svg["Build Status", link="https://travis-ci.org/riboseinc/iecbib"]
|
5
|
+
image:https://codeclimate.com/github/riboseinc/iecbib/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/riboseinc/iecbib"]
|
4
6
|
|
5
|
-
|
7
|
+
Iecbib is a Ruby gem that implements the https://github.com/riboseinc/isodoc-models#iso-bibliographic-item[IsoBibliographicItem model].
|
8
|
+
|
9
|
+
You can use it to retrieve metadata of IEC Standards from https://www.iec.ch, and access such metadata through the `IsoBibliographicItem` object.
|
6
10
|
|
7
11
|
== Installation
|
8
12
|
|
@@ -23,7 +27,7 @@ Or install it yourself as:
|
|
23
27
|
|
24
28
|
== Usage
|
25
29
|
|
26
|
-
|
30
|
+
Refer to https://github.com/riboseinc/isobib/blob/master/README.adoc: the usage interface is identical.
|
27
31
|
|
28
32
|
== Development
|
29
33
|
|
@@ -31,6 +35,13 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
31
35
|
|
32
36
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
33
37
|
|
38
|
+
|
39
|
+
== Exceptional Citations
|
40
|
+
|
41
|
+
This gem retrieves bibliographic descriptions of ISO documents by doing searches on the ISO website, http://www.iso.org, and screenscraping the document that matches the queried document identifier. The following documents are not returned as search results from the ISO website, and the gem returns manually generated references to them.
|
42
|
+
|
43
|
+
* `IEV`: used in the metanorma-iso gem to reference Electropedia entries generically. Is resolved to an "all parts" reference to IEC 60050, which in turn is resolved into the specific documents cited by their top-level clause.
|
44
|
+
|
34
45
|
== Contributing
|
35
46
|
|
36
47
|
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/iecbib.
|
data/iecbib.gemspec
CHANGED
@@ -32,6 +32,6 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_development_dependency 'vcr'
|
33
33
|
spec.add_development_dependency 'webmock'
|
34
34
|
|
35
|
-
spec.add_dependency 'iso-bib-item', '~> 0.
|
35
|
+
spec.add_dependency 'iso-bib-item', '~> 0.4.0'
|
36
36
|
spec.add_dependency 'addressable'
|
37
37
|
end
|
@@ -74,7 +74,7 @@ module Iecbib
|
|
74
74
|
end
|
75
75
|
|
76
76
|
def iev(code = "IEC 60050")
|
77
|
-
IsoBibItem.from_xml(<<~"END")
|
77
|
+
IsoBibItem::XMLParser.from_xml(<<~"END")
|
78
78
|
<bibitem type="international-standard" id="IEV">
|
79
79
|
<title format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary</title>
|
80
80
|
<link type="src">http://www.electropedia.org</link>
|
data/lib/iecbib/version.rb
CHANGED
data/lib/relaton/processor.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iecbib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.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: 2018-
|
11
|
+
date: 2018-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.
|
131
|
+
version: 0.4.0
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.
|
138
|
+
version: 0.4.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: addressable
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|