iecbib 0.2.1 → 0.2.2

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: 8ed23406ac6281c063eeb14f712e1a3bc26a16d989a437c762076c376df40d30
4
- data.tar.gz: 1bbba4f22b5d531789c57f550d6b8acdbe5ef70a7e04d047925908bd75c9f7ce
3
+ metadata.gz: 70500c2c4af89a96ff9d4f1ce5929845ce5b0e81204a0b8844aa94d6da0c2604
4
+ data.tar.gz: 75896b7ee1842490e2452d1266da743a1045d028008484fc8f1f6303790cf30e
5
5
  SHA512:
6
- metadata.gz: d71c2f4ae19b8d2571f0c07d0d301ed69970d703f2dfb75b7ea68b13b1e72b3f291b7d48f96068956a9b138421bcc7c70c0dbe47100ab1159fca172005f0df38
7
- data.tar.gz: f8533167f7cfb28d89cf8f3833b8c1fba2470509b93374910a7bdc7985300d0f1d26016e05f3a8fbca79a59fc6ec3a5d343365a70883235df9645cf69a2ff641
6
+ metadata.gz: cae931e90231cf2dbd0a2a60268a2fd71edc98e0f5f4d4a3b22c444a9716260db5170aa68d490730ac4ab105ebc7294d84ed1b9d7e5d4070f71b79180cb4a272
7
+ data.tar.gz: 0425e8ba695f24a6558dccbf50c64f369d953bdb6f63fd36f53a75f8a7d400c7a2f7800ca27231400c3a7f807482c8470694bee8192b020a8f84fcc514e98b6d
@@ -1,4 +1,4 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.4.0
2
+ TargetRubyVersion: 2.3.0
3
3
  Metrics/BlockLength:
4
- ExcludedMethods: ['describe', 'context']
4
+ ExcludedMethods: ['describe', 'context']
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- iecbib (0.2.1)
4
+ iecbib (0.2.2)
5
5
  addressable
6
6
  iso-bib-item (~> 0.4.2)
7
7
 
@@ -19,17 +19,17 @@ GEM
19
19
  equivalent-xml (0.6.0)
20
20
  nokogiri (>= 1.4.3)
21
21
  hashdiff (0.3.7)
22
- iso-bib-item (0.4.2)
22
+ iso-bib-item (0.4.4)
23
23
  isoics (~> 0.1.6)
24
24
  nokogiri (~> 1.8.4)
25
25
  ruby_deep_clone (~> 0.8.0)
26
26
  isoics (0.1.7)
27
27
  json (2.1.0)
28
- method_source (0.9.0)
28
+ method_source (0.9.2)
29
29
  mini_portile2 (2.3.0)
30
30
  nokogiri (1.8.5)
31
31
  mini_portile2 (~> 2.3.0)
32
- pry (0.11.3)
32
+ pry (0.12.2)
33
33
  coderay (~> 1.1.0)
34
34
  method_source (~> 0.9.0)
35
35
  pry-byebug (3.6.0)
@@ -78,4 +78,4 @@ DEPENDENCIES
78
78
  webmock
79
79
 
80
80
  BUNDLED WITH
81
- 1.16.6
81
+ 1.17.1
@@ -12,7 +12,12 @@ module Iecbib
12
12
  # @param text [String]
13
13
  # @return [Iecbib::HitCollection]
14
14
  def search(text, year = nil)
15
- HitCollection.new text, year
15
+ begin
16
+ HitCollection.new text, year
17
+ rescue
18
+ warn "Could not access http://www.iec.ch"
19
+ []
20
+ end
16
21
  end
17
22
 
18
23
  # @param text [String]
@@ -1,3 +1,3 @@
1
1
  module Iecbib
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iecbib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
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-10-26 00:00:00.000000000 Z
11
+ date: 2018-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler