BtSync 0.4.4 → 0.5.0

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.
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=ONEG0039oAQKNtLjyOBm; path=/
22
+ - GUID=YvUwERzuA6KDtWx5gBqG; 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;'>7cFoPQ5VvJbcU25vUUYeQSl9uIa5_NkKsdM3lRLFyhjTp7_f9OnU8S4fslEAAAAA</div></html>
27
+ string: <html><div id='token' style='display:none;'>0yGezY2QZeVy7GPzaV-TQ6SuOMns8TlPgbHND059Qv-NnsquBvqIln-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=generatesecret&output=json&token=7cFoPQ5VvJbcU25vUUYeQSl9uIa5_NkKsdM3lRLFyhjTp7_f9OnU8S4fslEAAAAA
32
+ uri: http://localhost:8888/gui/?action=generatesecret&output=json&token=0yGezY2QZeVy7GPzaV-TQ6SuOMns8TlPgbHND059Qv-NnsquBvqIln-DtlEAAAAA
33
33
  body:
34
34
  encoding: US-ASCII
35
35
  string: ''
36
36
  headers:
37
37
  Cookie:
38
- - GUID=ONEG0039oAQKNtLjyOBm
38
+ - GUID=YvUwERzuA6KDtWx5gBqG
39
39
  response:
40
40
  status:
41
41
  code: 200
@@ -51,19 +51,19 @@ http_interactions:
51
51
  - no-cache
52
52
  body:
53
53
  encoding: US-ASCII
54
- string: ! '{ "rosecret": "RSQ44DB333L4KBJS7Y5VI2YK73SXZO42Y", "secret": "SXBX73B6OSTJ3P3AEUKGGPK6EKLO5L4K"
54
+ string: ! '{ "rosecret": "RU35YQ4T6PE5F5FTG7CHZ7NQJ2KI5G6B2", "secret": "FEEBRD6KX6NFZYJRVVN6WKGONI467MZE"
55
55
  }'
56
56
  http_version:
57
- recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
57
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
58
58
  - request:
59
59
  method: get
60
- uri: http://localhost:8888/gui/?action=addsyncfolder&name=/home/chris/bt_test&output=json&secret=SXBX73B6OSTJ3P3AEUKGGPK6EKLO5L4K&token=7cFoPQ5VvJbcU25vUUYeQSl9uIa5_NkKsdM3lRLFyhjTp7_f9OnU8S4fslEAAAAA
60
+ uri: http://localhost:8888/gui/?action=addsyncfolder&name=/home/chris/bt_test&output=json&secret=FEEBRD6KX6NFZYJRVVN6WKGONI467MZE&token=0yGezY2QZeVy7GPzaV-TQ6SuOMns8TlPgbHND059Qv-NnsquBvqIln-DtlEAAAAA
61
61
  body:
62
62
  encoding: US-ASCII
63
63
  string: ''
64
64
  headers:
65
65
  Cookie:
66
- - GUID=ONEG0039oAQKNtLjyOBm
66
+ - GUID=YvUwERzuA6KDtWx5gBqG
67
67
  response:
68
68
  status:
69
69
  code: 200
@@ -81,7 +81,7 @@ http_interactions:
81
81
  encoding: US-ASCII
82
82
  string: ! '{ "error": 0 }'
83
83
  http_version:
84
- recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
84
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
85
85
  - request:
86
86
  method: get
87
87
  uri: http://localhost:8888/gui/token.html?output=text
@@ -101,23 +101,23 @@ http_interactions:
101
101
  Content-Type:
102
102
  - text/html
103
103
  Set-Cookie:
104
- - GUID=vQA4HwwpaXwF0ZUoRRce; path=/
104
+ - GUID=sXDdY5BtJr5UIBaTJLJm; path=/
105
105
  Cache-Control:
106
106
  - no-cache
107
107
  body:
108
108
  encoding: US-ASCII
109
- string: <html><div id='token' style='display:none;'>x5ZBSU_UGmMbxLFqqOehcq_tBbP69fav2tYA7Ysala8OasWirGMwby4fslEAAAAA</div></html>
109
+ string: <html><div id='token' style='display:none;'>wz7jsZf0pne0IsvsXJD5Dy4E1zc3Yp_8gTkIed8I4Hj7_mMuqgyqen-DtlEAAAAA</div></html>
110
110
  http_version:
111
- recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
111
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
112
112
  - request:
113
113
  method: get
114
- uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=x5ZBSU_UGmMbxLFqqOehcq_tBbP69fav2tYA7Ysala8OasWirGMwby4fslEAAAAA
114
+ uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=wz7jsZf0pne0IsvsXJD5Dy4E1zc3Yp_8gTkIed8I4Hj7_mMuqgyqen-DtlEAAAAA
115
115
  body:
116
116
  encoding: US-ASCII
117
117
  string: ''
118
118
  headers:
119
119
  Cookie:
120
- - GUID=vQA4HwwpaXwF0ZUoRRce
120
+ - GUID=sXDdY5BtJr5UIBaTJLJm
121
121
  response:
122
122
  status:
123
123
  code: 200
@@ -126,17 +126,18 @@ http_interactions:
126
126
  Connection:
127
127
  - keep-alive
128
128
  Content-Length:
129
- - '310'
129
+ - '395'
130
130
  Content-Type:
131
131
  - application/json; charset=utf-8
132
132
  Cache-Control:
133
133
  - no-cache
134
134
  body:
135
135
  encoding: US-ASCII
136
- string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ ],
137
- "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files" },
138
- { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "SXBX73B6OSTJ3P3AEUKGGPK6EKLO5L4K",
136
+ string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ {
137
+ "direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
138
+ } ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
139
+ }, { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "FEEBRD6KX6NFZYJRVVN6WKGONI467MZE",
139
140
  "size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
140
141
  http_version:
141
- recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
142
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
142
143
  recorded_with: VCR 2.5.0
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8888/gui/?action=addknownhosts&addr=10.0.1.254&name=/home/chris/Documents&output=json&port=12345&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
+ - '104'
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" }, { "index":
55
+ 1, "peer": "10.0.1.254:12345" } ] }'
56
+ http_version:
57
+ recorded_at: Tue, 11 Jun 2013 01:55:14 GMT
58
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,113 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8888/gui/token.html?output=text
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Connection:
16
+ - keep-alive
17
+ Content-Length:
18
+ - '121'
19
+ Content-Type:
20
+ - text/html
21
+ Set-Cookie:
22
+ - GUID=rQOaRmGSuftanqRVwf4c; path=/
23
+ Cache-Control:
24
+ - no-cache
25
+ body:
26
+ encoding: US-ASCII
27
+ string: <html><div id='token' style='display:none;'>CjJq3w8fG-rf15Vh44pxG3FwSBLu8AWU3b1PoN-SVD43tCnPkeCxAX-DtlEAAAAA</div></html>
28
+ http_version:
29
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
30
+ - request:
31
+ method: get
32
+ uri: http://localhost:8888/gui/?action=getsettings&output=json&token=CjJq3w8fG-rf15Vh44pxG3FwSBLu8AWU3b1PoN-SVD43tCnPkeCxAX-DtlEAAAAA
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ''
36
+ headers:
37
+ Cookie:
38
+ - GUID=rQOaRmGSuftanqRVwf4c
39
+ response:
40
+ status:
41
+ code: 200
42
+ message: OK
43
+ headers:
44
+ Connection:
45
+ - keep-alive
46
+ Content-Length:
47
+ - '119'
48
+ Content-Type:
49
+ - application/json; charset=utf-8
50
+ Cache-Control:
51
+ - no-cache
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ! '{ "settings": { "devicename": "IceyEC-Virtual1", "dlrate": 0, "listeningport":
55
+ 63754, "portmapping": 1, "ulrate": 0 } }'
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=setsettings&devicename=IceyEC-Virtual1&dlrate=1000&listeningport=63754&output=json&portmapping=1&token=CjJq3w8fG-rf15Vh44pxG3FwSBLu8AWU3b1PoN-SVD43tCnPkeCxAX-DtlEAAAAA&ulrate=0
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
+ - '4'
76
+ Content-Type:
77
+ - application/json; charset=utf-8
78
+ Cache-Control:
79
+ - no-cache
80
+ body:
81
+ encoding: US-ASCII
82
+ string: ! '{ }'
83
+ http_version:
84
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
85
+ - request:
86
+ method: get
87
+ uri: http://localhost:8888/gui/?action=getsettings&output=json&token=CjJq3w8fG-rf15Vh44pxG3FwSBLu8AWU3b1PoN-SVD43tCnPkeCxAX-DtlEAAAAA
88
+ body:
89
+ encoding: US-ASCII
90
+ string: ''
91
+ headers:
92
+ Cookie:
93
+ - GUID=rQOaRmGSuftanqRVwf4c
94
+ response:
95
+ status:
96
+ code: 200
97
+ message: OK
98
+ headers:
99
+ Connection:
100
+ - keep-alive
101
+ Content-Length:
102
+ - '122'
103
+ Content-Type:
104
+ - application/json; charset=utf-8
105
+ Cache-Control:
106
+ - no-cache
107
+ body:
108
+ encoding: US-ASCII
109
+ string: ! '{ "settings": { "devicename": "IceyEC-Virtual1", "dlrate": 1000,
110
+ "listeningport": 63754, "portmapping": 1, "ulrate": 0 } }'
111
+ http_version:
112
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
113
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,113 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8888/gui/token.html?output=text
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Connection:
16
+ - keep-alive
17
+ Content-Length:
18
+ - '121'
19
+ Content-Type:
20
+ - text/html
21
+ Set-Cookie:
22
+ - GUID=GDxCK1HGwXDitWCmAVka; path=/
23
+ Cache-Control:
24
+ - no-cache
25
+ body:
26
+ encoding: US-ASCII
27
+ string: <html><div id='token' style='display:none;'>GLaZWf2lCQUSADqtP2iKbMmUeP2bh9Cfqk4iqxY18BlN1cwxv38KqX-DtlEAAAAA</div></html>
28
+ http_version:
29
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
30
+ - request:
31
+ method: get
32
+ uri: http://localhost:8888/gui/?action=getsettings&output=json&token=GLaZWf2lCQUSADqtP2iKbMmUeP2bh9Cfqk4iqxY18BlN1cwxv38KqX-DtlEAAAAA
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ''
36
+ headers:
37
+ Cookie:
38
+ - GUID=GDxCK1HGwXDitWCmAVka
39
+ response:
40
+ status:
41
+ code: 200
42
+ message: OK
43
+ headers:
44
+ Connection:
45
+ - keep-alive
46
+ Content-Length:
47
+ - '119'
48
+ Content-Type:
49
+ - application/json; charset=utf-8
50
+ Cache-Control:
51
+ - no-cache
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ! '{ "settings": { "devicename": "IceyEC-Virtual1", "dlrate": 0, "listeningport":
55
+ 63754, "portmapping": 1, "ulrate": 0 } }'
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=setsettings&devicename=IceyEC-Virtual1&dlrate=0&listeningport=12345&output=json&portmapping=1&token=GLaZWf2lCQUSADqtP2iKbMmUeP2bh9Cfqk4iqxY18BlN1cwxv38KqX-DtlEAAAAA&ulrate=0
61
+ body:
62
+ encoding: US-ASCII
63
+ string: ''
64
+ headers:
65
+ Cookie:
66
+ - GUID=GDxCK1HGwXDitWCmAVka
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Connection:
73
+ - keep-alive
74
+ Content-Length:
75
+ - '4'
76
+ Content-Type:
77
+ - application/json; charset=utf-8
78
+ Cache-Control:
79
+ - no-cache
80
+ body:
81
+ encoding: US-ASCII
82
+ string: ! '{ }'
83
+ http_version:
84
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
85
+ - request:
86
+ method: get
87
+ uri: http://localhost:8888/gui/?action=getsettings&output=json&token=GLaZWf2lCQUSADqtP2iKbMmUeP2bh9Cfqk4iqxY18BlN1cwxv38KqX-DtlEAAAAA
88
+ body:
89
+ encoding: US-ASCII
90
+ string: ''
91
+ headers:
92
+ Cookie:
93
+ - GUID=GDxCK1HGwXDitWCmAVka
94
+ response:
95
+ status:
96
+ code: 200
97
+ message: OK
98
+ headers:
99
+ Connection:
100
+ - keep-alive
101
+ Content-Length:
102
+ - '119'
103
+ Content-Type:
104
+ - application/json; charset=utf-8
105
+ Cache-Control:
106
+ - no-cache
107
+ body:
108
+ encoding: US-ASCII
109
+ string: ! '{ "settings": { "devicename": "IceyEC-Virtual1", "dlrate": 0, "listeningport":
110
+ 12345, "portmapping": 1, "ulrate": 0 } }'
111
+ http_version:
112
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
113
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,113 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8888/gui/token.html?output=text
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Connection:
16
+ - keep-alive
17
+ Content-Length:
18
+ - '121'
19
+ Content-Type:
20
+ - text/html
21
+ Set-Cookie:
22
+ - GUID=XfPBG1WqhacQ0f2GNXye; path=/
23
+ Cache-Control:
24
+ - no-cache
25
+ body:
26
+ encoding: US-ASCII
27
+ string: <html><div id='token' style='display:none;'>gV-hYQBftblOtYzxFsjcp4_kfp_CzxqhIaKVaaVtQetH_vgkRxWGA3-DtlEAAAAA</div></html>
28
+ http_version:
29
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
30
+ - request:
31
+ method: get
32
+ uri: http://localhost:8888/gui/?action=getsettings&output=json&token=gV-hYQBftblOtYzxFsjcp4_kfp_CzxqhIaKVaaVtQetH_vgkRxWGA3-DtlEAAAAA
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ''
36
+ headers:
37
+ Cookie:
38
+ - GUID=XfPBG1WqhacQ0f2GNXye
39
+ response:
40
+ status:
41
+ code: 200
42
+ message: OK
43
+ headers:
44
+ Connection:
45
+ - keep-alive
46
+ Content-Length:
47
+ - '119'
48
+ Content-Type:
49
+ - application/json; charset=utf-8
50
+ Cache-Control:
51
+ - no-cache
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ! '{ "settings": { "devicename": "IceyEC-Virtual1", "dlrate": 0, "listeningport":
55
+ 63754, "portmapping": 1, "ulrate": 0 } }'
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=setsettings&devicename=IceyEC-Virtual2&dlrate=0&listeningport=63754&output=json&portmapping=1&token=gV-hYQBftblOtYzxFsjcp4_kfp_CzxqhIaKVaaVtQetH_vgkRxWGA3-DtlEAAAAA&ulrate=0
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
+ - '4'
76
+ Content-Type:
77
+ - application/json; charset=utf-8
78
+ Cache-Control:
79
+ - no-cache
80
+ body:
81
+ encoding: US-ASCII
82
+ string: ! '{ }'
83
+ http_version:
84
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
85
+ - request:
86
+ method: get
87
+ uri: http://localhost:8888/gui/?action=getsettings&output=json&token=gV-hYQBftblOtYzxFsjcp4_kfp_CzxqhIaKVaaVtQetH_vgkRxWGA3-DtlEAAAAA
88
+ body:
89
+ encoding: US-ASCII
90
+ string: ''
91
+ headers:
92
+ Cookie:
93
+ - GUID=XfPBG1WqhacQ0f2GNXye
94
+ response:
95
+ status:
96
+ code: 200
97
+ message: OK
98
+ headers:
99
+ Connection:
100
+ - keep-alive
101
+ Content-Length:
102
+ - '119'
103
+ Content-Type:
104
+ - application/json; charset=utf-8
105
+ Cache-Control:
106
+ - no-cache
107
+ body:
108
+ encoding: US-ASCII
109
+ string: ! '{ "settings": { "devicename": "IceyEC-Virtual2", "dlrate": 0, "listeningport":
110
+ 63754, "portmapping": 1, "ulrate": 0 } }'
111
+ http_version:
112
+ recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
113
+ recorded_with: VCR 2.5.0