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: bdcf1ece871bc89a09ddd9a4b2916335439cb65fbcdd3ccb11f7028061e32393
4
- data.tar.gz: b3d40959140d73776a8858dc26e56989d90cec6bb4b1862f759fb7497bca22cd
3
+ metadata.gz: 842106a8d49437d0c602445be8daa48a4c1e0e4236e42f07d50b2e430c8f7533
4
+ data.tar.gz: 1ad7d29b9394ecab140bf7dc9cb412f11b01a1470e65dc797a097080c5f165eb
5
5
  SHA512:
6
- metadata.gz: bac54b102165c39193abb147ba8c27cfc1903526376f695d082d3eaf6f066bc3cbfe2cd3493191b5425ef5d2be3f9939aa2f5c6b33c0c5c01490acecc797046c
7
- data.tar.gz: c9b7884fd44cb5ee0da07d1769cba126d2d96e50a003df2c37c57465b8b4e0b63a2a2cdf678bd48318a471ed83f10b4f32f958ec1726cb70759b539b4f962846
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, opts
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
@@ -1,8 +1,5 @@
1
1
  module RelatonCalconnect
2
2
  class Hit < RelatonBib::Hit
3
- # @return [RelatonCalconnect::HitCollection]
4
- attr_reader :hit_collection
5
-
6
3
  # Parse page.
7
4
  # @return [RelatonCalconnect::CcBliographicItem]
8
5
  def fetch
@@ -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, _opts = {})
17
- @text = ref
18
- @year = year
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
@@ -1,3 +1,3 @@
1
1
  module RelatonCalconnect
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -37,5 +37,5 @@ Gem::Specification.new do |spec|
37
37
  spec.add_development_dependency "webmock"
38
38
 
39
39
  spec.add_dependency "faraday"
40
- spec.add_dependency "relaton-iso-bib", "~> 0.7.0"
40
+ spec.add_dependency "relaton-iso-bib", "~> 0.8.0"
41
41
  end
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.5.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-17 00:00:00.000000000 Z
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.7.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.7.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: