BtSync 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -7
- data/lib/btsync/communicator.rb +1 -1
- data/lib/btsync/version.rb +1 -1
- data/spec/BtSync/directory_spec.rb +6 -1
- data/spec/fixtures/cassettes/Setup-BtSync-Directory.yml +10 -11
- data/spec/fixtures/cassettes/Setup-Directory-Settings.yml +59 -3
- data/spec/fixtures/cassettes/add-folder-list.yml +27 -30
- data/spec/fixtures/cassettes/add-folder.yml +20 -21
- data/spec/fixtures/cassettes/get-folders.yml +20 -22
- data/spec/fixtures/cassettes/get-known-hosts.yml +3 -3
- data/spec/fixtures/cassettes/get-os-type.yml +6 -6
- data/spec/fixtures/cassettes/get-peers.yml +7 -8
- data/spec/fixtures/cassettes/get-preferences.yml +18 -18
- 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 +17 -19
- data/spec/fixtures/cassettes/remove-folder.yml +30 -33
- data/spec/fixtures/cassettes/set-preferences-delete.yml +9 -9
- data/spec/fixtures/cassettes/set-preferences-dht.yml +9 -9
- data/spec/fixtures/cassettes/set-preferences-hosts.yml +9 -9
- data/spec/fixtures/cassettes/set-preferences-lan.yml +9 -9
- data/spec/fixtures/cassettes/set-preferences-relay.yml +9 -9
- data/spec/fixtures/cassettes/set-preferences-tracker.yml +9 -9
- data/spec/fixtures/cassettes/view-folders.yml +3 -3
- metadata +118 -77
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZjhjNTQxZjA4ZjE2NzBmMjBjZTc2MWFiZDg1YjQ2MDdmN2E3MTY5Ng==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MGZiNjQ3MzY0NDVmNmYyNjM2YjJlOGZmNmQ1YThiMWMyNTA4ZDkyYg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YmMyYjY4ZTU3NWRhOTc4ZThmNTAwYTVmZDEyYjU4YWQyMTg4OTNlOTMzMjk5
|
10
|
+
MmVhNGQ2ZWI3OWJlZmM0ODI4NTFiODIyM2M1NzU5Y2YzM2U0YmVkZDhlYWFl
|
11
|
+
ZGM0NzE1YmY3OGFmZGQ3Y2IxYTVkMjdhZTdmZjIwYTMyZTZjNmY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MGFkMWU3ZTAyNTk1MjMwODJiNTk4YWFjMWZiN2Y5OWRmY2Y2YzUyY2E5NTFj
|
14
|
+
MmM1N2YwOTQ0NDVlNDYzZmUwOTdhYjYzMjJhYWFjYTg4NThhZGNlOWFmNTI5
|
15
|
+
MjVhOWIxNmU1ZTZmYTMyNzEyNDhhYTY0MmRhNmExOWJjYWY3MzI=
|
data/lib/btsync/communicator.rb
CHANGED
@@ -29,7 +29,7 @@ module BtCommunicator
|
|
29
29
|
end
|
30
30
|
def request_token force = false
|
31
31
|
@last_request ||= 0
|
32
|
-
t = DateTime.now.strftime('%s')
|
32
|
+
t = DateTime.now.strftime('%s').to_i
|
33
33
|
if @request_token.nil? || force || (@last_request + 600) < t
|
34
34
|
@last_request = t
|
35
35
|
@request_token = self.class.get("#{root_url}gui/token.html", :query => {:output => :text})
|
data/lib/btsync/version.rb
CHANGED
@@ -10,6 +10,11 @@ describe 'BtSync::Directory' do
|
|
10
10
|
@bt)
|
11
11
|
end
|
12
12
|
VCR.use_cassette('Setup-Directory-Settings') do
|
13
|
+
@bt = BtSync.new
|
14
|
+
@directory = BtSync::Directory.new(
|
15
|
+
'/home/chris/Documents',
|
16
|
+
'6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ',
|
17
|
+
@bt)
|
13
18
|
@directory.send('default_settings')
|
14
19
|
end
|
15
20
|
end
|
@@ -28,7 +33,7 @@ describe 'BtSync::Directory' do
|
|
28
33
|
VCR.use_cassette("get-peers") do
|
29
34
|
@peers = @directory.peers
|
30
35
|
end
|
31
|
-
@peers.first
|
36
|
+
@peers.first.should == nil
|
32
37
|
end
|
33
38
|
it "can get see known hosts" do
|
34
39
|
VCR.use_cassette("get-known-hosts") do
|
@@ -19,23 +19,23 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- text/html
|
21
21
|
Set-Cookie:
|
22
|
-
- GUID=
|
22
|
+
- GUID=E3lhmlycmFgf7ESFDvoZ; 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;'>XkuWXu3e6UgIFlZ7Z-DRbgZRZKUuVp5HOH9Z5m1d4B_DS4YoEU_Tqy4fslEAAAAA</div></html>
|
28
28
|
http_version:
|
29
|
-
recorded_at:
|
29
|
+
recorded_at: Fri, 07 Jun 2013 17:58:06 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=XkuWXu3e6UgIFlZ7Z-DRbgZRZKUuVp5HOH9Z5m1d4B_DS4YoEU_Tqy4fslEAAAAA
|
33
33
|
body:
|
34
34
|
encoding: US-ASCII
|
35
35
|
string: ''
|
36
36
|
headers:
|
37
37
|
Cookie:
|
38
|
-
- GUID=
|
38
|
+
- GUID=E3lhmlycmFgf7ESFDvoZ
|
39
39
|
response:
|
40
40
|
status:
|
41
41
|
code: 200
|
@@ -44,17 +44,16 @@ http_interactions:
|
|
44
44
|
Connection:
|
45
45
|
- keep-alive
|
46
46
|
Content-Length:
|
47
|
-
- '
|
47
|
+
- '185'
|
48
48
|
Content-Type:
|
49
49
|
- application/json; charset=utf-8
|
50
50
|
Cache-Control:
|
51
51
|
- no-cache
|
52
52
|
body:
|
53
53
|
encoding: US-ASCII
|
54
|
-
string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [
|
55
|
-
"
|
56
|
-
|
57
|
-
} ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
54
|
+
string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ ],
|
55
|
+
"secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files" } ],
|
56
|
+
"speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
58
57
|
http_version:
|
59
|
-
recorded_at:
|
58
|
+
recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
|
60
59
|
recorded_with: VCR 2.5.0
|
@@ -2,13 +2,69 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:8888/gui
|
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=BuR9HOy5Q7UR5Kg4zToj; path=/
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
body:
|
26
|
+
encoding: US-ASCII
|
27
|
+
string: <html><div id='token' style='display:none;'>5K85aW3p3a6w1SYpvmcT2b8wfIf78_IiXbhF8rWcC89R0jqH44Zm3C4fslEAAAAA</div></html>
|
28
|
+
http_version:
|
29
|
+
recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
|
30
|
+
- request:
|
31
|
+
method: get
|
32
|
+
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=5K85aW3p3a6w1SYpvmcT2b8wfIf78_IiXbhF8rWcC89R0jqH44Zm3C4fslEAAAAA
|
33
|
+
body:
|
34
|
+
encoding: US-ASCII
|
35
|
+
string: ''
|
36
|
+
headers:
|
37
|
+
Cookie:
|
38
|
+
- GUID=BuR9HOy5Q7UR5Kg4zToj
|
39
|
+
response:
|
40
|
+
status:
|
41
|
+
code: 200
|
42
|
+
message: OK
|
43
|
+
headers:
|
44
|
+
Connection:
|
45
|
+
- keep-alive
|
46
|
+
Content-Length:
|
47
|
+
- '185'
|
48
|
+
Content-Type:
|
49
|
+
- application/json; charset=utf-8
|
50
|
+
Cache-Control:
|
51
|
+
- no-cache
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ ],
|
55
|
+
"secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files" } ],
|
56
|
+
"speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: http://localhost:8888/gui/?action=setfolderpref&deletetotrash=1&name=/home/chris/Documents&output=json&relay=1&searchdht=0&searchlan=1&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=5K85aW3p3a6w1SYpvmcT2b8wfIf78_IiXbhF8rWcC89R0jqH44Zm3C4fslEAAAAA&usehosts=1&usetracker=1
|
6
62
|
body:
|
7
63
|
encoding: US-ASCII
|
8
64
|
string: ''
|
9
65
|
headers:
|
10
66
|
Cookie:
|
11
|
-
- GUID=
|
67
|
+
- GUID=BuR9HOy5Q7UR5Kg4zToj
|
12
68
|
response:
|
13
69
|
status:
|
14
70
|
code: 200
|
@@ -26,5 +82,5 @@ http_interactions:
|
|
26
82
|
encoding: US-ASCII
|
27
83
|
string: ! '{ }'
|
28
84
|
http_version:
|
29
|
-
recorded_at:
|
85
|
+
recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
|
30
86
|
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=7cFoPQ5VvJbcU25vUUYeQSl9uIa5_NkKsdM3lRLFyhjTp7_f9OnU8S4fslEAAAAA
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Cookie:
|
11
|
-
- GUID=
|
11
|
+
- GUID=ONEG0039oAQKNtLjyOBm
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
@@ -17,20 +17,19 @@ http_interactions:
|
|
17
17
|
Connection:
|
18
18
|
- keep-alive
|
19
19
|
Content-Length:
|
20
|
-
- '
|
20
|
+
- '310'
|
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
|
-
"
|
29
|
-
|
30
|
-
}, { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "RZC3I57RLP3TMSCD6YWEEGX3E2T2KXVT",
|
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",
|
31
30
|
"size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
32
31
|
http_version:
|
33
|
-
recorded_at:
|
32
|
+
recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
|
34
33
|
- request:
|
35
34
|
method: get
|
36
35
|
uri: http://localhost:8888/gui/token.html?output=text
|
@@ -50,23 +49,23 @@ http_interactions:
|
|
50
49
|
Content-Type:
|
51
50
|
- text/html
|
52
51
|
Set-Cookie:
|
53
|
-
- GUID=
|
52
|
+
- GUID=jlXfE6H2JiIC9fxgLaBP; path=/
|
54
53
|
Cache-Control:
|
55
54
|
- no-cache
|
56
55
|
body:
|
57
56
|
encoding: US-ASCII
|
58
|
-
string: <html><div id='token' style='display:none;'>
|
57
|
+
string: <html><div id='token' style='display:none;'>N5D8txAkMcW3ObY8moLCoGcM_YnI-O9Wik1iTXirs846mayy0WsnnC4fslEAAAAA</div></html>
|
59
58
|
http_version:
|
60
|
-
recorded_at:
|
59
|
+
recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
|
61
60
|
- request:
|
62
61
|
method: get
|
63
|
-
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=
|
62
|
+
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=N5D8txAkMcW3ObY8moLCoGcM_YnI-O9Wik1iTXirs846mayy0WsnnC4fslEAAAAA
|
64
63
|
body:
|
65
64
|
encoding: US-ASCII
|
66
65
|
string: ''
|
67
66
|
headers:
|
68
67
|
Cookie:
|
69
|
-
- GUID=
|
68
|
+
- GUID=jlXfE6H2JiIC9fxgLaBP
|
70
69
|
response:
|
71
70
|
status:
|
72
71
|
code: 200
|
@@ -75,20 +74,19 @@ http_interactions:
|
|
75
74
|
Connection:
|
76
75
|
- keep-alive
|
77
76
|
Content-Length:
|
78
|
-
- '
|
77
|
+
- '310'
|
79
78
|
Content-Type:
|
80
79
|
- application/json; charset=utf-8
|
81
80
|
Cache-Control:
|
82
81
|
- no-cache
|
83
82
|
body:
|
84
83
|
encoding: US-ASCII
|
85
|
-
string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [
|
86
|
-
"
|
87
|
-
|
88
|
-
}, { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "RZC3I57RLP3TMSCD6YWEEGX3E2T2KXVT",
|
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",
|
89
87
|
"size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
90
88
|
http_version:
|
91
|
-
recorded_at:
|
89
|
+
recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
|
92
90
|
- request:
|
93
91
|
method: get
|
94
92
|
uri: http://localhost:8888/gui/token.html?output=text
|
@@ -108,23 +106,23 @@ http_interactions:
|
|
108
106
|
Content-Type:
|
109
107
|
- text/html
|
110
108
|
Set-Cookie:
|
111
|
-
- GUID=
|
109
|
+
- GUID=NTxZnDWPqRo7MpZ0QSdl; path=/
|
112
110
|
Cache-Control:
|
113
111
|
- no-cache
|
114
112
|
body:
|
115
113
|
encoding: US-ASCII
|
116
|
-
string: <html><div id='token' style='display:none;'
|
114
|
+
string: <html><div id='token' style='display:none;'>-Ic-huNGlb8K_-Pg1klrdCIgKD9efaYWpx2yXli-v83JfZ46-P26lC4fslEAAAAA</div></html>
|
117
115
|
http_version:
|
118
|
-
recorded_at:
|
116
|
+
recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
|
119
117
|
- request:
|
120
118
|
method: get
|
121
|
-
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token
|
119
|
+
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=-Ic-huNGlb8K_-Pg1klrdCIgKD9efaYWpx2yXli-v83JfZ46-P26lC4fslEAAAAA
|
122
120
|
body:
|
123
121
|
encoding: US-ASCII
|
124
122
|
string: ''
|
125
123
|
headers:
|
126
124
|
Cookie:
|
127
|
-
- GUID=
|
125
|
+
- GUID=NTxZnDWPqRo7MpZ0QSdl
|
128
126
|
response:
|
129
127
|
status:
|
130
128
|
code: 200
|
@@ -133,18 +131,17 @@ http_interactions:
|
|
133
131
|
Connection:
|
134
132
|
- keep-alive
|
135
133
|
Content-Length:
|
136
|
-
- '
|
134
|
+
- '310'
|
137
135
|
Content-Type:
|
138
136
|
- application/json; charset=utf-8
|
139
137
|
Cache-Control:
|
140
138
|
- no-cache
|
141
139
|
body:
|
142
140
|
encoding: US-ASCII
|
143
|
-
string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [
|
144
|
-
"
|
145
|
-
|
146
|
-
}, { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "RZC3I57RLP3TMSCD6YWEEGX3E2T2KXVT",
|
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",
|
147
144
|
"size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
148
145
|
http_version:
|
149
|
-
recorded_at:
|
146
|
+
recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
|
150
147
|
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=ONEG0039oAQKNtLjyOBm; 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;'>7cFoPQ5VvJbcU25vUUYeQSl9uIa5_NkKsdM3lRLFyhjTp7_f9OnU8S4fslEAAAAA</div></html>
|
28
28
|
http_version:
|
29
|
-
recorded_at:
|
29
|
+
recorded_at: Fri, 07 Jun 2013 17:58:06 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=7cFoPQ5VvJbcU25vUUYeQSl9uIa5_NkKsdM3lRLFyhjTp7_f9OnU8S4fslEAAAAA
|
33
33
|
body:
|
34
34
|
encoding: US-ASCII
|
35
35
|
string: ''
|
36
36
|
headers:
|
37
37
|
Cookie:
|
38
|
-
- GUID=
|
38
|
+
- GUID=ONEG0039oAQKNtLjyOBm
|
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": "RSQ44DB333L4KBJS7Y5VI2YK73SXZO42Y", "secret": "SXBX73B6OSTJ3P3AEUKGGPK6EKLO5L4K"
|
55
55
|
}'
|
56
56
|
http_version:
|
57
|
-
recorded_at:
|
57
|
+
recorded_at: Fri, 07 Jun 2013 17:58:06 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=SXBX73B6OSTJ3P3AEUKGGPK6EKLO5L4K&token=7cFoPQ5VvJbcU25vUUYeQSl9uIa5_NkKsdM3lRLFyhjTp7_f9OnU8S4fslEAAAAA
|
61
61
|
body:
|
62
62
|
encoding: US-ASCII
|
63
63
|
string: ''
|
64
64
|
headers:
|
65
65
|
Cookie:
|
66
|
-
- GUID=
|
66
|
+
- GUID=ONEG0039oAQKNtLjyOBm
|
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:
|
84
|
+
recorded_at: Fri, 07 Jun 2013 17:58:06 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=vQA4HwwpaXwF0ZUoRRce; 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;'>x5ZBSU_UGmMbxLFqqOehcq_tBbP69fav2tYA7Ysala8OasWirGMwby4fslEAAAAA</div></html>
|
110
110
|
http_version:
|
111
|
-
recorded_at:
|
111
|
+
recorded_at: Fri, 07 Jun 2013 17:58:06 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=x5ZBSU_UGmMbxLFqqOehcq_tBbP69fav2tYA7Ysala8OasWirGMwby4fslEAAAAA
|
115
115
|
body:
|
116
116
|
encoding: US-ASCII
|
117
117
|
string: ''
|
118
118
|
headers:
|
119
119
|
Cookie:
|
120
|
-
- GUID=
|
120
|
+
- GUID=vQA4HwwpaXwF0ZUoRRce
|
121
121
|
response:
|
122
122
|
status:
|
123
123
|
code: 200
|
@@ -126,18 +126,17 @@ http_interactions:
|
|
126
126
|
Connection:
|
127
127
|
- keep-alive
|
128
128
|
Content-Length:
|
129
|
-
- '
|
129
|
+
- '310'
|
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
|
-
"
|
138
|
-
|
139
|
-
}, { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "RZC3I57RLP3TMSCD6YWEEGX3E2T2KXVT",
|
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",
|
140
139
|
"size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
141
140
|
http_version:
|
142
|
-
recorded_at:
|
141
|
+
recorded_at: Fri, 07 Jun 2013 17:58:06 GMT
|
143
142
|
recorded_with: VCR 2.5.0
|