dummy_dropbox 0.0.2 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.bundle/config +2 -0
- data/.gitignore +1 -0
- data/.rvmrc +1 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +23 -0
- data/Rakefile +16 -12
- data/dummy_dropbox.gemspec +18 -28
- data/lib/dummy_dropbox.rb +11 -2
- data/lib/version.rb +3 -0
- data/test/dummy_dropbox_test.rb +0 -3
- data/test/fixtures/.DS_Store +0 -0
- metadata +50 -27
- data/Manifest +0 -9
data/.bundle/config
ADDED
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg
|
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm use 1.8.7@dummy_dropbox
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
dummy_dropbox (0.0.5)
|
5
|
+
dropbox
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
dropbox (1.3.0)
|
11
|
+
json (>= 1.2.0)
|
12
|
+
multipart-post (>= 1.1.0)
|
13
|
+
oauth (>= 0.3.6)
|
14
|
+
json (1.5.3)
|
15
|
+
multipart-post (1.1.3)
|
16
|
+
oauth (0.4.5)
|
17
|
+
|
18
|
+
PLATFORMS
|
19
|
+
ruby
|
20
|
+
|
21
|
+
DEPENDENCIES
|
22
|
+
bundler (>= 1.0.0.rc.6)
|
23
|
+
dummy_dropbox!
|
data/Rakefile
CHANGED
@@ -1,13 +1,17 @@
|
|
1
|
-
require '
|
2
|
-
|
3
|
-
require '
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
# require 'bundler/gem_tasks'
|
2
|
+
|
3
|
+
require 'rake'
|
4
|
+
require 'rake/testtask'
|
5
|
+
require 'bundler'
|
6
|
+
|
7
|
+
include Rake::DSL
|
8
|
+
|
9
|
+
Bundler::GemHelper.install_tasks
|
10
|
+
|
11
|
+
task :default => :test
|
12
|
+
|
13
|
+
Rake::TestTask.new do |t|
|
14
|
+
t.libs << '.'
|
15
|
+
t.test_files = FileList['test/*_test.rb']
|
16
|
+
t.verbose = true
|
13
17
|
end
|
data/dummy_dropbox.gemspec
CHANGED
@@ -1,34 +1,24 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "version"
|
2
4
|
|
3
5
|
Gem::Specification.new do |s|
|
4
|
-
s.name
|
5
|
-
s.version
|
6
|
+
s.name = "dummy_dropbox"
|
7
|
+
s.version = DummyDropbox::VERSION
|
8
|
+
s.authors = ["Fernando Guillen"]
|
9
|
+
s.email = ["fguillen.mail@gmail.com"]
|
10
|
+
s.homepage = "https://github.com/fguillen/DummyDropbox"
|
11
|
+
s.summary = "Dummy monkey patching for the dropbox ruby gem: 'dropbox'"
|
12
|
+
s.description = "Dummy monkey patching for the dropbox ruby gem: 'dropbox'. You can test your Dropbox utility using a local folder to simulate your Dropbox folder."
|
6
13
|
|
7
|
-
s.
|
8
|
-
|
9
|
-
s.
|
10
|
-
|
11
|
-
s.
|
12
|
-
s.extra_rdoc_files = ["README.rdoc", "lib/dummy_dropbox.rb"]
|
13
|
-
s.files = ["Manifest", "README.rdoc", "Rakefile", "lib/dummy_dropbox.rb", "test/dummy_dropbox_test.rb", "test/fixtures/dropbox/file1.txt", "test/fixtures/dropbox/folder1/file2.txt", "test/fixtures/dropbox/folder1/file3.txt", "test/fixtures/file.txt", "dummy_dropbox.gemspec"]
|
14
|
-
s.homepage = %q{http://github.com/fguillen/DummyDropbox}
|
15
|
-
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Dummy_dropbox", "--main", "README.rdoc"]
|
16
|
-
s.require_paths = ["lib"]
|
17
|
-
s.rubyforge_project = %q{dummy_dropbox}
|
18
|
-
s.rubygems_version = %q{1.3.7}
|
19
|
-
s.summary = %q{Dummy monkey patching for the dropbox ruby gem: http://rubygems.org/gems/dropbox}
|
20
|
-
s.test_files = ["test/dummy_dropbox_test.rb"]
|
21
|
-
|
22
|
-
if s.respond_to? :specification_version then
|
23
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
24
|
-
s.specification_version = 3
|
14
|
+
s.rubyforge_project = "DummyDropbox"
|
15
|
+
|
16
|
+
s.add_development_dependency "bundler", ">= 1.0.0.rc.6"
|
17
|
+
|
18
|
+
s.add_dependency "dropbox"
|
25
19
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
end
|
31
|
-
else
|
32
|
-
s.add_dependency(%q<dropbox>, [">= 0"])
|
33
|
-
end
|
20
|
+
s.files = `git ls-files`.split("\n")
|
21
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
22
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
23
|
+
s.require_paths = ["lib"]
|
34
24
|
end
|
data/lib/dummy_dropbox.rb
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
-
|
1
|
+
begin
|
2
|
+
require 'dropbox'
|
3
|
+
rescue LoadError
|
4
|
+
require 'rubygems'
|
5
|
+
require 'dropbox'
|
6
|
+
end
|
7
|
+
require 'ostruct'
|
8
|
+
|
9
|
+
module DummyDropbox
|
2
10
|
@@root_path = File.expand_path( "#{File.dirname(__FILE__)}/../test/fixtures/dropbox" )
|
3
11
|
|
4
12
|
def self.root_path=(path)
|
@@ -70,7 +78,8 @@ module Dropbox
|
|
70
78
|
"is_dir": #{File.directory?( "#{Dropbox.files_root_path}/#{path}" )},
|
71
79
|
"size": "566.0KB",
|
72
80
|
"root": "dropbox",
|
73
|
-
"icon": "page_white_acrobat"
|
81
|
+
"icon": "page_white_acrobat",
|
82
|
+
"hash": "theHash"
|
74
83
|
}
|
75
84
|
RESPONSE
|
76
85
|
return parse_metadata(JSON.parse(response).symbolize_keys_recursively).to_struct_recursively
|
data/lib/version.rb
ADDED
data/test/dummy_dropbox_test.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dummy_dropbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Fernando Guillen
|
@@ -15,13 +15,31 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-08-16 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
22
|
+
name: bundler
|
23
23
|
prerelease: false
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 15424057
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 0
|
33
|
+
- 0
|
34
|
+
- rc
|
35
|
+
- 6
|
36
|
+
version: 1.0.0.rc.6
|
37
|
+
type: :development
|
38
|
+
version_requirements: *id001
|
39
|
+
- !ruby/object:Gem::Dependency
|
40
|
+
name: dropbox
|
41
|
+
prerelease: false
|
42
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
25
43
|
none: false
|
26
44
|
requirements:
|
27
45
|
- - ">="
|
@@ -31,39 +49,40 @@ dependencies:
|
|
31
49
|
- 0
|
32
50
|
version: "0"
|
33
51
|
type: :runtime
|
34
|
-
version_requirements: *
|
35
|
-
description: "Dummy monkey patching for the dropbox ruby gem:
|
36
|
-
email:
|
52
|
+
version_requirements: *id002
|
53
|
+
description: "Dummy monkey patching for the dropbox ruby gem: 'dropbox'. You can test your Dropbox utility using a local folder to simulate your Dropbox folder."
|
54
|
+
email:
|
55
|
+
- fguillen.mail@gmail.com
|
37
56
|
executables: []
|
38
57
|
|
39
58
|
extensions: []
|
40
59
|
|
41
|
-
extra_rdoc_files:
|
42
|
-
|
43
|
-
- lib/dummy_dropbox.rb
|
60
|
+
extra_rdoc_files: []
|
61
|
+
|
44
62
|
files:
|
45
|
-
-
|
63
|
+
- .bundle/config
|
64
|
+
- .gitignore
|
65
|
+
- .rvmrc
|
66
|
+
- Gemfile
|
67
|
+
- Gemfile.lock
|
46
68
|
- README.rdoc
|
47
69
|
- Rakefile
|
70
|
+
- dummy_dropbox.gemspec
|
48
71
|
- lib/dummy_dropbox.rb
|
72
|
+
- lib/version.rb
|
49
73
|
- test/dummy_dropbox_test.rb
|
74
|
+
- test/fixtures/.DS_Store
|
50
75
|
- test/fixtures/dropbox/file1.txt
|
51
76
|
- test/fixtures/dropbox/folder1/file2.txt
|
52
77
|
- test/fixtures/dropbox/folder1/file3.txt
|
53
78
|
- test/fixtures/file.txt
|
54
|
-
- dummy_dropbox.gemspec
|
55
79
|
has_rdoc: true
|
56
|
-
homepage:
|
80
|
+
homepage: https://github.com/fguillen/DummyDropbox
|
57
81
|
licenses: []
|
58
82
|
|
59
83
|
post_install_message:
|
60
|
-
rdoc_options:
|
61
|
-
|
62
|
-
- --inline-source
|
63
|
-
- --title
|
64
|
-
- Dummy_dropbox
|
65
|
-
- --main
|
66
|
-
- README.rdoc
|
84
|
+
rdoc_options: []
|
85
|
+
|
67
86
|
require_paths:
|
68
87
|
- lib
|
69
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -80,17 +99,21 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
99
|
requirements:
|
81
100
|
- - ">="
|
82
101
|
- !ruby/object:Gem::Version
|
83
|
-
hash:
|
102
|
+
hash: 3
|
84
103
|
segments:
|
85
|
-
-
|
86
|
-
|
87
|
-
version: "1.2"
|
104
|
+
- 0
|
105
|
+
version: "0"
|
88
106
|
requirements: []
|
89
107
|
|
90
|
-
rubyforge_project:
|
108
|
+
rubyforge_project: DummyDropbox
|
91
109
|
rubygems_version: 1.3.7
|
92
110
|
signing_key:
|
93
111
|
specification_version: 3
|
94
|
-
summary: "Dummy monkey patching for the dropbox ruby gem:
|
112
|
+
summary: "Dummy monkey patching for the dropbox ruby gem: 'dropbox'"
|
95
113
|
test_files:
|
96
114
|
- test/dummy_dropbox_test.rb
|
115
|
+
- test/fixtures/.DS_Store
|
116
|
+
- test/fixtures/dropbox/file1.txt
|
117
|
+
- test/fixtures/dropbox/folder1/file2.txt
|
118
|
+
- test/fixtures/dropbox/folder1/file3.txt
|
119
|
+
- test/fixtures/file.txt
|