sentofu 0.5.3 → 0.5.4
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 -0
- data/LICENSE.txt +1 -1
- data/Makefile +1 -1
- data/lib/sentofu.rb +1 -1
- data/lib/sentofu/api.rb +10 -2
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4bfeac4aee97cd064de1a051ec2ffc4ff787c55f76b9f6f0c8431eedf83dc857
|
|
4
|
+
data.tar.gz: a74eec29f3a08cc9d61b5815711f451b32beb403a394547d0311595accff5eac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dcee31d91fa32a28bcbb62b32528b1c02be05faedf5c8bb83edc430f7856922f6cd457b237a57ea410e475aaa58c958aca8367e917fea5084698e0923e4f4d59
|
|
7
|
+
data.tar.gz: 99772453343ee48ae33ec348454b32c62cf47d4499edff0b577f7e4f59fbfb01eaa1bb7b6057977265a1122bf5621f1dbd33fc0a36b2979164c7c7c5a1d62253
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
Copyright (c) 2019-
|
|
2
|
+
Copyright (c) 2019-2020, John Mettraux, jmettraux+flor@gmail.com
|
|
3
3
|
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
data/Makefile
CHANGED
data/lib/sentofu.rb
CHANGED
data/lib/sentofu/api.rb
CHANGED
|
@@ -102,7 +102,7 @@ module Sentofu
|
|
|
102
102
|
end
|
|
103
103
|
h }
|
|
104
104
|
|
|
105
|
-
point['get']['parameters']
|
|
105
|
+
(point['get']['parameters'] || [])
|
|
106
106
|
.each { |par|
|
|
107
107
|
|
|
108
108
|
next if par['in'] != 'query'
|
|
@@ -146,7 +146,15 @@ module Sentofu
|
|
|
146
146
|
|
|
147
147
|
def initialize(name, spec)
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
u = spec['servers'].first['url'] rescue nil
|
|
150
|
+
unless u.is_a?(String) && u.match(/\Ahttps?:\/\//)
|
|
151
|
+
#p name; pp spec; p u
|
|
152
|
+
c = spec['code'] rescue -1
|
|
153
|
+
m = spec['message'] rescue '(no message)'
|
|
154
|
+
fail "cannot setup #{name.inspect} API - HTTP #{c} - #{m.inspect}"
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
super(nil, u)
|
|
150
158
|
|
|
151
159
|
@name = name
|
|
152
160
|
@spec = spec
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sentofu
|
|
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
|
- John Mettraux
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-06-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -64,8 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
64
64
|
- !ruby/object:Gem::Version
|
|
65
65
|
version: '0'
|
|
66
66
|
requirements: []
|
|
67
|
-
|
|
68
|
-
rubygems_version: 2.7.6
|
|
67
|
+
rubygems_version: 3.1.4
|
|
69
68
|
signing_key:
|
|
70
69
|
specification_version: 4
|
|
71
70
|
summary: A Ruby client to some of the 1.0.0 Sentifi.com APIs
|