isobib 0.2.0 → 0.2.1

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: dc19df126ecb46b5d2fd97d2720eea5fa42c40f74263273ee412fa77ca3c51fc
4
- data.tar.gz: cd27a9aca3241cfaee65816b0456b043fff146e9830b2e2127b66e778e9794be
3
+ metadata.gz: bf74496dde550035db49835da840400924291407cb76fe1a9dbc9a96cc8e12de
4
+ data.tar.gz: e7055116cc3c01c3e6efe3b5bce98e5e372333b49d809ff47a941fd02e845787
5
5
  SHA512:
6
- metadata.gz: 46dfe943d349274b09e9dd6d985f09faa2d8fad3dbc606545433563628f890c8ae02cd0955e8e87454641c8553d664c4f53a5ad52682269b03bf2960973e6715
7
- data.tar.gz: 435171b8de28ace419e1c8d50c3a4ce10c40e21485193959feb85e70b1206fbb7eb599bd6d0020c7bb2a9e3ed138a79aad84b143618114dfea50c660ff639a76
6
+ metadata.gz: 91e3413992182f15809e2eba4fb8b03dfb498540d9f51443178f990e6a1634969145b0ef7d1430226c7077350f1f49ac2835bbf50b867b145aa2cfde1acb18bc
7
+ data.tar.gz: 4006c209098d787dc209412ed5820e5c628ad2a804b18691e00bb2dbf08dc61c1b2dca92c4f8dfe247465353dd7185d4ccde05e22681e3890d6eb093999da846
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- isobib (0.1.10)
4
+ isobib (0.2.0)
5
5
  algoliasearch
6
- iso-bib-item (~> 0.2.0)
6
+ iso-bib-item (~> 0.2.1)
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.2.0)
21
+ iso-bib-item (0.2.2)
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.2.0'
37
+ spec.add_dependency 'iso-bib-item', '~> 0.2.3'
38
38
  end
@@ -38,8 +38,8 @@ module Isobib
38
38
 
39
39
  def fetch_ref_err(code, year, missed_years)
40
40
  id = year ? "#{code}:#{year}" : code
41
- warn "WARNING: no match found on the ISO website for #{id}. "\
42
- "The code must be exactly like it is on the website."
41
+ warn "WARNING: no match found online for #{id}. "\
42
+ "The code must be exactly like it is on the standards website."
43
43
  warn "(There was no match for #{year}, though there were matches "\
44
44
  "found for #{missed_years.join(', ')}.)" unless missed_years.empty?
45
45
  if /\d-\d/ =~ code
@@ -194,7 +194,7 @@ module Isobib
194
194
  def fetch_docid(doc)
195
195
  item_ref = doc.xpath("//strong[@id='itemReference']").text
196
196
  .match(/(?<=\s)(\d+)-?((?<=-)\d+|)/)
197
- { project_number: item_ref[1], part_number: item_ref[2] }
197
+ { project_number: item_ref[1], part_number: item_ref[2], prefix: nil }
198
198
  end
199
199
 
200
200
  # Fetch status.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Isobib
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
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.2.0
4
+ version: 0.2.1
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-18 00:00:00.000000000 Z
11
+ date: 2018-07-25 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.2.0
131
+ version: 0.2.3
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.2.0
138
+ version: 0.2.3
139
139
  description: 'IsoBib: retrieve ISO Standards for bibliographic use using the BibliographicItem
140
140
  model'
141
141
  email: