BtSync 0.5.1 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +8 -8
  2. data/.gitignore +1 -0
  3. data/.travis.yml +1 -0
  4. data/Vagrantfile +31 -0
  5. data/cookbooks/apt/.gitignore +14 -0
  6. data/cookbooks/apt/.kitchen.yml +38 -0
  7. data/cookbooks/apt/Berksfile +8 -0
  8. data/cookbooks/apt/CHANGELOG.md +97 -0
  9. data/cookbooks/apt/CONTRIBUTING +29 -0
  10. data/cookbooks/apt/LICENSE +201 -0
  11. data/cookbooks/apt/README.md +243 -0
  12. data/cookbooks/apt/TESTING.md +25 -0
  13. data/cookbooks/apt/attributes/default.rb +4 -0
  14. data/cookbooks/apt/files/default/apt-proxy-v2.conf +50 -0
  15. data/cookbooks/apt/metadata.json +1 -0
  16. data/cookbooks/apt/metadata.rb +30 -0
  17. data/cookbooks/apt/providers/preference.rb +61 -0
  18. data/cookbooks/apt/providers/repository.rb +132 -0
  19. data/cookbooks/apt/recipes/cacher-client.rb +59 -0
  20. data/cookbooks/apt/recipes/cacher-ng.rb +40 -0
  21. data/cookbooks/apt/recipes/default.rb +68 -0
  22. data/cookbooks/apt/resources/preference.rb +30 -0
  23. data/cookbooks/apt/resources/repository.rb +40 -0
  24. data/cookbooks/apt/templates/debian-6.0/acng.conf.erb +174 -0
  25. data/cookbooks/apt/templates/default/01proxy.erb +2 -0
  26. data/cookbooks/apt/templates/default/acng.conf.erb +276 -0
  27. data/cookbooks/apt/templates/ubuntu-10.04/acng.conf.erb +270 -0
  28. data/cookbooks/btsync/README.md +2 -0
  29. data/cookbooks/btsync/metadata.rb +14 -0
  30. data/cookbooks/btsync/recipes/default.rb +13 -0
  31. data/cookbooks/build-essential/.gitignore +4 -0
  32. data/cookbooks/build-essential/.kitchen.yml +42 -0
  33. data/cookbooks/build-essential/Berksfile +3 -0
  34. data/cookbooks/build-essential/CHANGELOG.md +42 -0
  35. data/cookbooks/build-essential/CONTRIBUTING +29 -0
  36. data/cookbooks/build-essential/LICENSE +201 -0
  37. data/cookbooks/build-essential/README.md +139 -0
  38. data/cookbooks/build-essential/TESTING.md +25 -0
  39. data/cookbooks/build-essential/attributes/default.rb +33 -0
  40. data/cookbooks/build-essential/metadata.json +44 -0
  41. data/cookbooks/build-essential/metadata.rb +16 -0
  42. data/cookbooks/build-essential/recipes/debian.rb +45 -0
  43. data/cookbooks/build-essential/recipes/default.rb +24 -0
  44. data/cookbooks/build-essential/recipes/fedora.rb +36 -0
  45. data/cookbooks/build-essential/recipes/mac_os_x.rb +40 -0
  46. data/cookbooks/build-essential/recipes/rhel.rb +43 -0
  47. data/cookbooks/build-essential/recipes/smartos.rb +36 -0
  48. data/cookbooks/build-essential/recipes/solaris2.rb +42 -0
  49. data/cookbooks/build-essential/recipes/suse.rb +36 -0
  50. data/lib/btsync.rb +13 -13
  51. data/lib/btsync/communicator.rb +14 -4
  52. data/lib/btsync/directory.rb +12 -12
  53. data/lib/btsync/version.rb +1 -1
  54. data/spec/BtSync/bt_sync_spec.rb +13 -9
  55. data/spec/BtSync/directory_spec.rb +13 -20
  56. data/spec/fixtures/cassettes/{get-known-hosts.yml → Remove-Default-Host.yml} +5 -5
  57. data/spec/fixtures/cassettes/Setup-BtSync-Directory.yml +289 -12
  58. data/spec/fixtures/cassettes/Setup-BtSync.yml +252 -0
  59. data/spec/fixtures/cassettes/Setup-Directory-Settings.yml +8 -38
  60. data/spec/fixtures/cassettes/add-folder-list.yml +32 -35
  61. data/spec/fixtures/cassettes/add-folder.yml +10 -94
  62. data/spec/fixtures/cassettes/add-known-host.yml +6 -6
  63. data/spec/fixtures/cassettes/change_download_limit.yml +15 -42
  64. data/spec/fixtures/cassettes/change_listening_port.yml +15 -42
  65. data/spec/fixtures/cassettes/change_name.yml +13 -40
  66. data/spec/fixtures/cassettes/change_upload_limit.yml +15 -42
  67. data/spec/fixtures/cassettes/get-folders.yml +54 -24
  68. data/spec/fixtures/cassettes/get-os-type.yml +3 -30
  69. data/spec/fixtures/cassettes/get-peers.yml +7 -8
  70. data/spec/fixtures/cassettes/get-preferences.yml +24 -24
  71. data/spec/fixtures/cassettes/get-settings.yml +6 -33
  72. data/spec/fixtures/cassettes/get-version.yml +3 -30
  73. data/spec/fixtures/cassettes/remove-folder-list.yml +18 -20
  74. data/spec/fixtures/cassettes/remove-folder.yml +35 -38
  75. data/spec/fixtures/cassettes/remove-known-host.yml +6 -6
  76. data/spec/fixtures/cassettes/reset_device_name.yml +13 -13
  77. data/spec/fixtures/cassettes/reset_download_limit.yml +15 -15
  78. data/spec/fixtures/cassettes/reset_listening_port.yml +15 -15
  79. data/spec/fixtures/cassettes/reset_upload_limit.yml +15 -15
  80. data/spec/fixtures/cassettes/set-preferences-delete.yml +11 -11
  81. data/spec/fixtures/cassettes/set-preferences-dht.yml +11 -11
  82. data/spec/fixtures/cassettes/set-preferences-hosts.yml +11 -11
  83. data/spec/fixtures/cassettes/set-preferences-lan.yml +11 -11
  84. data/spec/fixtures/cassettes/set-preferences-relay.yml +11 -11
  85. data/spec/fixtures/cassettes/set-preferences-tracker.yml +11 -11
  86. data/spec/fixtures/cassettes/view-folders.yml +5 -5
  87. metadata +52 -4
@@ -2,40 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
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
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
33
6
  body:
34
7
  encoding: US-ASCII
35
8
  string: ''
36
9
  headers:
37
10
  Cookie:
38
- - GUID=GDxCK1HGwXDitWCmAVka
11
+ - GUID=7Sb1dvknwuyiiKy9xvYv
39
12
  response:
40
13
  status:
41
14
  code: 200
@@ -44,26 +17,26 @@ http_interactions:
44
17
  Connection:
45
18
  - keep-alive
46
19
  Content-Length:
47
- - '119'
20
+ - '132'
48
21
  Content-Type:
49
22
  - application/json; charset=utf-8
50
23
  Cache-Control:
51
24
  - no-cache
52
25
  body:
53
26
  encoding: US-ASCII
54
- string: ! '{ "settings": { "devicename": "IceyEC-Virtual1", "dlrate": 0, "listeningport":
55
- 63754, "portmapping": 1, "ulrate": 0 } }'
27
+ string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
28
+ 0, "listeningport": 63754, "portmapping": 0, "ulrate": 0 } }'
56
29
  http_version:
57
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
30
+ recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
58
31
  - request:
59
32
  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
33
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=0&listeningport=12345&output=json&portmapping=0&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA&ulrate=0
61
34
  body:
62
35
  encoding: US-ASCII
63
36
  string: ''
64
37
  headers:
65
38
  Cookie:
66
- - GUID=GDxCK1HGwXDitWCmAVka
39
+ - GUID=7Sb1dvknwuyiiKy9xvYv
67
40
  response:
68
41
  status:
69
42
  code: 200
@@ -81,16 +54,16 @@ http_interactions:
81
54
  encoding: US-ASCII
82
55
  string: ! '{ }'
83
56
  http_version:
84
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
57
+ recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
85
58
  - request:
86
59
  method: get
87
- uri: http://localhost:8888/gui/?action=getsettings&output=json&token=GLaZWf2lCQUSADqtP2iKbMmUeP2bh9Cfqk4iqxY18BlN1cwxv38KqX-DtlEAAAAA
60
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
88
61
  body:
89
62
  encoding: US-ASCII
90
63
  string: ''
91
64
  headers:
92
65
  Cookie:
93
- - GUID=GDxCK1HGwXDitWCmAVka
66
+ - GUID=7Sb1dvknwuyiiKy9xvYv
94
67
  response:
95
68
  status:
96
69
  code: 200
@@ -99,15 +72,15 @@ http_interactions:
99
72
  Connection:
100
73
  - keep-alive
101
74
  Content-Length:
102
- - '119'
75
+ - '132'
103
76
  Content-Type:
104
77
  - application/json; charset=utf-8
105
78
  Cache-Control:
106
79
  - no-cache
107
80
  body:
108
81
  encoding: US-ASCII
109
- string: ! '{ "settings": { "devicename": "IceyEC-Virtual1", "dlrate": 0, "listeningport":
110
- 12345, "portmapping": 1, "ulrate": 0 } }'
82
+ string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
83
+ 0, "listeningport": 12345, "portmapping": 0, "ulrate": 0 } }'
111
84
  http_version:
112
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
85
+ recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
113
86
  recorded_with: VCR 2.5.0
@@ -2,40 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
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
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
33
6
  body:
34
7
  encoding: US-ASCII
35
8
  string: ''
36
9
  headers:
37
10
  Cookie:
38
- - GUID=XfPBG1WqhacQ0f2GNXye
11
+ - GUID=7Sb1dvknwuyiiKy9xvYv
39
12
  response:
40
13
  status:
41
14
  code: 200
@@ -44,26 +17,26 @@ http_interactions:
44
17
  Connection:
45
18
  - keep-alive
46
19
  Content-Length:
47
- - '119'
20
+ - '132'
48
21
  Content-Type:
49
22
  - application/json; charset=utf-8
50
23
  Cache-Control:
51
24
  - no-cache
52
25
  body:
53
26
  encoding: US-ASCII
54
- string: ! '{ "settings": { "devicename": "IceyEC-Virtual1", "dlrate": 0, "listeningport":
55
- 63754, "portmapping": 1, "ulrate": 0 } }'
27
+ string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
28
+ 0, "listeningport": 63754, "portmapping": 0, "ulrate": 0 } }'
56
29
  http_version:
57
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
30
+ recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
58
31
  - request:
59
32
  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
33
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=IceyEC-Virtual2&dlrate=0&listeningport=63754&output=json&portmapping=0&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA&ulrate=0
61
34
  body:
62
35
  encoding: US-ASCII
63
36
  string: ''
64
37
  headers:
65
38
  Cookie:
66
- - GUID=XfPBG1WqhacQ0f2GNXye
39
+ - GUID=7Sb1dvknwuyiiKy9xvYv
67
40
  response:
68
41
  status:
69
42
  code: 200
@@ -81,16 +54,16 @@ http_interactions:
81
54
  encoding: US-ASCII
82
55
  string: ! '{ }'
83
56
  http_version:
84
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
57
+ recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
85
58
  - request:
86
59
  method: get
87
- uri: http://localhost:8888/gui/?action=getsettings&output=json&token=gV-hYQBftblOtYzxFsjcp4_kfp_CzxqhIaKVaaVtQetH_vgkRxWGA3-DtlEAAAAA
60
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
88
61
  body:
89
62
  encoding: US-ASCII
90
63
  string: ''
91
64
  headers:
92
65
  Cookie:
93
- - GUID=XfPBG1WqhacQ0f2GNXye
66
+ - GUID=7Sb1dvknwuyiiKy9xvYv
94
67
  response:
95
68
  status:
96
69
  code: 200
@@ -107,7 +80,7 @@ http_interactions:
107
80
  body:
108
81
  encoding: US-ASCII
109
82
  string: ! '{ "settings": { "devicename": "IceyEC-Virtual2", "dlrate": 0, "listeningport":
110
- 63754, "portmapping": 1, "ulrate": 0 } }'
83
+ 63754, "portmapping": 0, "ulrate": 0 } }'
111
84
  http_version:
112
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
85
+ recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
113
86
  recorded_with: VCR 2.5.0
@@ -2,40 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
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=TsFXrmm0YbYlyiYDtWmj; path=/
23
- Cache-Control:
24
- - no-cache
25
- body:
26
- encoding: US-ASCII
27
- string: <html><div id='token' style='display:none;'>rShA3r5V4Pq3OYq4DTOXiqxiE6PP9LaqjqqF368g7y_UfyKXU2uvb3-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=rShA3r5V4Pq3OYq4DTOXiqxiE6PP9LaqjqqF368g7y_UfyKXU2uvb3-DtlEAAAAA
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
33
6
  body:
34
7
  encoding: US-ASCII
35
8
  string: ''
36
9
  headers:
37
10
  Cookie:
38
- - GUID=TsFXrmm0YbYlyiYDtWmj
11
+ - GUID=7Sb1dvknwuyiiKy9xvYv
39
12
  response:
40
13
  status:
41
14
  code: 200
@@ -44,26 +17,26 @@ http_interactions:
44
17
  Connection:
45
18
  - keep-alive
46
19
  Content-Length:
47
- - '119'
20
+ - '132'
48
21
  Content-Type:
49
22
  - application/json; charset=utf-8
50
23
  Cache-Control:
51
24
  - no-cache
52
25
  body:
53
26
  encoding: US-ASCII
54
- string: ! '{ "settings": { "devicename": "IceyEC-Virtual1", "dlrate": 0, "listeningport":
55
- 63754, "portmapping": 1, "ulrate": 0 } }'
27
+ string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
28
+ 0, "listeningport": 63754, "portmapping": 0, "ulrate": 0 } }'
56
29
  http_version:
57
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
30
+ recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
58
31
  - request:
59
32
  method: get
60
- uri: http://localhost:8888/gui/?action=setsettings&devicename=IceyEC-Virtual1&dlrate=0&listeningport=63754&output=json&portmapping=1&token=rShA3r5V4Pq3OYq4DTOXiqxiE6PP9LaqjqqF368g7y_UfyKXU2uvb3-DtlEAAAAA&ulrate=1000
33
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=0&listeningport=63754&output=json&portmapping=0&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA&ulrate=1000
61
34
  body:
62
35
  encoding: US-ASCII
63
36
  string: ''
64
37
  headers:
65
38
  Cookie:
66
- - GUID=TsFXrmm0YbYlyiYDtWmj
39
+ - GUID=7Sb1dvknwuyiiKy9xvYv
67
40
  response:
68
41
  status:
69
42
  code: 200
@@ -81,16 +54,16 @@ http_interactions:
81
54
  encoding: US-ASCII
82
55
  string: ! '{ }'
83
56
  http_version:
84
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
57
+ recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
85
58
  - request:
86
59
  method: get
87
- uri: http://localhost:8888/gui/?action=getsettings&output=json&token=rShA3r5V4Pq3OYq4DTOXiqxiE6PP9LaqjqqF368g7y_UfyKXU2uvb3-DtlEAAAAA
60
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
88
61
  body:
89
62
  encoding: US-ASCII
90
63
  string: ''
91
64
  headers:
92
65
  Cookie:
93
- - GUID=TsFXrmm0YbYlyiYDtWmj
66
+ - GUID=7Sb1dvknwuyiiKy9xvYv
94
67
  response:
95
68
  status:
96
69
  code: 200
@@ -99,15 +72,15 @@ http_interactions:
99
72
  Connection:
100
73
  - keep-alive
101
74
  Content-Length:
102
- - '122'
75
+ - '135'
103
76
  Content-Type:
104
77
  - application/json; charset=utf-8
105
78
  Cache-Control:
106
79
  - no-cache
107
80
  body:
108
81
  encoding: US-ASCII
109
- string: ! '{ "settings": { "devicename": "IceyEC-Virtual1", "dlrate": 0, "listeningport":
110
- 63754, "portmapping": 1, "ulrate": 1000 } }'
82
+ string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
83
+ 0, "listeningport": 63754, "portmapping": 0, "ulrate": 1000 } }'
111
84
  http_version:
112
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
85
+ recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
113
86
  recorded_with: VCR 2.5.0
@@ -2,7 +2,37 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:8888/gui/token.html?output=text
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Cookie:
11
+ - GUID=7Sb1dvknwuyiiKy9xvYv
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Connection:
18
+ - keep-alive
19
+ Content-Length:
20
+ - '294'
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\/vagrant", "peers": [ ], "secret":
28
+ "XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C", "size": "54.7 MB in 8 files" }, { "name":
29
+ "\/tmp", "peers": [ ], "secret": "P34SXCT2FYOBCEALZJIHEMBUO745JRNT", "size":
30
+ "114.8 kB in 48 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
31
+ http_version:
32
+ recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
33
+ - request:
34
+ method: get
35
+ uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
6
36
  body:
7
37
  encoding: US-ASCII
8
38
  string: ''
@@ -19,23 +49,23 @@ http_interactions:
19
49
  Content-Type:
20
50
  - text/html
21
51
  Set-Cookie:
22
- - GUID=sJU8hiQ5NSVuc2dxB8Dn; path=/
52
+ - GUID=Vq9uyvIXiE6fa9mZqiQT; path=/
23
53
  Cache-Control:
24
54
  - no-cache
25
55
  body:
26
56
  encoding: US-ASCII
27
- string: <html><div id='token' style='display:none;'>JMujymYftPadRjYW94QZZ0wCyZkNI6XVQaIirlKbKp9tEYOoTdrLl3-DtlEAAAAA</div></html>
57
+ string: <html><div id='token' style='display:none;'>qUKj87vpi-r0VhiN5QNz5WHvFChCyBPmO0bCsIId1ZzEieMEWghRJAPBuFEAAAAA</div></html>
28
58
  http_version:
29
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
59
+ recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
30
60
  - request:
31
61
  method: get
32
- uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=JMujymYftPadRjYW94QZZ0wCyZkNI6XVQaIirlKbKp9tEYOoTdrLl3-DtlEAAAAA
62
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=qUKj87vpi-r0VhiN5QNz5WHvFChCyBPmO0bCsIId1ZzEieMEWghRJAPBuFEAAAAA
33
63
  body:
34
64
  encoding: US-ASCII
35
65
  string: ''
36
66
  headers:
37
67
  Cookie:
38
- - GUID=sJU8hiQ5NSVuc2dxB8Dn
68
+ - GUID=Vq9uyvIXiE6fa9mZqiQT
39
69
  response:
40
70
  status:
41
71
  code: 200
@@ -44,22 +74,22 @@ http_interactions:
44
74
  Connection:
45
75
  - keep-alive
46
76
  Content-Length:
47
- - '270'
77
+ - '294'
48
78
  Content-Type:
49
79
  - application/json; charset=utf-8
50
80
  Cache-Control:
51
81
  - no-cache
52
82
  body:
53
83
  encoding: US-ASCII
54
- string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ {
55
- "direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
56
- } ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
57
- } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
84
+ string: ! '{ "folders": [ { "name": "\/home\/vagrant", "peers": [ ], "secret":
85
+ "XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C", "size": "54.7 MB in 8 files" }, { "name":
86
+ "\/tmp", "peers": [ ], "secret": "P34SXCT2FYOBCEALZJIHEMBUO745JRNT", "size":
87
+ "114.8 kB in 48 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
58
88
  http_version:
59
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
89
+ recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
60
90
  - request:
61
91
  method: get
62
- uri: http://localhost:8888/gui/token.html?output=text
92
+ uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
63
93
  body:
64
94
  encoding: US-ASCII
65
95
  string: ''
@@ -76,23 +106,23 @@ http_interactions:
76
106
  Content-Type:
77
107
  - text/html
78
108
  Set-Cookie:
79
- - GUID=8SUzn9h537uwwH67x6wP; path=/
109
+ - GUID=5Dj0twOZkxhIF0RMxcOQ; path=/
80
110
  Cache-Control:
81
111
  - no-cache
82
112
  body:
83
113
  encoding: US-ASCII
84
- string: <html><div id='token' style='display:none;'>_T3OxT7Cd5T_HAJhEBDFxovYrNtHj0CupyC14lEUb4Qk8zd6iYR_Fn-DtlEAAAAA</div></html>
114
+ string: <html><div id='token' style='display:none;'>d0Zero0v6QBesCqPjvMZvUxX3Ua6ENpfSOlM65Ezr4lxGNBixtwuOgPBuFEAAAAA</div></html>
85
115
  http_version:
86
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
116
+ recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
87
117
  - request:
88
118
  method: get
89
- uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=_T3OxT7Cd5T_HAJhEBDFxovYrNtHj0CupyC14lEUb4Qk8zd6iYR_Fn-DtlEAAAAA
119
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=d0Zero0v6QBesCqPjvMZvUxX3Ua6ENpfSOlM65Ezr4lxGNBixtwuOgPBuFEAAAAA
90
120
  body:
91
121
  encoding: US-ASCII
92
122
  string: ''
93
123
  headers:
94
124
  Cookie:
95
- - GUID=8SUzn9h537uwwH67x6wP
125
+ - GUID=5Dj0twOZkxhIF0RMxcOQ
96
126
  response:
97
127
  status:
98
128
  code: 200
@@ -101,17 +131,17 @@ http_interactions:
101
131
  Connection:
102
132
  - keep-alive
103
133
  Content-Length:
104
- - '270'
134
+ - '294'
105
135
  Content-Type:
106
136
  - application/json; charset=utf-8
107
137
  Cache-Control:
108
138
  - no-cache
109
139
  body:
110
140
  encoding: US-ASCII
111
- string: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ {
112
- "direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
113
- } ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
114
- } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
141
+ string: ! '{ "folders": [ { "name": "\/home\/vagrant", "peers": [ ], "secret":
142
+ "XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C", "size": "54.7 MB in 8 files" }, { "name":
143
+ "\/tmp", "peers": [ ], "secret": "P34SXCT2FYOBCEALZJIHEMBUO745JRNT", "size":
144
+ "114.8 kB in 48 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
115
145
  http_version:
116
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
146
+ recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
117
147
  recorded_with: VCR 2.5.0