simplegeo 0.4 → 0.5

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplegeo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
5
- prerelease: false
4
+ hash: 1
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
9
- version: "0.4"
8
+ - 5
9
+ version: "0.5"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andrew Mager
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-12 00:00:00 -07:00
19
- default_executable:
18
+ date: 2011-04-26 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: oauth
@@ -80,7 +79,7 @@ dependencies:
80
79
  version: 1.2.0
81
80
  type: :development
82
81
  version_requirements: *id004
83
- description:
82
+ description: A SimpleGeo Ruby client
84
83
  email: andrew@simplegeo.com
85
84
  executables: []
86
85
 
@@ -105,21 +104,15 @@ files:
105
104
  - lib/simplegeo.rb
106
105
  - simplegeo.gemspec
107
106
  - spec/client_spec.rb
108
- - spec/fixtures/contains.json
109
- - spec/fixtures/get_density_by_day.json
110
- - spec/fixtures/get_density_by_hour.json
111
107
  - spec/fixtures/get_history.json
112
108
  - spec/fixtures/get_nearby.json
113
109
  - spec/fixtures/get_record.json
114
110
  - spec/fixtures/get_records.json
115
111
  - spec/fixtures/layer_info.json
116
- - spec/fixtures/nearby_address.json
117
112
  - spec/fixtures/no_such_record.json
118
113
  - spec/fixtures/nonetype_not_iterable.json
119
- - spec/fixtures/overlaps.json
120
114
  - spec/spec.opts
121
115
  - spec/spec_helper.rb
122
- has_rdoc: true
123
116
  homepage: http://github.com/simplegeo/simplegeo-ruby
124
117
  licenses: []
125
118
 
@@ -148,8 +141,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
141
  version: "0"
149
142
  requirements: []
150
143
 
151
- rubyforge_project:
152
- rubygems_version: 1.3.7
144
+ rubyforge_project: nowarning
145
+ rubygems_version: 1.7.2
153
146
  signing_key:
154
147
  specification_version: 3
155
148
  summary: A SimpleGeo Ruby Client
@@ -1,127 +0,0 @@
1
- [
2
- {
3
- "bounds":
4
- [
5
- -122.435188,
6
- 37.756093,
7
- -122.42555,
8
- 37.763030999999998
9
- ],
10
- "type": "Census Tract",
11
- "id": "Census_Tract:06075020600:9q8yy1",
12
- "abbr": "",
13
- "name": "06075020600"
14
- },
15
-
16
- {
17
- "bounds":
18
- [
19
- -123.17382499999999,
20
- 37.639829999999996,
21
- -122.28178,
22
- 37.929823999999996
23
- ],
24
- "type": "County",
25
- "id": "County:San_Francisco:9q8yvv",
26
- "abbr": "",
27
- "name": "San Francisco"
28
- },
29
-
30
- {
31
- "bounds":
32
- [
33
- -123.17382499999999,
34
- 37.639829999999996,
35
- -122.28178,
36
- 37.929823999999996
37
- ],
38
- "type": "City",
39
- "id": "City:San_Francisco:9q8yvv",
40
- "abbr": "",
41
- "name": "San Francisco"
42
- },
43
-
44
- {
45
- "bounds":
46
- [
47
- -122.612285,
48
- 37.708131000000002,
49
- -122.28178,
50
- 37.929823999999996
51
- ],
52
- "type": "Congressional District",
53
- "id": "Congressional_District:Congressional_Di:9q8yyn",
54
- "abbr": "",
55
- "name": "Congressional District 8"
56
- },
57
-
58
- {
59
- "bounds":
60
- [
61
- -179.14247147726383,
62
- 18.930137634111077,
63
- 179.78114994357418,
64
- 71.412179667308919
65
- ],
66
- "type": "Country",
67
- "id": "Country:United_States_of:9z12zg",
68
- "abbr": "",
69
- "name": "United States of America"
70
- },
71
-
72
- {
73
- "bounds":
74
- [
75
- -122.428882,
76
- 37.758029999999998,
77
- -122.42138199999999,
78
- 37.772263000000002
79
- ],
80
- "type": "Neighborhood",
81
- "id": "Neighborhood:Mission_Dolores:9q8yy4",
82
- "abbr": "",
83
- "name": "Mission Dolores"
84
- },
85
-
86
- {
87
- "bounds":
88
- [
89
- -122.51666666668193,
90
- 37.191666666628507,
91
- -121.73333333334497,
92
- 38.041666666640907
93
- ],
94
- "type": "Urban Area",
95
- "id": "Urban_Area:San_Francisco1:9q9jsg",
96
- "abbr": "",
97
- "name": "San Francisco1"
98
- },
99
-
100
- {
101
- "bounds":
102
- [
103
- -122.451553,
104
- 37.746687000000001,
105
- -122.424773,
106
- 37.770451999999999
107
- ],
108
- "type": "Postal",
109
- "id": "Postal:94114:9q8yvc",
110
- "abbr": "",
111
- "name": "94114"
112
- },
113
-
114
- {
115
- "bounds":
116
- [
117
- -124.48200299999999,
118
- 32.528832000000001,
119
- -114.13121099999999,
120
- 42.009516999999995
121
- ],
122
- "type": "Province",
123
- "id": "Province:CA:9qdguu",
124
- "abbr": "CA",
125
- "name": "California"
126
- }
127
- ]
@@ -1,833 +0,0 @@
1
- {
2
- "type": "FeatureCollection",
3
- "features": [
4
- {
5
- "geometry": {
6
- "type": "Polygon",
7
- "coordinates": [
8
- [
9
- 37.7587890625,
10
- -122.4267578125
11
- ],
12
- [
13
- 37.759765625,
14
- -122.4267578125
15
- ],
16
- [
17
- 37.759765625,
18
- -122.42578125
19
- ],
20
- [
21
- 37.7587890625,
22
- -122.42578125
23
- ],
24
- [
25
- 37.7587890625,
26
- -122.4267578125
27
- ]
28
- ]
29
- },
30
- "type": "Feature",
31
- "properties": {
32
- "hour": 0,
33
- "trending_rank": 2,
34
- "local_rank": 4,
35
- "city_rank": 10,
36
- "worldwide_rank": 4,
37
- "dayname": "sat"
38
- }
39
- },
40
- {
41
- "geometry": {
42
- "type": "Polygon",
43
- "coordinates": [
44
- [
45
- 37.7587890625,
46
- -122.4267578125
47
- ],
48
- [
49
- 37.759765625,
50
- -122.4267578125
51
- ],
52
- [
53
- 37.759765625,
54
- -122.42578125
55
- ],
56
- [
57
- 37.7587890625,
58
- -122.42578125
59
- ],
60
- [
61
- 37.7587890625,
62
- -122.4267578125
63
- ]
64
- ]
65
- },
66
- "type": "Feature",
67
- "properties": {
68
- "hour": 1,
69
- "trending_rank": -2,
70
- "local_rank": 6,
71
- "city_rank": 10,
72
- "worldwide_rank": 6,
73
- "dayname": "sat"
74
- }
75
- },
76
- {
77
- "geometry": {
78
- "type": "Polygon",
79
- "coordinates": [
80
- [
81
- 37.7587890625,
82
- -122.4267578125
83
- ],
84
- [
85
- 37.759765625,
86
- -122.4267578125
87
- ],
88
- [
89
- 37.759765625,
90
- -122.42578125
91
- ],
92
- [
93
- 37.7587890625,
94
- -122.42578125
95
- ],
96
- [
97
- 37.7587890625,
98
- -122.4267578125
99
- ]
100
- ]
101
- },
102
- "type": "Feature",
103
- "properties": {
104
- "hour": 2,
105
- "trending_rank": 2,
106
- "local_rank": 2,
107
- "city_rank": 10,
108
- "worldwide_rank": 2,
109
- "dayname": "sat"
110
- }
111
- },
112
- {
113
- "geometry": {
114
- "type": "Polygon",
115
- "coordinates": [
116
- [
117
- 37.7587890625,
118
- -122.4267578125
119
- ],
120
- [
121
- 37.759765625,
122
- -122.4267578125
123
- ],
124
- [
125
- 37.759765625,
126
- -122.42578125
127
- ],
128
- [
129
- 37.7587890625,
130
- -122.42578125
131
- ],
132
- [
133
- 37.7587890625,
134
- -122.4267578125
135
- ]
136
- ]
137
- },
138
- "type": "Feature",
139
- "properties": {
140
- "hour": 3,
141
- "trending_rank": -2,
142
- "local_rank": 6,
143
- "city_rank": 10,
144
- "worldwide_rank": 6,
145
- "dayname": "sat"
146
- }
147
- },
148
- {
149
- "geometry": {
150
- "type": "Polygon",
151
- "coordinates": [
152
- [
153
- 37.7587890625,
154
- -122.4267578125
155
- ],
156
- [
157
- 37.759765625,
158
- -122.4267578125
159
- ],
160
- [
161
- 37.759765625,
162
- -122.42578125
163
- ],
164
- [
165
- 37.7587890625,
166
- -122.42578125
167
- ],
168
- [
169
- 37.7587890625,
170
- -122.4267578125
171
- ]
172
- ]
173
- },
174
- "type": "Feature",
175
- "properties": {
176
- "hour": 4,
177
- "trending_rank": -2,
178
- "local_rank": 4,
179
- "city_rank": 10,
180
- "worldwide_rank": 4,
181
- "dayname": "sat"
182
- }
183
- },
184
- {
185
- "geometry": {
186
- "type": "Polygon",
187
- "coordinates": [
188
- [
189
- 37.7587890625,
190
- -122.4267578125
191
- ],
192
- [
193
- 37.759765625,
194
- -122.4267578125
195
- ],
196
- [
197
- 37.759765625,
198
- -122.42578125
199
- ],
200
- [
201
- 37.7587890625,
202
- -122.42578125
203
- ],
204
- [
205
- 37.7587890625,
206
- -122.4267578125
207
- ]
208
- ]
209
- },
210
- "type": "Feature",
211
- "properties": {
212
- "hour": 6,
213
- "trending_rank": 2,
214
- "local_rank": 2,
215
- "city_rank": 10,
216
- "worldwide_rank": 2,
217
- "dayname": "sat"
218
- }
219
- },
220
- {
221
- "geometry": {
222
- "type": "Polygon",
223
- "coordinates": [
224
- [
225
- 37.7587890625,
226
- -122.4267578125
227
- ],
228
- [
229
- 37.759765625,
230
- -122.4267578125
231
- ],
232
- [
233
- 37.759765625,
234
- -122.42578125
235
- ],
236
- [
237
- 37.7587890625,
238
- -122.42578125
239
- ],
240
- [
241
- 37.7587890625,
242
- -122.4267578125
243
- ]
244
- ]
245
- },
246
- "type": "Feature",
247
- "properties": {
248
- "hour": 7,
249
- "trending_rank": 1,
250
- "local_rank": 5,
251
- "city_rank": 10,
252
- "worldwide_rank": 5,
253
- "dayname": "sat"
254
- }
255
- },
256
- {
257
- "geometry": {
258
- "type": "Polygon",
259
- "coordinates": [
260
- [
261
- 37.7587890625,
262
- -122.4267578125
263
- ],
264
- [
265
- 37.759765625,
266
- -122.4267578125
267
- ],
268
- [
269
- 37.759765625,
270
- -122.42578125
271
- ],
272
- [
273
- 37.7587890625,
274
- -122.42578125
275
- ],
276
- [
277
- 37.7587890625,
278
- -122.4267578125
279
- ]
280
- ]
281
- },
282
- "type": "Feature",
283
- "properties": {
284
- "hour": 8,
285
- "trending_rank": 0,
286
- "local_rank": 6,
287
- "city_rank": 10,
288
- "worldwide_rank": 6,
289
- "dayname": "sat"
290
- }
291
- },
292
- {
293
- "geometry": {
294
- "type": "Polygon",
295
- "coordinates": [
296
- [
297
- 37.7587890625,
298
- -122.4267578125
299
- ],
300
- [
301
- 37.759765625,
302
- -122.4267578125
303
- ],
304
- [
305
- 37.759765625,
306
- -122.42578125
307
- ],
308
- [
309
- 37.7587890625,
310
- -122.42578125
311
- ],
312
- [
313
- 37.7587890625,
314
- -122.4267578125
315
- ]
316
- ]
317
- },
318
- "type": "Feature",
319
- "properties": {
320
- "hour": 9,
321
- "trending_rank": 0,
322
- "local_rank": 6,
323
- "city_rank": 10,
324
- "worldwide_rank": 6,
325
- "dayname": "sat"
326
- }
327
- },
328
- {
329
- "geometry": {
330
- "type": "Polygon",
331
- "coordinates": [
332
- [
333
- 37.7587890625,
334
- -122.4267578125
335
- ],
336
- [
337
- 37.759765625,
338
- -122.4267578125
339
- ],
340
- [
341
- 37.759765625,
342
- -122.42578125
343
- ],
344
- [
345
- 37.7587890625,
346
- -122.42578125
347
- ],
348
- [
349
- 37.7587890625,
350
- -122.4267578125
351
- ]
352
- ]
353
- },
354
- "type": "Feature",
355
- "properties": {
356
- "hour": 10,
357
- "trending_rank": 2,
358
- "local_rank": 6,
359
- "city_rank": 10,
360
- "worldwide_rank": 6,
361
- "dayname": "sat"
362
- }
363
- },
364
- {
365
- "geometry": {
366
- "type": "Polygon",
367
- "coordinates": [
368
- [
369
- 37.7587890625,
370
- -122.4267578125
371
- ],
372
- [
373
- 37.759765625,
374
- -122.4267578125
375
- ],
376
- [
377
- 37.759765625,
378
- -122.42578125
379
- ],
380
- [
381
- 37.7587890625,
382
- -122.42578125
383
- ],
384
- [
385
- 37.7587890625,
386
- -122.4267578125
387
- ]
388
- ]
389
- },
390
- "type": "Feature",
391
- "properties": {
392
- "hour": 11,
393
- "trending_rank": -1,
394
- "local_rank": 8,
395
- "city_rank": 10,
396
- "worldwide_rank": 8,
397
- "dayname": "sat"
398
- }
399
- },
400
- {
401
- "geometry": {
402
- "type": "Polygon",
403
- "coordinates": [
404
- [
405
- 37.7587890625,
406
- -122.4267578125
407
- ],
408
- [
409
- 37.759765625,
410
- -122.4267578125
411
- ],
412
- [
413
- 37.759765625,
414
- -122.42578125
415
- ],
416
- [
417
- 37.7587890625,
418
- -122.42578125
419
- ],
420
- [
421
- 37.7587890625,
422
- -122.4267578125
423
- ]
424
- ]
425
- },
426
- "type": "Feature",
427
- "properties": {
428
- "hour": 12,
429
- "trending_rank": 1,
430
- "local_rank": 7,
431
- "city_rank": 10,
432
- "worldwide_rank": 7,
433
- "dayname": "sat"
434
- }
435
- },
436
- {
437
- "geometry": {
438
- "type": "Polygon",
439
- "coordinates": [
440
- [
441
- 37.7587890625,
442
- -122.4267578125
443
- ],
444
- [
445
- 37.759765625,
446
- -122.4267578125
447
- ],
448
- [
449
- 37.759765625,
450
- -122.42578125
451
- ],
452
- [
453
- 37.7587890625,
454
- -122.42578125
455
- ],
456
- [
457
- 37.7587890625,
458
- -122.4267578125
459
- ]
460
- ]
461
- },
462
- "type": "Feature",
463
- "properties": {
464
- "hour": 13,
465
- "trending_rank": 0,
466
- "local_rank": 8,
467
- "city_rank": 10,
468
- "worldwide_rank": 8,
469
- "dayname": "sat"
470
- }
471
- },
472
- {
473
- "geometry": {
474
- "type": "Polygon",
475
- "coordinates": [
476
- [
477
- 37.7587890625,
478
- -122.4267578125
479
- ],
480
- [
481
- 37.759765625,
482
- -122.4267578125
483
- ],
484
- [
485
- 37.759765625,
486
- -122.42578125
487
- ],
488
- [
489
- 37.7587890625,
490
- -122.42578125
491
- ],
492
- [
493
- 37.7587890625,
494
- -122.4267578125
495
- ]
496
- ]
497
- },
498
- "type": "Feature",
499
- "properties": {
500
- "hour": 14,
501
- "trending_rank": 0,
502
- "local_rank": 8,
503
- "city_rank": 10,
504
- "worldwide_rank": 8,
505
- "dayname": "sat"
506
- }
507
- },
508
- {
509
- "geometry": {
510
- "type": "Polygon",
511
- "coordinates": [
512
- [
513
- 37.7587890625,
514
- -122.4267578125
515
- ],
516
- [
517
- 37.759765625,
518
- -122.4267578125
519
- ],
520
- [
521
- 37.759765625,
522
- -122.42578125
523
- ],
524
- [
525
- 37.7587890625,
526
- -122.42578125
527
- ],
528
- [
529
- 37.7587890625,
530
- -122.4267578125
531
- ]
532
- ]
533
- },
534
- "type": "Feature",
535
- "properties": {
536
- "hour": 15,
537
- "trending_rank": 0,
538
- "local_rank": 8,
539
- "city_rank": 10,
540
- "worldwide_rank": 8,
541
- "dayname": "sat"
542
- }
543
- },
544
- {
545
- "geometry": {
546
- "type": "Polygon",
547
- "coordinates": [
548
- [
549
- 37.7587890625,
550
- -122.4267578125
551
- ],
552
- [
553
- 37.759765625,
554
- -122.4267578125
555
- ],
556
- [
557
- 37.759765625,
558
- -122.42578125
559
- ],
560
- [
561
- 37.7587890625,
562
- -122.42578125
563
- ],
564
- [
565
- 37.7587890625,
566
- -122.4267578125
567
- ]
568
- ]
569
- },
570
- "type": "Feature",
571
- "properties": {
572
- "hour": 16,
573
- "trending_rank": 0,
574
- "local_rank": 8,
575
- "city_rank": 10,
576
- "worldwide_rank": 8,
577
- "dayname": "sat"
578
- }
579
- },
580
- {
581
- "geometry": {
582
- "type": "Polygon",
583
- "coordinates": [
584
- [
585
- 37.7587890625,
586
- -122.4267578125
587
- ],
588
- [
589
- 37.759765625,
590
- -122.4267578125
591
- ],
592
- [
593
- 37.759765625,
594
- -122.42578125
595
- ],
596
- [
597
- 37.7587890625,
598
- -122.42578125
599
- ],
600
- [
601
- 37.7587890625,
602
- -122.4267578125
603
- ]
604
- ]
605
- },
606
- "type": "Feature",
607
- "properties": {
608
- "hour": 17,
609
- "trending_rank": 0,
610
- "local_rank": 8,
611
- "city_rank": 10,
612
- "worldwide_rank": 8,
613
- "dayname": "sat"
614
- }
615
- },
616
- {
617
- "geometry": {
618
- "type": "Polygon",
619
- "coordinates": [
620
- [
621
- 37.7587890625,
622
- -122.4267578125
623
- ],
624
- [
625
- 37.759765625,
626
- -122.4267578125
627
- ],
628
- [
629
- 37.759765625,
630
- -122.42578125
631
- ],
632
- [
633
- 37.7587890625,
634
- -122.42578125
635
- ],
636
- [
637
- 37.7587890625,
638
- -122.4267578125
639
- ]
640
- ]
641
- },
642
- "type": "Feature",
643
- "properties": {
644
- "hour": 18,
645
- "trending_rank": 0,
646
- "local_rank": 8,
647
- "city_rank": 10,
648
- "worldwide_rank": 8,
649
- "dayname": "sat"
650
- }
651
- },
652
- {
653
- "geometry": {
654
- "type": "Polygon",
655
- "coordinates": [
656
- [
657
- 37.7587890625,
658
- -122.4267578125
659
- ],
660
- [
661
- 37.759765625,
662
- -122.4267578125
663
- ],
664
- [
665
- 37.759765625,
666
- -122.42578125
667
- ],
668
- [
669
- 37.7587890625,
670
- -122.42578125
671
- ],
672
- [
673
- 37.7587890625,
674
- -122.4267578125
675
- ]
676
- ]
677
- },
678
- "type": "Feature",
679
- "properties": {
680
- "hour": 19,
681
- "trending_rank": 0,
682
- "local_rank": 8,
683
- "city_rank": 10,
684
- "worldwide_rank": 8,
685
- "dayname": "sat"
686
- }
687
- },
688
- {
689
- "geometry": {
690
- "type": "Polygon",
691
- "coordinates": [
692
- [
693
- 37.7587890625,
694
- -122.4267578125
695
- ],
696
- [
697
- 37.759765625,
698
- -122.4267578125
699
- ],
700
- [
701
- 37.759765625,
702
- -122.42578125
703
- ],
704
- [
705
- 37.7587890625,
706
- -122.42578125
707
- ],
708
- [
709
- 37.7587890625,
710
- -122.4267578125
711
- ]
712
- ]
713
- },
714
- "type": "Feature",
715
- "properties": {
716
- "hour": 20,
717
- "trending_rank": 0,
718
- "local_rank": 8,
719
- "city_rank": 10,
720
- "worldwide_rank": 8,
721
- "dayname": "sat"
722
- }
723
- },
724
- {
725
- "geometry": {
726
- "type": "Polygon",
727
- "coordinates": [
728
- [
729
- 37.7587890625,
730
- -122.4267578125
731
- ],
732
- [
733
- 37.759765625,
734
- -122.4267578125
735
- ],
736
- [
737
- 37.759765625,
738
- -122.42578125
739
- ],
740
- [
741
- 37.7587890625,
742
- -122.42578125
743
- ],
744
- [
745
- 37.7587890625,
746
- -122.4267578125
747
- ]
748
- ]
749
- },
750
- "type": "Feature",
751
- "properties": {
752
- "hour": 21,
753
- "trending_rank": -2,
754
- "local_rank": 8,
755
- "city_rank": 10,
756
- "worldwide_rank": 8,
757
- "dayname": "sat"
758
- }
759
- },
760
- {
761
- "geometry": {
762
- "type": "Polygon",
763
- "coordinates": [
764
- [
765
- 37.7587890625,
766
- -122.4267578125
767
- ],
768
- [
769
- 37.759765625,
770
- -122.4267578125
771
- ],
772
- [
773
- 37.759765625,
774
- -122.42578125
775
- ],
776
- [
777
- 37.7587890625,
778
- -122.42578125
779
- ],
780
- [
781
- 37.7587890625,
782
- -122.4267578125
783
- ]
784
- ]
785
- },
786
- "type": "Feature",
787
- "properties": {
788
- "hour": 22,
789
- "trending_rank": 0,
790
- "local_rank": 5,
791
- "city_rank": 10,
792
- "worldwide_rank": 6,
793
- "dayname": "sat"
794
- }
795
- },
796
- {
797
- "geometry": {
798
- "type": "Polygon",
799
- "coordinates": [
800
- [
801
- 37.7587890625,
802
- -122.4267578125
803
- ],
804
- [
805
- 37.759765625,
806
- -122.4267578125
807
- ],
808
- [
809
- 37.759765625,
810
- -122.42578125
811
- ],
812
- [
813
- 37.7587890625,
814
- -122.42578125
815
- ],
816
- [
817
- 37.7587890625,
818
- -122.4267578125
819
- ]
820
- ]
821
- },
822
- "type": "Feature",
823
- "properties": {
824
- "hour": 23,
825
- "trending_rank": 1,
826
- "local_rank": 5,
827
- "city_rank": 10,
828
- "worldwide_rank": 5,
829
- "dayname": "sat"
830
- }
831
- }
832
- ]
833
- }