BtSync 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +14 -0
- data/README.md +2 -0
- data/btsync.gemspec +1 -0
- data/lib/btsync.rb +1 -133
- data/lib/btsync/directory.rb +152 -0
- data/lib/btsync/version.rb +1 -1
- data/spec/BtSync/directory_spec.rb +85 -0
- data/spec/fixtures/cassettes/Setup-BtSync-Directory.yml +60 -0
- data/spec/fixtures/cassettes/Setup-Directory-Settings.yml +30 -0
- data/spec/fixtures/cassettes/add-folder-list.yml +24 -24
- data/spec/fixtures/cassettes/add-folder.yml +19 -19
- data/spec/fixtures/cassettes/get-folders.yml +18 -18
- data/spec/fixtures/cassettes/get-known-hosts.yml +30 -0
- data/spec/fixtures/cassettes/get-os-type.yml +6 -6
- data/spec/fixtures/cassettes/get-peers.yml +33 -0
- data/spec/fixtures/cassettes/get-preferences.yml +177 -0
- data/spec/fixtures/cassettes/get-settings.yml +6 -6
- data/spec/fixtures/cassettes/get-version.yml +6 -6
- data/spec/fixtures/cassettes/remove-folder-list.yml +15 -15
- data/spec/fixtures/cassettes/remove-folder.yml +27 -27
- data/spec/fixtures/cassettes/set-preferences-delete.yml +88 -0
- data/spec/fixtures/cassettes/set-preferences-dht.yml +88 -0
- data/spec/fixtures/cassettes/set-preferences-hosts.yml +88 -0
- data/spec/fixtures/cassettes/set-preferences-lan.yml +88 -0
- data/spec/fixtures/cassettes/set-preferences-relay.yml +88 -0
- data/spec/fixtures/cassettes/set-preferences-tracker.yml +88 -0
- data/spec/fixtures/cassettes/view-folders.yml +30 -0
- data/spec/spec_helper.rb +0 -2
- metadata +43 -1
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8888/gui/?action=setfolderpref&deletetotrash=1&name=/home/chris/Documents&output=json&relay=1&searchdht=0&searchlan=1&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA&usehosts=1&usetracker=1
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Cookie:
|
11
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
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: Thu, 06 Jun 2013 12:54:29 GMT
|
30
|
+
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=
|
5
|
+
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=ELqA5tqCug_yMJadh1_vvAaD-OVAF4IyyFMIhNEPnRGj6WXyk5v9IIWGsFEAAAAA
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Cookie:
|
11
|
-
- GUID=
|
11
|
+
- GUID=Pn3ujVFV4TcQhRiJLLDQ
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
Connection:
|
18
18
|
- keep-alive
|
19
19
|
Content-Length:
|
20
|
-
- '
|
20
|
+
- '395'
|
21
21
|
Content-Type:
|
22
22
|
- application/json; charset=utf-8
|
23
23
|
Cache-Control:
|
@@ -26,11 +26,11 @@ http_interactions:
|
|
26
26
|
encoding: US-ASCII
|
27
27
|
string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ {
|
28
28
|
"direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
|
29
|
-
} ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "
|
30
|
-
|
29
|
+
} ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
|
30
|
+
}, { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "RZC3I57RLP3TMSCD6YWEEGX3E2T2KXVT",
|
31
31
|
"size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
32
32
|
http_version:
|
33
|
-
recorded_at: Thu, 06 Jun 2013
|
33
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
34
34
|
- request:
|
35
35
|
method: get
|
36
36
|
uri: http://localhost:8888/gui/token.html?output=text
|
@@ -50,23 +50,23 @@ http_interactions:
|
|
50
50
|
Content-Type:
|
51
51
|
- text/html
|
52
52
|
Set-Cookie:
|
53
|
-
- GUID=
|
53
|
+
- GUID=QQrZDXImF2Bv2nCkSILq; path=/
|
54
54
|
Cache-Control:
|
55
55
|
- no-cache
|
56
56
|
body:
|
57
57
|
encoding: US-ASCII
|
58
|
-
string: <html><div id='token' style='display:none;'>
|
58
|
+
string: <html><div id='token' style='display:none;'>FxcuZf2Z63X6TRu4p4g6Sr7Wek0ys3TJK1nzf-OgIBmj9HqlOwqBuYWGsFEAAAAA</div></html>
|
59
59
|
http_version:
|
60
|
-
recorded_at: Thu, 06 Jun 2013
|
60
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
61
61
|
- request:
|
62
62
|
method: get
|
63
|
-
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=
|
63
|
+
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=FxcuZf2Z63X6TRu4p4g6Sr7Wek0ys3TJK1nzf-OgIBmj9HqlOwqBuYWGsFEAAAAA
|
64
64
|
body:
|
65
65
|
encoding: US-ASCII
|
66
66
|
string: ''
|
67
67
|
headers:
|
68
68
|
Cookie:
|
69
|
-
- GUID=
|
69
|
+
- GUID=QQrZDXImF2Bv2nCkSILq
|
70
70
|
response:
|
71
71
|
status:
|
72
72
|
code: 200
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
Connection:
|
76
76
|
- keep-alive
|
77
77
|
Content-Length:
|
78
|
-
- '
|
78
|
+
- '395'
|
79
79
|
Content-Type:
|
80
80
|
- application/json; charset=utf-8
|
81
81
|
Cache-Control:
|
@@ -84,11 +84,11 @@ http_interactions:
|
|
84
84
|
encoding: US-ASCII
|
85
85
|
string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ {
|
86
86
|
"direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
|
87
|
-
} ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "
|
88
|
-
|
87
|
+
} ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
|
88
|
+
}, { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "RZC3I57RLP3TMSCD6YWEEGX3E2T2KXVT",
|
89
89
|
"size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
90
90
|
http_version:
|
91
|
-
recorded_at: Thu, 06 Jun 2013
|
91
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
92
92
|
- request:
|
93
93
|
method: get
|
94
94
|
uri: http://localhost:8888/gui/token.html?output=text
|
@@ -108,23 +108,23 @@ http_interactions:
|
|
108
108
|
Content-Type:
|
109
109
|
- text/html
|
110
110
|
Set-Cookie:
|
111
|
-
- GUID=
|
111
|
+
- GUID=9zvSQrBuKictwdZ0C1lB; path=/
|
112
112
|
Cache-Control:
|
113
113
|
- no-cache
|
114
114
|
body:
|
115
115
|
encoding: US-ASCII
|
116
|
-
string: <html><div id='token' style='display:none;'>
|
116
|
+
string: <html><div id='token' style='display:none;'>HNoGiD4wDC-EpYD-3cXK-xFeOR10_IuoCZvU5ElvuJXfhnQb_J-LR4WGsFEAAAAA</div></html>
|
117
117
|
http_version:
|
118
|
-
recorded_at: Thu, 06 Jun 2013
|
118
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
119
119
|
- request:
|
120
120
|
method: get
|
121
|
-
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=
|
121
|
+
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=HNoGiD4wDC-EpYD-3cXK-xFeOR10_IuoCZvU5ElvuJXfhnQb_J-LR4WGsFEAAAAA
|
122
122
|
body:
|
123
123
|
encoding: US-ASCII
|
124
124
|
string: ''
|
125
125
|
headers:
|
126
126
|
Cookie:
|
127
|
-
- GUID=
|
127
|
+
- GUID=9zvSQrBuKictwdZ0C1lB
|
128
128
|
response:
|
129
129
|
status:
|
130
130
|
code: 200
|
@@ -133,7 +133,7 @@ http_interactions:
|
|
133
133
|
Connection:
|
134
134
|
- keep-alive
|
135
135
|
Content-Length:
|
136
|
-
- '
|
136
|
+
- '395'
|
137
137
|
Content-Type:
|
138
138
|
- application/json; charset=utf-8
|
139
139
|
Cache-Control:
|
@@ -142,9 +142,9 @@ http_interactions:
|
|
142
142
|
encoding: US-ASCII
|
143
143
|
string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ {
|
144
144
|
"direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
|
145
|
-
} ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "
|
146
|
-
|
145
|
+
} ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
|
146
|
+
}, { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "RZC3I57RLP3TMSCD6YWEEGX3E2T2KXVT",
|
147
147
|
"size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
148
148
|
http_version:
|
149
|
-
recorded_at: Thu, 06 Jun 2013
|
149
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
150
150
|
recorded_with: VCR 2.5.0
|
@@ -19,23 +19,23 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- text/html
|
21
21
|
Set-Cookie:
|
22
|
-
- GUID=
|
22
|
+
- GUID=Pn3ujVFV4TcQhRiJLLDQ; 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;'>
|
27
|
+
string: <html><div id='token' style='display:none;'>ELqA5tqCug_yMJadh1_vvAaD-OVAF4IyyFMIhNEPnRGj6WXyk5v9IIWGsFEAAAAA</div></html>
|
28
28
|
http_version:
|
29
|
-
recorded_at: Thu, 06 Jun 2013
|
29
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
30
30
|
- request:
|
31
31
|
method: get
|
32
|
-
uri: http://localhost:8888/gui/?action=generatesecret&output=json&token=
|
32
|
+
uri: http://localhost:8888/gui/?action=generatesecret&output=json&token=ELqA5tqCug_yMJadh1_vvAaD-OVAF4IyyFMIhNEPnRGj6WXyk5v9IIWGsFEAAAAA
|
33
33
|
body:
|
34
34
|
encoding: US-ASCII
|
35
35
|
string: ''
|
36
36
|
headers:
|
37
37
|
Cookie:
|
38
|
-
- GUID=
|
38
|
+
- GUID=Pn3ujVFV4TcQhRiJLLDQ
|
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": "
|
54
|
+
string: ! '{ "rosecret": "R27DA72HK2M6A2PCK46QXSR3UY5KISG3V", "secret": "RZC3I57RLP3TMSCD6YWEEGX3E2T2KXVT"
|
55
55
|
}'
|
56
56
|
http_version:
|
57
|
-
recorded_at: Thu, 06 Jun 2013
|
57
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
58
58
|
- request:
|
59
59
|
method: get
|
60
|
-
uri: http://localhost:8888/gui/?action=addsyncfolder&name=/home/chris/bt_test&output=json&secret=
|
60
|
+
uri: http://localhost:8888/gui/?action=addsyncfolder&name=/home/chris/bt_test&output=json&secret=RZC3I57RLP3TMSCD6YWEEGX3E2T2KXVT&token=ELqA5tqCug_yMJadh1_vvAaD-OVAF4IyyFMIhNEPnRGj6WXyk5v9IIWGsFEAAAAA
|
61
61
|
body:
|
62
62
|
encoding: US-ASCII
|
63
63
|
string: ''
|
64
64
|
headers:
|
65
65
|
Cookie:
|
66
|
-
- GUID=
|
66
|
+
- GUID=Pn3ujVFV4TcQhRiJLLDQ
|
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: Thu, 06 Jun 2013
|
84
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 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=
|
104
|
+
- GUID=ybwvZ7HNb6lKK0Bw1cAO; 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;'>
|
109
|
+
string: <html><div id='token' style='display:none;'>me0KSa5j3JleJKMog6oZTsjHRuWamFP6Z7E2aqi7PyR7CEwa_2Q3iYWGsFEAAAAA</div></html>
|
110
110
|
http_version:
|
111
|
-
recorded_at: Thu, 06 Jun 2013
|
111
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
112
112
|
- request:
|
113
113
|
method: get
|
114
|
-
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=
|
114
|
+
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=me0KSa5j3JleJKMog6oZTsjHRuWamFP6Z7E2aqi7PyR7CEwa_2Q3iYWGsFEAAAAA
|
115
115
|
body:
|
116
116
|
encoding: US-ASCII
|
117
117
|
string: ''
|
118
118
|
headers:
|
119
119
|
Cookie:
|
120
|
-
- GUID=
|
120
|
+
- GUID=ybwvZ7HNb6lKK0Bw1cAO
|
121
121
|
response:
|
122
122
|
status:
|
123
123
|
code: 200
|
@@ -126,7 +126,7 @@ http_interactions:
|
|
126
126
|
Connection:
|
127
127
|
- keep-alive
|
128
128
|
Content-Length:
|
129
|
-
- '
|
129
|
+
- '395'
|
130
130
|
Content-Type:
|
131
131
|
- application/json; charset=utf-8
|
132
132
|
Cache-Control:
|
@@ -135,9 +135,9 @@ http_interactions:
|
|
135
135
|
encoding: US-ASCII
|
136
136
|
string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ {
|
137
137
|
"direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
|
138
|
-
} ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "
|
139
|
-
|
138
|
+
} ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
|
139
|
+
}, { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "RZC3I57RLP3TMSCD6YWEEGX3E2T2KXVT",
|
140
140
|
"size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
141
141
|
http_version:
|
142
|
-
recorded_at: Thu, 06 Jun 2013
|
142
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
143
143
|
recorded_with: VCR 2.5.0
|
@@ -19,23 +19,23 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- text/html
|
21
21
|
Set-Cookie:
|
22
|
-
- GUID=
|
22
|
+
- GUID=wdHOcxOcq4RjuVDGx5ay; 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;'>
|
27
|
+
string: <html><div id='token' style='display:none;'>FKhJ8N_zPut_pRD2bubR7XBqe8IwDztVJBkE0GDkfwoDRT9B2lgWgYWGsFEAAAAA</div></html>
|
28
28
|
http_version:
|
29
|
-
recorded_at: Thu, 06 Jun 2013
|
29
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
30
30
|
- request:
|
31
31
|
method: get
|
32
|
-
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=
|
32
|
+
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=FKhJ8N_zPut_pRD2bubR7XBqe8IwDztVJBkE0GDkfwoDRT9B2lgWgYWGsFEAAAAA
|
33
33
|
body:
|
34
34
|
encoding: US-ASCII
|
35
35
|
string: ''
|
36
36
|
headers:
|
37
37
|
Cookie:
|
38
|
-
- GUID=
|
38
|
+
- GUID=wdHOcxOcq4RjuVDGx5ay
|
39
39
|
response:
|
40
40
|
status:
|
41
41
|
code: 200
|
@@ -44,7 +44,7 @@ http_interactions:
|
|
44
44
|
Connection:
|
45
45
|
- keep-alive
|
46
46
|
Content-Length:
|
47
|
-
- '
|
47
|
+
- '270'
|
48
48
|
Content-Type:
|
49
49
|
- application/json; charset=utf-8
|
50
50
|
Cache-Control:
|
@@ -53,10 +53,10 @@ http_interactions:
|
|
53
53
|
encoding: US-ASCII
|
54
54
|
string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ {
|
55
55
|
"direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
|
56
|
-
} ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "
|
57
|
-
|
56
|
+
} ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
|
57
|
+
} ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
58
58
|
http_version:
|
59
|
-
recorded_at: Thu, 06 Jun 2013
|
59
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
60
60
|
- request:
|
61
61
|
method: get
|
62
62
|
uri: http://localhost:8888/gui/token.html?output=text
|
@@ -76,23 +76,23 @@ http_interactions:
|
|
76
76
|
Content-Type:
|
77
77
|
- text/html
|
78
78
|
Set-Cookie:
|
79
|
-
- GUID=
|
79
|
+
- GUID=3my9KjyT7zbh2tDK0OYV; path=/
|
80
80
|
Cache-Control:
|
81
81
|
- no-cache
|
82
82
|
body:
|
83
83
|
encoding: US-ASCII
|
84
|
-
string: <html><div id='token' style='display:none;'>
|
84
|
+
string: <html><div id='token' style='display:none;'>NPY8T_uAxD1nvk3kjrKKCebsUf5e5BEIdjLrFX7IQ6ZjTtwx1dcSK4WGsFEAAAAA</div></html>
|
85
85
|
http_version:
|
86
|
-
recorded_at: Thu, 06 Jun 2013
|
86
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
87
87
|
- request:
|
88
88
|
method: get
|
89
|
-
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=
|
89
|
+
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=NPY8T_uAxD1nvk3kjrKKCebsUf5e5BEIdjLrFX7IQ6ZjTtwx1dcSK4WGsFEAAAAA
|
90
90
|
body:
|
91
91
|
encoding: US-ASCII
|
92
92
|
string: ''
|
93
93
|
headers:
|
94
94
|
Cookie:
|
95
|
-
- GUID=
|
95
|
+
- GUID=3my9KjyT7zbh2tDK0OYV
|
96
96
|
response:
|
97
97
|
status:
|
98
98
|
code: 200
|
@@ -101,7 +101,7 @@ http_interactions:
|
|
101
101
|
Connection:
|
102
102
|
- keep-alive
|
103
103
|
Content-Length:
|
104
|
-
- '
|
104
|
+
- '270'
|
105
105
|
Content-Type:
|
106
106
|
- application/json; charset=utf-8
|
107
107
|
Cache-Control:
|
@@ -110,8 +110,8 @@ http_interactions:
|
|
110
110
|
encoding: US-ASCII
|
111
111
|
string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ {
|
112
112
|
"direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
|
113
|
-
} ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "
|
114
|
-
|
113
|
+
} ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
|
114
|
+
} ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
115
115
|
http_version:
|
116
|
-
recorded_at: Thu, 06 Jun 2013
|
116
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
117
117
|
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8888/gui/?action=getknownhosts&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Cookie:
|
11
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Connection:
|
18
|
+
- keep-alive
|
19
|
+
Content-Length:
|
20
|
+
- '60'
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
body:
|
26
|
+
encoding: US-ASCII
|
27
|
+
string: ! '{ "hosts": [ { "index": 0, "peer": "192.168.1.5:45685" } ] }'
|
28
|
+
http_version:
|
29
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
30
|
+
recorded_with: VCR 2.5.0
|
@@ -19,23 +19,23 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- text/html
|
21
21
|
Set-Cookie:
|
22
|
-
- GUID=
|
22
|
+
- GUID=zKSVCasiyqfzV9LoSf5C; 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;'>
|
27
|
+
string: <html><div id='token' style='display:none;'>fJ194qRyI_0LN1nQDN1cNRHlXS7qG9srOMVm7PTugEdLkVIZX92VAIWGsFEAAAAA</div></html>
|
28
28
|
http_version:
|
29
|
-
recorded_at: Thu, 06 Jun 2013
|
29
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
30
30
|
- request:
|
31
31
|
method: get
|
32
|
-
uri: http://localhost:8888/gui/?action=getostype&output=json&token=
|
32
|
+
uri: http://localhost:8888/gui/?action=getostype&output=json&token=fJ194qRyI_0LN1nQDN1cNRHlXS7qG9srOMVm7PTugEdLkVIZX92VAIWGsFEAAAAA
|
33
33
|
body:
|
34
34
|
encoding: US-ASCII
|
35
35
|
string: ''
|
36
36
|
headers:
|
37
37
|
Cookie:
|
38
|
-
- GUID=
|
38
|
+
- GUID=zKSVCasiyqfzV9LoSf5C
|
39
39
|
response:
|
40
40
|
status:
|
41
41
|
code: 200
|
@@ -53,5 +53,5 @@ http_interactions:
|
|
53
53
|
encoding: US-ASCII
|
54
54
|
string: ! '{ "os": "linux" }'
|
55
55
|
http_version:
|
56
|
-
recorded_at: Thu, 06 Jun 2013
|
56
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
57
57
|
recorded_with: VCR 2.5.0
|