fog-dropbox 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/.rubocop.yml +20 -0
- data/.ruby-env.example +1 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/CONTRIBUTING.md +18 -0
- data/CONTRIBUTORS.md +47 -0
- data/Gemfile +4 -0
- data/LICENSE.md +20 -0
- data/README.md +73 -0
- data/Rakefile +12 -0
- data/fog-dropbox.gemspec +33 -0
- data/lib/fog/bin/dropbox.rb +70 -0
- data/lib/fog/dropbox.rb +17 -0
- data/lib/fog/dropbox/models/storage/directories.rb +26 -0
- data/lib/fog/dropbox/models/storage/directory.rb +40 -0
- data/lib/fog/dropbox/models/storage/file.rb +78 -0
- data/lib/fog/dropbox/models/storage/files.rb +41 -0
- data/lib/fog/dropbox/storage.rb +44 -0
- data/lib/fog/dropbox/version.rb +5 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/directories/all.yml +170 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/directories/get.yml +207 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/directory/destroy.yml +171 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/directory/files.yml +262 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/directory/save.yml +208 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/destroy.yml +287 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/large_file.yml +278 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/small_file.yml +239 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/string.yml +519 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/files.yml +554 -0
- data/spec/fog/dropbox/models/storage/directories_spec.rb +49 -0
- data/spec/fog/dropbox/models/storage/directory_spec.rb +65 -0
- data/spec/fog/dropbox/models/storage/file_spec.rb +106 -0
- data/spec/fog/dropbox/models/storage/files_spec.rb +90 -0
- data/spec/fog/dropbox/storage_spec.rb +15 -0
- data/spec/spec_helper.rb +8 -0
- metadata +210 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "Fog::Storage::Dropbox::Directories" do
|
4
|
+
|
5
|
+
after(:all) do
|
6
|
+
@dropbox_client = DropboxClient.new(ENV['DROPBOX_OAUTH2_ACCESS_TOKEN'])
|
7
|
+
VCR.use_cassette("fog/storage/dropbox/directories/get") do
|
8
|
+
@dropbox_client.file_delete "/TEST_DIRECTORY"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "#all" do
|
13
|
+
|
14
|
+
let(:client) { Fog::Storage::Dropbox.new(:dropbox_oauth2_access_token => ENV['DROPBOX_OAUTH2_ACCESS_TOKEN']) }
|
15
|
+
let(:subject) { client.directories.all }
|
16
|
+
|
17
|
+
it "should not throw error for root listing" do
|
18
|
+
VCR.use_cassette("fog/storage/dropbox/directories/all") do
|
19
|
+
expect(subject).to be_a(Fog::Storage::Dropbox::Directories)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
describe "#get" do
|
26
|
+
|
27
|
+
let(:dropbox_client) { DropboxClient.new(ENV['DROPBOX_OAUTH2_ACCESS_TOKEN']) }
|
28
|
+
let(:client) { Fog::Storage::Dropbox.new(:dropbox_oauth2_access_token => ENV['DROPBOX_OAUTH2_ACCESS_TOKEN']) }
|
29
|
+
let(:a_directory) { "/TEST_DIRECTORY" } # If you change this, it will upset VCR
|
30
|
+
let(:not_a_directory) { "/THIS_SHOULD_MATCH_NO_DIRECTORY_IN_YOUR_DROPBOX" } # If you change this, it will upset VCR
|
31
|
+
|
32
|
+
it "should raise error for missing directory" do
|
33
|
+
VCR.use_cassette("fog/storage/dropbox/directories/get") do
|
34
|
+
expect( client.directories.get(not_a_directory) ).to eq(nil)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
it "should get directory" do
|
39
|
+
VCR.use_cassette("fog/storage/dropbox/directories/get") do
|
40
|
+
dropbox_client.file_create_folder(a_directory) # create a directory to test
|
41
|
+
directory = client.directories.get(a_directory)
|
42
|
+
expect(directory).to be_a(Fog::Storage::Dropbox::Directory)
|
43
|
+
expect(directory.key).to eq(a_directory)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'dropbox_sdk'
|
3
|
+
|
4
|
+
describe "Fog::Storage::Dropbox::Directory" do
|
5
|
+
|
6
|
+
let(:dropbox_client) { DropboxClient.new(ENV['DROPBOX_OAUTH2_ACCESS_TOKEN']) }
|
7
|
+
let(:client) { Fog::Storage::Dropbox.new(:dropbox_oauth2_access_token => ENV['DROPBOX_OAUTH2_ACCESS_TOKEN']) }
|
8
|
+
|
9
|
+
|
10
|
+
describe "#save" do
|
11
|
+
|
12
|
+
it "should allow creating new directories" do
|
13
|
+
VCR.use_cassette("fog/storage/dropbox/directory/save") do
|
14
|
+
directory = "/Save-then-Delete"
|
15
|
+
dropbox_client.file_delete(directory) rescue nil # An exception here is OK
|
16
|
+
subject = client.directories.new(key: directory).save
|
17
|
+
expect(subject).to be_truthy
|
18
|
+
expect(dropbox_client.metadata(directory)).to be_truthy
|
19
|
+
dropbox_client.file_delete(directory)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
describe "#files" do
|
26
|
+
|
27
|
+
it "should handle missing directory" do
|
28
|
+
VCR.use_cassette("fog/storage/dropbox/directory/files") do
|
29
|
+
expect( client.directories.get("/The-Light-of-Nowheretown") ).to eq(nil)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should get directory files" do
|
34
|
+
VCR.use_cassette("fog/storage/dropbox/directory/files") do
|
35
|
+
album = "/Mastermind"
|
36
|
+
singles = ["The-Devil-Is-a-Lie", "War-Ready", "Thug-Cry"]
|
37
|
+
singles.each do |single|
|
38
|
+
dropbox_client.put_file([album, single].join('/'), "Bellaire Rose", true) # this last `true` means overwrite
|
39
|
+
end
|
40
|
+
directory = client.directories.get(album)
|
41
|
+
expect(directory).to be_a(Fog::Storage::Dropbox::Directory)
|
42
|
+
expect(directory.key).to eq(album)
|
43
|
+
expect(directory.files.length).to eq(singles.length)
|
44
|
+
expect(directory.files.first).to be_a(Fog::Storage::Dropbox::File)
|
45
|
+
expect(directory.files.map{|file| file.name }).to include(*singles)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
50
|
+
|
51
|
+
describe "#destroy" do
|
52
|
+
|
53
|
+
it "should allow creating new directories" do
|
54
|
+
VCR.use_cassette("fog/storage/dropbox/directory/destroy") do
|
55
|
+
directory = "/Just-to-Delete"
|
56
|
+
dropbox_client.file_create_folder(directory) rescue nil # An exception here is OK
|
57
|
+
subject = client.directories.new(key: directory).destroy
|
58
|
+
expect(subject).to be_truthy
|
59
|
+
expect(dropbox_client.metadata(directory)['is_deleted']).to be_truthy
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
@@ -0,0 +1,106 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'tempfile'
|
3
|
+
require 'open-uri'
|
4
|
+
|
5
|
+
describe "Fog::Storage::Dropbox::File" do
|
6
|
+
|
7
|
+
let(:dropbox_client) { DropboxClient.new(ENV['DROPBOX_OAUTH2_ACCESS_TOKEN']) }
|
8
|
+
let(:client) { Fog::Storage::Dropbox.new(:dropbox_oauth2_access_token => ENV['DROPBOX_OAUTH2_ACCESS_TOKEN']) }
|
9
|
+
|
10
|
+
describe "#body" do
|
11
|
+
|
12
|
+
it "should read file" do
|
13
|
+
VCR.use_cassette("fog/storage/dropbox/file/string") do
|
14
|
+
folder = "/FileTests"
|
15
|
+
file = "Testfile"
|
16
|
+
key = [folder, file].join('/')
|
17
|
+
file_content = "Bellaire Rose"
|
18
|
+
dropbox_client.put_file(key, file_content, true) # this last `true` means overwrite
|
19
|
+
directory = client.directories.get(folder)
|
20
|
+
file = directory.files.get(key)
|
21
|
+
expect(file.body).to eq(file_content)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should write file" do
|
26
|
+
VCR.use_cassette("fog/storage/dropbox/file/small_file") do
|
27
|
+
folder = "/FileTests"
|
28
|
+
file = "Testfile"
|
29
|
+
key = [folder, file].join('/')
|
30
|
+
file_content = "Bellaire Rose"
|
31
|
+
directory = client.directories.get(folder)
|
32
|
+
file = directory.files.get(key)
|
33
|
+
file.body = file_content
|
34
|
+
file.save
|
35
|
+
dropbox_file_content = dropbox_client.get_file(key)
|
36
|
+
expect(dropbox_file_content).to eq(file_content)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
it "should write large file" do
|
41
|
+
VCR.use_cassette("fog/storage/dropbox/file/large_file") do
|
42
|
+
folder = "/FileTests"
|
43
|
+
file = "Testfile"
|
44
|
+
key = [folder, file].join('/')
|
45
|
+
directory = client.directories.get(folder)
|
46
|
+
large_file = Tempfile.new("fog-dropbox-multipart")
|
47
|
+
6.times { large_file.write("x" * (1024**2)) } # 6 MB file
|
48
|
+
large_file.rewind
|
49
|
+
file = directory.files.create(
|
50
|
+
'path' => key,
|
51
|
+
:key => key,
|
52
|
+
:body => large_file
|
53
|
+
)
|
54
|
+
expect(file).to be_truthy
|
55
|
+
large_file_sha256 = Digest::SHA256.file(large_file).hexdigest
|
56
|
+
large_file.close
|
57
|
+
dropbox_file = Tempfile.new("fog-dropbox-multipart--retrieved")
|
58
|
+
dropbox_file.write(dropbox_client.get_file(key))
|
59
|
+
dropbox_file_sha256 = Digest::SHA256.file(dropbox_file).hexdigest
|
60
|
+
dropbox_file.close
|
61
|
+
expect(large_file_sha256).to eq(dropbox_file_sha256)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
66
|
+
|
67
|
+
describe "#url" do
|
68
|
+
|
69
|
+
it "should get a valid share url" do
|
70
|
+
VCR.use_cassette("fog/storage/dropbox/file/string") do
|
71
|
+
folder = "/FileTests"
|
72
|
+
file = "Testfile"
|
73
|
+
key = [folder, file].join('/')
|
74
|
+
file_content = "Bellaire Rose"
|
75
|
+
dropbox_client.put_file(key, file_content, true) # this last `true` means overwrite
|
76
|
+
directory = client.directories.get(folder)
|
77
|
+
file = directory.files.get(key)
|
78
|
+
share_url = file.url()
|
79
|
+
expect(share_url =~ URI::regexp).to be_truthy
|
80
|
+
retrieved_content = open(share_url).read
|
81
|
+
expect(retrieved_content).to eq(file_content)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
end
|
86
|
+
|
87
|
+
describe "#destroy" do
|
88
|
+
|
89
|
+
it "should delete file" do
|
90
|
+
VCR.use_cassette("fog/storage/dropbox/file/destroy") do
|
91
|
+
folder = "/FileTests"
|
92
|
+
file = "Testfile"
|
93
|
+
key = [folder, file].join('/')
|
94
|
+
file_content = "Bellaire Rose"
|
95
|
+
dropbox_client.put_file(key, file_content, true) # this last `true` means overwrite
|
96
|
+
directory = client.directories.get(folder)
|
97
|
+
file = directory.files.get(key)
|
98
|
+
expect(file.destroy).to be_truthy
|
99
|
+
metadata = dropbox_client.metadata(key)
|
100
|
+
expect(metadata['is_deleted']).to be_truthy
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
end
|
105
|
+
|
106
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "Fog::Storage::Dropbox::Files" do
|
4
|
+
|
5
|
+
before(:all) do
|
6
|
+
@dropbox_client = DropboxClient.new(ENV['DROPBOX_OAUTH2_ACCESS_TOKEN'])
|
7
|
+
VCR.use_cassette("fog/storage/dropbox/files") do
|
8
|
+
@path = "/Mastermind"
|
9
|
+
@singles = ["The-Devil-Is-a-Lie", "War-Ready", "Thug-Cry"]
|
10
|
+
@singles.each do |single|
|
11
|
+
@dropbox_client.put_file([@path, single].join('/'), "Bellaire Rose", true) # this last `true` means overwrite
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
after(:all) do
|
17
|
+
VCR.use_cassette("fog/storage/dropbox/files") do
|
18
|
+
@dropbox_client.file_delete @path
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
let(:client) { Fog::Storage::Dropbox.new(:dropbox_oauth2_access_token => ENV['DROPBOX_OAUTH2_ACCESS_TOKEN']) }
|
23
|
+
|
24
|
+
describe "#all" do
|
25
|
+
|
26
|
+
it "should find all the files in a directory" do
|
27
|
+
VCR.use_cassette("fog/storage/dropbox/files") do
|
28
|
+
directory = client.directories.get(@path)
|
29
|
+
subject = directory.files
|
30
|
+
expect(subject).to be_truthy
|
31
|
+
expect(subject).to be_a(Fog::Storage::Dropbox::Files)
|
32
|
+
expect(subject.count).to eq(@singles.count)
|
33
|
+
expect(subject.first).to be_a(Fog::Storage::Dropbox::File)
|
34
|
+
expect(subject.map{|file| file.name }).to include(*@singles)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
|
40
|
+
describe "#get" do
|
41
|
+
|
42
|
+
it "should find the correct file" do
|
43
|
+
VCR.use_cassette("fog/storage/dropbox/files") do
|
44
|
+
directory = client.directories.get(@path)
|
45
|
+
key = [@path, @singles.first].join('/')
|
46
|
+
subject = directory.files.get(key)
|
47
|
+
expect(subject).to be_truthy
|
48
|
+
expect(subject).to be_a(Fog::Storage::Dropbox::File)
|
49
|
+
expect(subject.key).to eq(key)
|
50
|
+
expect(subject.name).to eq(@singles.first)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
it "should handle non-existant file with nil" do
|
55
|
+
VCR.use_cassette("fog/storage/dropbox/files") do
|
56
|
+
directory = client.directories.get(@path)
|
57
|
+
key = [@path, "not-a-rick-ross-single"].join('/')
|
58
|
+
subject = directory.files.get(key)
|
59
|
+
expect(subject).to be_nil
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
|
65
|
+
describe "#head" do
|
66
|
+
|
67
|
+
it "should find the correct file" do
|
68
|
+
VCR.use_cassette("fog/storage/dropbox/files") do
|
69
|
+
directory = client.directories.get(@path)
|
70
|
+
key = [@path, @singles.first].join('/')
|
71
|
+
subject = directory.files.head(key)
|
72
|
+
expect(subject).to be_truthy
|
73
|
+
expect(subject).to be_a(Fog::Storage::Dropbox::File)
|
74
|
+
expect(subject.key).to eq(key)
|
75
|
+
expect(subject.name).to eq(@singles.first)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
it "should handle non-existant file with nil" do
|
80
|
+
VCR.use_cassette("fog/storage/dropbox/files") do
|
81
|
+
directory = client.directories.get(@path)
|
82
|
+
key = [@path, "not-a-rick-ross-single"].join('/')
|
83
|
+
subject = directory.files.head(key)
|
84
|
+
expect(subject).to be_nil
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
89
|
+
|
90
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "Fog::Storage::Dropbox" do
|
4
|
+
describe "#initialize" do
|
5
|
+
|
6
|
+
it "should initialize without error" do
|
7
|
+
expect(Fog::Storage::Dropbox.new(:dropbox_oauth2_access_token => ENV['DROPBOX_OAUTH2_ACCESS_TOKEN'])).to be_a(Fog::Storage::Dropbox::Real)
|
8
|
+
end
|
9
|
+
|
10
|
+
it "should raise error when missing required params" do
|
11
|
+
expect{ Fog::Storage::Dropbox.new() }.to raise_error
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,210 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fog-dropbox
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Zane Shannon
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-04-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: fog-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: dropbox-sdk
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: vcr
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: webmock
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: coveralls
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: |-
|
126
|
+
This library can be used as a module for `fog` or as standalone provider
|
127
|
+
to use Dropbox in applications.
|
128
|
+
email:
|
129
|
+
- zane@zaneshannon.com
|
130
|
+
executables: []
|
131
|
+
extensions: []
|
132
|
+
extra_rdoc_files: []
|
133
|
+
files:
|
134
|
+
- ".gitignore"
|
135
|
+
- ".rubocop.yml"
|
136
|
+
- ".ruby-env.example"
|
137
|
+
- ".ruby-gemset"
|
138
|
+
- ".ruby-version"
|
139
|
+
- CONTRIBUTING.md
|
140
|
+
- CONTRIBUTORS.md
|
141
|
+
- Gemfile
|
142
|
+
- LICENSE.md
|
143
|
+
- README.md
|
144
|
+
- Rakefile
|
145
|
+
- fog-dropbox.gemspec
|
146
|
+
- lib/fog/bin/dropbox.rb
|
147
|
+
- lib/fog/dropbox.rb
|
148
|
+
- lib/fog/dropbox/models/storage/directories.rb
|
149
|
+
- lib/fog/dropbox/models/storage/directory.rb
|
150
|
+
- lib/fog/dropbox/models/storage/file.rb
|
151
|
+
- lib/fog/dropbox/models/storage/files.rb
|
152
|
+
- lib/fog/dropbox/storage.rb
|
153
|
+
- lib/fog/dropbox/version.rb
|
154
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/directories/all.yml
|
155
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/directories/get.yml
|
156
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/directory/destroy.yml
|
157
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/directory/files.yml
|
158
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/directory/save.yml
|
159
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/destroy.yml
|
160
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/large_file.yml
|
161
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/small_file.yml
|
162
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/string.yml
|
163
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/files.yml
|
164
|
+
- spec/fog/dropbox/models/storage/directories_spec.rb
|
165
|
+
- spec/fog/dropbox/models/storage/directory_spec.rb
|
166
|
+
- spec/fog/dropbox/models/storage/file_spec.rb
|
167
|
+
- spec/fog/dropbox/models/storage/files_spec.rb
|
168
|
+
- spec/fog/dropbox/storage_spec.rb
|
169
|
+
- spec/spec_helper.rb
|
170
|
+
homepage: https://github.com/zshannon/fog-dropbox
|
171
|
+
licenses:
|
172
|
+
- MIT
|
173
|
+
metadata: {}
|
174
|
+
post_install_message:
|
175
|
+
rdoc_options: []
|
176
|
+
require_paths:
|
177
|
+
- lib
|
178
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
requirements: []
|
189
|
+
rubyforge_project:
|
190
|
+
rubygems_version: 2.4.5
|
191
|
+
signing_key:
|
192
|
+
specification_version: 4
|
193
|
+
summary: Module for the 'fog' gem to support Dropbox.
|
194
|
+
test_files:
|
195
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/directories/all.yml
|
196
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/directories/get.yml
|
197
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/directory/destroy.yml
|
198
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/directory/files.yml
|
199
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/directory/save.yml
|
200
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/destroy.yml
|
201
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/large_file.yml
|
202
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/small_file.yml
|
203
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/string.yml
|
204
|
+
- spec/fixtures/vcr_cassettes/fog/storage/dropbox/files.yml
|
205
|
+
- spec/fog/dropbox/models/storage/directories_spec.rb
|
206
|
+
- spec/fog/dropbox/models/storage/directory_spec.rb
|
207
|
+
- spec/fog/dropbox/models/storage/file_spec.rb
|
208
|
+
- spec/fog/dropbox/models/storage/files_spec.rb
|
209
|
+
- spec/fog/dropbox/storage_spec.rb
|
210
|
+
- spec/spec_helper.rb
|