losant_rest 1.2.2 → 1.2.3

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: 65b7f0024f51f1ea6c68c00753d586ce964be213
4
- data.tar.gz: f4f3b4bc5c1dbd07a71cbc9b28eb6c8b63b6642d
3
+ metadata.gz: 37d58167c3e225126783a01442a951bfdecefcfe
4
+ data.tar.gz: 774a7a07f0eea9fcbf39132c00de78aeb52db057
5
5
  SHA512:
6
- metadata.gz: 7a8fa656387ca0027a093624183c04682765282f09ec197ca17e7cd804173ac094df4f14bea42f3f34a8e584da17a5e8b868742dca0e3b5fdfb6539ea64ea2aa
7
- data.tar.gz: 91aa7fc39c33959a36bb135ba03b6f638553ec2698027fae79e07fc00d9ee001c66a255899e05d3a27cc291a5bbd3685f69dbe63f4c7156c61957f2f8d7f8079
6
+ metadata.gz: cd8b606d5705891e67836680857d7982ebd9ecd770ad8e7968d1e4f9d1c6f16aeca2062ef336cd85855ead32ceae61fa28e1e3d6a4fca7e0994a2c489c4620d1
7
+ data.tar.gz: 9e4d59149da6cc0720ca8801cbab199965d831bd8a92d74c242d55ffe13991ecc92b91e319b765456caa596dea3a7fb4bee3f93464a6d92210b88b04ff37cb69
data/docs/_schemas.md CHANGED
@@ -329,6 +329,29 @@ Schema for a single Application
329
329
  "endpointDefaultCors": {
330
330
  "type": "boolean"
331
331
  },
332
+ "globals": {
333
+ "type": "array",
334
+ "maxItems": 100,
335
+ "items": {
336
+ "type": "object",
337
+ "properties": {
338
+ "key": {
339
+ "type": "string",
340
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
341
+ },
342
+ "json": {
343
+ "type": "string",
344
+ "minLength": 1,
345
+ "maxLength": 2048
346
+ }
347
+ },
348
+ "additionalProperties": false,
349
+ "required": [
350
+ "key",
351
+ "json"
352
+ ]
353
+ }
354
+ },
332
355
  "summary": {
333
356
  "type": "object",
334
357
  "properties": {
@@ -939,6 +962,29 @@ Schema for the body of an Application modification request
939
962
  },
940
963
  "endpointDefaultCors": {
941
964
  "type": "boolean"
965
+ },
966
+ "globals": {
967
+ "type": "array",
968
+ "maxItems": 100,
969
+ "items": {
970
+ "type": "object",
971
+ "properties": {
972
+ "key": {
973
+ "type": "string",
974
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
975
+ },
976
+ "json": {
977
+ "type": "string",
978
+ "minLength": 1,
979
+ "maxLength": 2048
980
+ }
981
+ },
982
+ "additionalProperties": false,
983
+ "required": [
984
+ "key",
985
+ "json"
986
+ ]
987
+ }
942
988
  }
943
989
  },
944
990
  "additionalProperties": false
@@ -991,6 +1037,29 @@ Schema for the body of an Application creation request
991
1037
  },
992
1038
  "endpointDefaultCors": {
993
1039
  "type": "boolean"
1040
+ },
1041
+ "globals": {
1042
+ "type": "array",
1043
+ "maxItems": 100,
1044
+ "items": {
1045
+ "type": "object",
1046
+ "properties": {
1047
+ "key": {
1048
+ "type": "string",
1049
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1050
+ },
1051
+ "json": {
1052
+ "type": "string",
1053
+ "minLength": 1,
1054
+ "maxLength": 2048
1055
+ }
1056
+ },
1057
+ "additionalProperties": false,
1058
+ "required": [
1059
+ "key",
1060
+ "json"
1061
+ ]
1062
+ }
994
1063
  }
995
1064
  },
996
1065
  "additionalProperties": false,
@@ -1077,6 +1146,29 @@ Schema for a collection of Applications
1077
1146
  "endpointDefaultCors": {
1078
1147
  "type": "boolean"
1079
1148
  },
1149
+ "globals": {
1150
+ "type": "array",
1151
+ "maxItems": 100,
1152
+ "items": {
1153
+ "type": "object",
1154
+ "properties": {
1155
+ "key": {
1156
+ "type": "string",
1157
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1158
+ },
1159
+ "json": {
1160
+ "type": "string",
1161
+ "minLength": 1,
1162
+ "maxLength": 2048
1163
+ }
1164
+ },
1165
+ "additionalProperties": false,
1166
+ "required": [
1167
+ "key",
1168
+ "json"
1169
+ ]
1170
+ }
1171
+ },
1080
1172
  "summary": {
1081
1173
  "type": "object",
1082
1174
  "properties": {
@@ -6413,6 +6505,7 @@ Schema for a single Workflow
6413
6505
  },
6414
6506
  "globals": {
6415
6507
  "type": "array",
6508
+ "maxItems": 100,
6416
6509
  "items": {
6417
6510
  "type": "object",
6418
6511
  "properties": {
@@ -6422,7 +6515,8 @@ Schema for a single Workflow
6422
6515
  },
6423
6516
  "json": {
6424
6517
  "type": "string",
6425
- "minLength": 1
6518
+ "minLength": 1,
6519
+ "maxLength": 2048
6426
6520
  }
6427
6521
  },
6428
6522
  "additionalProperties": false,
@@ -6692,6 +6786,7 @@ Schema for the body of a Workflow modification request
6692
6786
  },
6693
6787
  "globals": {
6694
6788
  "type": "array",
6789
+ "maxItems": 100,
6695
6790
  "items": {
6696
6791
  "type": "object",
6697
6792
  "properties": {
@@ -6701,7 +6796,8 @@ Schema for the body of a Workflow modification request
6701
6796
  },
6702
6797
  "json": {
6703
6798
  "type": "string",
6704
- "minLength": 1
6799
+ "minLength": 1,
6800
+ "maxLength": 2048
6705
6801
  }
6706
6802
  },
6707
6803
  "additionalProperties": false,
@@ -6843,6 +6939,7 @@ Schema for the body of a Workflow creation request
6843
6939
  },
6844
6940
  "globals": {
6845
6941
  "type": "array",
6942
+ "maxItems": 100,
6846
6943
  "items": {
6847
6944
  "type": "object",
6848
6945
  "properties": {
@@ -6852,7 +6949,8 @@ Schema for the body of a Workflow creation request
6852
6949
  },
6853
6950
  "json": {
6854
6951
  "type": "string",
6855
- "minLength": 1
6952
+ "minLength": 1,
6953
+ "maxLength": 2048
6856
6954
  }
6857
6955
  },
6858
6956
  "additionalProperties": false,
@@ -7125,6 +7223,7 @@ Schema for a single Workflow Version
7125
7223
  },
7126
7224
  "globals": {
7127
7225
  "type": "array",
7226
+ "maxItems": 100,
7128
7227
  "items": {
7129
7228
  "type": "object",
7130
7229
  "properties": {
@@ -7134,7 +7233,8 @@ Schema for a single Workflow Version
7134
7233
  },
7135
7234
  "json": {
7136
7235
  "type": "string",
7137
- "minLength": 1
7236
+ "minLength": 1,
7237
+ "maxLength": 2048
7138
7238
  }
7139
7239
  },
7140
7240
  "additionalProperties": false,
@@ -7317,6 +7417,7 @@ Schema for the body of a Workflow Version creation request
7317
7417
  },
7318
7418
  "globals": {
7319
7419
  "type": "array",
7420
+ "maxItems": 100,
7320
7421
  "items": {
7321
7422
  "type": "object",
7322
7423
  "properties": {
@@ -7326,7 +7427,8 @@ Schema for the body of a Workflow Version creation request
7326
7427
  },
7327
7428
  "json": {
7328
7429
  "type": "string",
7329
- "minLength": 1
7430
+ "minLength": 1,
7431
+ "maxLength": 2048
7330
7432
  }
7331
7433
  },
7332
7434
  "additionalProperties": false,
@@ -7502,6 +7604,7 @@ Schema for a collection of Workflow Versions
7502
7604
  },
7503
7605
  "globals": {
7504
7606
  "type": "array",
7607
+ "maxItems": 100,
7505
7608
  "items": {
7506
7609
  "type": "object",
7507
7610
  "properties": {
@@ -7511,7 +7614,8 @@ Schema for a collection of Workflow Versions
7511
7614
  },
7512
7615
  "json": {
7513
7616
  "type": "string",
7514
- "minLength": 1
7617
+ "minLength": 1,
7618
+ "maxLength": 2048
7515
7619
  }
7516
7620
  },
7517
7621
  "additionalProperties": false,
@@ -7743,6 +7847,7 @@ Schema for a collection of Workflows
7743
7847
  },
7744
7848
  "globals": {
7745
7849
  "type": "array",
7850
+ "maxItems": 100,
7746
7851
  "items": {
7747
7852
  "type": "object",
7748
7853
  "properties": {
@@ -7752,7 +7857,8 @@ Schema for a collection of Workflows
7752
7857
  },
7753
7858
  "json": {
7754
7859
  "type": "string",
7755
- "minLength": 1
7860
+ "minLength": 1,
7861
+ "maxLength": 2048
7756
7862
  }
7757
7863
  },
7758
7864
  "additionalProperties": false,
@@ -27,7 +27,7 @@ module LosantRest
27
27
  #
28
28
  # User API for accessing Losant data
29
29
  #
30
- # Built For Version 1.6.2
30
+ # Built For Version 1.6.4
31
31
  class Client
32
32
  attr_accessor :auth_token, :url
33
33
 
@@ -202,7 +202,7 @@ module LosantRest
202
202
 
203
203
  headers["Accept"] = "application/json"
204
204
  headers["Content-Type"] = "application/json"
205
- headers["Accept-Version"] = "^1.6.2"
205
+ headers["Accept-Version"] = "^1.6.4"
206
206
  headers["Authorization"] = "Bearer #{self.auth_token}" if self.auth_token
207
207
  path = self.url + options.fetch(:path, "")
208
208
 
@@ -21,5 +21,5 @@
21
21
  # SOFTWARE.
22
22
 
23
23
  module LosantRest
24
- VERSION = "1.2.2"
24
+ VERSION = "1.2.3"
25
25
  end
@@ -51,6 +51,29 @@
51
51
  "endpointDefaultCors": {
52
52
  "type": "boolean"
53
53
  },
54
+ "globals": {
55
+ "type": "array",
56
+ "maxItems": 100,
57
+ "items": {
58
+ "type": "object",
59
+ "properties": {
60
+ "key": {
61
+ "type": "string",
62
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
63
+ },
64
+ "json": {
65
+ "type": "string",
66
+ "minLength": 1,
67
+ "maxLength": 2048
68
+ }
69
+ },
70
+ "additionalProperties": false,
71
+ "required": [
72
+ "key",
73
+ "json"
74
+ ]
75
+ }
76
+ },
54
77
  "summary": {
55
78
  "type": "object",
56
79
  "properties": {
@@ -23,6 +23,29 @@
23
23
  },
24
24
  "endpointDefaultCors": {
25
25
  "type": "boolean"
26
+ },
27
+ "globals": {
28
+ "type": "array",
29
+ "maxItems": 100,
30
+ "items": {
31
+ "type": "object",
32
+ "properties": {
33
+ "key": {
34
+ "type": "string",
35
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
36
+ },
37
+ "json": {
38
+ "type": "string",
39
+ "minLength": 1,
40
+ "maxLength": 2048
41
+ }
42
+ },
43
+ "additionalProperties": false,
44
+ "required": [
45
+ "key",
46
+ "json"
47
+ ]
48
+ }
26
49
  }
27
50
  },
28
51
  "additionalProperties": false
@@ -27,6 +27,29 @@
27
27
  },
28
28
  "endpointDefaultCors": {
29
29
  "type": "boolean"
30
+ },
31
+ "globals": {
32
+ "type": "array",
33
+ "maxItems": 100,
34
+ "items": {
35
+ "type": "object",
36
+ "properties": {
37
+ "key": {
38
+ "type": "string",
39
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
40
+ },
41
+ "json": {
42
+ "type": "string",
43
+ "minLength": 1,
44
+ "maxLength": 2048
45
+ }
46
+ },
47
+ "additionalProperties": false,
48
+ "required": [
49
+ "key",
50
+ "json"
51
+ ]
52
+ }
30
53
  }
31
54
  },
32
55
  "additionalProperties": false,
@@ -58,6 +58,29 @@
58
58
  "endpointDefaultCors": {
59
59
  "type": "boolean"
60
60
  },
61
+ "globals": {
62
+ "type": "array",
63
+ "maxItems": 100,
64
+ "items": {
65
+ "type": "object",
66
+ "properties": {
67
+ "key": {
68
+ "type": "string",
69
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
70
+ },
71
+ "json": {
72
+ "type": "string",
73
+ "minLength": 1,
74
+ "maxLength": 2048
75
+ }
76
+ },
77
+ "additionalProperties": false,
78
+ "required": [
79
+ "key",
80
+ "json"
81
+ ]
82
+ }
83
+ },
61
84
  "summary": {
62
85
  "type": "object",
63
86
  "properties": {
data/schemas/flow.json CHANGED
@@ -131,6 +131,7 @@
131
131
  },
132
132
  "globals": {
133
133
  "type": "array",
134
+ "maxItems": 100,
134
135
  "items": {
135
136
  "type": "object",
136
137
  "properties": {
@@ -140,7 +141,8 @@
140
141
  },
141
142
  "json": {
142
143
  "type": "string",
143
- "minLength": 1
144
+ "minLength": 1,
145
+ "maxLength": 2048
144
146
  }
145
147
  },
146
148
  "additionalProperties": false,
@@ -118,6 +118,7 @@
118
118
  },
119
119
  "globals": {
120
120
  "type": "array",
121
+ "maxItems": 100,
121
122
  "items": {
122
123
  "type": "object",
123
124
  "properties": {
@@ -127,7 +128,8 @@
127
128
  },
128
129
  "json": {
129
130
  "type": "string",
130
- "minLength": 1
131
+ "minLength": 1,
132
+ "maxLength": 2048
131
133
  }
132
134
  },
133
135
  "additionalProperties": false,
@@ -107,6 +107,7 @@
107
107
  },
108
108
  "globals": {
109
109
  "type": "array",
110
+ "maxItems": 100,
110
111
  "items": {
111
112
  "type": "object",
112
113
  "properties": {
@@ -116,7 +117,8 @@
116
117
  },
117
118
  "json": {
118
119
  "type": "string",
119
- "minLength": 1
120
+ "minLength": 1,
121
+ "maxLength": 2048
120
122
  }
121
123
  },
122
124
  "additionalProperties": false,
@@ -131,6 +131,7 @@
131
131
  },
132
132
  "globals": {
133
133
  "type": "array",
134
+ "maxItems": 100,
134
135
  "items": {
135
136
  "type": "object",
136
137
  "properties": {
@@ -140,7 +141,8 @@
140
141
  },
141
142
  "json": {
142
143
  "type": "string",
143
- "minLength": 1
144
+ "minLength": 1,
145
+ "maxLength": 2048
144
146
  }
145
147
  },
146
148
  "additionalProperties": false,
@@ -107,6 +107,7 @@
107
107
  },
108
108
  "globals": {
109
109
  "type": "array",
110
+ "maxItems": 100,
110
111
  "items": {
111
112
  "type": "object",
112
113
  "properties": {
@@ -116,7 +117,8 @@
116
117
  },
117
118
  "json": {
118
119
  "type": "string",
119
- "minLength": 1
120
+ "minLength": 1,
121
+ "maxLength": 2048
120
122
  }
121
123
  },
122
124
  "additionalProperties": false,
@@ -138,6 +138,7 @@
138
138
  },
139
139
  "globals": {
140
140
  "type": "array",
141
+ "maxItems": 100,
141
142
  "items": {
142
143
  "type": "object",
143
144
  "properties": {
@@ -147,7 +148,8 @@
147
148
  },
148
149
  "json": {
149
150
  "type": "string",
150
- "minLength": 1
151
+ "minLength": 1,
152
+ "maxLength": 2048
151
153
  }
152
154
  },
153
155
  "additionalProperties": false,
data/schemas/flows.json CHANGED
@@ -138,6 +138,7 @@
138
138
  },
139
139
  "globals": {
140
140
  "type": "array",
141
+ "maxItems": 100,
141
142
  "items": {
142
143
  "type": "object",
143
144
  "properties": {
@@ -147,7 +148,8 @@
147
148
  },
148
149
  "json": {
149
150
  "type": "string",
150
- "minLength": 1
151
+ "minLength": 1,
152
+ "maxLength": 2048
151
153
  }
152
154
  },
153
155
  "additionalProperties": false,
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.2.2
4
+ version: 1.2.3
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-06-20 00:00:00.000000000 Z
11
+ date: 2017-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty