BtSync 0.6.1 → 0.6.2

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 (48) hide show
  1. checksums.yaml +8 -8
  2. data/Vagrantfile +2 -2
  3. data/lib/btsync.rb +14 -17
  4. data/lib/btsync/directory.rb +4 -10
  5. data/lib/btsync/version.rb +1 -1
  6. data/spec/BtSync/bt_sync_spec.rb +11 -4
  7. data/spec/fixtures/cassettes/Remove-Default-Host.yml +57 -3
  8. data/spec/fixtures/cassettes/Setup-BtSync-Directory.yml +44 -44
  9. data/spec/fixtures/cassettes/Setup-BtSync.yml +75 -75
  10. data/spec/fixtures/cassettes/Setup-Directory-Settings.yml +6 -6
  11. data/spec/fixtures/cassettes/add-folder-list.yml +33 -30
  12. data/spec/fixtures/cassettes/add-folder.yml +19 -18
  13. data/spec/fixtures/cassettes/add-known-host.yml +6 -6
  14. data/spec/fixtures/cassettes/change_download_limit.yml +9 -9
  15. data/spec/fixtures/cassettes/change_listening_port.yml +9 -9
  16. data/spec/fixtures/cassettes/change_name.yml +9 -9
  17. data/spec/fixtures/cassettes/change_secret_custom.yml +8 -8
  18. data/spec/fixtures/cassettes/change_secret_empty.yml +8 -8
  19. data/spec/fixtures/cassettes/change_secret_error.yml +3 -3
  20. data/spec/fixtures/cassettes/change_upload_limit.yml +9 -9
  21. data/spec/fixtures/cassettes/check_for_new_version.yml +3 -3
  22. data/spec/fixtures/cassettes/check_is_writable.yml +4 -4
  23. data/spec/fixtures/cassettes/check_speeds.yml +7 -7
  24. data/spec/fixtures/cassettes/delete-directory.yml +64 -64
  25. data/spec/fixtures/cassettes/get-folders.yml +15 -17
  26. data/spec/fixtures/cassettes/get-os-type.yml +3 -3
  27. data/spec/fixtures/cassettes/get-peers.yml +6 -6
  28. data/spec/fixtures/cassettes/get-preferences.yml +24 -24
  29. data/spec/fixtures/cassettes/get-settings.yml +3 -3
  30. data/spec/fixtures/cassettes/get_dir.yml +21 -21
  31. data/spec/fixtures/cassettes/get_read_only_secret.yml +4 -4
  32. data/spec/fixtures/cassettes/get_version.yml +3 -3
  33. data/spec/fixtures/cassettes/remove-folder-list.yml +17 -17
  34. data/spec/fixtures/cassettes/remove-folder.yml +36 -33
  35. data/spec/fixtures/cassettes/remove-known-host.yml +63 -9
  36. data/spec/fixtures/cassettes/reset_device_name.yml +9 -9
  37. data/spec/fixtures/cassettes/reset_download_limit.yml +9 -9
  38. data/spec/fixtures/cassettes/reset_listening_port.yml +9 -9
  39. data/spec/fixtures/cassettes/reset_secret.yml +4 -4
  40. data/spec/fixtures/cassettes/reset_upload_limit.yml +9 -9
  41. data/spec/fixtures/cassettes/set-preferences-delete.yml +11 -11
  42. data/spec/fixtures/cassettes/set-preferences-dht.yml +11 -11
  43. data/spec/fixtures/cassettes/set-preferences-hosts.yml +11 -11
  44. data/spec/fixtures/cassettes/set-preferences-lan.yml +11 -11
  45. data/spec/fixtures/cassettes/set-preferences-relay.yml +11 -11
  46. data/spec/fixtures/cassettes/set-preferences-tracker.yml +11 -11
  47. data/spec/fixtures/cassettes/view-folders.yml +3 -3
  48. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Yzk2ZWQ3OTY5NDA5NzVhMDgxOWY3NWU3NDVjNmMwZDE5OWE4NzRiOA==
4
+ MDUyYmU1NThiOGVhZWRlNDY3YmVmM2Y0MjY2NTA4NmYzNDZjMDY1NQ==
5
5
  data.tar.gz: !binary |-
6
- OGUzNjQyNmM5OGJlMDc0N2NhNjQ3MmY2YzI4OTNmN2M1YTE5YzQ2Nw==
6
+ ZmNhODgwNDgwMTMyMDk4NTQzOWFhYTk0MWM0MDI1MzI2YjI5ZmZhZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MWNhNzgzZTJlYjZkYmMwMjEwZjk1OWExZjg0NTc1MDE0Y2MwYjM4ZjJkN2Mx
10
- NDVmNjE5ZWUxMTEyZWQ3MTk2YjkyNWYyNGYxYTI4YWNhZGQ2NzRkMzU1ZmFj
11
- YzRhYWI1YzNiYzFhMmUwMDBiZjJjZWRiZmI3YzAwOWFlZGQyZTY=
9
+ MDMxM2I2ZWMzYThmYjA0ZjJmNjlkZDc0MjVjNDE5NGY0ZjA0NzkzMmY1MTVj
10
+ ZGNiNjk4NzgyNTYxMGU5YmE3ZGRiY2FiNWI2MzFjZmExZWY0YjcyNDA5NTQ2
11
+ ZDUzOTk0YzY0ODExMWEzNDU0OTdkYzU5N2UxOGUwMTIwZjYzMDU=
12
12
  data.tar.gz: !binary |-
13
- NTA5NTdmNDg0M2QwYTZjNTYyNjMxMWMzNmJkZGY0MzNlMDFlZGU1N2M4ZWEz
14
- ZDM4ZjRhNzA0ZTI4Y2VmM2M3MDY5ODA1YWZiOTU4MGZkMDA3YzU1NmM2YjFj
15
- ZjUxZDllZTE0ZGJlZTcwNDNjNDcxYWQ5ODAwY2E3YmFiODcxMDg=
13
+ NjRlYjFiNmY5ZWYzNjgwODBhODU2ZGVmYjhhMjc3MmI0ZmZjMDAxMjUyMWQ4
14
+ NmZkMGExYjVmNTBlNmQyNjE4ZGRhYmRjNWM5NzIzY2RjMjRhZjQ1MGMyY2Iz
15
+ ZDhhZDljYjQ0ZDE2MmE1MDM0OTk3ZWNhMmUzYmYxMDc5ZDkzY2M=
@@ -7,11 +7,11 @@ Vagrant.configure("2") do |config|
7
7
  # please see the online documentation at vagrantup.com.
8
8
 
9
9
  # Every Vagrant virtual environment requires a box to build off of.
10
- config.vm.box = "chef-11-omnibus-x86"
10
+ config.vm.box = "ubuntu-12.04-updated"
11
11
 
12
12
  # The url from where the 'config.vm.box' box will be fetched if it
13
13
  # doesn't already exist on the user's system.
14
- config.vm.box_url = "http://grahamc.com/vagrant/ubuntu-12.04.2-i386-chef-11-omnibus.box"
14
+ config.vm.box_url = "http://bit.ly/1488yGQ"
15
15
 
16
16
  # Create a forwarded port mapping which allows access to a specific port
17
17
  # within the machine from a port on the host machine. In the example below,
@@ -70,19 +70,17 @@ class BtSync
70
70
  end
71
71
 
72
72
  def get_speed
73
- {
74
- up: up,
75
- down: down
76
- }
73
+ { up: speed('up'), down: speed('down') }
77
74
  end
78
75
 
79
- def up
80
- l = get_folder_list['speed'].split(', ')[0].split(' ')
81
- {speed: l[0].to_f, metric: l[1]}
82
- end
83
-
84
- def down
85
- l = get_folder_list['speed'].split(', ')[1].split(' ')
76
+ def speed(type)
77
+ case type
78
+ when 'up'
79
+ i = 0
80
+ when 'down'
81
+ i = 1
82
+ end
83
+ l = get_folder_list['speed'].split(', ')[i].split(' ')
86
84
  {speed: l[0].to_f, metric: l[1]}
87
85
  end
88
86
 
@@ -137,7 +135,7 @@ class BtSync
137
135
  private
138
136
 
139
137
  def setup_opts(opts)
140
- opt = defaults.merge!(opts.symbolize)
138
+ opt = defaults.merge!(symbolize(opts))
141
139
  opt[:uri].gsub!(%r(^(https?://){1,})i, '')
142
140
  @port = opt[:port]
143
141
  @user = opt[:user]
@@ -159,13 +157,12 @@ class BtSync
159
157
  res = get(path('getsyncfolders'))
160
158
  @folder_list = res.parsed_response
161
159
  end
162
- end
163
- class Hash
164
- def symbolize
160
+
161
+ def symbolize(h)
165
162
  r = {}
166
- self.each do |k, v|
163
+ h.each do |k, v|
167
164
  if k.is_a? String
168
- r[k.to_symbol] = v
165
+ r[:"#{k}"] = v
169
166
  else
170
167
  r[k] = v
171
168
  end
@@ -5,7 +5,6 @@ class BtSync
5
5
  include BtCommunicator
6
6
  default_params output: 'json'
7
7
  attr_reader :secret, :name, :errors
8
-
9
8
  def initialize(name, secret, btsync)
10
9
  @name = name
11
10
  @secret = secret
@@ -26,14 +25,12 @@ class BtSync
26
25
  query = secret_params(new_secret)
27
26
  res = get(path('updatesecret'), query: query)
28
27
  p = res.parsed_response
29
- if p != {} && p != '\r\ninvalid request'
28
+ if p != {}
30
29
  @secret = new_secret
31
30
  true
32
31
  else
33
32
  if p == {}
34
33
  @errors << "Invalid Secret"
35
- else
36
- @errors << res.parsed_response
37
34
  end
38
35
  false
39
36
  end
@@ -65,13 +62,10 @@ class BtSync
65
62
  end
66
63
 
67
64
  def remove_host(index)
65
+ host_name = known_hosts.select { |id, host| id == index }
68
66
  query = { name: name, secret: secret, index: index }
69
- res = get(path('removeknownhosts'), query: query)
70
- if res.parsed_response != {}
71
- res.parsed_response
72
- else
73
- true
74
- end
67
+ get(path('removeknownhosts'), query: query) unless host_name.nil? || host_name.empty?
68
+ known_hosts.select { |id, host| host == host_name }.empty?
75
69
  end
76
70
 
77
71
  def remove_host_by_ip(ip, port = nil)
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module BtsyncVersion
3
- VERSION = '0.6.1'
3
+ VERSION = '0.6.2'
4
4
  end
@@ -128,11 +128,14 @@ describe 'BtSync' do
128
128
  end
129
129
  end
130
130
  it 'can check speeds' do
131
- VCR.use_cassette('check speeds') do
132
- @bt.up.should be == {speed: 0.0, metric: 'kB/s'}
131
+ VCR.use_cassette('check speeds', allow_playback_repeats: true) do
132
+ @bt.speed('up').should be == {speed: 0.0, metric: 'kB/s'}
133
133
  end
134
- VCR.use_cassette('check speeds') do
135
- @bt.down.should be == {speed: 0.0, metric: 'kB/s'}
134
+ VCR.use_cassette('check speeds', allow_playback_repeats: true) do
135
+ @bt.speed('down').should be == {speed: 0.0, metric: 'kB/s'}
136
+ end
137
+ VCR.use_cassette('check speeds', allow_playback_repeats: true) do
138
+ @bt.get_speed.should be == {up: {speed: 0.0, metric: 'kB/s'}, down: {speed: 0.0, metric: 'kB/s'}}
136
139
  end
137
140
  end
138
141
  it 'can check for new versions' do
@@ -142,4 +145,8 @@ describe 'BtSync' do
142
145
  res["version"].should be == 0
143
146
  end
144
147
  end
148
+ it 'can symbolize a hash -_-' do
149
+ @bt.send('symbolize', {'test' => 'value'}).should be == {test: 'value'}
150
+ @bt.send('symbolize', {test: 'value'}).should be == {test: 'value'}
151
+ end
145
152
  end
@@ -2,13 +2,40 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=removeknownhosts&index=0&name=/home/vagrant&output=json&secret=WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getknownhosts&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=rjaBHJHENSXofGDyyThi
11
+ - GUID=aLbVst8axvY3uaWPU5gh
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Connection:
18
+ - keep-alive
19
+ Content-Length:
20
+ - '60'
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Cache-Control:
24
+ - no-cache
25
+ body:
26
+ encoding: US-ASCII
27
+ string: ! '{ "hosts": [ { "index": 0, "peer": "192.168.1.5:45685" } ] }'
28
+ http_version:
29
+ recorded_at: Wed, 26 Jun 2013 19:29:13 GMT
30
+ - request:
31
+ method: get
32
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=removeknownhosts&index=0&name=/home/vagrant&output=json&secret=BYDYGCQYU66P5BP23F4ADOCMO5ZGTX7N&token=5OZrwPiPN0PWLLTgTaxBVnXNFGtpvNkFJqM_K86x7E4bbYq2Rz8lnvJAy1EAAAAA
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ''
36
+ headers:
37
+ Cookie:
38
+ - GUID=aLbVst8axvY3uaWPU5gh
12
39
  response:
13
40
  status:
14
41
  code: 200
@@ -26,5 +53,32 @@ http_interactions:
26
53
  encoding: US-ASCII
27
54
  string: ! '{ }'
28
55
  http_version:
29
- recorded_at: Fri, 21 Jun 2013 17:23:53 GMT
56
+ recorded_at: Wed, 26 Jun 2013 19:29:13 GMT
57
+ - request:
58
+ method: get
59
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getknownhosts&name=/home/vagrant&output=json&secret=BYDYGCQYU66P5BP23F4ADOCMO5ZGTX7N&token=5OZrwPiPN0PWLLTgTaxBVnXNFGtpvNkFJqM_K86x7E4bbYq2Rz8lnvJAy1EAAAAA
60
+ body:
61
+ encoding: US-ASCII
62
+ string: ''
63
+ headers:
64
+ Cookie:
65
+ - GUID=aLbVst8axvY3uaWPU5gh
66
+ response:
67
+ status:
68
+ code: 200
69
+ message: OK
70
+ headers:
71
+ Connection:
72
+ - keep-alive
73
+ Content-Length:
74
+ - '17'
75
+ Content-Type:
76
+ - application/json; charset=utf-8
77
+ Cache-Control:
78
+ - no-cache
79
+ body:
80
+ encoding: US-ASCII
81
+ string: ! '{ "hosts": [ ] }'
82
+ http_version:
83
+ recorded_at: Wed, 26 Jun 2013 19:29:13 GMT
30
84
  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=vJsxm27ZeCjb15oCKsMQ; path=/
22
+ - GUID=x4umWF4bIstqFYeBHMvB; 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;'>hsWIFgjPTuDH4lS61vcgpFzFxMAun23ju9bbaQ8osP3amEPtHuyUViiMxFEAAAAA</div></html>
27
+ string: <html><div id='token' style='display:none;'>5Fl12q9X1VmKu6KC6R8MlXnUHu_OHxbkoroiMH-jfxyfCzpOvyU_YPFAy1EAAAAA</div></html>
28
28
  http_version:
29
- recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
29
+ recorded_at: Wed, 26 Jun 2013 19:28:49 GMT
30
30
  - request:
31
31
  method: get
32
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=generatesecret&output=json&token=hsWIFgjPTuDH4lS61vcgpFzFxMAun23ju9bbaQ8osP3amEPtHuyUViiMxFEAAAAA
32
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=generatesecret&output=json&token=5Fl12q9X1VmKu6KC6R8MlXnUHu_OHxbkoroiMH-jfxyfCzpOvyU_YPFAy1EAAAAA
33
33
  body:
34
34
  encoding: US-ASCII
35
35
  string: ''
36
36
  headers:
37
37
  Cookie:
38
- - GUID=vJsxm27ZeCjb15oCKsMQ
38
+ - GUID=x4umWF4bIstqFYeBHMvB
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": "RSBJE53RI75GYRXHUGXJ2ZVMUWE6MTHS7", "secret": "J7C6FWGZOII324QX4QDM7GEYDDP4BWML"
54
+ string: ! '{ "rosecret": "R3HM42E4LGIYPC4OKFEBSP6T46YITFYSW", "secret": "2IEIVEJ6B3RGFBX66JMT7H7CRRNC74EL"
55
55
  }'
56
56
  http_version:
57
- recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
57
+ recorded_at: Wed, 26 Jun 2013 19:28:49 GMT
58
58
  - request:
59
59
  method: get
60
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=addsyncfolder&name=/home/vagrant&output=json&secret=J7C6FWGZOII324QX4QDM7GEYDDP4BWML&token=hsWIFgjPTuDH4lS61vcgpFzFxMAun23ju9bbaQ8osP3amEPtHuyUViiMxFEAAAAA
60
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=addsyncfolder&name=/home/vagrant&output=json&secret=2IEIVEJ6B3RGFBX66JMT7H7CRRNC74EL&token=5Fl12q9X1VmKu6KC6R8MlXnUHu_OHxbkoroiMH-jfxyfCzpOvyU_YPFAy1EAAAAA
61
61
  body:
62
62
  encoding: US-ASCII
63
63
  string: ''
64
64
  headers:
65
65
  Cookie:
66
- - GUID=vJsxm27ZeCjb15oCKsMQ
66
+ - GUID=x4umWF4bIstqFYeBHMvB
67
67
  response:
68
68
  status:
69
69
  code: 200
@@ -80,19 +80,19 @@ http_interactions:
80
80
  body:
81
81
  encoding: US-ASCII
82
82
  string: ! '{ "error": 200, "message": "Selected folder is already added to BitTorrent
83
- Sync.", "n": "\/home\/vagrant", "secret": "J7C6FWGZOII324QX4QDM7GEYDDP4BWML"
83
+ Sync.", "n": "\/home\/vagrant", "secret": "2IEIVEJ6B3RGFBX66JMT7H7CRRNC74EL"
84
84
  }'
85
85
  http_version:
86
- recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
86
+ recorded_at: Wed, 26 Jun 2013 19:28:49 GMT
87
87
  - request:
88
88
  method: get
89
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=hsWIFgjPTuDH4lS61vcgpFzFxMAun23ju9bbaQ8osP3amEPtHuyUViiMxFEAAAAA
89
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=5Fl12q9X1VmKu6KC6R8MlXnUHu_OHxbkoroiMH-jfxyfCzpOvyU_YPFAy1EAAAAA
90
90
  body:
91
91
  encoding: US-ASCII
92
92
  string: ''
93
93
  headers:
94
94
  Cookie:
95
- - GUID=vJsxm27ZeCjb15oCKsMQ
95
+ - GUID=x4umWF4bIstqFYeBHMvB
96
96
  response:
97
97
  status:
98
98
  code: 200
@@ -111,16 +111,16 @@ http_interactions:
111
111
  string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
112
112
  0, "listeningport": 63754, "portmapping": 0, "ulrate": 0 } }'
113
113
  http_version:
114
- recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
114
+ recorded_at: Wed, 26 Jun 2013 19:28:49 GMT
115
115
  - request:
116
116
  method: get
117
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=0&listeningport=63754&output=json&portmapping=0&token=hsWIFgjPTuDH4lS61vcgpFzFxMAun23ju9bbaQ8osP3amEPtHuyUViiMxFEAAAAA&ulrate=0
117
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=0&listeningport=63754&output=json&portmapping=0&token=5Fl12q9X1VmKu6KC6R8MlXnUHu_OHxbkoroiMH-jfxyfCzpOvyU_YPFAy1EAAAAA&ulrate=0
118
118
  body:
119
119
  encoding: US-ASCII
120
120
  string: ''
121
121
  headers:
122
122
  Cookie:
123
- - GUID=vJsxm27ZeCjb15oCKsMQ
123
+ - GUID=x4umWF4bIstqFYeBHMvB
124
124
  response:
125
125
  status:
126
126
  code: 200
@@ -138,16 +138,16 @@ http_interactions:
138
138
  encoding: US-ASCII
139
139
  string: ! '{ }'
140
140
  http_version:
141
- recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
141
+ recorded_at: Wed, 26 Jun 2013 19:28:49 GMT
142
142
  - request:
143
143
  method: get
144
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=hsWIFgjPTuDH4lS61vcgpFzFxMAun23ju9bbaQ8osP3amEPtHuyUViiMxFEAAAAA
144
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=5Fl12q9X1VmKu6KC6R8MlXnUHu_OHxbkoroiMH-jfxyfCzpOvyU_YPFAy1EAAAAA
145
145
  body:
146
146
  encoding: US-ASCII
147
147
  string: ''
148
148
  headers:
149
149
  Cookie:
150
- - GUID=vJsxm27ZeCjb15oCKsMQ
150
+ - GUID=x4umWF4bIstqFYeBHMvB
151
151
  response:
152
152
  status:
153
153
  code: 200
@@ -166,16 +166,16 @@ http_interactions:
166
166
  string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
167
167
  0, "listeningport": 63754, "portmapping": 0, "ulrate": 0 } }'
168
168
  http_version:
169
- recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
169
+ recorded_at: Wed, 26 Jun 2013 19:28:50 GMT
170
170
  - request:
171
171
  method: get
172
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=0&listeningport=63754&output=json&portmapping=0&token=hsWIFgjPTuDH4lS61vcgpFzFxMAun23ju9bbaQ8osP3amEPtHuyUViiMxFEAAAAA&ulrate=0
172
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=0&listeningport=63754&output=json&portmapping=0&token=5Fl12q9X1VmKu6KC6R8MlXnUHu_OHxbkoroiMH-jfxyfCzpOvyU_YPFAy1EAAAAA&ulrate=0
173
173
  body:
174
174
  encoding: US-ASCII
175
175
  string: ''
176
176
  headers:
177
177
  Cookie:
178
- - GUID=vJsxm27ZeCjb15oCKsMQ
178
+ - GUID=x4umWF4bIstqFYeBHMvB
179
179
  response:
180
180
  status:
181
181
  code: 200
@@ -193,16 +193,16 @@ http_interactions:
193
193
  encoding: US-ASCII
194
194
  string: ! '{ }'
195
195
  http_version:
196
- recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
196
+ recorded_at: Wed, 26 Jun 2013 19:28:50 GMT
197
197
  - request:
198
198
  method: get
199
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=hsWIFgjPTuDH4lS61vcgpFzFxMAun23ju9bbaQ8osP3amEPtHuyUViiMxFEAAAAA
199
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=5Fl12q9X1VmKu6KC6R8MlXnUHu_OHxbkoroiMH-jfxyfCzpOvyU_YPFAy1EAAAAA
200
200
  body:
201
201
  encoding: US-ASCII
202
202
  string: ''
203
203
  headers:
204
204
  Cookie:
205
- - GUID=vJsxm27ZeCjb15oCKsMQ
205
+ - GUID=x4umWF4bIstqFYeBHMvB
206
206
  response:
207
207
  status:
208
208
  code: 200
@@ -221,16 +221,16 @@ http_interactions:
221
221
  string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
222
222
  0, "listeningport": 63754, "portmapping": 0, "ulrate": 0 } }'
223
223
  http_version:
224
- recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
224
+ recorded_at: Wed, 26 Jun 2013 19:28:50 GMT
225
225
  - request:
226
226
  method: get
227
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=0&listeningport=63754&output=json&portmapping=0&token=hsWIFgjPTuDH4lS61vcgpFzFxMAun23ju9bbaQ8osP3amEPtHuyUViiMxFEAAAAA&ulrate=0
227
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=0&listeningport=63754&output=json&portmapping=0&token=5Fl12q9X1VmKu6KC6R8MlXnUHu_OHxbkoroiMH-jfxyfCzpOvyU_YPFAy1EAAAAA&ulrate=0
228
228
  body:
229
229
  encoding: US-ASCII
230
230
  string: ''
231
231
  headers:
232
232
  Cookie:
233
- - GUID=vJsxm27ZeCjb15oCKsMQ
233
+ - GUID=x4umWF4bIstqFYeBHMvB
234
234
  response:
235
235
  status:
236
236
  code: 200
@@ -248,16 +248,16 @@ http_interactions:
248
248
  encoding: US-ASCII
249
249
  string: ! '{ }'
250
250
  http_version:
251
- recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
251
+ recorded_at: Wed, 26 Jun 2013 19:28:50 GMT
252
252
  - request:
253
253
  method: get
254
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=hsWIFgjPTuDH4lS61vcgpFzFxMAun23ju9bbaQ8osP3amEPtHuyUViiMxFEAAAAA
254
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=5Fl12q9X1VmKu6KC6R8MlXnUHu_OHxbkoroiMH-jfxyfCzpOvyU_YPFAy1EAAAAA
255
255
  body:
256
256
  encoding: US-ASCII
257
257
  string: ''
258
258
  headers:
259
259
  Cookie:
260
- - GUID=vJsxm27ZeCjb15oCKsMQ
260
+ - GUID=x4umWF4bIstqFYeBHMvB
261
261
  response:
262
262
  status:
263
263
  code: 200
@@ -266,7 +266,7 @@ http_interactions:
266
266
  Connection:
267
267
  - keep-alive
268
268
  Content-Length:
269
- - '252'
269
+ - '253'
270
270
  Content-Type:
271
271
  - application/json; charset=utf-8
272
272
  Cache-Control:
@@ -274,11 +274,11 @@ http_interactions:
274
274
  body:
275
275
  encoding: US-ASCII
276
276
  string: ! '{ "folders": [ { "iswritable": 1, "name": "\/home\/vagrant", "peers":
277
- [ ], "readonlysecret": "RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "secret": "WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2",
278
- "size": "54.7 MB in 8 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down"
277
+ [ ], "readonlysecret": "RUR3WULEQ5RJOTJOZJ475HLBWCGTKUBDL", "secret": "BYDYGCQYU66P5BP23F4ADOCMO5ZGTX7N",
278
+ "size": "7.4 MB in 126 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down"
279
279
  }'
280
280
  http_version:
281
- recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
281
+ recorded_at: Wed, 26 Jun 2013 19:28:50 GMT
282
282
  - request:
283
283
  method: get
284
284
  uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
@@ -298,23 +298,23 @@ http_interactions:
298
298
  Content-Type:
299
299
  - text/html
300
300
  Set-Cookie:
301
- - GUID=rjaBHJHENSXofGDyyThi; path=/
301
+ - GUID=aLbVst8axvY3uaWPU5gh; path=/
302
302
  Cache-Control:
303
303
  - no-cache
304
304
  body:
305
305
  encoding: US-ASCII
306
- string: <html><div id='token' style='display:none;'>ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA</div></html>
306
+ string: <html><div id='token' style='display:none;'>5OZrwPiPN0PWLLTgTaxBVnXNFGtpvNkFJqM_K86x7E4bbYq2Rz8lnvJAy1EAAAAA</div></html>
307
307
  http_version:
308
- recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
308
+ recorded_at: Wed, 26 Jun 2013 19:28:50 GMT
309
309
  - request:
310
310
  method: get
311
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
311
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=5OZrwPiPN0PWLLTgTaxBVnXNFGtpvNkFJqM_K86x7E4bbYq2Rz8lnvJAy1EAAAAA
312
312
  body:
313
313
  encoding: US-ASCII
314
314
  string: ''
315
315
  headers:
316
316
  Cookie:
317
- - GUID=rjaBHJHENSXofGDyyThi
317
+ - GUID=aLbVst8axvY3uaWPU5gh
318
318
  response:
319
319
  status:
320
320
  code: 200
@@ -323,7 +323,7 @@ http_interactions:
323
323
  Connection:
324
324
  - keep-alive
325
325
  Content-Length:
326
- - '252'
326
+ - '253'
327
327
  Content-Type:
328
328
  - application/json; charset=utf-8
329
329
  Cache-Control:
@@ -331,9 +331,9 @@ http_interactions:
331
331
  body:
332
332
  encoding: US-ASCII
333
333
  string: ! '{ "folders": [ { "iswritable": 1, "name": "\/home\/vagrant", "peers":
334
- [ ], "readonlysecret": "RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "secret": "WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2",
335
- "size": "54.7 MB in 8 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down"
334
+ [ ], "readonlysecret": "RUR3WULEQ5RJOTJOZJ475HLBWCGTKUBDL", "secret": "BYDYGCQYU66P5BP23F4ADOCMO5ZGTX7N",
335
+ "size": "7.4 MB in 126 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down"
336
336
  }'
337
337
  http_version:
338
- recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
338
+ recorded_at: Wed, 26 Jun 2013 19:28:50 GMT
339
339
  recorded_with: VCR 2.5.0