indico 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/indico/helper.rb +5 -0
- data/lib/indico/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de85a9b86534b52b962f7293c6a012ce1beed21f
|
4
|
+
data.tar.gz: bb518f38c4797add87f0cfb24467d960d5df23cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb5111b6aeb42548a2c654c8401d5be53f6c31c09d6916908e247918193b0b55da6fab98d1c58a1345d1912be8400bd8fc6661bdf312b12954079c412379e509
|
7
|
+
data.tar.gz: 9d96c560aa0926b193ab813f5ce5cffa303fb698783a928e94e9857740206629c0690da6c48c05fc27ad0bfd742f6b51dd9cce0cee994fabe0b81c642590a006
|
data/lib/indico/helper.rb
CHANGED
@@ -48,6 +48,11 @@ module Indico
|
|
48
48
|
response = make_request(url, JSON.dump(d),
|
49
49
|
add_api_key_to_header(api_key))
|
50
50
|
|
51
|
+
response.header.each_header do |key, value|
|
52
|
+
if key.downcase == 'x-warning'
|
53
|
+
warn value
|
54
|
+
end
|
55
|
+
end
|
51
56
|
|
52
57
|
results = JSON.parse(response.body)
|
53
58
|
if results.key?('error')
|
data/lib/indico/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: indico
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Slater Victoroff
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-10-
|
14
|
+
date: 2015-10-30 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: inifile
|