Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More development improvements

  • Loading branch information...
commit b792ac8359b209e489b55db421e303f7a7fe76f8 1 parent 97ba140
@grantovich grantovich authored
Showing with 547 additions and 538 deletions.
  1. +1 −1  .gitignore
  2. +1 −0  Rakefile
  3. +0 −5 spec/config.example.yml
  4. +0 −5 spec/dropbox.yml
  5. +5 −0 spec/dropbox.yml.example
  6. +13 −13 spec/paperclip/storage/dropbox_spec.rb
  7. +17 −4 spec/spec_helper.rb
  8. +21 −21 spec/vcr_cassettes/Paperclip_Storage_Dropbox/CUD/create/puts_the_file_on_Dropbox.yml
  9. +21 −21 spec/vcr_cassettes/Paperclip_Storage_Dropbox/CUD/create/raises_an_exception_on_same_filenames.yml
  10. +20 −20 spec/vcr_cassettes/Paperclip_Storage_Dropbox/CUD/destroy/deletes_the_uploaded_file.yml
  11. +16 −16 ...cr_cassettes/Paperclip_Storage_Dropbox/CUD/destroy/doesn_t_raise_errors_if_there_are_no_files_to_delete.yml
  12. +56 −56 spec/vcr_cassettes/Paperclip_Storage_Dropbox/CUD/update/deletes_the_old_file_and_uploads_the_new_one.yml
  13. +20 −20 spec/vcr_cassettes/Paperclip_Storage_Dropbox/CUD/update/deletes_the_old_file_if_set_to_nil.yml
  14. +43 −43 spec/vcr_cassettes/Paperclip_Storage_Dropbox/_url/accepts_the_download_option.yml
  15. +33 −33 spec/vcr_cassettes/Paperclip_Storage_Dropbox/_url/defaults_to_original_size.yml
  16. +43 −43 spec/vcr_cassettes/Paperclip_Storage_Dropbox/_url/is_valid.yml
  17. +33 −33 spec/vcr_cassettes/Paperclip_Storage_Dropbox/_url/returns_nil_when_the_file_doesn_t_exist.yml
  18. +37 −37 ...ip_Storage_Dropbox/arguments_for_has_attached_file/dropbox_options/path/doesn_t_duplicate_the_extension.yml
  19. +37 −37 ..._Storage_Dropbox/arguments_for_has_attached_file/dropbox_options/path/has_the_original_filename_default.yml
  20. +41 −41 ...ropbox_options/path/puts_the_instance_in_the_scope_passes_the_style_and_appends_the_extension_and_style.yml
  21. +65 −65 ...rage_Dropbox/arguments_for_has_attached_file/dropbox_options/unique_filename/makes_the_file_path_unique.yml
  22. +24 −24 spec/vcr_cassettes/Paperclip_Storage_Dropbox/setter/handles_files_with_spaces_in_their_filename.yml
View
2  .gitignore
@@ -5,4 +5,4 @@ pkg/
tmp
.rspec
*.DS_Store
-spec/config.yml
+spec/dropbox.yml
View
1  Rakefile
@@ -1,6 +1,7 @@
#!/usr/bin/env rake
require "bundler/gem_tasks"
require "paperclip/dropbox/rake"
+import 'lib/paperclip/dropbox/tasks/authorize.rake'
Bundler.setup
View
5 spec/config.example.yml
@@ -1,5 +0,0 @@
-app_key: "your app key"
-app_secret: "your app secret"
-access_token: "your access token"
-access_token_secret: "your access token secret"
-user_id: "your user ID"
View
5 spec/dropbox.yml
@@ -1,5 +0,0 @@
-app_key: <%= CONFIG[:app_key] %>
-app_secret: <%= CONFIG[:app_secret] %>
-access_token: <%= CONFIG[:access_token] %>
-access_token_secret: <%= CONFIG[:access_token_secret] %>
-user_id: <%= CONFIG[:user_id] %>
View
5 spec/dropbox.yml.example
@@ -0,0 +1,5 @@
+app_key: ""
+app_secret: ""
+access_token: ""
+access_token_secret: ""
+user_id: ""
View
26 spec/paperclip/storage/dropbox_spec.rb
@@ -49,22 +49,22 @@ def set_options(options)
end
it "accepts a path to file" do
- set_options(dropbox_credentials: "#{RSPEC_DIR}/dropbox.yml")
+ set_options(dropbox_credentials: CREDENTIALS_FILE)
expect { User.new.avatar }.to_not raise_error(KeyError)
end
it "accepts an open file" do
- set_options(dropbox_credentials: File.open("#{RSPEC_DIR}/dropbox.yml"))
+ set_options(dropbox_credentials: File.open(CREDENTIALS_FILE))
expect { User.new.avatar }.to_not raise_error(KeyError)
end
it "accepts a hash" do
- set_options(dropbox_credentials: YAML.load(ERB.new(File.read("#{RSPEC_DIR}/dropbox.yml")).result))
+ set_options(dropbox_credentials: CREDENTIALS)
expect { User.new.avatar }.to_not raise_error(KeyError)
end
it "recognizes environments" do
- hash = YAML.load(ERB.new(File.read("#{RSPEC_DIR}/dropbox.yml")).result)
+ hash = YAML.load(ERB.new(File.read(CREDENTIALS_FILE)).result)
set_options(dropbox_credentials: {development: hash}, dropbox_options: {environment: "development"})
expect { User.new.avatar }.to_not raise_error(KeyError)
@@ -79,7 +79,7 @@ def set_options(options)
stub_const("User", Class.new(ActiveRecord::Base) do
has_attached_file :avatar,
storage: :dropbox,
- dropbox_credentials: "#{RSPEC_DIR}/dropbox.yml",
+ dropbox_credentials: CREDENTIALS_FILE,
dropbox_options: options,
styles: {medium: "300x300"}
end)
@@ -125,7 +125,7 @@ def set_options(options)
class User < ActiveRecord::Base
has_attached_file :avatar,
storage: :dropbox,
- dropbox_credentials: "#{RSPEC_DIR}/dropbox.yml"
+ dropbox_credentials: CREDENTIALS_FILE
end
end
@@ -136,7 +136,7 @@ class User < ActiveRecord::Base
"Public/photo_with_spaces.jpg".should_not be_on_dropbox
end
- after(:all) { Object.send(:remove_const, "User") }
+ after(:all) { Object.send(:remove_const, :User) }
end
describe "#url" do
@@ -144,7 +144,7 @@ class User < ActiveRecord::Base
class User < ActiveRecord::Base
has_attached_file :avatar,
storage: :dropbox,
- dropbox_credentials: "#{RSPEC_DIR}/dropbox.yml",
+ dropbox_credentials: CREDENTIALS_FILE,
styles: {medium: "300x300"}
end
end
@@ -173,7 +173,7 @@ class User < ActiveRecord::Base
response.code.to_i.should == 200
end
- after(:each) { @user.destroy }
+ after(:each) { @user.destroy if not @user.nil? }
after(:all) { Object.send(:remove_const, :User) }
end
@@ -183,7 +183,7 @@ class User < ActiveRecord::Base
class User < ActiveRecord::Base
has_attached_file :avatar,
storage: :dropbox,
- dropbox_credentials: "#{RSPEC_DIR}/dropbox.yml"
+ dropbox_credentials: CREDENTIALS_FILE
end
end
@@ -198,7 +198,7 @@ class User < ActiveRecord::Base
expect { User.create(avatar: uploaded_file("photo.jpg", "image/jpeg")) }.to raise_error(Paperclip::Storage::Dropbox::FileExists)
end
- after(:each) { @user.destroy }
+ after(:each) { @user.destroy if not @user.nil? }
end
describe "update" do
@@ -216,7 +216,7 @@ class User < ActiveRecord::Base
"Public/another_photo.jpg".should be_on_dropbox
end
- after(:each) { @user.destroy }
+ after(:each) { @user.destroy if not @user.nil? }
end
describe "destroy" do
@@ -232,7 +232,7 @@ class User < ActiveRecord::Base
expect { @user.destroy }.to_not raise_error
end
- after(:each) { @user.destroy }
+ after(:each) { @user.destroy if not @user.nil? }
end
after(:all) do
View
21 spec/spec_helper.rb
@@ -6,7 +6,16 @@
RSPEC_DIR = File.expand_path(File.dirname(__FILE__))
Dir[File.join(RSPEC_DIR, "support/**/*.rb")].each { |f| require f }
-CONFIG = YAML.load(File.read("#{RSPEC_DIR}/config.yml")).symbolize_keys
+CREDENTIALS_FILE = "#{RSPEC_DIR}/dropbox.yml"
+
+if File.exists?(CREDENTIALS_FILE)
+ CREDENTIALS = YAML.load(ERB.new(File.read(CREDENTIALS_FILE)).result).symbolize_keys
+else
+ puts "\n### ERROR ###"
+ puts "Credential file not found at #{CREDENTIALS_FILE}"
+ puts "Copy dropbox.yml.example and fill in your app credentials.\n\n"
+ raise 'credential file not found'
+end
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
@@ -15,9 +24,13 @@
VCR.configure do |config|
config.cassette_library_dir = 'spec/vcr_cassettes'
config.hook_into :fakeweb
- config.default_cassette_options = {serialize_with: :syck}
- config.filter_sensitive_data('API_KEY') { CONFIG[:app_key] }
- config.filter_sensitive_data('ACCESS_TOKEN') { CONFIG[:app_secret] }
+ CREDENTIALS.keys.each do |key|
+ config.filter_sensitive_data("<#{key.to_s.upcase}>") { CREDENTIALS[key] }
+ end
+ config.default_cassette_options = {
+ serialize_with: :syck,
+ record: :new_episodes
+ }
config.configure_rspec_metadata!
config.allow_http_connections_when_no_cassette = true
end
View
42 spec/vcr_cassettes/Paperclip_Storage_Dropbox/CUD/create/puts_the_file_on_Dropbox.yml
@@ -12,7 +12,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 404
@@ -21,7 +21,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:02 GMT
+ - Tue, 06 Nov 2012 21:08:39 GMT
content-type:
- application/json
transfer-encoding:
@@ -34,7 +34,7 @@ http_interactions:
encoding: US-ASCII
string: "{\"error\": \"Path '/Public/photo.jpg' not found\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:02 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:39 GMT
- request:
method: put
uri: https://api-content.dropbox.com/1/files_put/dropbox/Public/photo.jpg?overwrite=false
@@ -1421,7 +1421,7 @@ http_interactions:
content-length:
- 61570
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1430,7 +1430,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:07 GMT
+ - Tue, 06 Nov 2012 21:08:40 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1447,9 +1447,9 @@ http_interactions:
- no-cache
body:
encoding: US-ASCII
- string: "{\"revision\": 686, \"rev\": \"2ae01908bdc\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Sun, 21 Oct 2012 17:21:07 +0000\", \"client_mtime\": \"Sun, 21 Oct 2012 17:21:07 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
+ string: "{\"revision\": 463, \"rev\": \"1cf0b59ac45\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Tue, 06 Nov 2012 21:08:39 +0000\", \"client_mtime\": \"Tue, 06 Nov 2012 21:08:39 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:07 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:40 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/photo.jpg
@@ -1462,7 +1462,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1471,7 +1471,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:09 GMT
+ - Tue, 06 Nov 2012 21:08:42 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1490,9 +1490,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"url\": \"https://dl.dropbox.com/0/view/m1b9xnv6wv6g00f/Public/photo.jpg\", \"expires\": \"Sun, 21 Oct 2012 21:21:09 +0000\"}"
+ string: "{\"url\": \"https://dl.dropbox.com/0/view/dktyq4xy4czb71s/Public/photo.jpg\", \"expires\": \"Wed, 07 Nov 2012 01:08:42 +0000\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:09 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:42 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/photo.jpg
@@ -1505,7 +1505,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1514,7 +1514,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:10 GMT
+ - Tue, 06 Nov 2012 21:08:42 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1533,9 +1533,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"url\": \"https://dl.dropbox.com/0/view/m1b9xnv6wv6g00f/Public/photo.jpg\", \"expires\": \"Sun, 21 Oct 2012 21:21:10 +0000\"}"
+ string: "{\"url\": \"https://dl.dropbox.com/0/view/dktyq4xy4czb71s/Public/photo.jpg\", \"expires\": \"Wed, 07 Nov 2012 01:08:42 +0000\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:10 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:42 GMT
- request:
method: post
uri: https://api.dropbox.com/1/fileops/delete?root=dropbox&path=%2FPublic%2Fphoto.jpg
@@ -1548,7 +1548,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1557,7 +1557,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:12 GMT
+ - Tue, 06 Nov 2012 21:08:43 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1567,7 +1567,7 @@ http_interactions:
access-control-expose-headers:
- X-Dropbox-Metadata
set-cookie:
- - gvc=MTQ3OTgyNjE0ODMzNzAwNTY1Nzk4Nzk2NTQyMDQ4ODQxMjQxMDc0; expires=Fri, 20-Oct-2017 17:21:12 GMT; Path=/; httponly
+ - gvc=MjQyMDEwNTk5MjY4ODc3Njg1MjQ5OTgwOTc2OTIyODM2OTMwMzYy; expires=Sun, 05-Nov-2017 21:08:43 GMT; Path=/; httponly
pragma:
- no-cache
cache-control:
@@ -1578,7 +1578,7 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"is_deleted\": true, \"revision\": 687, \"rev\": \"2af01908bdc\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Sun, 21 Oct 2012 17:21:12 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
+ string: "{\"is_deleted\": true, \"revision\": 464, \"rev\": \"1d00b59ac45\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Tue, 06 Nov 2012 21:08:43 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:12 GMT
-recorded_with: VCR 2.2.5
+ recorded_at: Tue, 06 Nov 2012 21:08:43 GMT
+recorded_with: VCR 2.3.0
View
42 spec/vcr_cassettes/Paperclip_Storage_Dropbox/CUD/create/raises_an_exception_on_same_filenames.yml
@@ -12,7 +12,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 404
@@ -21,7 +21,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:13 GMT
+ - Tue, 06 Nov 2012 21:08:44 GMT
content-type:
- application/json
transfer-encoding:
@@ -34,7 +34,7 @@ http_interactions:
encoding: US-ASCII
string: "{\"error\": \"Path '/Public/photo.jpg' not found\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:13 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:44 GMT
- request:
method: put
uri: https://api-content.dropbox.com/1/files_put/dropbox/Public/photo.jpg?overwrite=false
@@ -1421,7 +1421,7 @@ http_interactions:
content-length:
- 61570
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1430,7 +1430,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:15 GMT
+ - Tue, 06 Nov 2012 21:08:45 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1447,9 +1447,9 @@ http_interactions:
- no-cache
body:
encoding: US-ASCII
- string: "{\"revision\": 688, \"rev\": \"2b001908bdc\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Sun, 21 Oct 2012 17:21:15 +0000\", \"client_mtime\": \"Sun, 21 Oct 2012 17:21:15 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
+ string: "{\"revision\": 465, \"rev\": \"1d10b59ac45\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Tue, 06 Nov 2012 21:08:45 +0000\", \"client_mtime\": \"Tue, 06 Nov 2012 21:08:45 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:15 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:45 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/photo.jpg
@@ -1462,7 +1462,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1471,7 +1471,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:17 GMT
+ - Tue, 06 Nov 2012 21:08:46 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1490,9 +1490,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"url\": \"https://dl.dropbox.com/0/view/m1b9xnv6wv6g00f/Public/photo.jpg\", \"expires\": \"Sun, 21 Oct 2012 21:21:17 +0000\"}"
+ string: "{\"url\": \"https://dl.dropbox.com/0/view/dktyq4xy4czb71s/Public/photo.jpg\", \"expires\": \"Wed, 07 Nov 2012 01:08:46 +0000\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:17 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:46 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/photo.jpg
@@ -1505,7 +1505,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1514,7 +1514,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:18 GMT
+ - Tue, 06 Nov 2012 21:08:47 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1533,9 +1533,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"url\": \"https://dl.dropbox.com/0/view/m1b9xnv6wv6g00f/Public/photo.jpg\", \"expires\": \"Sun, 21 Oct 2012 21:21:18 +0000\"}"
+ string: "{\"url\": \"https://dl.dropbox.com/0/view/dktyq4xy4czb71s/Public/photo.jpg\", \"expires\": \"Wed, 07 Nov 2012 01:08:47 +0000\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:18 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:47 GMT
- request:
method: post
uri: https://api.dropbox.com/1/fileops/delete?root=dropbox&path=%2FPublic%2Fphoto.jpg
@@ -1548,7 +1548,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1557,7 +1557,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:20 GMT
+ - Tue, 06 Nov 2012 21:08:48 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1567,7 +1567,7 @@ http_interactions:
access-control-expose-headers:
- X-Dropbox-Metadata
set-cookie:
- - gvc=Mjk5Mzg4ODIzMDExNTMyODU1OTU1Mjg2NDMzMDY1MDQ0NjEyODgx; expires=Fri, 20-Oct-2017 17:21:20 GMT; Path=/; httponly
+ - gvc=MTIyNzEzNjQ0MjkzMzIwNDkzNjUyMTg5NTkwMTA1NzM2OTM4OTAy; expires=Sun, 05-Nov-2017 21:08:48 GMT; Path=/; httponly
pragma:
- no-cache
cache-control:
@@ -1578,7 +1578,7 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"is_deleted\": true, \"revision\": 689, \"rev\": \"2b101908bdc\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Sun, 21 Oct 2012 17:21:20 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
+ string: "{\"is_deleted\": true, \"revision\": 466, \"rev\": \"1d20b59ac45\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Tue, 06 Nov 2012 21:08:47 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:20 GMT
-recorded_with: VCR 2.2.5
+ recorded_at: Tue, 06 Nov 2012 21:08:48 GMT
+recorded_with: VCR 2.3.0
View
40 spec/vcr_cassettes/Paperclip_Storage_Dropbox/CUD/destroy/deletes_the_uploaded_file.yml
@@ -12,7 +12,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 404
@@ -21,7 +21,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:22:06 GMT
+ - Tue, 06 Nov 2012 21:09:04 GMT
content-type:
- application/json
transfer-encoding:
@@ -34,7 +34,7 @@ http_interactions:
encoding: US-ASCII
string: "{\"error\": \"Path '/Public/photo.jpg' not found\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:22:06 GMT
+ recorded_at: Tue, 06 Nov 2012 21:09:04 GMT
- request:
method: put
uri: https://api-content.dropbox.com/1/files_put/dropbox/Public/photo.jpg?overwrite=false
@@ -1421,7 +1421,7 @@ http_interactions:
content-length:
- 61570
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1430,7 +1430,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:22:08 GMT
+ - Tue, 06 Nov 2012 21:09:05 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1447,9 +1447,9 @@ http_interactions:
- no-cache
body:
encoding: US-ASCII
- string: "{\"revision\": 698, \"rev\": \"2ba01908bdc\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Sun, 21 Oct 2012 17:22:08 +0000\", \"client_mtime\": \"Sun, 21 Oct 2012 17:22:08 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
+ string: "{\"revision\": 475, \"rev\": \"1db0b59ac45\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Tue, 06 Nov 2012 21:09:05 +0000\", \"client_mtime\": \"Tue, 06 Nov 2012 21:09:05 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:22:08 GMT
+ recorded_at: Tue, 06 Nov 2012 21:09:05 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/photo.jpg
@@ -1462,7 +1462,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1471,7 +1471,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:22:09 GMT
+ - Tue, 06 Nov 2012 21:09:06 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1490,9 +1490,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"url\": \"https://dl.dropbox.com/0/view/m1b9xnv6wv6g00f/Public/photo.jpg\", \"expires\": \"Sun, 21 Oct 2012 21:22:09 +0000\"}"
+ string: "{\"url\": \"https://dl.dropbox.com/0/view/dktyq4xy4czb71s/Public/photo.jpg\", \"expires\": \"Wed, 07 Nov 2012 01:09:06 +0000\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:22:09 GMT
+ recorded_at: Tue, 06 Nov 2012 21:09:06 GMT
- request:
method: post
uri: https://api.dropbox.com/1/fileops/delete?root=dropbox&path=%2FPublic%2Fphoto.jpg
@@ -1505,7 +1505,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1514,7 +1514,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:22:11 GMT
+ - Tue, 06 Nov 2012 21:09:07 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1524,7 +1524,7 @@ http_interactions:
access-control-expose-headers:
- X-Dropbox-Metadata
set-cookie:
- - gvc=NzIwMjMwMDIwMTk5OTY5NTA1NjIzMjI0MzE0NzE4NTczNDE5MjM%3D; expires=Fri, 20-Oct-2017 17:22:11 GMT; Path=/; httponly
+ - gvc=Njg1NzkxNjA4NjM2ODA3NTgyOTU3MTMxNjY1MDA4MjM1NjQ0NTA%3D; expires=Sun, 05-Nov-2017 21:09:07 GMT; Path=/; httponly
pragma:
- no-cache
cache-control:
@@ -1535,9 +1535,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"is_deleted\": true, \"revision\": 699, \"rev\": \"2bb01908bdc\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Sun, 21 Oct 2012 17:22:11 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
+ string: "{\"is_deleted\": true, \"revision\": 476, \"rev\": \"1dc0b59ac45\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Tue, 06 Nov 2012 21:09:07 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:22:11 GMT
+ recorded_at: Tue, 06 Nov 2012 21:09:07 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/photo.jpg
@@ -1550,7 +1550,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 404
@@ -1559,7 +1559,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:22:12 GMT
+ - Tue, 06 Nov 2012 21:09:08 GMT
content-type:
- application/json
transfer-encoding:
@@ -1572,5 +1572,5 @@ http_interactions:
encoding: US-ASCII
string: "{\"error\": \"Path '/Public/photo.jpg' not found\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:22:13 GMT
-recorded_with: VCR 2.2.5
+ recorded_at: Tue, 06 Nov 2012 21:09:08 GMT
+recorded_with: VCR 2.3.0
View
32 ...cassettes/Paperclip_Storage_Dropbox/CUD/destroy/doesn_t_raise_errors_if_there_are_no_files_to_delete.yml
@@ -12,7 +12,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 404
@@ -21,7 +21,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:22:14 GMT
+ - Tue, 06 Nov 2012 21:09:09 GMT
content-type:
- application/json
transfer-encoding:
@@ -34,7 +34,7 @@ http_interactions:
encoding: US-ASCII
string: "{\"error\": \"Path '/Public/photo.jpg' not found\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:22:14 GMT
+ recorded_at: Tue, 06 Nov 2012 21:09:09 GMT
- request:
method: put
uri: https://api-content.dropbox.com/1/files_put/dropbox/Public/photo.jpg?overwrite=false
@@ -1421,7 +1421,7 @@ http_interactions:
content-length:
- 61570
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1430,7 +1430,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:22:16 GMT
+ - Tue, 06 Nov 2012 21:09:10 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1447,9 +1447,9 @@ http_interactions:
- no-cache
body:
encoding: US-ASCII
- string: "{\"revision\": 700, \"rev\": \"2bc01908bdc\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Sun, 21 Oct 2012 17:22:16 +0000\", \"client_mtime\": \"Sun, 21 Oct 2012 17:22:16 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
+ string: "{\"revision\": 477, \"rev\": \"1dd0b59ac45\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Tue, 06 Nov 2012 21:09:09 +0000\", \"client_mtime\": \"Tue, 06 Nov 2012 21:09:09 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:22:16 GMT
+ recorded_at: Tue, 06 Nov 2012 21:09:10 GMT
- request:
method: post
uri: https://api.dropbox.com/1/fileops/delete?root=dropbox&path=%2FPublic%2Fphoto.jpg
@@ -1462,7 +1462,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1471,7 +1471,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:22:18 GMT
+ - Tue, 06 Nov 2012 21:09:10 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1481,7 +1481,7 @@ http_interactions:
access-control-expose-headers:
- X-Dropbox-Metadata
set-cookie:
- - gvc=MjU1Nzc4Mjg1NTQzOTI3OTgxNjc5ODQyMDQ2ODcxNTkzMzgwMjgz; expires=Fri, 20-Oct-2017 17:22:18 GMT; Path=/; httponly
+ - gvc=OTU1NzMwNDE3NzA1MzAzNzc4NzQ5NDQwMzE3Mzk3MTk3MjQ2OTA%3D; expires=Sun, 05-Nov-2017 21:09:10 GMT; Path=/; httponly
pragma:
- no-cache
cache-control:
@@ -1492,9 +1492,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"is_deleted\": true, \"revision\": 701, \"rev\": \"2bd01908bdc\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Sun, 21 Oct 2012 17:22:18 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
+ string: "{\"is_deleted\": true, \"revision\": 478, \"rev\": \"1de0b59ac45\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Tue, 06 Nov 2012 21:09:10 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:22:18 GMT
+ recorded_at: Tue, 06 Nov 2012 21:09:11 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/photo.jpg
@@ -1507,7 +1507,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 404
@@ -1516,7 +1516,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:22:19 GMT
+ - Tue, 06 Nov 2012 21:09:11 GMT
content-type:
- application/json
transfer-encoding:
@@ -1529,5 +1529,5 @@ http_interactions:
encoding: US-ASCII
string: "{\"error\": \"Path '/Public/photo.jpg' not found\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:22:19 GMT
-recorded_with: VCR 2.2.5
+ recorded_at: Tue, 06 Nov 2012 21:09:11 GMT
+recorded_with: VCR 2.3.0
View
112 spec/vcr_cassettes/Paperclip_Storage_Dropbox/CUD/update/deletes_the_old_file_and_uploads_the_new_one.yml
@@ -12,7 +12,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 404
@@ -21,7 +21,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:30 GMT
+ - Tue, 06 Nov 2012 21:08:52 GMT
content-type:
- application/json
transfer-encoding:
@@ -34,7 +34,7 @@ http_interactions:
encoding: US-ASCII
string: "{\"error\": \"Path '/Public/photo.jpg' not found\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:31 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:52 GMT
- request:
method: put
uri: https://api-content.dropbox.com/1/files_put/dropbox/Public/photo.jpg?overwrite=false
@@ -1421,7 +1421,7 @@ http_interactions:
content-length:
- 61570
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1430,7 +1430,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:32 GMT
+ - Tue, 06 Nov 2012 21:08:53 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1447,9 +1447,9 @@ http_interactions:
- no-cache
body:
encoding: US-ASCII
- string: "{\"revision\": 692, \"rev\": \"2b401908bdc\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Sun, 21 Oct 2012 17:21:32 +0000\", \"client_mtime\": \"Sun, 21 Oct 2012 17:21:32 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
+ string: "{\"revision\": 469, \"rev\": \"1d50b59ac45\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Tue, 06 Nov 2012 21:08:53 +0000\", \"client_mtime\": \"Tue, 06 Nov 2012 21:08:53 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:33 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:53 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/photo.jpg
@@ -1462,7 +1462,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1471,7 +1471,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:34 GMT
+ - Tue, 06 Nov 2012 21:08:54 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1490,9 +1490,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"url\": \"https://dl.dropbox.com/0/view/m1b9xnv6wv6g00f/Public/photo.jpg\", \"expires\": \"Sun, 21 Oct 2012 21:21:34 +0000\"}"
+ string: "{\"url\": \"https://dl.dropbox.com/0/view/dktyq4xy4czb71s/Public/photo.jpg\", \"expires\": \"Wed, 07 Nov 2012 01:08:54 +0000\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:34 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:54 GMT
- request:
method: post
uri: https://api.dropbox.com/1/fileops/delete?root=dropbox&path=%2FPublic%2Fphoto.jpg
@@ -1505,7 +1505,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1514,7 +1514,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:35 GMT
+ - Tue, 06 Nov 2012 21:08:55 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1524,7 +1524,7 @@ http_interactions:
access-control-expose-headers:
- X-Dropbox-Metadata
set-cookie:
- - gvc=MTAxMjE5NjE4OTQ0NDU0NTE5MjcxNDE0NDI4MzMzMzYwOTYzMDEx; expires=Fri, 20-Oct-2017 17:21:35 GMT; Path=/; httponly
+ - gvc=MTQ3NzkwNTQ3NjQzNjc0MjQzNzUyMTI4NzUwMDY0MTY2OTU5MTQw; expires=Sun, 05-Nov-2017 21:08:55 GMT; Path=/; httponly
pragma:
- no-cache
cache-control:
@@ -1535,9 +1535,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"is_deleted\": true, \"revision\": 693, \"rev\": \"2b501908bdc\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Sun, 21 Oct 2012 17:21:35 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
+ string: "{\"is_deleted\": true, \"revision\": 470, \"rev\": \"1d60b59ac45\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Tue, 06 Nov 2012 21:08:54 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:36 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:55 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/photo.jpg
@@ -1550,7 +1550,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 404
@@ -1559,7 +1559,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:37 GMT
+ - Tue, 06 Nov 2012 21:08:55 GMT
content-type:
- application/json
transfer-encoding:
@@ -1572,7 +1572,7 @@ http_interactions:
encoding: US-ASCII
string: "{\"error\": \"Path '/Public/photo.jpg' not found\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:37 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:55 GMT
- request:
method: put
uri: https://api-content.dropbox.com/1/files_put/dropbox/Public/photo.jpg?overwrite=false
@@ -2959,7 +2959,7 @@ http_interactions:
content-length:
- 61570
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -2968,7 +2968,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:39 GMT
+ - Tue, 06 Nov 2012 21:08:56 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -2985,9 +2985,9 @@ http_interactions:
- no-cache
body:
encoding: US-ASCII
- string: "{\"revision\": 694, \"rev\": \"2b601908bdc\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Sun, 21 Oct 2012 17:21:39 +0000\", \"client_mtime\": \"Sun, 21 Oct 2012 17:21:39 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
+ string: "{\"revision\": 471, \"rev\": \"1d70b59ac45\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Tue, 06 Nov 2012 21:08:56 +0000\", \"client_mtime\": \"Tue, 06 Nov 2012 21:08:56 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:39 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:56 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/photo.jpg
@@ -3000,7 +3000,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -3009,7 +3009,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:40 GMT
+ - Tue, 06 Nov 2012 21:08:57 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -3028,9 +3028,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"url\": \"https://dl.dropbox.com/0/view/m1b9xnv6wv6g00f/Public/photo.jpg\", \"expires\": \"Sun, 21 Oct 2012 21:21:40 +0000\"}"
+ string: "{\"url\": \"https://dl.dropbox.com/0/view/dktyq4xy4czb71s/Public/photo.jpg\", \"expires\": \"Wed, 07 Nov 2012 01:08:57 +0000\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:41 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:57 GMT
- request:
method: post
uri: https://api.dropbox.com/1/fileops/delete?root=dropbox&path=%2FPublic%2Fphoto.jpg
@@ -3043,7 +3043,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -3052,7 +3052,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:42 GMT
+ - Tue, 06 Nov 2012 21:08:58 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -3062,7 +3062,7 @@ http_interactions:
access-control-expose-headers:
- X-Dropbox-Metadata
set-cookie:
- - gvc=MzUyNDIzNzc1MTI1MDU3NTEwNDE5MzUxMTUwNDEzMDU2MTUyOTU%3D; expires=Fri, 20-Oct-2017 17:21:42 GMT; Path=/; httponly
+ - gvc=MjU2NDAwMTQxMTM5ODg0ODEzNTEzMzgwOTcyNjI5NTI5NDY4MjY3; expires=Sun, 05-Nov-2017 21:08:57 GMT; Path=/; httponly
pragma:
- no-cache
cache-control:
@@ -3073,9 +3073,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"is_deleted\": true, \"revision\": 695, \"rev\": \"2b701908bdc\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Sun, 21 Oct 2012 17:21:42 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
+ string: "{\"is_deleted\": true, \"revision\": 472, \"rev\": \"1d80b59ac45\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Tue, 06 Nov 2012 21:08:57 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:42 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:58 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/another_photo.jpg
@@ -3088,7 +3088,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 404
@@ -3097,7 +3097,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:56 GMT
+ - Tue, 06 Nov 2012 21:08:58 GMT
content-type:
- application/json
transfer-encoding:
@@ -3110,7 +3110,7 @@ http_interactions:
encoding: US-ASCII
string: "{\"error\": \"Path '/Public/another_photo.jpg' not found\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:56 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:58 GMT
- request:
method: put
uri: https://api-content.dropbox.com/1/files_put/dropbox/Public/another_photo.jpg?overwrite=false
@@ -4497,7 +4497,7 @@ http_interactions:
content-length:
- 61570
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -4506,7 +4506,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:58 GMT
+ - Tue, 06 Nov 2012 21:09:00 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -4523,9 +4523,9 @@ http_interactions:
- no-cache
body:
encoding: US-ASCII
- string: "{\"revision\": 696, \"rev\": \"2b801908bdc\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Sun, 21 Oct 2012 17:21:58 +0000\", \"client_mtime\": \"Sun, 21 Oct 2012 17:21:58 +0000\", \"path\": \"/Public/another_photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
+ string: "{\"revision\": 473, \"rev\": \"1d90b59ac45\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Tue, 06 Nov 2012 21:08:59 +0000\", \"client_mtime\": \"Tue, 06 Nov 2012 21:08:59 +0000\", \"path\": \"/Public/another_photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:58 GMT
+ recorded_at: Tue, 06 Nov 2012 21:09:00 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/photo.jpg
@@ -4538,7 +4538,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 404
@@ -4547,7 +4547,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:22:00 GMT
+ - Tue, 06 Nov 2012 21:09:00 GMT
content-type:
- application/json
transfer-encoding:
@@ -4560,7 +4560,7 @@ http_interactions:
encoding: US-ASCII
string: "{\"error\": \"Path '/Public/photo.jpg' not found\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:22:00 GMT
+ recorded_at: Tue, 06 Nov 2012 21:09:00 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/another_photo.jpg
@@ -4573,7 +4573,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -4582,7 +4582,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:22:01 GMT
+ - Tue, 06 Nov 2012 21:09:01 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -4601,9 +4601,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"url\": \"https://dl.dropbox.com/0/view/eht8n6qk2powysu/Public/another_photo.jpg\", \"expires\": \"Sun, 21 Oct 2012 21:22:01 +0000\"}"
+ string: "{\"url\": \"https://dl.dropbox.com/0/view/u4jha2jzffzc7g8/Public/another_photo.jpg\", \"expires\": \"Wed, 07 Nov 2012 01:09:01 +0000\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:22:01 GMT
+ recorded_at: Tue, 06 Nov 2012 21:09:01 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/another_photo.jpg
@@ -4616,7 +4616,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -4625,7 +4625,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:22:03 GMT
+ - Tue, 06 Nov 2012 21:09:03 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -4644,9 +4644,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"url\": \"https://dl.dropbox.com/0/view/eht8n6qk2powysu/Public/another_photo.jpg\", \"expires\": \"Sun, 21 Oct 2012 21:22:03 +0000\"}"
+ string: "{\"url\": \"https://dl.dropbox.com/0/view/u4jha2jzffzc7g8/Public/another_photo.jpg\", \"expires\": \"Wed, 07 Nov 2012 01:09:03 +0000\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:22:03 GMT
+ recorded_at: Tue, 06 Nov 2012 21:09:03 GMT
- request:
method: post
uri: https://api.dropbox.com/1/fileops/delete?root=dropbox&path=%2FPublic%2Fanother_photo.jpg
@@ -4659,7 +4659,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -4668,7 +4668,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:22:04 GMT
+ - Tue, 06 Nov 2012 21:09:04 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -4678,7 +4678,7 @@ http_interactions:
access-control-expose-headers:
- X-Dropbox-Metadata
set-cookie:
- - gvc=MTQ1NDE0NDc1ODM4NDA5OTI0NjQxNDI2NzM3NDI2MzAyODQ1NDc3; expires=Fri, 20-Oct-2017 17:22:04 GMT; Path=/; httponly
+ - gvc=MzY5NDIzNDkzMTE0MjU2NjMxODczNzA5MzczNDQ0MDU0NDcyMTE%3D; expires=Sun, 05-Nov-2017 21:09:04 GMT; Path=/; httponly
pragma:
- no-cache
cache-control:
@@ -4689,7 +4689,7 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"is_deleted\": true, \"revision\": 697, \"rev\": \"2b901908bdc\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Sun, 21 Oct 2012 17:22:04 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/another_photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
+ string: "{\"is_deleted\": true, \"revision\": 474, \"rev\": \"1da0b59ac45\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Tue, 06 Nov 2012 21:09:03 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/another_photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:22:04 GMT
-recorded_with: VCR 2.2.5
+ recorded_at: Tue, 06 Nov 2012 21:09:04 GMT
+recorded_with: VCR 2.3.0
View
40 spec/vcr_cassettes/Paperclip_Storage_Dropbox/CUD/update/deletes_the_old_file_if_set_to_nil.yml
@@ -12,7 +12,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 404
@@ -21,7 +21,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:21 GMT
+ - Tue, 06 Nov 2012 21:08:48 GMT
content-type:
- application/json
transfer-encoding:
@@ -34,7 +34,7 @@ http_interactions:
encoding: US-ASCII
string: "{\"error\": \"Path '/Public/photo.jpg' not found\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:21 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:48 GMT
- request:
method: put
uri: https://api-content.dropbox.com/1/files_put/dropbox/Public/photo.jpg?overwrite=false
@@ -1421,7 +1421,7 @@ http_interactions:
content-length:
- 61570
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1430,7 +1430,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:24 GMT
+ - Tue, 06 Nov 2012 21:08:49 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1447,9 +1447,9 @@ http_interactions:
- no-cache
body:
encoding: US-ASCII
- string: "{\"revision\": 690, \"rev\": \"2b201908bdc\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Sun, 21 Oct 2012 17:21:24 +0000\", \"client_mtime\": \"Sun, 21 Oct 2012 17:21:24 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
+ string: "{\"revision\": 467, \"rev\": \"1d30b59ac45\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Tue, 06 Nov 2012 21:08:49 +0000\", \"client_mtime\": \"Tue, 06 Nov 2012 21:08:49 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:25 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:49 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/photo.jpg
@@ -1462,7 +1462,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1471,7 +1471,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:26 GMT
+ - Tue, 06 Nov 2012 21:08:50 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1490,9 +1490,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"url\": \"https://dl.dropbox.com/0/view/m1b9xnv6wv6g00f/Public/photo.jpg\", \"expires\": \"Sun, 21 Oct 2012 21:21:26 +0000\"}"
+ string: "{\"url\": \"https://dl.dropbox.com/0/view/dktyq4xy4czb71s/Public/photo.jpg\", \"expires\": \"Wed, 07 Nov 2012 01:08:50 +0000\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:26 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:50 GMT
- request:
method: post
uri: https://api.dropbox.com/1/fileops/delete?root=dropbox&path=%2FPublic%2Fphoto.jpg
@@ -1505,7 +1505,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1514,7 +1514,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:27 GMT
+ - Tue, 06 Nov 2012 21:08:51 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1524,7 +1524,7 @@ http_interactions:
access-control-expose-headers:
- X-Dropbox-Metadata
set-cookie:
- - gvc=NjQzOTc0MTMyNzc1MTY3Nzc1MDM3NzM1NTk0OTE5MTIzOTE3MTY%3D; expires=Fri, 20-Oct-2017 17:21:27 GMT; Path=/; httponly
+ - gvc=MjEyNjkwNTk5Nzc1NDU3ODc2MTE4NDY1Mzk1NTEzNzkxOTI1MDE1; expires=Sun, 05-Nov-2017 21:08:51 GMT; Path=/; httponly
pragma:
- no-cache
cache-control:
@@ -1535,9 +1535,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"is_deleted\": true, \"revision\": 691, \"rev\": \"2b301908bdc\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Sun, 21 Oct 2012 17:21:27 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
+ string: "{\"is_deleted\": true, \"revision\": 468, \"rev\": \"1d40b59ac45\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Tue, 06 Nov 2012 21:08:50 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:28 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:51 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/photo.jpg
@@ -1550,7 +1550,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 404
@@ -1559,7 +1559,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:21:29 GMT
+ - Tue, 06 Nov 2012 21:08:51 GMT
content-type:
- application/json
transfer-encoding:
@@ -1572,5 +1572,5 @@ http_interactions:
encoding: US-ASCII
string: "{\"error\": \"Path '/Public/photo.jpg' not found\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:21:29 GMT
-recorded_with: VCR 2.2.5
+ recorded_at: Tue, 06 Nov 2012 21:08:51 GMT
+recorded_with: VCR 2.3.0
View
86 spec/vcr_cassettes/Paperclip_Storage_Dropbox/_url/accepts_the_download_option.yml
@@ -12,7 +12,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 404
@@ -21,7 +21,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:19:40 GMT
+ - Tue, 06 Nov 2012 21:08:31 GMT
content-type:
- application/json
transfer-encoding:
@@ -34,7 +34,7 @@ http_interactions:
encoding: US-ASCII
string: "{\"error\": \"Path '/Public/photo.jpg' not found\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:19:40 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:31 GMT
- request:
method: put
uri: https://api-content.dropbox.com/1/files_put/dropbox/Public/photo.jpg?overwrite=false
@@ -1421,7 +1421,7 @@ http_interactions:
content-length:
- 61570
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -1430,7 +1430,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:19:42 GMT
+ - Tue, 06 Nov 2012 21:08:32 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -1447,9 +1447,9 @@ http_interactions:
- no-cache
body:
encoding: US-ASCII
- string: "{\"revision\": 682, \"rev\": \"2aa01908bdc\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Sun, 21 Oct 2012 17:19:42 +0000\", \"client_mtime\": \"Sun, 21 Oct 2012 17:19:42 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
+ string: "{\"revision\": 459, \"rev\": \"1cb0b59ac45\", \"thumb_exists\": true, \"bytes\": 61570, \"modified\": \"Tue, 06 Nov 2012 21:08:32 +0000\", \"client_mtime\": \"Tue, 06 Nov 2012 21:08:32 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"60.1 KB\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:19:42 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:32 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/photo_medium.jpg
@@ -1462,7 +1462,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 404
@@ -1471,7 +1471,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:19:44 GMT
+ - Tue, 06 Nov 2012 21:08:33 GMT
content-type:
- application/json
transfer-encoding:
@@ -1484,7 +1484,7 @@ http_interactions:
encoding: US-ASCII
string: "{\"error\": \"Path '/Public/photo_medium.jpg' not found\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:19:44 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:33 GMT
- request:
method: put
uri: https://api-content.dropbox.com/1/files_put/dropbox/Public/photo_medium.jpg?overwrite=false
@@ -2106,7 +2106,7 @@ http_interactions:
content-length:
- 27143
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -2115,7 +2115,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:19:46 GMT
+ - Tue, 06 Nov 2012 21:08:34 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -2132,12 +2132,12 @@ http_interactions:
- no-cache
body:
encoding: US-ASCII
- string: "{\"revision\": 683, \"rev\": \"2ab01908bdc\", \"thumb_exists\": true, \"bytes\": 27143, \"modified\": \"Sun, 21 Oct 2012 17:19:45 +0000\", \"client_mtime\": \"Sun, 21 Oct 2012 17:19:45 +0000\", \"path\": \"/Public/photo_medium.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"26.5 KB\"}"
+ string: "{\"revision\": 460, \"rev\": \"1cc0b59ac45\", \"thumb_exists\": true, \"bytes\": 27143, \"modified\": \"Tue, 06 Nov 2012 21:08:33 +0000\", \"client_mtime\": \"Tue, 06 Nov 2012 21:08:33 +0000\", \"path\": \"/Public/photo_medium.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"26.5 KB\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:19:46 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:34 GMT
- request:
method: get
- uri: http://dl.dropbox.com/u/16783504/photo.jpg?dl=1
+ uri: http://dl.dropbox.com/u/<USER_ID>/photo.jpg?dl=1
body:
encoding: US-ASCII
string: ""
@@ -2154,7 +2154,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:19:46 GMT
+ - Tue, 06 Nov 2012 21:08:34 GMT
content-type:
- image/jpeg
content-length:
@@ -2166,9 +2166,9 @@ http_interactions:
content-disposition:
- attachment; filename="photo.jpg"
accept-ranges:
- - bytes
+ - none
etag:
- - 682d
+ - 459d
pragma:
- public
cache-control:
@@ -3547,10 +3547,10 @@ http_interactions:
nbjHpRRRQB//2Q==
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:19:47 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:34 GMT
- request:
method: get
- uri: http://dl.dropbox.com/u/16783504/photo_medium.jpg?dl=1
+ uri: http://dl.dropbox.com/u/<USER_ID>/photo_medium.jpg?dl=1
body:
encoding: US-ASCII
string: ""
@@ -3567,7 +3567,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:19:47 GMT
+ - Tue, 06 Nov 2012 21:08:35 GMT
content-type:
- image/jpeg
content-length:
@@ -3579,9 +3579,9 @@ http_interactions:
content-disposition:
- attachment; filename="photo_medium.jpg"
accept-ranges:
- - bytes
+ - none
etag:
- - 683d
+ - 460d
pragma:
- public
cache-control:
@@ -4195,7 +4195,7 @@ http_interactions:
1ms18vl//9k=
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:19:48 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:35 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/photo.jpg
@@ -4208,7 +4208,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -4217,7 +4217,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:19:49 GMT
+ - Tue, 06 Nov 2012 21:08:35 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -4236,9 +4236,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"url\": \"https://dl.dropbox.com/0/view/m1b9xnv6wv6g00f/Public/photo.jpg\", \"expires\": \"Sun, 21 Oct 2012 21:19:49 +0000\"}"
+ string: "{\"url\": \"https://dl.dropbox.com/0/view/dktyq4xy4czb71s/Public/photo.jpg\", \"expires\": \"Wed, 07 Nov 2012 01:08:35 +0000\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:19:49 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:35 GMT
- request:
method: get
uri: https://api.dropbox.com/1/media/dropbox/Public/photo_medium.jpg
@@ -4251,7 +4251,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -4260,7 +4260,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:19:51 GMT
+ - Tue, 06 Nov 2012 21:08:36 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -4279,9 +4279,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"url\": \"https://dl.dropbox.com/0/view/1oq5rwmdvli38s1/Public/photo_medium.jpg\", \"expires\": \"Sun, 21 Oct 2012 21:19:51 +0000\"}"
+ string: "{\"url\": \"https://dl.dropbox.com/0/view/bfv25j41ykm166h/Public/photo_medium.jpg\", \"expires\": \"Wed, 07 Nov 2012 01:08:36 +0000\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:19:51 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:36 GMT
- request:
method: post
uri: https://api.dropbox.com/1/fileops/delete?root=dropbox&path=%2FPublic%2Fphoto.jpg
@@ -4294,7 +4294,7 @@ http_interactions:
user-agent:
- OfficialDropboxRubySDK/1.5.1
authorization:
- - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="op7z8yczcf6hqbg", oauth_token="pfapjkwepp4gtig", oauth_signature="t9xl9p9xduqk4cp&cg0oln27dm66miv"
+ - OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="<APP_KEY>", oauth_token="<ACCESS_TOKEN>", oauth_signature="<APP_SECRET>&<ACCESS_TOKEN_SECRET>"
response:
status:
code: 200
@@ -4303,7 +4303,7 @@ http_interactions:
server:
- nginx/1.2.3
date:
- - Sun, 21 Oct 2012 17:19:54 GMT
+ - Tue, 06 Nov 2012 21:08:37 GMT
content-type:
- text/javascript
transfer-encoding:
@@ -4313,7 +4313,7 @@ http_interactions:
access-control-expose-headers:
- X-Dropbox-Metadata
set-cookie:
- - gvc=MjE0MTIyNTA2ODA1OTU3OTA2MzcyNjcxODIzMTMyMTU1NTg1NTE%3D; expires=Fri, 20-Oct-2017 17:19:54 GMT; Path=/; httponly
+ - gvc=Mjc1NTA5ODU4MTkyODM3NDAxNzg3MDM3NjQ3NzIxODEwMzQ3Mjk3; expires=Sun, 05-Nov-2017 21:08:37 GMT; Path=/; httponly
pragma:
- no-cache
cache-control:
@@ -4324,9 +4324,9 @@ http_interactions:
- "*"
body:
encoding: US-ASCII
- string: "{\"is_deleted\": true, \"revision\": 684, \"rev\": \"2ac01908bdc\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Sun, 21 Oct 2012 17:19:53 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
+ string: "{\"is_deleted\": true, \"revision\": 461, \"rev\": \"1cd0b59ac45\", \"thumb_exists\": true, \"bytes\": 0, \"modified\": \"Tue, 06 Nov 2012 21:08:37 +0000\", \"client_mtime\": \"Wed, 31 Dec 1969 23:59:59 +0000\", \"path\": \"/Public/photo.jpg\", \"is_dir\": false, \"icon\": \"page_white_picture\", \"root\": \"dropbox\", \"mime_type\": \"image/jpeg\", \"size\": \"0 bytes\"}"
http_version: "1.1"
- recorded_at: Sun, 21 Oct 2012 17:19:54 GMT
+ recorded_at: Tue, 06 Nov 2012 21:08:37 GMT
- request:
method: post