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 ADDED
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_DISABLE_SHARED_GEMS: "1"
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
@@ -0,0 +1,3 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
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 'rubygems'
2
- require 'rake'
3
- require 'echoe'
4
-
5
- Echoe.new('dummy_dropbox', '0.0.2') do |p|
6
- p.description = "Dummy monkey patching for the dropbox ruby gem: http://rubygems.org/gems/dropbox"
7
- p.url = "http://github.com/fguillen/DummyDropbox"
8
- p.author = "Fernando Guillen"
9
- p.email = "fguillen.mail@gmail.com"
10
- p.ignore_pattern = []
11
- p.development_dependencies = []
12
- p.runtime_dependencies = ['dropbox']
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
@@ -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 = %q{dummy_dropbox}
5
- s.version = "0.0.2"
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.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Fernando Guillen"]
9
- s.date = %q{2011-01-26}
10
- s.description = %q{Dummy monkey patching for the dropbox ruby gem: http://rubygems.org/gems/dropbox}
11
- s.email = %q{fguillen.mail@gmail.com}
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
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
27
- s.add_runtime_dependency(%q<dropbox>, [">= 0"])
28
- else
29
- s.add_dependency(%q<dropbox>, [">= 0"])
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
- class DummyDropbox
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
@@ -0,0 +1,3 @@
1
+ module DummyDropbox
2
+ VERSION = '0.0.7'
3
+ end
@@ -1,7 +1,4 @@
1
- require 'rubygems'
2
1
  require 'test/unit'
3
- require 'ostruct'
4
- require 'dropbox'
5
2
  require "#{File.dirname(__FILE__)}/../lib/dummy_dropbox.rb"
6
3
 
7
4
  class DummyDropboxTest < Test::Unit::TestCase
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: 27
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
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-01-26 00:00:00 +01:00
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: dropbox
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: *id001
35
- description: "Dummy monkey patching for the dropbox ruby gem: http://rubygems.org/gems/dropbox"
36
- email: fguillen.mail@gmail.com
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
- - README.rdoc
43
- - lib/dummy_dropbox.rb
60
+ extra_rdoc_files: []
61
+
44
62
  files:
45
- - Manifest
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: http://github.com/fguillen/DummyDropbox
80
+ homepage: https://github.com/fguillen/DummyDropbox
57
81
  licenses: []
58
82
 
59
83
  post_install_message:
60
- rdoc_options:
61
- - --line-numbers
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: 11
102
+ hash: 3
84
103
  segments:
85
- - 1
86
- - 2
87
- version: "1.2"
104
+ - 0
105
+ version: "0"
88
106
  requirements: []
89
107
 
90
- rubyforge_project: dummy_dropbox
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: http://rubygems.org/gems/dropbox"
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
data/Manifest DELETED
@@ -1,9 +0,0 @@
1
- Manifest
2
- README.rdoc
3
- Rakefile
4
- lib/dummy_dropbox.rb
5
- test/dummy_dropbox_test.rb
6
- test/fixtures/dropbox/file1.txt
7
- test/fixtures/dropbox/folder1/file2.txt
8
- test/fixtures/dropbox/folder1/file3.txt
9
- test/fixtures/file.txt