losant_rest 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/_schemas.md +32 -0
- data/lib/losant_rest/client.rb +2 -2
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/webhook.json +8 -0
- data/schemas/webhookPatch.json +8 -0
- data/schemas/webhookPost.json +8 -0
- data/schemas/webhooks.json +8 -0
- 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: 25d2c627fa270888f48ef83fccffc78c601d6e0e
|
4
|
+
data.tar.gz: 13305771929f9838a8fafaa64daf48adb7b0536f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bf25cd6b5c90d3bf17d4daeb18f4164453317398f1cf8b149e4386868163f328af9f6113e8a1f81ba2925d6a1d9bed2397902d2c2b73dff3d42697a7c593535
|
7
|
+
data.tar.gz: d39ac804b9cddf2bf5104cca0b40570634ff59f437acc1cc4a068a9c9e847e36dc8266c3611d9d9de857d30ac162bd0896fbb938456eaf4d70152924f4b2b466
|
data/docs/_schemas.md
CHANGED
@@ -9141,6 +9141,14 @@ Schema for a single Webhook
|
|
9141
9141
|
},
|
9142
9142
|
"waitForReply": {
|
9143
9143
|
"type": "boolean"
|
9144
|
+
},
|
9145
|
+
"basicAuthUsername": {
|
9146
|
+
"type": "string",
|
9147
|
+
"maxLength": 255
|
9148
|
+
},
|
9149
|
+
"basicAuthPassword": {
|
9150
|
+
"type": "string",
|
9151
|
+
"maxLength": 255
|
9144
9152
|
}
|
9145
9153
|
}
|
9146
9154
|
}
|
@@ -9198,6 +9206,14 @@ Schema for the body of a Webhook modification request
|
|
9198
9206
|
},
|
9199
9207
|
"waitForReply": {
|
9200
9208
|
"type": "boolean"
|
9209
|
+
},
|
9210
|
+
"basicAuthUsername": {
|
9211
|
+
"type": "string",
|
9212
|
+
"maxLength": 255
|
9213
|
+
},
|
9214
|
+
"basicAuthPassword": {
|
9215
|
+
"type": "string",
|
9216
|
+
"maxLength": 255
|
9201
9217
|
}
|
9202
9218
|
},
|
9203
9219
|
"additionalProperties": false
|
@@ -9250,6 +9266,14 @@ Schema for the body of a Webhook creation request
|
|
9250
9266
|
},
|
9251
9267
|
"waitForReply": {
|
9252
9268
|
"type": "boolean"
|
9269
|
+
},
|
9270
|
+
"basicAuthUsername": {
|
9271
|
+
"type": "string",
|
9272
|
+
"maxLength": 255
|
9273
|
+
},
|
9274
|
+
"basicAuthPassword": {
|
9275
|
+
"type": "string",
|
9276
|
+
"maxLength": 255
|
9253
9277
|
}
|
9254
9278
|
},
|
9255
9279
|
"required": [
|
@@ -9335,6 +9359,14 @@ Schema for a collection of Webhooks
|
|
9335
9359
|
},
|
9336
9360
|
"waitForReply": {
|
9337
9361
|
"type": "boolean"
|
9362
|
+
},
|
9363
|
+
"basicAuthUsername": {
|
9364
|
+
"type": "string",
|
9365
|
+
"maxLength": 255
|
9366
|
+
},
|
9367
|
+
"basicAuthPassword": {
|
9368
|
+
"type": "string",
|
9369
|
+
"maxLength": 255
|
9338
9370
|
}
|
9339
9371
|
}
|
9340
9372
|
}
|
data/lib/losant_rest/client.rb
CHANGED
@@ -27,7 +27,7 @@ module LosantRest
|
|
27
27
|
#
|
28
28
|
# User API for accessing Losant data
|
29
29
|
#
|
30
|
-
# Built For Version 1.5.
|
30
|
+
# Built For Version 1.5.5
|
31
31
|
class Client
|
32
32
|
attr_accessor :auth_token, :url
|
33
33
|
|
@@ -162,7 +162,7 @@ module LosantRest
|
|
162
162
|
|
163
163
|
headers["Accept"] = "application/json"
|
164
164
|
headers["Content-Type"] = "application/json"
|
165
|
-
headers["Accept-Version"] = "^1.5.
|
165
|
+
headers["Accept-Version"] = "^1.5.5"
|
166
166
|
headers["Authorization"] = "Bearer #{self.auth_token}" if self.auth_token
|
167
167
|
path = self.url + options.fetch(:path, "")
|
168
168
|
|
data/lib/losant_rest/version.rb
CHANGED
data/schemas/webhook.json
CHANGED
data/schemas/webhookPatch.json
CHANGED
data/schemas/webhookPost.json
CHANGED
data/schemas/webhooks.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: losant_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Kuehl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|