sandy 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,194 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://apps.coned.com/stormcenter_external/stormcenter_externaldata/data/interval_generation_data/metadata.xml
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Content-Length:
16
+ - '101'
17
+ Content-Type:
18
+ - text/xml
19
+ Last-Modified:
20
+ - Fri, 02 Nov 2012 19:19:29 GMT
21
+ Accept-Ranges:
22
+ - bytes
23
+ Etag:
24
+ - W/"9c4b29fb2eb9cd1:2319c"
25
+ Server:
26
+ - Microsoft-IIS/6.0
27
+ X-Powered-By:
28
+ - ASP.NET
29
+ Date:
30
+ - Fri, 02 Nov 2012 19:27:11 GMT
31
+ body:
32
+ encoding: US-ASCII
33
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<root>\r\n<directory>2012_11_02_15_00_01</directory>\r\n</root>\r\n"
34
+ http_version:
35
+ recorded_at: Fri, 02 Nov 2012 19:27:12 GMT
36
+ - request:
37
+ method: get
38
+ uri: http://apps.coned.com/stormcenter_external/stormcenter_externaldata/data/interval_generation_data/2012_11_02_15_00_01/report.js
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ''
42
+ headers: {}
43
+ response:
44
+ status:
45
+ code: 200
46
+ message: OK
47
+ headers:
48
+ Content-Length:
49
+ - '16737'
50
+ Content-Type:
51
+ - application/x-javascript
52
+ Last-Modified:
53
+ - Fri, 02 Nov 2012 19:19:29 GMT
54
+ Accept-Ranges:
55
+ - bytes
56
+ Etag:
57
+ - ! '"1413f0fa2eb9cd1:2319c"'
58
+ Server:
59
+ - Microsoft-IIS/6.0
60
+ X-Powered-By:
61
+ - ASP.NET
62
+ Date:
63
+ - Fri, 02 Nov 2012 19:27:11 GMT
64
+ body:
65
+ encoding: US-ASCII
66
+ string: ! '{"file_title":"report","file_data":{"curr_custs_aff":{"areas":[{"area_name":"CONED","areas":[{"area_name":"Bronx","areas":[{"area_name":"Central
67
+ Bronx","custs_out":26,"total_custs":44452,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.82,"longitude":-73.86},{"area_name":"Fordham","custs_out":239,"total_custs":114772,"etr":"Nov
68
+ 11, 23:59 PM","etrmillis":-5,"latitude":40.86,"longitude":-73.9},{"area_name":"Northeast
69
+ Bronx","custs_out":14014,"total_custs":79942,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.87,"longitude":-73.82},{"area_name":"Riverdale","custs_out":4030,"total_custs":34772,"etr":"Nov
70
+ 11, 23:59 PM","etrmillis":-5,"latitude":40.89,"longitude":-73.9},{"area_name":"Southeast
71
+ Bronx","custs_out":6970,"total_custs":89736,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.83,"longitude":-73.82},{"area_name":"West
72
+ Bronx","custs_out":34,"total_custs":62352,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.82,"longitude":-73.91}],"custs_out":31577,"total_custs":426026,"etr":"Nov
73
+ 11, 23:59 PM","etrmillis":-5,"latitude":40.86,"longitude":-73.86},{"area_name":"Brooklyn","areas":[{"area_name":"Bay
74
+ Ridge","custs_out":264,"total_custs":93430,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.62,"longitude":-74.0},{"area_name":"Borough
75
+ Hall","custs_out":3693,"total_custs":52631,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.67,"longitude":-73.97},{"area_name":"Brighton
76
+ Beach","custs_out":870,"total_custs":27831,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.45,"longitude":-73.96},{"area_name":"Crown
77
+ Heights","custs_out":445,"total_custs":84214,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.62,"longitude":-73.91},{"area_name":"Flatbush","custs_out":13342,"total_custs":135665,"etr":"Nov
78
+ 11, 23:59 PM","etrmillis":-5,"latitude":40.6,"longitude":-73.93},{"area_name":"Ocean
79
+ Parkway","custs_out":3505,"total_custs":117965,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.6,"longitude":-73.97},{"area_name":"Park
80
+ Slope","custs_out":1647,"total_custs":114131,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.63,"longitude":-73.98},{"area_name":"Prospect
81
+ Park","custs_out":5,"total_custs":32124,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.66,"longitude":-73.98},{"area_name":"Ridgewood","custs_out":157,"total_custs":89163,"etr":"Nov
82
+ 11, 23:59 PM","etrmillis":-5,"latitude":40.69,"longitude":-73.91},{"area_name":"Sheepshead
83
+ Bay","custs_out":7506,"total_custs":63947,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.59,"longitude":-73.92},{"area_name":"Williamsburg","custs_out":273,"total_custs":94606,"etr":"Nov
84
+ 11, 23:59 PM","etrmillis":-5,"latitude":40.69,"longitude":-73.96}],"custs_out":36082,"total_custs":1026426,"etr":"Nov
85
+ 11, 23:59 PM","etrmillis":-5,"latitude":40.66,"longitude":-73.91},{"area_name":"Manhattan","areas":[{"area_name":"Battery
86
+ Park City","custs_out":1,"total_custs":5042,"etr":"Nov 03, 23:59 PM","etrmillis":-5,"latitude":40.71,"longitude":-73.99},{"area_name":"Beekman","custs_out":1,"total_custs":9259,"etr":"Nov
87
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.75,"longitude":-73.96},{"area_name":"Bowling
88
+ Green","custs_out":2514,"total_custs":2587,"etr":"Nov 03, 23:59 PM","etrmillis":-5,"latitude":40.71,"longitude":-73.99},{"area_name":"Canal","custs_out":8479,"total_custs":8505,"etr":"Nov
89
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.71,"longitude":-73.99},{"area_name":"Central
90
+ Park","custs_out":1,"total_custs":78552,"etr":"Nov 03, 23:59 PM","etrmillis":-5,"latitude":40.78,"longitude":-73.96},{"area_name":"Chelsea","custs_out":27396,"total_custs":27526,"etr":"Nov
91
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.74,"longitude":-73.98},{"area_name":"City
92
+ Hall","custs_out":8805,"total_custs":8770,"etr":"Nov 03, 23:59 PM","etrmillis":-5,"latitude":40.71,"longitude":-73.99},{"area_name":"Columbus
93
+ Circle","custs_out":0,"total_custs":19820,"etr":"Nov 03, 23:59 PM","etrmillis":-5},{"area_name":"Cooper
94
+ Square","custs_out":66650,"total_custs":67237,"etr":"Nov 03, 23:59 PM","etrmillis":-5,"latitude":40.71,"longitude":-73.98},{"area_name":"Cortlandt","custs_out":206,"total_custs":2010,"etr":"Nov
95
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.71,"longitude":-73.99},{"area_name":"Empire","custs_out":15,"total_custs":3605,"etr":"Nov
96
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.74,"longitude":-73.98},{"area_name":"Fashion","custs_out":44,"total_custs":6342,"etr":"Nov
97
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.74,"longitude":-73.99},{"area_name":"Freedom","custs_out":0,"total_custs":1,"etr":"Nov
98
+ 03, 23:59 PM","etrmillis":-5},{"area_name":"Fulton","custs_out":4001,"total_custs":3966,"etr":"Nov
99
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.71,"longitude":-73.99},{"area_name":"Grand
100
+ Central","custs_out":1,"total_custs":4871,"etr":"Nov 03, 23:59 PM","etrmillis":-5,"latitude":40.74,"longitude":-73.97},{"area_name":"Greeley
101
+ Square","custs_out":3092,"total_custs":3053,"etr":"Nov 03, 23:59 PM","etrmillis":-5,"latitude":40.74,"longitude":-73.97},{"area_name":"Greenwich","custs_out":10109,"total_custs":10166,"etr":"Nov
102
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.72,"longitude":-73.99},{"area_name":"Harlem","custs_out":4,"total_custs":57399,"etr":"Nov
103
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.81,"longitude":-73.93},{"area_name":"Herald
104
+ Square","custs_out":2,"total_custs":1368,"etr":"Nov 03, 23:59 PM","etrmillis":-5,"latitude":40.74,"longitude":-73.97},{"area_name":"Hudson","custs_out":1,"total_custs":8288,"etr":"Nov
105
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.76,"longitude":-73.99},{"area_name":"Hunter","custs_out":0,"total_custs":2219,"etr":"Nov
106
+ 03, 23:59 PM","etrmillis":-5},{"area_name":"Kips Bay","custs_out":21086,"total_custs":21628,"etr":"Nov
107
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.74,"longitude":-73.97},{"area_name":"Lenox
108
+ Hill","custs_out":0,"total_custs":44042,"etr":"Nov 03, 23:59 PM","etrmillis":-5},{"area_name":"Lincoln
109
+ Square","custs_out":0,"total_custs":23019,"etr":"Nov 03, 23:59 PM","etrmillis":-5},{"area_name":"Madison
110
+ Square","custs_out":30189,"total_custs":30652,"etr":"Nov 03, 23:59 PM","etrmillis":-5,"latitude":40.73,"longitude":-73.97},{"area_name":"Park
111
+ Place","custs_out":4901,"total_custs":4905,"etr":"Nov 03, 23:59 PM","etrmillis":-5,"latitude":40.71,"longitude":-73.99},{"area_name":"Pennsylvania","custs_out":13,"total_custs":12366,"etr":"Nov
112
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.75,"longitude":-73.97},{"area_name":"Plaza","custs_out":0,"total_custs":6368,"etr":"Nov
113
+ 03, 23:59 PM","etrmillis":-5},{"area_name":"Randalls Island","custs_out":0,"total_custs":9,"etr":"Nov
114
+ 03, 23:59 PM","etrmillis":-5},{"area_name":"Rockefeller Center","custs_out":0,"total_custs":833,"etr":"Nov
115
+ 03, 23:59 PM","etrmillis":-5},{"area_name":"Roosevelt","custs_out":7,"total_custs":8877,"etr":"Nov
116
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.75,"longitude":-73.94},{"area_name":"Sheridan
117
+ Square","custs_out":38229,"total_custs":36661,"etr":"Nov 03, 23:59 PM","etrmillis":-5,"latitude":40.73,"longitude":-73.99},{"area_name":"Sutton","custs_out":0,"total_custs":10423,"etr":"Nov
118
+ 03, 23:59 PM","etrmillis":-5},{"area_name":"Times Square","custs_out":85,"total_custs":2560,"etr":"Nov
119
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.75,"longitude":-73.96},{"area_name":"Triboro","custs_out":8,"total_custs":37140,"etr":"Nov
120
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.81,"longitude":-73.93},{"area_name":"Turtle
121
+ Bay","custs_out":0,"total_custs":827,"etr":"Nov 03, 23:59 PM","etrmillis":-5},{"area_name":"Washington
122
+ Heights","custs_out":2,"total_custs":69829,"etr":"Nov 03, 23:59 PM","etrmillis":-5,"latitude":40.85,"longitude":-73.92},{"area_name":"Yorkville","custs_out":384,"total_custs":80474,"etr":"Nov
123
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.78,"longitude":-73.95}],"custs_out":226229,"total_custs":721199,"etr":"Nov
124
+ 03, 23:59 PM","etrmillis":-5,"latitude":40.76,"longitude":-73.97},{"area_name":"Queens","areas":[{"area_name":"Borden","custs_out":0,"total_custs":12267,"etr":"Nov
125
+ 11, 23:59 PM","etrmillis":-5},{"area_name":"Flushing","custs_out":14303,"total_custs":119742,"etr":"Nov
126
+ 11, 23:59 PM","etrmillis":-5,"latitude":40.75,"longitude":-73.8},{"area_name":"Jackson
127
+ Heights","custs_out":332,"total_custs":71263,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.76,"longitude":-73.9},{"area_name":"Jamaica","custs_out":36310,"total_custs":147658,"etr":"Nov
128
+ 11, 23:59 PM","etrmillis":-5,"latitude":40.69,"longitude":-73.78},{"area_name":"Long
129
+ Island City","custs_out":724,"total_custs":73785,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.77,"longitude":-73.91},{"area_name":"Maspeth","custs_out":2101,"total_custs":107094,"etr":"Nov
130
+ 11, 23:59 PM","etrmillis":-5,"latitude":40.71,"longitude":-73.89},{"area_name":"Rego
131
+ Park","custs_out":8951,"total_custs":70828,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.73,"longitude":-73.84},{"area_name":"Richmond
132
+ Hill","custs_out":21310,"total_custs":120719,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.68,"longitude":-73.86},{"area_name":"Sunnyside","custs_out":0,"total_custs":24571,"etr":"Nov
133
+ 11, 23:59 PM","etrmillis":-5}],"custs_out":85202,"total_custs":627208,"etr":"Nov
134
+ 11, 23:59 PM","etrmillis":-5,"latitude":40.71,"longitude":-73.86},{"area_name":"Staten
135
+ Island","areas":[{"area_name":"Fox Hills","custs_out":24484,"total_custs":59350,"etr":"Nov
136
+ 11, 23:59 PM","etrmillis":-5,"latitude":40.58,"longitude":-74.09},{"area_name":"Fresh
137
+ Kills","custs_out":14958,"total_custs":38152,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.6,"longitude":-74.17},{"area_name":"Wainwright","custs_out":7482,"total_custs":24613,"etr":"Nov
138
+ 11, 23:59 PM","etrmillis":-5,"latitude":40.54,"longitude":-74.16},{"area_name":"Willowbrook","custs_out":2971,"total_custs":23936,"etr":"Nov
139
+ 11, 23:59 PM","etrmillis":-5,"latitude":40.58,"longitude":-74.13},{"area_name":"Woodrow","custs_out":7192,"total_custs":28151,"etr":"Nov
140
+ 11, 23:59 PM","etrmillis":-5,"latitude":40.52,"longitude":-74.22}],"custs_out":57716,"total_custs":174202,"etr":"Nov
141
+ 11, 23:59 PM","etrmillis":-5,"latitude":40.57,"longitude":-74.17},{"area_name":"Westchester","areas":[{"area_name":"Ardsley
142
+ Village","custs_out":1435,"total_custs":1786,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.0,"longitude":-73.83},{"area_name":"Bedford
143
+ town","custs_out":810,"total_custs":1018,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.2,"longitude":-73.7},{"area_name":"Briarcliff
144
+ Manor village","custs_out":1727,"total_custs":2964,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.13,"longitude":-73.82},{"area_name":"Briarcliff
145
+ Ossining","custs_out":0,"total_custs":0,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.17,"longitude":-73.83},{"area_name":"Bronxville
146
+ village","custs_out":848,"total_custs":2529,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.94,"longitude":-73.8},{"area_name":"Buchanan
147
+ village","custs_out":116,"total_custs":1010,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.25,"longitude":-73.93},{"area_name":"Cortlandt
148
+ town","custs_out":4539,"total_custs":12295,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.25,"longitude":-73.89},{"area_name":"Croton-on-Hudson
149
+ village","custs_out":988,"total_custs":3629,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.19,"longitude":-73.87},{"area_name":"Dobbs
150
+ Ferry village","custs_out":1645,"total_custs":4153,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.0,"longitude":-73.83},{"area_name":"Eastchester
151
+ town","custs_out":3469,"total_custs":7900,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.95,"longitude":-73.79},{"area_name":"Elmsford
152
+ village","custs_out":236,"total_custs":2104,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.04,"longitude":-73.79},{"area_name":"Greenburgh
153
+ town","custs_out":8569,"total_custs":18736,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.04,"longitude":-73.79},{"area_name":"Harrison
154
+ village","custs_out":3298,"total_custs":9470,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.01,"longitude":-73.68},{"area_name":"Hastings-on-Hudson
155
+ village","custs_out":1203,"total_custs":3436,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.98,"longitude":-73.85},{"area_name":"Irvington
156
+ village","custs_out":1499,"total_custs":2632,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.02,"longitude":-73.83},{"area_name":"Larchmont
157
+ village","custs_out":1639,"total_custs":1983,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.91,"longitude":-73.72},{"area_name":"Mamaroneck
158
+ town","custs_out":3218,"total_custs":5259,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.94,"longitude":-73.72},{"area_name":"Mamaroneck
159
+ village","custs_out":2785,"total_custs":8704,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.94,"longitude":-73.72},{"area_name":"Mount
160
+ Kisco (Town of Bedford)","custs_out":0,"total_custs":0,"etr":"Nov 11, 23:59
161
+ PM","etrmillis":-5,"latitude":41.2,"longitude":-73.7},{"area_name":"Mount
162
+ Kisco (Town of New Castle)","custs_out":0,"total_custs":0,"etr":"Nov 11, 23:59
163
+ PM","etrmillis":-5,"latitude":41.18,"longitude":-73.76},{"area_name":"Mount
164
+ Kisco village","custs_out":670,"total_custs":5075,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.19,"longitude":-73.71},{"area_name":"Mount
165
+ Pleasant town","custs_out":4043,"total_custs":8783,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.1,"longitude":-73.78},{"area_name":"Mount
166
+ Vernon city","custs_out":6920,"total_custs":29297,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.9,"longitude":-73.8},{"area_name":"New
167
+ Castle town","custs_out":5284,"total_custs":6574,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.18,"longitude":-73.76},{"area_name":"New
168
+ Rochelle city","custs_out":12507,"total_custs":28958,"etr":"Nov 11, 23:59
169
+ PM","etrmillis":-5,"latitude":40.92,"longitude":-73.75},{"area_name":"North
170
+ Castle town","custs_out":3715,"total_custs":4894,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.18,"longitude":-73.77},{"area_name":"North
171
+ Pelham","custs_out":637,"total_custs":2071,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.89,"longitude":-73.78},{"area_name":"Ossining
172
+ town","custs_out":637,"total_custs":2307,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.15,"longitude":-73.84},{"area_name":"Ossining
173
+ village","custs_out":1573,"total_custs":8980,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.15,"longitude":-73.84},{"area_name":"Peekskill
174
+ city","custs_out":424,"total_custs":10239,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.28,"longitude":-73.83},{"area_name":"Pelham
175
+ Manor village","custs_out":1583,"total_custs":2051,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.89,"longitude":-73.78},{"area_name":"Pelham
176
+ village","custs_out":358,"total_custs":760,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.89,"longitude":-73.78},{"area_name":"Pleasantville
177
+ village","custs_out":1192,"total_custs":3338,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.13,"longitude":-73.76},{"area_name":"Port
178
+ Chester village","custs_out":5843,"total_custs":10254,"etr":"Nov 11, 23:59
179
+ PM","etrmillis":-5,"latitude":40.99,"longitude":-73.63},{"area_name":"Rye
180
+ Brook village","custs_out":2954,"total_custs":3720,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.02,"longitude":-73.66},{"area_name":"Rye
181
+ city","custs_out":4545,"total_custs":6070,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.99,"longitude":-73.66},{"area_name":"Rye
182
+ town","custs_out":0,"total_custs":0,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.96,"longitude":-73.65},{"area_name":"Scarsdale
183
+ village","custs_out":4506,"total_custs":6025,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.98,"longitude":-73.75},{"area_name":"Sleepy
184
+ Hollow","custs_out":1007,"total_custs":3515,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.08,"longitude":-73.84},{"area_name":"Somers
185
+ town","custs_out":0,"total_custs":0,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.1,"longitude":-73.78},{"area_name":"Tarrytown
186
+ village","custs_out":1849,"total_custs":5217,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.05,"longitude":-73.84},{"area_name":"Tuckahoe
187
+ village","custs_out":202,"total_custs":2867,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.94,"longitude":-73.8},{"area_name":"White
188
+ Plains city","custs_out":8818,"total_custs":23854,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.02,"longitude":-73.73},{"area_name":"Yonkers
189
+ city","custs_out":15604,"total_custs":75568,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":40.94,"longitude":-73.85},{"area_name":"Yorktown
190
+ town","custs_out":3969,"total_custs":8173,"etr":"Nov 11, 23:59 PM","etrmillis":-5,"latitude":41.26,"longitude":-73.79}],"custs_out":127841,"total_custs":348198,"etr":"Nov
191
+ 11, 23:59 PM","etrmillis":-5,"latitude":41.01,"longitude":-73.78}],"custs_out":0,"total_custs":0,"etr":"","etrmillis":-9}]}}}'
192
+ http_version:
193
+ recorded_at: Fri, 02 Nov 2012 19:27:12 GMT
194
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,26 @@
1
+ require "spec_helper"
2
+
3
+ describe Sandy::Provider::ConEd::Report, :vcr do
4
+ describe ".initialize" do
5
+ context "with no response" do
6
+ it "raises an error" do
7
+ end
8
+ end
9
+ context "with an empty response" do
10
+ it "raises an error" do
11
+ end
12
+ end
13
+ end
14
+
15
+ describe "#regions" do
16
+ subject { Sandy::Provider::ConEd::Report.new.regions }
17
+ it { should be_an_instance_of Array }
18
+ it { should_not be_empty }
19
+ end
20
+
21
+ describe "#neighborhoods" do
22
+ subject { Sandy::Provider::ConEd::Report.new.neighborhoods }
23
+ it { should be_an_instance_of Array }
24
+ it { should_not be_empty }
25
+ end
26
+ end
@@ -0,0 +1,13 @@
1
+ require "sandy"
2
+ require "vcr"
3
+
4
+ VCR.configure do |c|
5
+ c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
6
+ c.hook_into :webmock
7
+ c.configure_rspec_metadata!
8
+ end
9
+
10
+ RSpec.configure do |c|
11
+ c.treat_symbols_as_metadata_keys_with_true_values = true
12
+ end
13
+
metadata ADDED
@@ -0,0 +1,153 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sandy
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Cameron Cundiff
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-11-02 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: httparty
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 0.9.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 0.9.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rspec
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 2.11.0
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 2.11.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: webmock
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 1.8.11
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 1.8.11
78
+ - !ruby/object:Gem::Dependency
79
+ name: vcr
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 2.3.0
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 2.3.0
94
+ description: Present a simple API to consume power outage data for the Greater New
95
+ York area.
96
+ email:
97
+ - ckundo@gmail.com
98
+ executables: []
99
+ extensions: []
100
+ extra_rdoc_files: []
101
+ files:
102
+ - .gitignore
103
+ - Gemfile
104
+ - LICENSE.txt
105
+ - README.md
106
+ - Rakefile
107
+ - lib/sandy.rb
108
+ - lib/sandy/area.rb
109
+ - lib/sandy/provider.rb
110
+ - lib/sandy/providers/coned.rb
111
+ - lib/sandy/providers/coned/report.rb
112
+ - lib/sandy/version.rb
113
+ - sandy.gemspec
114
+ - spec/area_spec.rb
115
+ - spec/fixtures/vcr_cassettes/Sandy_Provider_ConEd_Report/_areas/.yml
116
+ - spec/fixtures/vcr_cassettes/Sandy_Provider_ConEd_Report/_neighborhoods/.yml
117
+ - spec/fixtures/vcr_cassettes/Sandy_Provider_ConEd_Report/_outages/.yml
118
+ - spec/fixtures/vcr_cassettes/Sandy_Provider_ConEd_Report/_regions/.yml
119
+ - spec/providers/coned/report_spec.rb
120
+ - spec/spec_helper.rb
121
+ homepage: http://www.github.com/ckundo/sandy
122
+ licenses: []
123
+ post_install_message:
124
+ rdoc_options: []
125
+ require_paths:
126
+ - lib
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ none: false
129
+ requirements:
130
+ - - ! '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ none: false
135
+ requirements:
136
+ - - ! '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ requirements: []
140
+ rubyforge_project:
141
+ rubygems_version: 1.8.24
142
+ signing_key:
143
+ specification_version: 3
144
+ summary: Power outage data for ConEd in NYC
145
+ test_files:
146
+ - spec/area_spec.rb
147
+ - spec/fixtures/vcr_cassettes/Sandy_Provider_ConEd_Report/_areas/.yml
148
+ - spec/fixtures/vcr_cassettes/Sandy_Provider_ConEd_Report/_neighborhoods/.yml
149
+ - spec/fixtures/vcr_cassettes/Sandy_Provider_ConEd_Report/_outages/.yml
150
+ - spec/fixtures/vcr_cassettes/Sandy_Provider_ConEd_Report/_regions/.yml
151
+ - spec/providers/coned/report_spec.rb
152
+ - spec/spec_helper.rb
153
+ has_rdoc: