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,33 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&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
|
+
- '270'
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
body:
|
26
|
+
encoding: US-ASCII
|
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" }'
|
31
|
+
http_version:
|
32
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
33
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,177 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&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
|
+
- '188'
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
body:
|
26
|
+
encoding: US-ASCII
|
27
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
28
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 1, "searchdht": 0, "searchlan":
|
29
|
+
1, "usehosts": 1, "usetracker": 1 } }'
|
30
|
+
http_version:
|
31
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
32
|
+
- request:
|
33
|
+
method: get
|
34
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ''
|
38
|
+
headers:
|
39
|
+
Cookie:
|
40
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
41
|
+
response:
|
42
|
+
status:
|
43
|
+
code: 200
|
44
|
+
message: OK
|
45
|
+
headers:
|
46
|
+
Connection:
|
47
|
+
- keep-alive
|
48
|
+
Content-Length:
|
49
|
+
- '188'
|
50
|
+
Content-Type:
|
51
|
+
- application/json; charset=utf-8
|
52
|
+
Cache-Control:
|
53
|
+
- no-cache
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
57
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 1, "searchdht": 0, "searchlan":
|
58
|
+
1, "usehosts": 1, "usetracker": 1 } }'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
61
|
+
- request:
|
62
|
+
method: get
|
63
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
64
|
+
body:
|
65
|
+
encoding: US-ASCII
|
66
|
+
string: ''
|
67
|
+
headers:
|
68
|
+
Cookie:
|
69
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
70
|
+
response:
|
71
|
+
status:
|
72
|
+
code: 200
|
73
|
+
message: OK
|
74
|
+
headers:
|
75
|
+
Connection:
|
76
|
+
- keep-alive
|
77
|
+
Content-Length:
|
78
|
+
- '188'
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=utf-8
|
81
|
+
Cache-Control:
|
82
|
+
- no-cache
|
83
|
+
body:
|
84
|
+
encoding: US-ASCII
|
85
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
86
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 1, "searchdht": 0, "searchlan":
|
87
|
+
1, "usehosts": 1, "usetracker": 1 } }'
|
88
|
+
http_version:
|
89
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
90
|
+
- request:
|
91
|
+
method: get
|
92
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
93
|
+
body:
|
94
|
+
encoding: US-ASCII
|
95
|
+
string: ''
|
96
|
+
headers:
|
97
|
+
Cookie:
|
98
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
99
|
+
response:
|
100
|
+
status:
|
101
|
+
code: 200
|
102
|
+
message: OK
|
103
|
+
headers:
|
104
|
+
Connection:
|
105
|
+
- keep-alive
|
106
|
+
Content-Length:
|
107
|
+
- '188'
|
108
|
+
Content-Type:
|
109
|
+
- application/json; charset=utf-8
|
110
|
+
Cache-Control:
|
111
|
+
- no-cache
|
112
|
+
body:
|
113
|
+
encoding: US-ASCII
|
114
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
115
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 1, "searchdht": 0, "searchlan":
|
116
|
+
1, "usehosts": 1, "usetracker": 1 } }'
|
117
|
+
http_version:
|
118
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
119
|
+
- request:
|
120
|
+
method: get
|
121
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
122
|
+
body:
|
123
|
+
encoding: US-ASCII
|
124
|
+
string: ''
|
125
|
+
headers:
|
126
|
+
Cookie:
|
127
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
128
|
+
response:
|
129
|
+
status:
|
130
|
+
code: 200
|
131
|
+
message: OK
|
132
|
+
headers:
|
133
|
+
Connection:
|
134
|
+
- keep-alive
|
135
|
+
Content-Length:
|
136
|
+
- '188'
|
137
|
+
Content-Type:
|
138
|
+
- application/json; charset=utf-8
|
139
|
+
Cache-Control:
|
140
|
+
- no-cache
|
141
|
+
body:
|
142
|
+
encoding: US-ASCII
|
143
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
144
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 1, "searchdht": 0, "searchlan":
|
145
|
+
1, "usehosts": 1, "usetracker": 1 } }'
|
146
|
+
http_version:
|
147
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
148
|
+
- request:
|
149
|
+
method: get
|
150
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
151
|
+
body:
|
152
|
+
encoding: US-ASCII
|
153
|
+
string: ''
|
154
|
+
headers:
|
155
|
+
Cookie:
|
156
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
157
|
+
response:
|
158
|
+
status:
|
159
|
+
code: 200
|
160
|
+
message: OK
|
161
|
+
headers:
|
162
|
+
Connection:
|
163
|
+
- keep-alive
|
164
|
+
Content-Length:
|
165
|
+
- '188'
|
166
|
+
Content-Type:
|
167
|
+
- application/json; charset=utf-8
|
168
|
+
Cache-Control:
|
169
|
+
- no-cache
|
170
|
+
body:
|
171
|
+
encoding: US-ASCII
|
172
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
173
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 1, "searchdht": 0, "searchlan":
|
174
|
+
1, "usehosts": 1, "usetracker": 1 } }'
|
175
|
+
http_version:
|
176
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
177
|
+
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=Dt9W5mLtiaSY88O4mqho; 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;'>GGi7buDDPhBRdBQIsf5V3H7F3hJOVj_kQM0zwXQR86hlWAodlVy0goWGsFEAAAAA</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=getsettings&output=json&token=
|
32
|
+
uri: http://localhost:8888/gui/?action=getsettings&output=json&token=GGi7buDDPhBRdBQIsf5V3H7F3hJOVj_kQM0zwXQR86hlWAodlVy0goWGsFEAAAAA
|
33
33
|
body:
|
34
34
|
encoding: US-ASCII
|
35
35
|
string: ''
|
36
36
|
headers:
|
37
37
|
Cookie:
|
38
|
-
- GUID=
|
38
|
+
- GUID=Dt9W5mLtiaSY88O4mqho
|
39
39
|
response:
|
40
40
|
status:
|
41
41
|
code: 200
|
@@ -54,5 +54,5 @@ http_interactions:
|
|
54
54
|
string: ! '{ "settings": { "devicename": "IceyEC-Virtual1", "dlrate": 0, "listeningport":
|
55
55
|
63754, "portmapping": 1, "ulrate": 0 } }'
|
56
56
|
http_version:
|
57
|
-
recorded_at: Thu, 06 Jun 2013
|
57
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
58
58
|
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=WDsBhrfGdmjNBUqAmtbS; 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;'>I1gGq8gpTe0-i67eThjL5FWySuz50YVvIrkzam3xYei99WX233buq4WGsFEAAAAA</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=getversion&output=json&token=
|
32
|
+
uri: http://localhost:8888/gui/?action=getversion&output=json&token=I1gGq8gpTe0-i67eThjL5FWySuz50YVvIrkzam3xYei99WX233buq4WGsFEAAAAA
|
33
33
|
body:
|
34
34
|
encoding: US-ASCII
|
35
35
|
string: ''
|
36
36
|
headers:
|
37
37
|
Cookie:
|
38
|
-
- GUID=
|
38
|
+
- GUID=WDsBhrfGdmjNBUqAmtbS
|
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: Thu, 06 Jun 2013
|
56
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 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=
|
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
|
+
- '270'
|
21
21
|
Content-Type:
|
22
22
|
- application/json; charset=utf-8
|
23
23
|
Cache-Control:
|
@@ -26,10 +26,10 @@ 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
|
+
} ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
31
31
|
http_version:
|
32
|
-
recorded_at: Thu, 06 Jun 2013
|
32
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
33
33
|
- request:
|
34
34
|
method: get
|
35
35
|
uri: http://localhost:8888/gui/token.html?output=text
|
@@ -49,23 +49,23 @@ http_interactions:
|
|
49
49
|
Content-Type:
|
50
50
|
- text/html
|
51
51
|
Set-Cookie:
|
52
|
-
- GUID=
|
52
|
+
- GUID=om0niLQnUMh1RAUrUB0O; path=/
|
53
53
|
Cache-Control:
|
54
54
|
- no-cache
|
55
55
|
body:
|
56
56
|
encoding: US-ASCII
|
57
|
-
string: <html><div id='token' style='display:none;'
|
57
|
+
string: <html><div id='token' style='display:none;'>-IgJlAMTuiVg7HykuWumH1Lh4qFh6XoRbRGDqOKwQOTUoHG35fg_lYWGsFEAAAAA</div></html>
|
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
|
-
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token
|
62
|
+
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=-IgJlAMTuiVg7HykuWumH1Lh4qFh6XoRbRGDqOKwQOTUoHG35fg_lYWGsFEAAAAA
|
63
63
|
body:
|
64
64
|
encoding: US-ASCII
|
65
65
|
string: ''
|
66
66
|
headers:
|
67
67
|
Cookie:
|
68
|
-
- GUID=
|
68
|
+
- GUID=om0niLQnUMh1RAUrUB0O
|
69
69
|
response:
|
70
70
|
status:
|
71
71
|
code: 200
|
@@ -74,7 +74,7 @@ http_interactions:
|
|
74
74
|
Connection:
|
75
75
|
- keep-alive
|
76
76
|
Content-Length:
|
77
|
-
- '
|
77
|
+
- '270'
|
78
78
|
Content-Type:
|
79
79
|
- application/json; charset=utf-8
|
80
80
|
Cache-Control:
|
@@ -83,8 +83,8 @@ http_interactions:
|
|
83
83
|
encoding: US-ASCII
|
84
84
|
string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ {
|
85
85
|
"direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
|
86
|
-
} ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "
|
87
|
-
|
86
|
+
} ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
|
87
|
+
} ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
88
88
|
http_version:
|
89
|
-
recorded_at: Thu, 06 Jun 2013
|
89
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
90
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=
|
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=P2SnM2h9MT5eiytcgFGX; 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;'>KDfscXCprcUvxFmbkWb0keP91TmM7m93rx2rnaSYKDjX-lIQvzbuvoWGsFEAAAAA</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=KDfscXCprcUvxFmbkWb0keP91TmM7m93rx2rnaSYKDjX-lIQvzbuvoWGsFEAAAAA
|
64
64
|
body:
|
65
65
|
encoding: US-ASCII
|
66
66
|
string: ''
|
67
67
|
headers:
|
68
68
|
Cookie:
|
69
|
-
- GUID=
|
69
|
+
- GUID=P2SnM2h9MT5eiytcgFGX
|
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=NWCeaqSnVd7xajza6evz; 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;'>ZZw58zShEnWTEpe2KzEStPo-yWGOHvKYtv9OVUT3gpnuPGkOxFhOioWGsFEAAAAA</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=ZZw58zShEnWTEpe2KzEStPo-yWGOHvKYtv9OVUT3gpnuPGkOxFhOioWGsFEAAAAA
|
122
122
|
body:
|
123
123
|
encoding: US-ASCII
|
124
124
|
string: ''
|
125
125
|
headers:
|
126
126
|
Cookie:
|
127
|
-
- GUID=
|
127
|
+
- GUID=NWCeaqSnVd7xajza6evz
|
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,20 +142,20 @@ 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
|
- request:
|
151
151
|
method: get
|
152
|
-
uri: http://localhost:8888/gui/?action=removefolder&name=/home/chris/bt_test&output=json&secret=
|
152
|
+
uri: http://localhost:8888/gui/?action=removefolder&name=/home/chris/bt_test&output=json&secret=RZC3I57RLP3TMSCD6YWEEGX3E2T2KXVT&token=ELqA5tqCug_yMJadh1_vvAaD-OVAF4IyyFMIhNEPnRGj6WXyk5v9IIWGsFEAAAAA
|
153
153
|
body:
|
154
154
|
encoding: US-ASCII
|
155
155
|
string: ''
|
156
156
|
headers:
|
157
157
|
Cookie:
|
158
|
-
- GUID=
|
158
|
+
- GUID=Pn3ujVFV4TcQhRiJLLDQ
|
159
159
|
response:
|
160
160
|
status:
|
161
161
|
code: 200
|
@@ -173,5 +173,5 @@ http_interactions:
|
|
173
173
|
encoding: US-ASCII
|
174
174
|
string: ! '{ }'
|
175
175
|
http_version:
|
176
|
-
recorded_at: Thu, 06 Jun 2013
|
176
|
+
recorded_at: Thu, 06 Jun 2013 12:54:29 GMT
|
177
177
|
recorded_with: VCR 2.5.0
|