dummy_dropbox_sdk 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  pkg
2
2
  *.swp
3
+ *.gem
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 dropbox_ruby_gem[http://rubygems.org/gems/dropbox].
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 dummy_dropbox
15
+ $ [sudo] gem install dummy_dropbox_sdk
15
16
 
16
17
 
17
18
  == Usage
18
19
 
19
- require 'dummy_dropbox'
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 = Dropbox::Session.new('key', 'secret')
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
- Author:: Fernando Guillen: http://fernandoguillen.info
42
- Copyright:: Copyright (c) 2010 Fernando Guillen
43
- License:: Released under the MIT license.
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.
@@ -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 = ["info@panter.ch"]
10
- s.homepage = "https://github.com/panter/DummyDropbox"
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
 
@@ -7,7 +7,7 @@ end
7
7
  require 'ostruct'
8
8
 
9
9
  module DummyDropbox
10
- @@root_path = File.expand_path( "#{File.dirname(__FILE__)}/../test/fixtures/dropbox" )
10
+ @@root_path = File.expand_path( "./test/fixtures/dropbox" )
11
11
 
12
12
  def self.root_path=(path)
13
13
  @@root_path = path
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DummyDropbox
2
- VERSION = '0.0.11'
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: 9
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 11
10
- version: 0.0.11
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
- - info@panter.ch
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/DummyDropbox
81
+ homepage: https://github.com/panter/dummy_dropbox_sdk
82
82
  licenses: []
83
83
 
84
84
  post_install_message: