jekyll-indico 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c14daf72a602a2600ce825c5298012ab6be48c8
4
- data.tar.gz: dd1509e11a7b0f2a969a6d2ed442e5103daecc60
3
+ metadata.gz: 91bed0b6b864fa3f7a1b8dee140c9f9eb791823b
4
+ data.tar.gz: 6519f4dd2b0681d3961ce636733701342eed4a7d
5
5
  SHA512:
6
- metadata.gz: bc20db3a1b0ab7b9d4e200bd0be98873a7ba21fdf576277d6960d7567dbce04bd1bd706864cbbe20fd80f374785035c2a010cc9420b16b1b13501a7fbee78a52
7
- data.tar.gz: e6d791bfb92c05281dcbf9ec2d3ab56cc05692b5a4980f6f724e02bc9f646a23bc697bca963fdefc5ddb62085b7208dbd3d7015a5742cca42d109ce71003f67c
6
+ metadata.gz: 1f5064ba79a8af25de947a654f5718e70b48a19533f05afa1cb6739ffd07a9c6c25d4296def57d50b00a5f34e57467629ad048b5d6ed6858d6fbb8811dca7d79
7
+ data.tar.gz: 260ecb6e6b9b1801928d0f6eeb204e71217db6f3e6d5fd77128fe750128b976d5401725556054c939cad347f2aebb7071540b35ac4dd08931584d121f35831c1
data/CHANGELOG.md CHANGED
@@ -1,10 +1,14 @@
1
+ # Version 0.4.5
2
+
3
+ Fix timeout being incorrectly called again.
4
+
1
5
  # Version 0.4.4
2
6
 
3
7
  Fix timeout being incorrectly called.
4
8
 
5
9
  # Version 0.4.3
6
10
 
7
- Fix warning message for classic tokens. Add time prinout to help judge need for
11
+ Fix warning message for classic tokens. Add time printout to help judge need for
8
12
  timeout setting.
9
13
 
10
14
  # Version 0.4.2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-indico (0.4.4)
4
+ jekyll-indico (0.4.5)
5
5
  jekyll (>= 3.8, < 5.0)
6
6
 
7
7
  GEM
@@ -69,14 +69,16 @@ module JekyllIndico
69
69
  uri.query = URI.encode_www_form(params)
70
70
 
71
71
  req = Net::HTTP::Get.new(uri)
72
- req.read_timeout = timeout if timeout
73
72
  if ENV['INDICO_TOKEN']
74
73
  req['Authorization'] = "Bearer #{ENV['INDICO_TOKEN']}"
75
74
  elsif ENV['INDICO_SECRET_KEY'] || ENV['INDICO_API_KEY']
76
75
  raise Error, 'Use INDICO_TOKEN with a new-style token'
77
76
  end
78
77
 
79
- response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
78
+ opts = { use_ssl: true }
79
+ opts[:read_timeout] = timeout if timeout
80
+
81
+ response = Net::HTTP.start(uri.hostname, uri.port, **opts) { |http| http.request(req) }
80
82
 
81
83
  string = response.body
82
84
  parsed = JSON.parse(string) # returns a hash
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllIndico
4
- VERSION = '0.4.4'
4
+ VERSION = '0.4.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-indico
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Schreiner