relaton-calconnect 0.5.0 → 0.6.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 842106a8d49437d0c602445be8daa48a4c1e0e4236e42f07d50b2e430c8f7533
|
4
|
+
data.tar.gz: 1ad7d29b9394ecab140bf7dc9cb412f11b01a1470e65dc797a097080c5f165eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b81cca245c4ec89742729f663f047bc7b66e6d8fefce26cd9d3dbc95d076d2a41b9306e14a9e9846a8cec0471d47a42cfab95123d1c0edb5f54a042c29dd3d47
|
7
|
+
data.tar.gz: 8393bf3ffe7d2d0b3b51f430fef27025a9e4d598769407aa2ec9d767ac988ede884970c568153353341e51def4b8cd5b3e786276cdd45605d85a336ce5d776c5
|
@@ -4,7 +4,7 @@ module RelatonCalconnect
|
|
4
4
|
# @param text [String]
|
5
5
|
# @return [RelatonCalconnect::HitCollection]
|
6
6
|
def search(text, year = nil, opts = {})
|
7
|
-
HitCollection.new text, year
|
7
|
+
HitCollection.new text, year
|
8
8
|
rescue Faraday::ConnectionFailed
|
9
9
|
raise RelatonBib::RequestError, "Could not access https://standards.calconnect.org"
|
10
10
|
end
|
@@ -13,14 +13,11 @@ module RelatonCalconnect
|
|
13
13
|
# @param ref [Strig]
|
14
14
|
# @param year [String]
|
15
15
|
# @param opts [Hash]
|
16
|
-
def initialize(ref, year = nil
|
17
|
-
|
18
|
-
@
|
19
|
-
@fetched = false
|
20
|
-
hits = from_yaml(ref).sort_by do |hit|
|
16
|
+
def initialize(ref, year = nil)
|
17
|
+
super
|
18
|
+
@array = from_yaml(ref).sort_by do |hit|
|
21
19
|
hit.hit["revdate"] ? Date.parse(hit.hit["revdate"]) : Date.new
|
22
|
-
end
|
23
|
-
concat hits.reverse
|
20
|
+
end.reverse
|
24
21
|
end
|
25
22
|
|
26
23
|
private
|
data/relaton_calconnect.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-calconnect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.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: 2020-02-
|
11
|
+
date: 2020-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debase
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.
|
159
|
+
version: 0.8.0
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.
|
166
|
+
version: 0.8.0
|
167
167
|
description: 'RelatonIso: retrieve CC Standards for bibliographic use using the IsoBibliographicItem
|
168
168
|
model'
|
169
169
|
email:
|