isobib 0.1.10 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Gemfile.lock +2 -2
- data/isobib.gemspec +1 -1
- data/lib/isobib/iso_bibliography.rb +4 -4
- data/lib/isobib/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: dc19df126ecb46b5d2fd97d2720eea5fa42c40f74263273ee412fa77ca3c51fc
|
4
|
+
data.tar.gz: cd27a9aca3241cfaee65816b0456b043fff146e9830b2e2127b66e778e9794be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46dfe943d349274b09e9dd6d985f09faa2d8fad3dbc606545433563628f890c8ae02cd0955e8e87454641c8553d664c4f53a5ad52682269b03bf2960973e6715
|
7
|
+
data.tar.gz: 435171b8de28ace419e1c8d50c3a4ce10c40e21485193959feb85e70b1206fbb7eb599bd6d0020c7bb2a9e3ed138a79aad84b143618114dfea50c660ff639a76
|
data/Gemfile.lock
CHANGED
@@ -3,7 +3,7 @@ PATH
|
|
3
3
|
specs:
|
4
4
|
isobib (0.1.10)
|
5
5
|
algoliasearch
|
6
|
-
iso-bib-item (~> 0.
|
6
|
+
iso-bib-item (~> 0.2.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -18,7 +18,7 @@ GEM
|
|
18
18
|
equivalent-xml (0.6.0)
|
19
19
|
nokogiri (>= 1.4.3)
|
20
20
|
httpclient (2.8.3)
|
21
|
-
iso-bib-item (0.
|
21
|
+
iso-bib-item (0.2.0)
|
22
22
|
isoics (~> 0.1.6)
|
23
23
|
nokogiri (~> 1.8.4)
|
24
24
|
ruby_deep_clone (~> 0.8.0)
|
data/isobib.gemspec
CHANGED
@@ -25,13 +25,13 @@ module Isobib
|
|
25
25
|
# @param opts [Hash] options; restricted to :all_parts if all-parts reference is required
|
26
26
|
# @return [String] Relaton XML serialisation of reference
|
27
27
|
def get(code, year, opts)
|
28
|
-
return iev.to_xml if code.casecmp(
|
29
|
-
code +=
|
28
|
+
return iev.to_xml if code.casecmp('IEV') == 0
|
29
|
+
code += '-1' if opts[:all_parts]
|
30
30
|
ret = isobib_get1(code, year, opts)
|
31
31
|
return nil if ret.nil?
|
32
|
-
ret.to_most_recent_reference
|
32
|
+
ret.to_most_recent_reference unless year
|
33
33
|
ret.to_all_parts if opts[:all_parts]
|
34
|
-
ret.to_xml
|
34
|
+
ret # .to_xml
|
35
35
|
end
|
36
36
|
|
37
37
|
private
|
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
|
+
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-07-
|
11
|
+
date: 2018-07-18 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.2.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.2.0
|
139
139
|
description: 'IsoBib: retrieve ISO Standards for bibliographic use using the BibliographicItem
|
140
140
|
model'
|
141
141
|
email:
|
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
195
|
version: '0'
|
196
196
|
requirements: []
|
197
197
|
rubyforge_project:
|
198
|
-
rubygems_version: 2.6
|
198
|
+
rubygems_version: 2.7.6
|
199
199
|
signing_key:
|
200
200
|
specification_version: 4
|
201
201
|
summary: 'IsoBib: retrieve ISO Standards for bibliographic use using the BibliographicItem
|