Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: fguillen/DummyDropbox
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: panterch/dummy_dropbox_sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 10 commits
  • 12 files changed
  • 3 contributors

Commits on Nov 23, 2011

  1. Copy the full SHA
    23c2244 View commit details
  2. fixed directory default

    panterch committed Nov 23, 2011
    Copy the full SHA
    5ac3a4a View commit details

Commits on Feb 13, 2012

  1. added account_info call

    panterch committed Feb 13, 2012
    Copy the full SHA
    1235d2d View commit details
  2. version upgrade

    panterch committed Feb 13, 2012
    Copy the full SHA
    eff9877 View commit details

Commits on Jun 19, 2012

  1. [f] Rewrite some stubs methods for dropbox_sdk:

    - put_file, get_file, file_delete, metadata
    Tam + Dung committed Jun 19, 2012
    Copy the full SHA
    a4aea43 View commit details

Commits on Jun 20, 2012

  1. Merge pull request #1 from tamvo/master

    Rewrite some stub-methods from dropbox_sdk
    panterch committed Jun 20, 2012
    Copy the full SHA
    d426ad2 View commit details
  2. added mime-type gem

    panterch committed Jun 20, 2012
    Copy the full SHA
    facc1e6 View commit details

Commits on Jun 21, 2012

  1. Fix file_create_folder

    Tam + Dung committed Jun 21, 2012
    Copy the full SHA
    a644d1f View commit details

Commits on Jun 24, 2012

  1. Fix test

    tamvm committed Jun 24, 2012
    Copy the full SHA
    7f883fe View commit details
  2. Merge branch 'master' of https://github.com/tamvo/dummy_dropbox_sdk

    Conflicts:
    	Gemfile.lock
    panterch committed Jun 24, 2012
    Copy the full SHA
    130af4a View commit details
Showing with 347 additions and 261 deletions.
  1. +2 −0 .gitignore
  2. +3 −1 .rvmrc
  3. +10 −10 Gemfile.lock
  4. +12 −8 README.rdoc
  5. +0 −24 dummy_dropbox.gemspec
  6. +25 −0 dummy_dropbox_sdk.gemspec
  7. +0 −151 lib/dummy_dropbox.rb
  8. +215 −0 lib/dummy_dropbox_sdk.rb
  9. +2 −2 lib/version.rb
  10. +78 −0 test/dummy_dropbox_sdk_test.rb
  11. +0 −64 test/dummy_dropbox_test.rb
  12. +0 −1 test/fixtures/file.txt
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
pkg
*.swp
*.gem
4 changes: 3 additions & 1 deletion .rvmrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
rvm use 1.8.7@dummy_dropbox
rvm use 1.8.7@dummy_dropbox --create
echo rvm_auto_reload_flag=1 >> ~/.rvmrc
echo rvm_auto_reload_flag=2 >> ~/.rvmrc
20 changes: 10 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
PATH
remote: .
specs:
dummy_dropbox (0.0.5)
dropbox
dummy_dropbox_sdk (0.0.13)
dropbox-sdk (>= 1.1)
mime-types

GEM
remote: http://rubygems.org/
specs:
dropbox (1.3.0)
json (>= 1.2.0)
multipart-post (>= 1.1.0)
oauth (>= 0.3.6)
json (1.5.3)
multipart-post (1.1.3)
oauth (0.4.5)
dropbox-sdk (1.3)
json
json (1.7.3)
mime-types (1.19)

PLATFORMS
ruby

DEPENDENCIES
bundler (>= 1.0.0.rc.6)
dummy_dropbox!
dropbox-sdk (>= 1.1)
dummy_dropbox_sdk!
mime-types
20 changes: 12 additions & 8 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -4,27 +4,27 @@ http://farm5.static.flickr.com/4136/4925714505_3a3a0a6134_o.jpg

<b>I can image a Dropbox session, just for testing.</b>

Very simple library for mocking the dropbox_ruby_gem[http://rubygems.org/gems/dropbox].
Very simple library for mocking the dropbox-sdk gem
[https://www.dropbox.com/developers/start/setup#ruby].

You can test your application without making real calls to Dropbox API using a *local* *folder* to fake a Dropbox account.


== Install

$ [sudo] gem install dummy_dropbox
$ [sudo] gem install dummy_dropbox_sdk


== Usage

require 'dummy_dropbox'
require 'dummy_dropbox_sdk'

# Optional:
# Point where your local folder structure is located.
# It will be used as if the real Dropbox structure was been reading.
DummyDropbox.root_path = <your_local_folder>

session = Dropbox::Session.new('key', 'secret')
assert_equal( File.read( "<your_local_folder>/file1.txt" ) , @session.download( '/file1.txt' ) )
session = DropboxSession.new('x','y')

See the *test* folder.

@@ -38,6 +38,10 @@ Please fork it and complete the holes as you need it, them send me your pull req

== Credits

Author:: Fernando Guillen: http://fernandoguillen.info
Copyright:: Copyright (c) 2010 Fernando Guillen
License:: Released under the MIT license.
This is an adapted version of the dummy_dropbox gem mocking another dropbox
library [https://github.com/fguillen/DummyDropbox].

Original Author:: Fernando Guillen: http://fernandoguillen.info
Author:: Panter llc: http://www.panter.ch
Copyright:: Copyright (c) 2011 Panter llc
License:: Released under the MIT license.
24 changes: 0 additions & 24 deletions dummy_dropbox.gemspec

This file was deleted.

25 changes: 25 additions & 0 deletions dummy_dropbox_sdk.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "version"

Gem::Specification.new do |s|
s.name = "dummy_dropbox_sdk"
s.version = DummyDropbox::VERSION
s.authors = ["Panter llc"]
s.email = ["gems@panter.ch"]
s.homepage = "https://github.com/panter/dummy_dropbox_sdk"
s.summary = "Dummy monkey patching for the dropbox-sdk ruby gem: 'dropbox-sdk'"
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."

s.rubyforge_project = "DummyDropbox"

s.add_development_dependency "bundler", ">= 1.0.0.rc.6"

s.add_dependency "dropbox-sdk", ">= 1.1"
s.add_dependency "mime-types"

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
end
151 changes: 0 additions & 151 deletions lib/dummy_dropbox.rb

This file was deleted.

Loading