BtSync 0.5.1 → 0.5.3

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 (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=SZGEavWRWlylZwpb4y1U; path=/
23
- Cache-Control:
24
- - no-cache
25
- body:
26
- encoding: US-ASCII
27
- string: <html><div id='token' style='display:none;'>cNJuLdTzhAVEgK83V3Ai3F9LGEGb2oDNWAwa1BWst7Dpo45MpwWH93-DtlEAAAAA</div></html>
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=getsyncfolders&output=json&token=cNJuLdTzhAVEgK83V3Ai3F9LGEGb2oDNWAwa1BWst7Dpo45MpwWH93-DtlEAAAAA
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=setfolderpref&deletetotrash=1&name=/home/vagrant&output=json&relay=1&searchdht=0&searchlan=1&secret=XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C&token=RZbVuwWEheFdAfByFpevSH6m3_t2y6Brna0IR68P0vD7nryy2Ktd6gTBuFEAAAAA&usehosts=1&usetracker=1
33
6
  body:
34
7
  encoding: US-ASCII
35
8
  string: ''
36
9
  headers:
37
10
  Cookie:
38
- - GUID=SZGEavWRWlylZwpb4y1U
11
+ - GUID=TotE2NElyDGhazP4Fk3b
39
12
  response:
40
13
  status:
41
14
  code: 200
@@ -44,28 +17,25 @@ http_interactions:
44
17
  Connection:
45
18
  - keep-alive
46
19
  Content-Length:
47
- - '270'
20
+ - '4'
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: ! '{ "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" }'
27
+ string: ! '{ }'
58
28
  http_version:
59
- recorded_at: Tue, 11 Jun 2013 01:55:14 GMT
29
+ recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
60
30
  - request:
61
31
  method: get
62
- uri: http://localhost:8888/gui/?action=setfolderpref&deletetotrash=1&name=/home/chris/Documents&output=json&relay=1&searchdht=0&searchlan=1&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=cNJuLdTzhAVEgK83V3Ai3F9LGEGb2oDNWAwa1BWst7Dpo45MpwWH93-DtlEAAAAA&usehosts=1&usetracker=1
32
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=addknownhosts&addr=192.168.1.5&name=/home/vagrant&output=json&port=45685&secret=XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C&token=RZbVuwWEheFdAfByFpevSH6m3_t2y6Brna0IR68P0vD7nryy2Ktd6gTBuFEAAAAA
63
33
  body:
64
34
  encoding: US-ASCII
65
35
  string: ''
66
36
  headers:
67
37
  Cookie:
68
- - GUID=SZGEavWRWlylZwpb4y1U
38
+ - GUID=TotE2NElyDGhazP4Fk3b
69
39
  response:
70
40
  status:
71
41
  code: 200
@@ -83,5 +53,5 @@ http_interactions:
83
53
  encoding: US-ASCII
84
54
  string: ! '{ }'
85
55
  http_version:
86
- recorded_at: Tue, 11 Jun 2013 01:55:14 GMT
56
+ recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
87
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=0yGezY2QZeVy7GPzaV-TQ6SuOMns8TlPgbHND059Qv-NnsquBvqIln-DtlEAAAAA
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  Cookie:
11
- - GUID=YvUwERzuA6KDtWx5gBqG
11
+ - GUID=7Sb1dvknwuyiiKy9xvYv
12
12
  response:
13
13
  status:
14
14
  code: 200
@@ -17,23 +17,22 @@ http_interactions:
17
17
  Connection:
18
18
  - keep-alive
19
19
  Content-Length:
20
- - '395'
20
+ - '294'
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
- "direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
29
- } ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
30
- }, { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "FEEBRD6KX6NFZYJRVVN6WKGONI467MZE",
31
- "size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
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" }'
32
31
  http_version:
33
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
32
+ recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
34
33
  - request:
35
34
  method: get
36
- uri: http://localhost:8888/gui/token.html?output=text
35
+ uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
37
36
  body:
38
37
  encoding: US-ASCII
39
38
  string: ''
@@ -50,23 +49,23 @@ http_interactions:
50
49
  Content-Type:
51
50
  - text/html
52
51
  Set-Cookie:
53
- - GUID=Cp4jt4ReFqAFFPOa27Ug; path=/
52
+ - GUID=kG6pI3aqngiE0fCF7QGk; 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;'>M-w4xBeY_d3X2M0_exuoHEuilyomwOAykfZQQBoqiBJYEnv-U7EtQ3-DtlEAAAAA</div></html>
57
+ string: <html><div id='token' style='display:none;'>J-t6uZxK8C1ez5vYwPO41E1Ttz4KYYKXITYt53wh68lRcnNnHrOgkgTBuFEAAAAA</div></html>
59
58
  http_version:
60
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
59
+ recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
61
60
  - request:
62
61
  method: get
63
- uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=M-w4xBeY_d3X2M0_exuoHEuilyomwOAykfZQQBoqiBJYEnv-U7EtQ3-DtlEAAAAA
62
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=J-t6uZxK8C1ez5vYwPO41E1Ttz4KYYKXITYt53wh68lRcnNnHrOgkgTBuFEAAAAA
64
63
  body:
65
64
  encoding: US-ASCII
66
65
  string: ''
67
66
  headers:
68
67
  Cookie:
69
- - GUID=Cp4jt4ReFqAFFPOa27Ug
68
+ - GUID=kG6pI3aqngiE0fCF7QGk
70
69
  response:
71
70
  status:
72
71
  code: 200
@@ -75,23 +74,22 @@ http_interactions:
75
74
  Connection:
76
75
  - keep-alive
77
76
  Content-Length:
78
- - '395'
77
+ - '294'
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
- "direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
87
- } ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
88
- }, { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "FEEBRD6KX6NFZYJRVVN6WKGONI467MZE",
89
- "size": "0 B in 0 files" } ], "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" }'
90
88
  http_version:
91
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
89
+ recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
92
90
  - request:
93
91
  method: get
94
- uri: http://localhost:8888/gui/token.html?output=text
92
+ uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
95
93
  body:
96
94
  encoding: US-ASCII
97
95
  string: ''
@@ -108,23 +106,23 @@ http_interactions:
108
106
  Content-Type:
109
107
  - text/html
110
108
  Set-Cookie:
111
- - GUID=WBI9LeZzdEJEU8GfuXFY; path=/
109
+ - GUID=Ah42O4eG5qFHUMb5EV92; 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;'>w7z2LJ6KChGJLPNEAKaHWyfhXeY0qUSd106gAEt-Zpax0zeVZp0NVH-DtlEAAAAA</div></html>
114
+ string: <html><div id='token' style='display:none;'>TeJR3xxKog1SEkd5PoLiOAWSDCWd-yLo_ESwRecQfkdLeQ6s1tCIZATBuFEAAAAA</div></html>
117
115
  http_version:
118
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
116
+ recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
119
117
  - request:
120
118
  method: get
121
- uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=w7z2LJ6KChGJLPNEAKaHWyfhXeY0qUSd106gAEt-Zpax0zeVZp0NVH-DtlEAAAAA
119
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=TeJR3xxKog1SEkd5PoLiOAWSDCWd-yLo_ESwRecQfkdLeQ6s1tCIZATBuFEAAAAA
122
120
  body:
123
121
  encoding: US-ASCII
124
122
  string: ''
125
123
  headers:
126
124
  Cookie:
127
- - GUID=WBI9LeZzdEJEU8GfuXFY
125
+ - GUID=Ah42O4eG5qFHUMb5EV92
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
- - '395'
134
+ - '294'
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
- "direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
145
- } ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
146
- }, { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "FEEBRD6KX6NFZYJRVVN6WKGONI467MZE",
147
- "size": "0 B in 0 files" } ], "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" }'
148
145
  http_version:
149
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
146
+ recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
150
147
  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=YvUwERzuA6KDtWx5gBqG; path=/
23
- Cache-Control:
24
- - no-cache
25
- body:
26
- encoding: US-ASCII
27
- string: <html><div id='token' style='display:none;'>0yGezY2QZeVy7GPzaV-TQ6SuOMns8TlPgbHND059Qv-NnsquBvqIln-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=generatesecret&output=json&token=0yGezY2QZeVy7GPzaV-TQ6SuOMns8TlPgbHND059Qv-NnsquBvqIln-DtlEAAAAA
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=generatesecret&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=YvUwERzuA6KDtWx5gBqG
11
+ - GUID=7Sb1dvknwuyiiKy9xvYv
39
12
  response:
40
13
  status:
41
14
  code: 200
@@ -51,73 +24,19 @@ http_interactions:
51
24
  - no-cache
52
25
  body:
53
26
  encoding: US-ASCII
54
- string: ! '{ "rosecret": "RU35YQ4T6PE5F5FTG7CHZ7NQJ2KI5G6B2", "secret": "FEEBRD6KX6NFZYJRVVN6WKGONI467MZE"
27
+ string: ! '{ "rosecret": "RBCVG2UQM47GUM6COGNJUJX56HERKGVXH", "secret": "WQ2DBPS2K7MPPANC6PAQQKYW5H64FS2Z"
55
28
  }'
56
29
  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=addsyncfolder&name=/home/chris/bt_test&output=json&secret=FEEBRD6KX6NFZYJRVVN6WKGONI467MZE&token=0yGezY2QZeVy7GPzaV-TQ6SuOMns8TlPgbHND059Qv-NnsquBvqIln-DtlEAAAAA
61
- body:
62
- encoding: US-ASCII
63
- string: ''
64
- headers:
65
- Cookie:
66
- - GUID=YvUwERzuA6KDtWx5gBqG
67
- response:
68
- status:
69
- code: 200
70
- message: OK
71
- headers:
72
- Connection:
73
- - keep-alive
74
- Content-Length:
75
- - '14'
76
- Content-Type:
77
- - application/json; charset=utf-8
78
- Cache-Control:
79
- - no-cache
80
- body:
81
- encoding: US-ASCII
82
- string: ! '{ "error": 0 }'
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/token.html?output=text
88
- body:
89
- encoding: US-ASCII
90
- string: ''
91
- headers: {}
92
- response:
93
- status:
94
- code: 200
95
- message: OK
96
- headers:
97
- Connection:
98
- - keep-alive
99
- Content-Length:
100
- - '121'
101
- Content-Type:
102
- - text/html
103
- Set-Cookie:
104
- - GUID=sXDdY5BtJr5UIBaTJLJm; path=/
105
- Cache-Control:
106
- - no-cache
107
- body:
108
- encoding: US-ASCII
109
- string: <html><div id='token' style='display:none;'>wz7jsZf0pne0IsvsXJD5Dy4E1zc3Yp_8gTkIed8I4Hj7_mMuqgyqen-DtlEAAAAA</div></html>
110
- http_version:
111
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
30
+ recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
112
31
  - request:
113
32
  method: get
114
- uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=wz7jsZf0pne0IsvsXJD5Dy4E1zc3Yp_8gTkIed8I4Hj7_mMuqgyqen-DtlEAAAAA
33
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=addsyncfolder&name=/tmp&output=json&secret=WQ2DBPS2K7MPPANC6PAQQKYW5H64FS2Z&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
115
34
  body:
116
35
  encoding: US-ASCII
117
36
  string: ''
118
37
  headers:
119
38
  Cookie:
120
- - GUID=sXDdY5BtJr5UIBaTJLJm
39
+ - GUID=7Sb1dvknwuyiiKy9xvYv
121
40
  response:
122
41
  status:
123
42
  code: 200
@@ -126,18 +45,15 @@ http_interactions:
126
45
  Connection:
127
46
  - keep-alive
128
47
  Content-Length:
129
- - '395'
48
+ - '143'
130
49
  Content-Type:
131
50
  - application/json; charset=utf-8
132
51
  Cache-Control:
133
52
  - no-cache
134
53
  body:
135
54
  encoding: US-ASCII
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",
140
- "size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
55
+ string: ! '{ "error": 200, "message": "Selected folder is already added to BitTorrent
56
+ Sync.", "n": "\/tmp", "secret": "WQ2DBPS2K7MPPANC6PAQQKYW5H64FS2Z" }'
141
57
  http_version:
142
- recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
58
+ recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
143
59
  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=addknownhosts&addr=10.0.1.254&name=/home/chris/Documents&output=json&port=12345&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=cNJuLdTzhAVEgK83V3Ai3F9LGEGb2oDNWAwa1BWst7Dpo45MpwWH93-DtlEAAAAA
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=addknownhosts&addr=10.0.1.254&name=/home/vagrant&output=json&port=12345&secret=XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C&token=RZbVuwWEheFdAfByFpevSH6m3_t2y6Brna0IR68P0vD7nryy2Ktd6gTBuFEAAAAA
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  Cookie:
11
- - GUID=SZGEavWRWlylZwpb4y1U
11
+ - GUID=TotE2NElyDGhazP4Fk3b
12
12
  response:
13
13
  status:
14
14
  code: 200
@@ -26,16 +26,16 @@ http_interactions:
26
26
  encoding: US-ASCII
27
27
  string: ! '{ }'
28
28
  http_version:
29
- recorded_at: Tue, 11 Jun 2013 01:55:14 GMT
29
+ recorded_at: Wed, 12 Jun 2013 18:42:13 GMT
30
30
  - request:
31
31
  method: get
32
- uri: http://localhost:8888/gui/?action=getknownhosts&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=cNJuLdTzhAVEgK83V3Ai3F9LGEGb2oDNWAwa1BWst7Dpo45MpwWH93-DtlEAAAAA
32
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getknownhosts&name=/home/vagrant&output=json&secret=XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C&token=RZbVuwWEheFdAfByFpevSH6m3_t2y6Brna0IR68P0vD7nryy2Ktd6gTBuFEAAAAA
33
33
  body:
34
34
  encoding: US-ASCII
35
35
  string: ''
36
36
  headers:
37
37
  Cookie:
38
- - GUID=SZGEavWRWlylZwpb4y1U
38
+ - GUID=TotE2NElyDGhazP4Fk3b
39
39
  response:
40
40
  status:
41
41
  code: 200
@@ -54,5 +54,5 @@ http_interactions:
54
54
  string: ! '{ "hosts": [ { "index": 0, "peer": "192.168.1.5:45685" }, { "index":
55
55
  1, "peer": "10.0.1.254:12345" } ] }'
56
56
  http_version:
57
- recorded_at: Tue, 11 Jun 2013 01:55:14 GMT
57
+ recorded_at: Wed, 12 Jun 2013 18:42:13 GMT
58
58
  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=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
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=rQOaRmGSuftanqRVwf4c
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=1000&listeningport=63754&output=json&portmapping=1&token=CjJq3w8fG-rf15Vh44pxG3FwSBLu8AWU3b1PoN-SVD43tCnPkeCxAX-DtlEAAAAA&ulrate=0
33
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=1000&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=rQOaRmGSuftanqRVwf4c
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=CjJq3w8fG-rf15Vh44pxG3FwSBLu8AWU3b1PoN-SVD43tCnPkeCxAX-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=rQOaRmGSuftanqRVwf4c
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": 1000,
110
- "listeningport": 63754, "portmapping": 1, "ulrate": 0 } }'
82
+ string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
83
+ 1000, "listeningport": 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:12 GMT
113
86
  recorded_with: VCR 2.5.0