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 +4 -4
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +1 -1
- data/lib/jekyll-indico/core.rb +4 -2
- data/lib/jekyll-indico/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91bed0b6b864fa3f7a1b8dee140c9f9eb791823b
|
4
|
+
data.tar.gz: 6519f4dd2b0681d3961ce636733701342eed4a7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
data/lib/jekyll-indico/core.rb
CHANGED
@@ -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
|
-
|
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
|