isobib 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -1
- data/Gemfile.lock +8 -8
- data/README.adoc +5 -4
- data/appveyor.yml +30 -0
- data/isobib.gemspec +1 -1
- data/lib/isobib/iso_bibliography.rb +7 -0
- data/lib/isobib/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb83dcec31727c83a5661a84905aad4b4f73e1db82e5050cd2cb690e07049b9d
|
4
|
+
data.tar.gz: 8dc62cd48b8c45cefb31b77394ff530eb839364072d81ec3ab8423a8086ae7b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23349f4e940a9ac4cde232845ee3a6f20d3e2e78ca3e5e22139995f5efe0117710b969649e7cad0dfdd07c5c3de33d143521e16fc15e2677cf1eeb3a73ec70f6
|
7
|
+
data.tar.gz: 2b0046f334f9b0123a78c8af2bb89b163f14bda56b394f5e5d36750523584913669c411ec1fe233530d9e44bb2f24edf8d7f1aebe45c1059a2b6c1555c79e4e5
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
isobib (0.4.
|
4
|
+
isobib (0.4.4)
|
5
5
|
algoliasearch
|
6
6
|
iecbib (~> 0.2.1)
|
7
7
|
iso-bib-item (~> 0.4.2)
|
@@ -9,12 +9,12 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
addressable (2.
|
12
|
+
addressable (2.6.0)
|
13
13
|
public_suffix (>= 2.0.2, < 4.0)
|
14
|
-
algoliasearch (1.
|
14
|
+
algoliasearch (1.26.0)
|
15
15
|
httpclient (~> 2.8, >= 2.8.3)
|
16
16
|
json (>= 1.5.1)
|
17
|
-
byebug (
|
17
|
+
byebug (11.0.1)
|
18
18
|
coderay (1.1.2)
|
19
19
|
crack (0.4.3)
|
20
20
|
safe_yaml (~> 1.0.0)
|
@@ -32,7 +32,7 @@ GEM
|
|
32
32
|
nokogiri (~> 1.8.4)
|
33
33
|
ruby_deep_clone (~> 0.8.0)
|
34
34
|
isoics (0.1.7)
|
35
|
-
json (2.
|
35
|
+
json (2.2.0)
|
36
36
|
method_source (0.9.2)
|
37
37
|
mini_portile2 (2.3.0)
|
38
38
|
nokogiri (1.8.5)
|
@@ -40,8 +40,8 @@ GEM
|
|
40
40
|
pry (0.12.2)
|
41
41
|
coderay (~> 1.1.0)
|
42
42
|
method_source (~> 0.9.0)
|
43
|
-
pry-byebug (3.
|
44
|
-
byebug (~>
|
43
|
+
pry-byebug (3.7.0)
|
44
|
+
byebug (~> 11.0)
|
45
45
|
pry (~> 0.10)
|
46
46
|
public_suffix (3.0.3)
|
47
47
|
rake (10.5.0)
|
@@ -59,7 +59,7 @@ GEM
|
|
59
59
|
rspec-support (~> 3.8.0)
|
60
60
|
rspec-support (3.8.0)
|
61
61
|
ruby_deep_clone (0.8.0)
|
62
|
-
safe_yaml (1.0.
|
62
|
+
safe_yaml (1.0.5)
|
63
63
|
simplecov (0.16.1)
|
64
64
|
docile (~> 1.1)
|
65
65
|
json (>= 1.8, < 3)
|
data/README.adoc
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
= IsoBib: retrieve ISO Standards for bibliographic use using the BibliographicItem model
|
2
2
|
|
3
3
|
image:https://img.shields.io/gem/v/isobib.svg["Gem Version", link="https://rubygems.org/gems/isobib"]
|
4
|
-
image:https://img.shields.io/travis/
|
5
|
-
image:https://
|
4
|
+
image:https://img.shields.io/travis/metanorma/isobib/master.svg["Build Status", link="https://travis-ci.com/metanorma/isobib"]
|
5
|
+
image:https://ci.appveyor.com/api/projects/status/nb2hvqycupqrkqjt?svg=true["Appveyor Build Status", link="https://ci.appveyor.com/project/ribose/isobib"]
|
6
|
+
image:https://codeclimate.com/github/metanorma/isobib/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/isobib"]
|
6
7
|
|
7
|
-
IsoBib is a Ruby gem that implements the https://github.com/
|
8
|
+
IsoBib is a Ruby gem that implements the https://github.com/metanorma/metanorma-model-iso#iso-bibliographic-item[IsoBibliographicItem model].
|
8
9
|
|
9
10
|
You can use it to retrieve metadata of ISO Standards from https://www.iso.org, and access such metadata through the `IsoBibliographicItem` object.
|
10
11
|
|
@@ -172,7 +173,7 @@ This gem retrieves bibliographic descriptions of ISO documents by doing searches
|
|
172
173
|
|
173
174
|
== Contributing
|
174
175
|
|
175
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
176
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/metanorma/isobib
|
176
177
|
|
177
178
|
== License
|
178
179
|
|
data/appveyor.yml
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
version: '{build}'
|
2
|
+
|
3
|
+
environment:
|
4
|
+
matrix:
|
5
|
+
- RUBY_VERSION: 25
|
6
|
+
- RUBY_VERSION: 24
|
7
|
+
- RUBY_VERSION: 23
|
8
|
+
- RUBY_VERSION: _trunk
|
9
|
+
|
10
|
+
matrix:
|
11
|
+
allow_failures:
|
12
|
+
- RUBY_VERSION: _trunk
|
13
|
+
|
14
|
+
install:
|
15
|
+
- ps: . { iwr -useb https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/appveyor.ps1 } | iex
|
16
|
+
- refreshenv
|
17
|
+
|
18
|
+
build_script:
|
19
|
+
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
|
20
|
+
- bundle update
|
21
|
+
- bundle install
|
22
|
+
|
23
|
+
before_test:
|
24
|
+
- ruby -v
|
25
|
+
- gem -v
|
26
|
+
- bundle -v
|
27
|
+
|
28
|
+
test_script:
|
29
|
+
- bundle exec rake
|
30
|
+
|
data/isobib.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.description = 'IsoBib: retrieve ISO Standards for bibliographic use '\
|
16
16
|
'using the BibliographicItem model'
|
17
17
|
|
18
|
-
spec.homepage = 'https://github.com/
|
18
|
+
spec.homepage = 'https://github.com/metanorma/isobib'
|
19
19
|
spec.license = 'BSD-2-Clause'
|
20
20
|
|
21
21
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
@@ -32,6 +32,13 @@ module Isobib
|
|
32
32
|
# :keep_year if undated reference should return actual reference with year
|
33
33
|
# @return [String] Relaton XML serialisation of reference
|
34
34
|
def get(code, year, opts)
|
35
|
+
if year.nil?
|
36
|
+
/^(?<code1>[^:]+):(?<year1>[^:]+)$/ =~ code
|
37
|
+
unless code1.nil?
|
38
|
+
code = code1
|
39
|
+
year = year1
|
40
|
+
end
|
41
|
+
end
|
35
42
|
code += '-1' if opts[:all_parts]
|
36
43
|
return Iecbib::IecBibliography.get(code, year, opts) if %r[^ISO/IEC DIR].match code
|
37
44
|
ret = isobib_get1(code, year, opts)
|
data/lib/isobib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isobib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
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-
|
11
|
+
date: 2019-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -197,6 +197,7 @@ files:
|
|
197
197
|
- LICENSE.txt
|
198
198
|
- README.adoc
|
199
199
|
- Rakefile
|
200
|
+
- appveyor.yml
|
200
201
|
- bin/bundle
|
201
202
|
- bin/byebug
|
202
203
|
- bin/coderay
|
@@ -220,7 +221,7 @@ files:
|
|
220
221
|
- lib/isobib/version.rb
|
221
222
|
- lib/isobib/workers_pool.rb
|
222
223
|
- lib/relaton/processor.rb
|
223
|
-
homepage: https://github.com/
|
224
|
+
homepage: https://github.com/metanorma/isobib
|
224
225
|
licenses:
|
225
226
|
- BSD-2-Clause
|
226
227
|
metadata: {}
|