isobib 0.1.10 → 0.2.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
- SHA1:
3
- metadata.gz: e4b911fb007256f7871d81b0a2f1a16f4b5cb647
4
- data.tar.gz: ca0cb5a9451254fd7d031393d8110ad7eb929a78
2
+ SHA256:
3
+ metadata.gz: dc19df126ecb46b5d2fd97d2720eea5fa42c40f74263273ee412fa77ca3c51fc
4
+ data.tar.gz: cd27a9aca3241cfaee65816b0456b043fff146e9830b2e2127b66e778e9794be
5
5
  SHA512:
6
- metadata.gz: ed668d50ba8aefa7d96905859e3b95a3c030796e58c2fcc65c5b68a08a6f436ee210278661ca8445c071482afa1e3fb126928d495108eef734bbb7ac36ff0f74
7
- data.tar.gz: aab7cf7186ae45f654392dbfc47d9f9fb4ac880e9412fb5f690dd41a8a134ce7435b8356a2ee6fd15a2b6e488032ac8491e66b9033ba4c8c33b6ec8c62d52f9f
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.1.10)
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.1.11)
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
@@ -34,5 +34,5 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
35
35
 
36
36
  spec.add_dependency 'algoliasearch'
37
- spec.add_dependency 'iso-bib-item', '~> 0.1.10'
37
+ spec.add_dependency 'iso-bib-item', '~> 0.2.0'
38
38
  end
@@ -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("IEV") == 0
29
- code += "-1" if opts[:all_parts]
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 if !year
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Isobib
4
- VERSION = '0.1.10'
4
+ VERSION = '0.2.0'
5
5
  end
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.1.10
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-12 00:00:00.000000000 Z
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.1.10
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.1.10
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.12
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