BtSync 0.4.4 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +18 -2
  3. data/lib/btsync.rb +39 -3
  4. data/lib/btsync/communicator.rb +18 -4
  5. data/lib/btsync/directory.rb +19 -3
  6. data/lib/btsync/version.rb +1 -1
  7. data/spec/BtSync/bt_sync_spec.rb +60 -0
  8. data/spec/BtSync/directory_spec.rb +17 -3
  9. data/spec/fixtures/cassettes/Setup-BtSync-Directory.yml +11 -10
  10. data/spec/fixtures/cassettes/Setup-Directory-Settings.yml +14 -13
  11. data/spec/fixtures/cassettes/add-folder-list.yml +30 -27
  12. data/spec/fixtures/cassettes/add-folder.yml +21 -20
  13. data/spec/fixtures/cassettes/add-known-host.yml +58 -0
  14. data/spec/fixtures/cassettes/change_download_limit.yml +113 -0
  15. data/spec/fixtures/cassettes/change_listening_port.yml +113 -0
  16. data/spec/fixtures/cassettes/change_name.yml +113 -0
  17. data/spec/fixtures/cassettes/change_upload_limit.yml +113 -0
  18. data/spec/fixtures/cassettes/get-folders.yml +22 -20
  19. data/spec/fixtures/cassettes/get-known-hosts.yml +3 -3
  20. data/spec/fixtures/cassettes/get-os-type.yml +6 -6
  21. data/spec/fixtures/cassettes/get-peers.yml +8 -7
  22. data/spec/fixtures/cassettes/get-preferences.yml +18 -18
  23. data/spec/fixtures/cassettes/get-settings.yml +6 -6
  24. data/spec/fixtures/cassettes/get-version.yml +6 -6
  25. data/spec/fixtures/cassettes/remove-folder-list.yml +19 -17
  26. data/spec/fixtures/cassettes/remove-folder.yml +33 -30
  27. data/spec/fixtures/cassettes/remove-known-host.yml +57 -0
  28. data/spec/fixtures/cassettes/reset_device_name.yml +86 -0
  29. data/spec/fixtures/cassettes/reset_download_limit.yml +86 -0
  30. data/spec/fixtures/cassettes/reset_listening_port.yml +86 -0
  31. data/spec/fixtures/cassettes/reset_upload_limit.yml +86 -0
  32. data/spec/fixtures/cassettes/set-preferences-delete.yml +9 -9
  33. data/spec/fixtures/cassettes/set-preferences-dht.yml +9 -9
  34. data/spec/fixtures/cassettes/set-preferences-hosts.yml +9 -9
  35. data/spec/fixtures/cassettes/set-preferences-lan.yml +9 -9
  36. data/spec/fixtures/cassettes/set-preferences-relay.yml +9 -9
  37. data/spec/fixtures/cassettes/set-preferences-tracker.yml +9 -9
  38. data/spec/fixtures/cassettes/view-folders.yml +3 -3
  39. metadata +22 -2
@@ -19,23 +19,23 @@ http_interactions:
19
19
  Content-Type:
20
20
  - text/html
21
21
  Set-Cookie:
22
- - GUID=IEzRTkXGvwjwVG2PCdQi; path=/
22
+ - GUID=xGDzGTFz7RbifqrU0s0f; path=/
23
23
  Cache-Control:
24
24
  - no-cache
25
25
  body:
26
26
  encoding: US-ASCII
27
- string: <html><div id='token' style='display:none;'>1awhyGmgr5acq3rZW5J45XAaMfWDaBL8WBJ7_qK1pFVnWpmw3fmJbi4fslEAAAAA</div></html>
27
+ string: <html><div id='token' style='display:none;'>uh-aIDG-fW5143nMd4xwweTpopw-LlhIsUgKwzE5HWe8JnJN676efH-DtlEAAAAA</div></html>
28
28
  http_version:
29
- recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
29
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
30
30
  - request:
31
31
  method: get
32
- uri: http://localhost:8888/gui/?action=getversion&output=json&token=1awhyGmgr5acq3rZW5J45XAaMfWDaBL8WBJ7_qK1pFVnWpmw3fmJbi4fslEAAAAA
32
+ uri: http://localhost:8888/gui/?action=getversion&output=json&token=uh-aIDG-fW5143nMd4xwweTpopw-LlhIsUgKwzE5HWe8JnJN676efH-DtlEAAAAA
33
33
  body:
34
34
  encoding: US-ASCII
35
35
  string: ''
36
36
  headers:
37
37
  Cookie:
38
- - GUID=IEzRTkXGvwjwVG2PCdQi
38
+ - GUID=xGDzGTFz7RbifqrU0s0f
39
39
  response:
40
40
  status:
41
41
  code: 200
@@ -53,5 +53,5 @@ http_interactions:
53
53
  encoding: US-ASCII
54
54
  string: ! '{ "version": 16777350 }'
55
55
  http_version:
56
- recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
56
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
57
57
  recorded_with: VCR 2.5.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=7cFoPQ5VvJbcU25vUUYeQSl9uIa5_NkKsdM3lRLFyhjTp7_f9OnU8S4fslEAAAAA
5
+ uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=0yGezY2QZeVy7GPzaV-TQ6SuOMns8TlPgbHND059Qv-NnsquBvqIln-DtlEAAAAA
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  Cookie:
11
- - GUID=ONEG0039oAQKNtLjyOBm
11
+ - GUID=YvUwERzuA6KDtWx5gBqG
12
12
  response:
13
13
  status:
14
14
  code: 200
@@ -17,18 +17,19 @@ http_interactions:
17
17
  Connection:
18
18
  - keep-alive
19
19
  Content-Length:
20
- - '185'
20
+ - '270'
21
21
  Content-Type:
22
22
  - application/json; charset=utf-8
23
23
  Cache-Control:
24
24
  - no-cache
25
25
  body:
26
26
  encoding: US-ASCII
27
- string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ ],
28
- "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files" } ],
29
- "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
27
+ string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ {
28
+ "direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
29
+ } ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
30
+ } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
30
31
  http_version:
31
- recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
32
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
32
33
  - request:
33
34
  method: get
34
35
  uri: http://localhost:8888/gui/token.html?output=text
@@ -48,23 +49,23 @@ http_interactions:
48
49
  Content-Type:
49
50
  - text/html
50
51
  Set-Cookie:
51
- - GUID=cuamjnSRtoUis6uLxgoA; path=/
52
+ - GUID=gzJ3QUMhgu6Ar87exf88; path=/
52
53
  Cache-Control:
53
54
  - no-cache
54
55
  body:
55
56
  encoding: US-ASCII
56
- string: <html><div id='token' style='display:none;'>YxeegGU-Esu-tSUN2OQ98Z2WTzabgyscY0PW6uS6asbBB1JOOtucIS4fslEAAAAA</div></html>
57
+ string: <html><div id='token' style='display:none;'>B8XISDe9E7nDi2RefgjKq50dzX1VVx7tQqYN4dvnpk2nHbJey0Cx3n-DtlEAAAAA</div></html>
57
58
  http_version:
58
- recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
59
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
59
60
  - request:
60
61
  method: get
61
- uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=YxeegGU-Esu-tSUN2OQ98Z2WTzabgyscY0PW6uS6asbBB1JOOtucIS4fslEAAAAA
62
+ uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=B8XISDe9E7nDi2RefgjKq50dzX1VVx7tQqYN4dvnpk2nHbJey0Cx3n-DtlEAAAAA
62
63
  body:
63
64
  encoding: US-ASCII
64
65
  string: ''
65
66
  headers:
66
67
  Cookie:
67
- - GUID=cuamjnSRtoUis6uLxgoA
68
+ - GUID=gzJ3QUMhgu6Ar87exf88
68
69
  response:
69
70
  status:
70
71
  code: 200
@@ -73,16 +74,17 @@ http_interactions:
73
74
  Connection:
74
75
  - keep-alive
75
76
  Content-Length:
76
- - '185'
77
+ - '270'
77
78
  Content-Type:
78
79
  - application/json; charset=utf-8
79
80
  Cache-Control:
80
81
  - no-cache
81
82
  body:
82
83
  encoding: US-ASCII
83
- string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ ],
84
- "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files" } ],
85
- "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
84
+ string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ {
85
+ "direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
86
+ } ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
87
+ } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
86
88
  http_version:
87
- recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
89
+ recorded_at: Tue, 11 Jun 2013 01:55:14 GMT
88
90
  recorded_with: VCR 2.5.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=7cFoPQ5VvJbcU25vUUYeQSl9uIa5_NkKsdM3lRLFyhjTp7_f9OnU8S4fslEAAAAA
5
+ uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=0yGezY2QZeVy7GPzaV-TQ6SuOMns8TlPgbHND059Qv-NnsquBvqIln-DtlEAAAAA
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  Cookie:
11
- - GUID=ONEG0039oAQKNtLjyOBm
11
+ - GUID=YvUwERzuA6KDtWx5gBqG
12
12
  response:
13
13
  status:
14
14
  code: 200
@@ -17,19 +17,20 @@ http_interactions:
17
17
  Connection:
18
18
  - keep-alive
19
19
  Content-Length:
20
- - '310'
20
+ - '395'
21
21
  Content-Type:
22
22
  - application/json; charset=utf-8
23
23
  Cache-Control:
24
24
  - no-cache
25
25
  body:
26
26
  encoding: US-ASCII
27
- string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ ],
28
- "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files" },
29
- { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "SXBX73B6OSTJ3P3AEUKGGPK6EKLO5L4K",
27
+ string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ {
28
+ "direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
29
+ } ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
30
+ }, { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "FEEBRD6KX6NFZYJRVVN6WKGONI467MZE",
30
31
  "size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
31
32
  http_version:
32
- recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
33
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
33
34
  - request:
34
35
  method: get
35
36
  uri: http://localhost:8888/gui/token.html?output=text
@@ -49,23 +50,23 @@ http_interactions:
49
50
  Content-Type:
50
51
  - text/html
51
52
  Set-Cookie:
52
- - GUID=lQmpyDRlVkOiry46ihxC; path=/
53
+ - GUID=xWO3s9sRAOd4SbTEUor6; path=/
53
54
  Cache-Control:
54
55
  - no-cache
55
56
  body:
56
57
  encoding: US-ASCII
57
- string: <html><div id='token' style='display:none;'>D_uMfryNdDaftYpUwYMURWOrhxaXFOe203czKsS2YmHyobKNFyAGoi4fslEAAAAA</div></html>
58
+ string: <html><div id='token' style='display:none;'>4sPSOh8zYfF6HWZbmnwc1KfcdDk-VDQXm1gs31Ycwcna1gDttLOpnH-DtlEAAAAA</div></html>
58
59
  http_version:
59
- recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
60
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
60
61
  - request:
61
62
  method: get
62
- uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=D_uMfryNdDaftYpUwYMURWOrhxaXFOe203czKsS2YmHyobKNFyAGoi4fslEAAAAA
63
+ uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=4sPSOh8zYfF6HWZbmnwc1KfcdDk-VDQXm1gs31Ycwcna1gDttLOpnH-DtlEAAAAA
63
64
  body:
64
65
  encoding: US-ASCII
65
66
  string: ''
66
67
  headers:
67
68
  Cookie:
68
- - GUID=lQmpyDRlVkOiry46ihxC
69
+ - GUID=xWO3s9sRAOd4SbTEUor6
69
70
  response:
70
71
  status:
71
72
  code: 200
@@ -74,19 +75,20 @@ http_interactions:
74
75
  Connection:
75
76
  - keep-alive
76
77
  Content-Length:
77
- - '310'
78
+ - '395'
78
79
  Content-Type:
79
80
  - application/json; charset=utf-8
80
81
  Cache-Control:
81
82
  - no-cache
82
83
  body:
83
84
  encoding: US-ASCII
84
- string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ ],
85
- "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files" },
86
- { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "SXBX73B6OSTJ3P3AEUKGGPK6EKLO5L4K",
85
+ string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ {
86
+ "direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
87
+ } ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
88
+ }, { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "FEEBRD6KX6NFZYJRVVN6WKGONI467MZE",
87
89
  "size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
88
90
  http_version:
89
- recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
91
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
90
92
  - request:
91
93
  method: get
92
94
  uri: http://localhost:8888/gui/token.html?output=text
@@ -106,23 +108,23 @@ http_interactions:
106
108
  Content-Type:
107
109
  - text/html
108
110
  Set-Cookie:
109
- - GUID=PejQI0ziIVf2X0Ws0N6L; path=/
111
+ - GUID=2b2SyebYTvQ9IayA1WPg; path=/
110
112
  Cache-Control:
111
113
  - no-cache
112
114
  body:
113
115
  encoding: US-ASCII
114
- string: <html><div id='token' style='display:none;'>RLoZ2bUezEX3b0s8n33SzPOjKkaSA_jP6aOOTLCNOMy1p5b-UbnWHy4fslEAAAAA</div></html>
116
+ string: <html><div id='token' style='display:none;'>SZ_iXN0euttfIXQiYB9NAVJGyNy69pQHdN_Nyt8YkeuKTWJNTVzpeX-DtlEAAAAA</div></html>
115
117
  http_version:
116
- recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
118
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
117
119
  - request:
118
120
  method: get
119
- uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=RLoZ2bUezEX3b0s8n33SzPOjKkaSA_jP6aOOTLCNOMy1p5b-UbnWHy4fslEAAAAA
121
+ uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=SZ_iXN0euttfIXQiYB9NAVJGyNy69pQHdN_Nyt8YkeuKTWJNTVzpeX-DtlEAAAAA
120
122
  body:
121
123
  encoding: US-ASCII
122
124
  string: ''
123
125
  headers:
124
126
  Cookie:
125
- - GUID=PejQI0ziIVf2X0Ws0N6L
127
+ - GUID=2b2SyebYTvQ9IayA1WPg
126
128
  response:
127
129
  status:
128
130
  code: 200
@@ -131,28 +133,29 @@ http_interactions:
131
133
  Connection:
132
134
  - keep-alive
133
135
  Content-Length:
134
- - '310'
136
+ - '395'
135
137
  Content-Type:
136
138
  - application/json; charset=utf-8
137
139
  Cache-Control:
138
140
  - no-cache
139
141
  body:
140
142
  encoding: US-ASCII
141
- string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ ],
142
- "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files" },
143
- { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "SXBX73B6OSTJ3P3AEUKGGPK6EKLO5L4K",
143
+ string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ {
144
+ "direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
145
+ } ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
146
+ }, { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "FEEBRD6KX6NFZYJRVVN6WKGONI467MZE",
144
147
  "size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
145
148
  http_version:
146
- recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
149
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
147
150
  - request:
148
151
  method: get
149
- uri: http://localhost:8888/gui/?action=removefolder&name=/home/chris/bt_test&output=json&secret=SXBX73B6OSTJ3P3AEUKGGPK6EKLO5L4K&token=7cFoPQ5VvJbcU25vUUYeQSl9uIa5_NkKsdM3lRLFyhjTp7_f9OnU8S4fslEAAAAA
152
+ uri: http://localhost:8888/gui/?action=removefolder&name=/home/chris/bt_test&output=json&secret=FEEBRD6KX6NFZYJRVVN6WKGONI467MZE&token=0yGezY2QZeVy7GPzaV-TQ6SuOMns8TlPgbHND059Qv-NnsquBvqIln-DtlEAAAAA
150
153
  body:
151
154
  encoding: US-ASCII
152
155
  string: ''
153
156
  headers:
154
157
  Cookie:
155
- - GUID=ONEG0039oAQKNtLjyOBm
158
+ - GUID=YvUwERzuA6KDtWx5gBqG
156
159
  response:
157
160
  status:
158
161
  code: 200
@@ -170,5 +173,5 @@ http_interactions:
170
173
  encoding: US-ASCII
171
174
  string: ! '{ }'
172
175
  http_version:
173
- recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
176
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
174
177
  recorded_with: VCR 2.5.0
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8888/gui/?action=removeknownhosts&index=1&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=cNJuLdTzhAVEgK83V3Ai3F9LGEGb2oDNWAwa1BWst7Dpo45MpwWH93-DtlEAAAAA
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Cookie:
11
+ - GUID=SZGEavWRWlylZwpb4y1U
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Connection:
18
+ - keep-alive
19
+ Content-Length:
20
+ - '4'
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Cache-Control:
24
+ - no-cache
25
+ body:
26
+ encoding: US-ASCII
27
+ string: ! '{ }'
28
+ http_version:
29
+ recorded_at: Tue, 11 Jun 2013 01:55:14 GMT
30
+ - request:
31
+ method: get
32
+ uri: http://localhost:8888/gui/?action=getknownhosts&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=cNJuLdTzhAVEgK83V3Ai3F9LGEGb2oDNWAwa1BWst7Dpo45MpwWH93-DtlEAAAAA
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ''
36
+ headers:
37
+ Cookie:
38
+ - GUID=SZGEavWRWlylZwpb4y1U
39
+ response:
40
+ status:
41
+ code: 200
42
+ message: OK
43
+ headers:
44
+ Connection:
45
+ - keep-alive
46
+ Content-Length:
47
+ - '60'
48
+ Content-Type:
49
+ - application/json; charset=utf-8
50
+ Cache-Control:
51
+ - no-cache
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ! '{ "hosts": [ { "index": 0, "peer": "192.168.1.5:45685" } ] }'
55
+ http_version:
56
+ recorded_at: Tue, 11 Jun 2013 01:55:14 GMT
57
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,86 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8888/gui/?action=getsettings&output=json&token=gV-hYQBftblOtYzxFsjcp4_kfp_CzxqhIaKVaaVtQetH_vgkRxWGA3-DtlEAAAAA
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Cookie:
11
+ - GUID=XfPBG1WqhacQ0f2GNXye
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Connection:
18
+ - keep-alive
19
+ Content-Length:
20
+ - '119'
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Cache-Control:
24
+ - no-cache
25
+ body:
26
+ encoding: US-ASCII
27
+ string: ! '{ "settings": { "devicename": "IceyEC-Virtual2", "dlrate": 0, "listeningport":
28
+ 63754, "portmapping": 1, "ulrate": 0 } }'
29
+ http_version:
30
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
31
+ - request:
32
+ method: get
33
+ uri: http://localhost:8888/gui/?action=setsettings&devicename=IceyEC-Virtual1&dlrate=0&listeningport=63754&output=json&portmapping=1&token=gV-hYQBftblOtYzxFsjcp4_kfp_CzxqhIaKVaaVtQetH_vgkRxWGA3-DtlEAAAAA&ulrate=0
34
+ body:
35
+ encoding: US-ASCII
36
+ string: ''
37
+ headers:
38
+ Cookie:
39
+ - GUID=XfPBG1WqhacQ0f2GNXye
40
+ response:
41
+ status:
42
+ code: 200
43
+ message: OK
44
+ headers:
45
+ Connection:
46
+ - keep-alive
47
+ Content-Length:
48
+ - '4'
49
+ Content-Type:
50
+ - application/json; charset=utf-8
51
+ Cache-Control:
52
+ - no-cache
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ! '{ }'
56
+ http_version:
57
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
58
+ - request:
59
+ method: get
60
+ uri: http://localhost:8888/gui/?action=getsettings&output=json&token=gV-hYQBftblOtYzxFsjcp4_kfp_CzxqhIaKVaaVtQetH_vgkRxWGA3-DtlEAAAAA
61
+ body:
62
+ encoding: US-ASCII
63
+ string: ''
64
+ headers:
65
+ Cookie:
66
+ - GUID=XfPBG1WqhacQ0f2GNXye
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Connection:
73
+ - keep-alive
74
+ Content-Length:
75
+ - '119'
76
+ Content-Type:
77
+ - application/json; charset=utf-8
78
+ Cache-Control:
79
+ - no-cache
80
+ body:
81
+ encoding: US-ASCII
82
+ string: ! '{ "settings": { "devicename": "IceyEC-Virtual1", "dlrate": 0, "listeningport":
83
+ 63754, "portmapping": 1, "ulrate": 0 } }'
84
+ http_version:
85
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
86
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,86 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8888/gui/?action=getsettings&output=json&token=CjJq3w8fG-rf15Vh44pxG3FwSBLu8AWU3b1PoN-SVD43tCnPkeCxAX-DtlEAAAAA
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Cookie:
11
+ - GUID=rQOaRmGSuftanqRVwf4c
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Connection:
18
+ - keep-alive
19
+ Content-Length:
20
+ - '122'
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Cache-Control:
24
+ - no-cache
25
+ body:
26
+ encoding: US-ASCII
27
+ string: ! '{ "settings": { "devicename": "IceyEC-Virtual1", "dlrate": 1000,
28
+ "listeningport": 63754, "portmapping": 1, "ulrate": 0 } }'
29
+ http_version:
30
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
31
+ - request:
32
+ method: get
33
+ uri: http://localhost:8888/gui/?action=setsettings&devicename=IceyEC-Virtual1&dlrate=0&listeningport=63754&output=json&portmapping=1&token=CjJq3w8fG-rf15Vh44pxG3FwSBLu8AWU3b1PoN-SVD43tCnPkeCxAX-DtlEAAAAA&ulrate=0
34
+ body:
35
+ encoding: US-ASCII
36
+ string: ''
37
+ headers:
38
+ Cookie:
39
+ - GUID=rQOaRmGSuftanqRVwf4c
40
+ response:
41
+ status:
42
+ code: 200
43
+ message: OK
44
+ headers:
45
+ Connection:
46
+ - keep-alive
47
+ Content-Length:
48
+ - '4'
49
+ Content-Type:
50
+ - application/json; charset=utf-8
51
+ Cache-Control:
52
+ - no-cache
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ! '{ }'
56
+ http_version:
57
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
58
+ - request:
59
+ method: get
60
+ uri: http://localhost:8888/gui/?action=getsettings&output=json&token=CjJq3w8fG-rf15Vh44pxG3FwSBLu8AWU3b1PoN-SVD43tCnPkeCxAX-DtlEAAAAA
61
+ body:
62
+ encoding: US-ASCII
63
+ string: ''
64
+ headers:
65
+ Cookie:
66
+ - GUID=rQOaRmGSuftanqRVwf4c
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Connection:
73
+ - keep-alive
74
+ Content-Length:
75
+ - '119'
76
+ Content-Type:
77
+ - application/json; charset=utf-8
78
+ Cache-Control:
79
+ - no-cache
80
+ body:
81
+ encoding: US-ASCII
82
+ string: ! '{ "settings": { "devicename": "IceyEC-Virtual1", "dlrate": 0, "listeningport":
83
+ 63754, "portmapping": 1, "ulrate": 0 } }'
84
+ http_version:
85
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
86
+ recorded_with: VCR 2.5.0