BtSync 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Vagrantfile +2 -2
- data/lib/btsync.rb +14 -17
- data/lib/btsync/directory.rb +4 -10
- data/lib/btsync/version.rb +1 -1
- data/spec/BtSync/bt_sync_spec.rb +11 -4
- data/spec/fixtures/cassettes/Remove-Default-Host.yml +57 -3
- data/spec/fixtures/cassettes/Setup-BtSync-Directory.yml +44 -44
- data/spec/fixtures/cassettes/Setup-BtSync.yml +75 -75
- data/spec/fixtures/cassettes/Setup-Directory-Settings.yml +6 -6
- data/spec/fixtures/cassettes/add-folder-list.yml +33 -30
- data/spec/fixtures/cassettes/add-folder.yml +19 -18
- data/spec/fixtures/cassettes/add-known-host.yml +6 -6
- data/spec/fixtures/cassettes/change_download_limit.yml +9 -9
- data/spec/fixtures/cassettes/change_listening_port.yml +9 -9
- data/spec/fixtures/cassettes/change_name.yml +9 -9
- data/spec/fixtures/cassettes/change_secret_custom.yml +8 -8
- data/spec/fixtures/cassettes/change_secret_empty.yml +8 -8
- data/spec/fixtures/cassettes/change_secret_error.yml +3 -3
- data/spec/fixtures/cassettes/change_upload_limit.yml +9 -9
- data/spec/fixtures/cassettes/check_for_new_version.yml +3 -3
- data/spec/fixtures/cassettes/check_is_writable.yml +4 -4
- data/spec/fixtures/cassettes/check_speeds.yml +7 -7
- data/spec/fixtures/cassettes/delete-directory.yml +64 -64
- data/spec/fixtures/cassettes/get-folders.yml +15 -17
- data/spec/fixtures/cassettes/get-os-type.yml +3 -3
- data/spec/fixtures/cassettes/get-peers.yml +6 -6
- data/spec/fixtures/cassettes/get-preferences.yml +24 -24
- data/spec/fixtures/cassettes/get-settings.yml +3 -3
- data/spec/fixtures/cassettes/get_dir.yml +21 -21
- data/spec/fixtures/cassettes/get_read_only_secret.yml +4 -4
- data/spec/fixtures/cassettes/get_version.yml +3 -3
- data/spec/fixtures/cassettes/remove-folder-list.yml +17 -17
- data/spec/fixtures/cassettes/remove-folder.yml +36 -33
- data/spec/fixtures/cassettes/remove-known-host.yml +63 -9
- data/spec/fixtures/cassettes/reset_device_name.yml +9 -9
- data/spec/fixtures/cassettes/reset_download_limit.yml +9 -9
- data/spec/fixtures/cassettes/reset_listening_port.yml +9 -9
- data/spec/fixtures/cassettes/reset_secret.yml +4 -4
- data/spec/fixtures/cassettes/reset_upload_limit.yml +9 -9
- data/spec/fixtures/cassettes/set-preferences-delete.yml +11 -11
- data/spec/fixtures/cassettes/set-preferences-dht.yml +11 -11
- data/spec/fixtures/cassettes/set-preferences-hosts.yml +11 -11
- data/spec/fixtures/cassettes/set-preferences-lan.yml +11 -11
- data/spec/fixtures/cassettes/set-preferences-relay.yml +11 -11
- data/spec/fixtures/cassettes/set-preferences-tracker.yml +11 -11
- data/spec/fixtures/cassettes/view-folders.yml +3 -3
- metadata +2 -2
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=BYDYGCQYU66P5BP23F4ADOCMO5ZGTX7N&token=5OZrwPiPN0PWLLTgTaxBVnXNFGtpvNkFJqM_K86x7E4bbYq2Rz8lnvJAy1EAAAAA
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Cookie:
|
11
|
-
- GUID=
|
11
|
+
- GUID=aLbVst8axvY3uaWPU5gh
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
@@ -25,19 +25,19 @@ http_interactions:
|
|
25
25
|
body:
|
26
26
|
encoding: US-ASCII
|
27
27
|
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
28
|
-
"
|
28
|
+
"RUR3WULEQ5RJOTJOZJ475HLBWCGTKUBDL", "relay": 1, "searchdht": 1, "searchlan":
|
29
29
|
0, "usehosts": 0, "usetracker": 0 } }'
|
30
30
|
http_version:
|
31
|
-
recorded_at:
|
31
|
+
recorded_at: Wed, 26 Jun 2013 19:29:14 GMT
|
32
32
|
- request:
|
33
33
|
method: get
|
34
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=setfolderpref&deletetotrash=1&iswritable=1&name=/home/vagrant&output=json&relay=0&searchdht=1&searchlan=0&secret=
|
34
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=setfolderpref&deletetotrash=1&iswritable=1&name=/home/vagrant&output=json&relay=0&searchdht=1&searchlan=0&secret=BYDYGCQYU66P5BP23F4ADOCMO5ZGTX7N&token=5OZrwPiPN0PWLLTgTaxBVnXNFGtpvNkFJqM_K86x7E4bbYq2Rz8lnvJAy1EAAAAA&usehosts=0&usetracker=0
|
35
35
|
body:
|
36
36
|
encoding: US-ASCII
|
37
37
|
string: ''
|
38
38
|
headers:
|
39
39
|
Cookie:
|
40
|
-
- GUID=
|
40
|
+
- GUID=aLbVst8axvY3uaWPU5gh
|
41
41
|
response:
|
42
42
|
status:
|
43
43
|
code: 200
|
@@ -55,16 +55,16 @@ http_interactions:
|
|
55
55
|
encoding: US-ASCII
|
56
56
|
string: ! '{ }'
|
57
57
|
http_version:
|
58
|
-
recorded_at:
|
58
|
+
recorded_at: Wed, 26 Jun 2013 19:29:14 GMT
|
59
59
|
- request:
|
60
60
|
method: get
|
61
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=
|
61
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=BYDYGCQYU66P5BP23F4ADOCMO5ZGTX7N&token=5OZrwPiPN0PWLLTgTaxBVnXNFGtpvNkFJqM_K86x7E4bbYq2Rz8lnvJAy1EAAAAA
|
62
62
|
body:
|
63
63
|
encoding: US-ASCII
|
64
64
|
string: ''
|
65
65
|
headers:
|
66
66
|
Cookie:
|
67
|
-
- GUID=
|
67
|
+
- GUID=aLbVst8axvY3uaWPU5gh
|
68
68
|
response:
|
69
69
|
status:
|
70
70
|
code: 200
|
@@ -81,8 +81,8 @@ http_interactions:
|
|
81
81
|
body:
|
82
82
|
encoding: US-ASCII
|
83
83
|
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
84
|
-
"
|
84
|
+
"RUR3WULEQ5RJOTJOZJ475HLBWCGTKUBDL", "relay": 0, "searchdht": 1, "searchlan":
|
85
85
|
0, "usehosts": 0, "usetracker": 0 } }'
|
86
86
|
http_version:
|
87
|
-
recorded_at:
|
87
|
+
recorded_at: Wed, 26 Jun 2013 19:29:14 GMT
|
88
88
|
recorded_with: VCR 2.5.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=BYDYGCQYU66P5BP23F4ADOCMO5ZGTX7N&token=5OZrwPiPN0PWLLTgTaxBVnXNFGtpvNkFJqM_K86x7E4bbYq2Rz8lnvJAy1EAAAAA
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Cookie:
|
11
|
-
- GUID=
|
11
|
+
- GUID=aLbVst8axvY3uaWPU5gh
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
@@ -25,19 +25,19 @@ http_interactions:
|
|
25
25
|
body:
|
26
26
|
encoding: US-ASCII
|
27
27
|
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
28
|
-
"
|
28
|
+
"RUR3WULEQ5RJOTJOZJ475HLBWCGTKUBDL", "relay": 1, "searchdht": 0, "searchlan":
|
29
29
|
1, "usehosts": 1, "usetracker": 1 } }'
|
30
30
|
http_version:
|
31
|
-
recorded_at:
|
31
|
+
recorded_at: Wed, 26 Jun 2013 19:29:14 GMT
|
32
32
|
- request:
|
33
33
|
method: get
|
34
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=setfolderpref&deletetotrash=1&iswritable=1&name=/home/vagrant&output=json&relay=1&searchdht=0&searchlan=1&secret=
|
34
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=setfolderpref&deletetotrash=1&iswritable=1&name=/home/vagrant&output=json&relay=1&searchdht=0&searchlan=1&secret=BYDYGCQYU66P5BP23F4ADOCMO5ZGTX7N&token=5OZrwPiPN0PWLLTgTaxBVnXNFGtpvNkFJqM_K86x7E4bbYq2Rz8lnvJAy1EAAAAA&usehosts=1&usetracker=0
|
35
35
|
body:
|
36
36
|
encoding: US-ASCII
|
37
37
|
string: ''
|
38
38
|
headers:
|
39
39
|
Cookie:
|
40
|
-
- GUID=
|
40
|
+
- GUID=aLbVst8axvY3uaWPU5gh
|
41
41
|
response:
|
42
42
|
status:
|
43
43
|
code: 200
|
@@ -55,16 +55,16 @@ http_interactions:
|
|
55
55
|
encoding: US-ASCII
|
56
56
|
string: ! '{ }'
|
57
57
|
http_version:
|
58
|
-
recorded_at:
|
58
|
+
recorded_at: Wed, 26 Jun 2013 19:29:14 GMT
|
59
59
|
- request:
|
60
60
|
method: get
|
61
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=
|
61
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=BYDYGCQYU66P5BP23F4ADOCMO5ZGTX7N&token=5OZrwPiPN0PWLLTgTaxBVnXNFGtpvNkFJqM_K86x7E4bbYq2Rz8lnvJAy1EAAAAA
|
62
62
|
body:
|
63
63
|
encoding: US-ASCII
|
64
64
|
string: ''
|
65
65
|
headers:
|
66
66
|
Cookie:
|
67
|
-
- GUID=
|
67
|
+
- GUID=aLbVst8axvY3uaWPU5gh
|
68
68
|
response:
|
69
69
|
status:
|
70
70
|
code: 200
|
@@ -81,8 +81,8 @@ http_interactions:
|
|
81
81
|
body:
|
82
82
|
encoding: US-ASCII
|
83
83
|
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
84
|
-
"
|
84
|
+
"RUR3WULEQ5RJOTJOZJ475HLBWCGTKUBDL", "relay": 1, "searchdht": 0, "searchlan":
|
85
85
|
1, "usehosts": 1, "usetracker": 0 } }'
|
86
86
|
http_version:
|
87
|
-
recorded_at:
|
87
|
+
recorded_at: Wed, 26 Jun 2013 19:29:14 GMT
|
88
88
|
recorded_with: VCR 2.5.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getdir&dir=/home/vagrant&output=json&token=
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getdir&dir=/home/vagrant&output=json&token=5OZrwPiPN0PWLLTgTaxBVnXNFGtpvNkFJqM_K86x7E4bbYq2Rz8lnvJAy1EAAAAA
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Cookie:
|
11
|
-
- GUID=
|
11
|
+
- GUID=aLbVst8axvY3uaWPU5gh
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
@@ -26,5 +26,5 @@ http_interactions:
|
|
26
26
|
encoding: US-ASCII
|
27
27
|
string: ! '{ "folders": [ ] }'
|
28
28
|
http_version:
|
29
|
-
recorded_at:
|
29
|
+
recorded_at: Wed, 26 Jun 2013 19:29:13 GMT
|
30
30
|
recorded_with: VCR 2.5.0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: BtSync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris MacNaughton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|