dummy_dropbox_sdk 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/README.rdoc +12 -8
- data/dummy_dropbox_sdk.gemspec +2 -2
- data/lib/dummy_dropbox_sdk.rb +1 -1
- data/lib/version.rb +2 -2
- metadata +5 -5
data/.gitignore
CHANGED
data/README.rdoc
CHANGED
@@ -4,27 +4,27 @@ http://farm5.static.flickr.com/4136/4925714505_3a3a0a6134_o.jpg
|
|
4
4
|
|
5
5
|
<b>I can image a Dropbox session, just for testing.</b>
|
6
6
|
|
7
|
-
Very simple library for mocking the
|
7
|
+
Very simple library for mocking the dropbox-sdk gem
|
8
|
+
[https://www.dropbox.com/developers/start/setup#ruby].
|
8
9
|
|
9
10
|
You can test your application without making real calls to Dropbox API using a *local* *folder* to fake a Dropbox account.
|
10
11
|
|
11
12
|
|
12
13
|
== Install
|
13
14
|
|
14
|
-
$ [sudo] gem install
|
15
|
+
$ [sudo] gem install dummy_dropbox_sdk
|
15
16
|
|
16
17
|
|
17
18
|
== Usage
|
18
19
|
|
19
|
-
require '
|
20
|
+
require 'dummy_dropbox_sdk'
|
20
21
|
|
21
22
|
# Optional:
|
22
23
|
# Point where your local folder structure is located.
|
23
24
|
# It will be used as if the real Dropbox structure was been reading.
|
24
25
|
DummyDropbox.root_path = <your_local_folder>
|
25
26
|
|
26
|
-
session =
|
27
|
-
assert_equal( File.read( "<your_local_folder>/file1.txt" ) , @session.download( '/file1.txt' ) )
|
27
|
+
session = DropboxSession.new('x','y')
|
28
28
|
|
29
29
|
See the *test* folder.
|
30
30
|
|
@@ -38,6 +38,10 @@ Please fork it and complete the holes as you need it, them send me your pull req
|
|
38
38
|
|
39
39
|
== Credits
|
40
40
|
|
41
|
-
|
42
|
-
|
43
|
-
|
41
|
+
This is an adapted version of the dummy_dropbox gem mocking another dropbox
|
42
|
+
library [https://github.com/fguillen/DummyDropbox].
|
43
|
+
|
44
|
+
Original Author:: Fernando Guillen: http://fernandoguillen.info
|
45
|
+
Author:: Panter llc: http://www.panter.ch
|
46
|
+
Copyright:: Copyright (c) 2011 Panter llc
|
47
|
+
License:: Released under the MIT license.
|
data/dummy_dropbox_sdk.gemspec
CHANGED
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.name = "dummy_dropbox_sdk"
|
7
7
|
s.version = DummyDropbox::VERSION
|
8
8
|
s.authors = ["Panter llc"]
|
9
|
-
s.email = ["
|
10
|
-
s.homepage = "https://github.com/panter/
|
9
|
+
s.email = ["gems@panter.ch"]
|
10
|
+
s.homepage = "https://github.com/panter/dummy_dropbox_sdk"
|
11
11
|
s.summary = "Dummy monkey patching for the dropbox-sdk ruby gem: 'dropbox-sdk'"
|
12
12
|
s.description = "Dummy monkey patching for the dropbox-sdk ruby gem: 'dropbox-sdk'. You can test your Dropbox utility using a local folder to simulate your Dropbox folder."
|
13
13
|
|
data/lib/dummy_dropbox_sdk.rb
CHANGED
data/lib/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module DummyDropbox
|
2
|
-
VERSION = '0.0.
|
3
|
-
end
|
2
|
+
VERSION = '0.0.12'
|
3
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dummy_dropbox_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 12
|
10
|
+
version: 0.0.12
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Panter llc
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
version_requirements: *id002
|
54
54
|
description: "Dummy monkey patching for the dropbox-sdk ruby gem: 'dropbox-sdk'. You can test your Dropbox utility using a local folder to simulate your Dropbox folder."
|
55
55
|
email:
|
56
|
-
-
|
56
|
+
- gems@panter.ch
|
57
57
|
executables: []
|
58
58
|
|
59
59
|
extensions: []
|
@@ -78,7 +78,7 @@ files:
|
|
78
78
|
- test/fixtures/dropbox/folder1/file3.txt
|
79
79
|
- test/fixtures/file.txt
|
80
80
|
has_rdoc: true
|
81
|
-
homepage: https://github.com/panter/
|
81
|
+
homepage: https://github.com/panter/dummy_dropbox_sdk
|
82
82
|
licenses: []
|
83
83
|
|
84
84
|
post_install_message:
|