numerousapp 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/numerousapp.rb +11 -14
- 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: 6efa6612d0f0241fc691bc8fde23131ec47566d4
|
4
|
+
data.tar.gz: 35947e9d1a0357cb754a326b9c6a9b9b0ae90a3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dde128d7b5aaa33082ee5b26217eddc21eca1f849b41314a2f340117efdddc147a82f3dad0247cc35d4fe105e68c4060ed6f0d47c14082d66d9494e3869ac42
|
7
|
+
data.tar.gz: d88cac07ba321bc4076a6f1416c71029c85d1c5279a9d4a56431e8a206b3bfbf3d72cf381f170c2b6143ee1dc16c4e41d1440d281c579326f599d405c8a97772
|
data/lib/numerousapp.rb
CHANGED
@@ -223,7 +223,7 @@ class NumerousClientInternals
|
|
223
223
|
|
224
224
|
protected
|
225
225
|
|
226
|
-
VersionString = '
|
226
|
+
VersionString = '20150730-1.2.4'
|
227
227
|
|
228
228
|
MethMap = {
|
229
229
|
GET: Net::HTTP::Get,
|
@@ -791,7 +791,7 @@ class Numerous < NumerousClientInternals
|
|
791
791
|
APIInfo = {
|
792
792
|
# POST to this to create a metric
|
793
793
|
create: {
|
794
|
-
path: '/
|
794
|
+
path: '/v2/metrics',
|
795
795
|
POST: { successCodes: [ 201 ] }
|
796
796
|
},
|
797
797
|
|
@@ -811,14 +811,14 @@ class Numerous < NumerousClientInternals
|
|
811
811
|
|
812
812
|
# user info
|
813
813
|
user: {
|
814
|
-
path: '/
|
814
|
+
path: '/v2/users/%{userId}',
|
815
815
|
defaults: { userId: 'me' },
|
816
816
|
photo: { appendPath: '/photo', httpMethod: :POST, successCodes: [201] }
|
817
817
|
},
|
818
818
|
|
819
819
|
# the most-popular metrics list
|
820
820
|
popular: {
|
821
|
-
path: '/
|
821
|
+
path: '/v2/metrics/popular?count=%{count}',
|
822
822
|
defaults: { count: 10 }
|
823
823
|
# no entry needed for GET because no special codes etc
|
824
824
|
}
|
@@ -1240,10 +1240,7 @@ class NumerousMetric < NumerousClientInternals
|
|
1240
1240
|
APIInfo = {
|
1241
1241
|
# read/update/delete a metric
|
1242
1242
|
metric: {
|
1243
|
-
path: '/
|
1244
|
-
PUT: { # note that PUT has a /v2 interface but GET does not (yet?).
|
1245
|
-
path: '/v2/metrics/%{metricId}'
|
1246
|
-
},
|
1243
|
+
path: '/v2/metrics/%{metricId}' ,
|
1247
1244
|
DELETE: {
|
1248
1245
|
successCodes: [ 204 ]
|
1249
1246
|
}
|
@@ -1251,7 +1248,7 @@ class NumerousMetric < NumerousClientInternals
|
|
1251
1248
|
|
1252
1249
|
# you can GET or POST the events collection
|
1253
1250
|
events: {
|
1254
|
-
path: '/
|
1251
|
+
path: '/v2/metrics/%{metricId}/events',
|
1255
1252
|
GET: {
|
1256
1253
|
next: 'nextURL',
|
1257
1254
|
list: 'events',
|
@@ -1264,7 +1261,7 @@ class NumerousMetric < NumerousClientInternals
|
|
1264
1261
|
# and you can GET or DELETE an individual event
|
1265
1262
|
# (no entry made for GET because all standard parameters on that one)
|
1266
1263
|
event: {
|
1267
|
-
path: '/
|
1264
|
+
path: '/v2/metrics/%{metricId}/events/%{eventID}',
|
1268
1265
|
DELETE: {
|
1269
1266
|
successCodes: [ 204 ] # No Content is the expected return
|
1270
1267
|
}
|
@@ -1313,7 +1310,7 @@ class NumerousMetric < NumerousClientInternals
|
|
1313
1310
|
|
1314
1311
|
# subscriptions on a particular metric
|
1315
1312
|
subscription: {
|
1316
|
-
path: '/
|
1313
|
+
path: '/v2/metrics/%{metricId}/subscriptions/%{userId}',
|
1317
1314
|
defaults: {
|
1318
1315
|
userId: 'me' # default userId for yourself ("me")
|
1319
1316
|
},
|
@@ -1323,7 +1320,7 @@ class NumerousMetric < NumerousClientInternals
|
|
1323
1320
|
},
|
1324
1321
|
|
1325
1322
|
photo: {
|
1326
|
-
path: '/
|
1323
|
+
path: '/v2/metrics/%{metricId}/photo',
|
1327
1324
|
POST: {
|
1328
1325
|
successCodes: [ 201 ]
|
1329
1326
|
},
|
@@ -1334,7 +1331,7 @@ class NumerousMetric < NumerousClientInternals
|
|
1334
1331
|
|
1335
1332
|
# permissions collection
|
1336
1333
|
permissionsCollection: {
|
1337
|
-
path: '/
|
1334
|
+
path: '/v2/metrics/%{metricId}/permissions',
|
1338
1335
|
# GET the permissions collection
|
1339
1336
|
GET: {
|
1340
1337
|
next: 'nextURL',
|
@@ -1344,7 +1341,7 @@ class NumerousMetric < NumerousClientInternals
|
|
1344
1341
|
|
1345
1342
|
# individual permissions : GET, PUT, DELETE
|
1346
1343
|
permission: {
|
1347
|
-
path: '/
|
1344
|
+
path: '/v2/metrics/%{metricId}/permissions/%{userId}',
|
1348
1345
|
defaults: {
|
1349
1346
|
userId: 'me' # default userId meaning "myself"
|
1350
1347
|
},
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: numerousapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil Webber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Classes implementing the NumerousApp REST APIs for metrics. Requires
|
14
14
|
Ruby 2.x
|