dropbox 1.2.0 → 1.2.1

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/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 1.2.1 (2010-11-26)
2
+
3
+ * Changed authentication host.
4
+ * Upgraded to Jeweler 1.5.
5
+
1
6
  1.2 (2010-10-31)
2
7
 
3
8
  * Updated thumbnail method for changes in the thumbnail API.
@@ -2,31 +2,26 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  diff-lcs (1.1.2)
5
- gemcutter (0.6.1)
6
5
  git (1.2.5)
7
- jeweler (1.4.0)
8
- gemcutter (>= 0.1.0)
6
+ jeweler (1.5.1)
7
+ bundler (~> 1.0.0)
9
8
  git (>= 1.2.5)
10
- rubyforge (>= 2.0.0)
9
+ rake
11
10
  json (1.4.6)
12
- json_pure (1.4.6)
13
11
  mechanize (1.0.0)
14
12
  nokogiri (>= 1.2.1)
15
13
  multipart-post (1.0.1)
16
- nokogiri (1.4.3.1)
17
- oauth (0.4.3)
18
- rspec (2.0.1)
19
- rspec-core (~> 2.0.1)
20
- rspec-expectations (~> 2.0.1)
21
- rspec-mocks (~> 2.0.1)
22
- rspec-core (2.0.1)
23
- rspec-expectations (2.0.1)
24
- diff-lcs (>= 1.1.2)
25
- rspec-mocks (2.0.1)
26
- rspec-core (~> 2.0.1)
27
- rspec-expectations (~> 2.0.1)
28
- rubyforge (2.0.4)
29
- json_pure (>= 1.1.7)
14
+ nokogiri (1.4.4)
15
+ oauth (0.4.4)
16
+ rake (0.8.7)
17
+ rspec (2.1.0)
18
+ rspec-core (~> 2.1.0)
19
+ rspec-expectations (~> 2.1.0)
20
+ rspec-mocks (~> 2.1.0)
21
+ rspec-core (2.1.0)
22
+ rspec-expectations (2.1.0)
23
+ diff-lcs (~> 1.1.2)
24
+ rspec-mocks (2.1.0)
30
25
 
31
26
  PLATFORMS
32
27
  ruby
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 Tim Morgan
1
+ Copyright (c) 2010 Tim Morgan
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -1,13 +1,15 @@
1
- require 'rake'
1
+ require 'rubygems'
2
+ require 'bundler'
2
3
  begin
3
- require 'bundler'
4
- rescue LoadError
5
- puts "Bundler is not installed; install with `gem install bundler`."
6
- exit 1
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
7
9
  end
10
+ require 'rake'
8
11
 
9
- Bundler.require :default
10
-
12
+ require 'jeweler'
11
13
  Jeweler::Tasks.new do |gem|
12
14
  gem.name = "dropbox"
13
15
  gem.summary = %Q{Ruby client library for the official Dropbox API}
@@ -15,12 +17,8 @@ Jeweler::Tasks.new do |gem|
15
17
  gem.email = "dropbox@timothymorgan.info"
16
18
  gem.homepage = "http://github.com/RISCfuture/dropbox"
17
19
  gem.authors = [ "Tim Morgan" ]
18
- gem.add_dependency 'oauth', '>= 0.3.6'
19
- gem.add_dependency 'json', '>= 1.2.0'
20
- gem.add_dependency 'multipart-post', '>= 1.0'
21
- gem.add_dependency 'mechanize', '>= 1.0.0'
22
20
  end
23
- Jeweler::GemcutterTasks.new
21
+ Jeweler::RubygemsDotOrgTasks.new
24
22
 
25
23
  require 'rspec/core/rake_task'
26
24
  RSpec::Core::RakeTask.new
@@ -36,4 +34,4 @@ Rake::RDocTask.new(:doc) do |rdoc|
36
34
  rdoc.rdoc_files.include('lib/**/*.rb')
37
35
  end
38
36
 
39
- task(default: :spec)
37
+ task :default => :spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.2.1
@@ -1,69 +1,67 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dropbox}
8
- s.version = "1.2.0"
8
+ s.version = "1.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tim Morgan"]
12
- s.date = %q{2010-10-31}
12
+ s.date = %q{2010-11-26}
13
13
  s.description = %q{An easy-to-use client library for the official Dropbox API.}
14
14
  s.email = %q{dropbox@timothymorgan.info}
15
15
  s.extra_rdoc_files = [
16
16
  "ChangeLog",
17
- "LICENSE",
18
- "README.rdoc"
17
+ "LICENSE",
18
+ "README.rdoc"
19
19
  ]
20
20
  s.files = [
21
21
  ".document",
22
- ".gitignore",
23
- ".rspec",
24
- "ChangeLog",
25
- "Gemfile",
26
- "Gemfile.lock",
27
- "LICENSE",
28
- "README.rdoc",
29
- "Rakefile",
30
- "VERSION",
31
- "dropbox.gemspec",
32
- "keys.json.example",
33
- "lib/dropbox.rb",
34
- "lib/dropbox/api.rb",
35
- "lib/dropbox/entry.rb",
36
- "lib/dropbox/event.rb",
37
- "lib/dropbox/extensions/array.rb",
38
- "lib/dropbox/extensions/hash.rb",
39
- "lib/dropbox/extensions/module.rb",
40
- "lib/dropbox/extensions/object.rb",
41
- "lib/dropbox/extensions/string.rb",
42
- "lib/dropbox/extensions/to_bool.rb",
43
- "lib/dropbox/memoization.rb",
44
- "lib/dropbox/revision.rb",
45
- "lib/dropbox/session.rb",
46
- "spec/dropbox/api_spec.rb",
47
- "spec/dropbox/entry_spec.rb",
48
- "spec/dropbox/event_spec.rb",
49
- "spec/dropbox/revision_spec.rb",
50
- "spec/dropbox/session_spec.rb",
51
- "spec/dropbox_spec.rb",
52
- "spec/spec_helper.rb"
22
+ ".rspec",
23
+ "ChangeLog",
24
+ "Gemfile",
25
+ "Gemfile.lock",
26
+ "LICENSE",
27
+ "README.rdoc",
28
+ "Rakefile",
29
+ "VERSION",
30
+ "dropbox.gemspec",
31
+ "keys.json.example",
32
+ "lib/dropbox.rb",
33
+ "lib/dropbox/api.rb",
34
+ "lib/dropbox/entry.rb",
35
+ "lib/dropbox/event.rb",
36
+ "lib/dropbox/extensions/array.rb",
37
+ "lib/dropbox/extensions/hash.rb",
38
+ "lib/dropbox/extensions/module.rb",
39
+ "lib/dropbox/extensions/object.rb",
40
+ "lib/dropbox/extensions/string.rb",
41
+ "lib/dropbox/extensions/to_bool.rb",
42
+ "lib/dropbox/memoization.rb",
43
+ "lib/dropbox/revision.rb",
44
+ "lib/dropbox/session.rb",
45
+ "spec/dropbox/api_spec.rb",
46
+ "spec/dropbox/entry_spec.rb",
47
+ "spec/dropbox/event_spec.rb",
48
+ "spec/dropbox/revision_spec.rb",
49
+ "spec/dropbox/session_spec.rb",
50
+ "spec/dropbox_spec.rb",
51
+ "spec/spec_helper.rb"
53
52
  ]
54
53
  s.homepage = %q{http://github.com/RISCfuture/dropbox}
55
- s.rdoc_options = ["--charset=UTF-8"]
56
54
  s.require_paths = ["lib"]
57
55
  s.rubygems_version = %q{1.3.7}
58
56
  s.summary = %q{Ruby client library for the official Dropbox API}
59
57
  s.test_files = [
60
58
  "spec/dropbox/api_spec.rb",
61
- "spec/dropbox/entry_spec.rb",
62
- "spec/dropbox/event_spec.rb",
63
- "spec/dropbox/revision_spec.rb",
64
- "spec/dropbox/session_spec.rb",
65
- "spec/dropbox_spec.rb",
66
- "spec/spec_helper.rb"
59
+ "spec/dropbox/entry_spec.rb",
60
+ "spec/dropbox/event_spec.rb",
61
+ "spec/dropbox/revision_spec.rb",
62
+ "spec/dropbox/session_spec.rb",
63
+ "spec/dropbox_spec.rb",
64
+ "spec/spec_helper.rb"
67
65
  ]
68
66
 
69
67
  if s.respond_to? :specification_version then
@@ -75,17 +73,23 @@ Gem::Specification.new do |s|
75
73
  s.add_runtime_dependency(%q<json>, [">= 1.2.0"])
76
74
  s.add_runtime_dependency(%q<multipart-post>, [">= 1.0"])
77
75
  s.add_runtime_dependency(%q<mechanize>, [">= 1.0.0"])
76
+ s.add_runtime_dependency(%q<jeweler>, [">= 0"])
77
+ s.add_runtime_dependency(%q<rspec>, [">= 2.0"])
78
78
  else
79
79
  s.add_dependency(%q<oauth>, [">= 0.3.6"])
80
80
  s.add_dependency(%q<json>, [">= 1.2.0"])
81
81
  s.add_dependency(%q<multipart-post>, [">= 1.0"])
82
82
  s.add_dependency(%q<mechanize>, [">= 1.0.0"])
83
+ s.add_dependency(%q<jeweler>, [">= 0"])
84
+ s.add_dependency(%q<rspec>, [">= 2.0"])
83
85
  end
84
86
  else
85
87
  s.add_dependency(%q<oauth>, [">= 0.3.6"])
86
88
  s.add_dependency(%q<json>, [">= 1.2.0"])
87
89
  s.add_dependency(%q<multipart-post>, [">= 1.0"])
88
90
  s.add_dependency(%q<mechanize>, [">= 1.0.0"])
91
+ s.add_dependency(%q<jeweler>, [">= 0"])
92
+ s.add_dependency(%q<rspec>, [">= 2.0"])
89
93
  end
90
94
  end
91
95
 
@@ -27,6 +27,10 @@ require 'dropbox/session'
27
27
  module Dropbox
28
28
  # The API version this client works with.
29
29
  VERSION = "0"
30
+ # The host to authenticate user.
31
+ AUTH_HOST = "http://www.dropbox.com"
32
+ # The SSL host to authenticate user.
33
+ AUTH_SSL_HOST = "https://www.dropbox.com"
30
34
  # The host serving API requests.
31
35
  HOST = "http://api.dropbox.com"
32
36
  # The SSL host serving API requests.
@@ -76,7 +76,7 @@ module Dropbox
76
76
  @proxy = options[:proxy] || ENV["HTTP_PROXY"] || ENV["http_proxy"]
77
77
  @proxy = nil if options[:noproxy].to_bool
78
78
  @consumer = OAuth::Consumer.new(oauth_key, oauth_secret,
79
- :site => (@ssl ? Dropbox::SSL_HOST : Dropbox::HOST),
79
+ :site => (@ssl ? Dropbox::AUTH_SSL_HOST : Dropbox::AUTH_HOST),
80
80
  :proxy => @proxy,
81
81
  :request_token_path => "/#{Dropbox::VERSION}/oauth/request_token",
82
82
  :authorize_path => "/#{Dropbox::VERSION}/oauth/authorize",
@@ -6,7 +6,7 @@ describe Dropbox::Session do
6
6
  key = 'test_key'
7
7
  secret = 'test_secret'
8
8
  options_hash = [ 'request_token', 'authorize', 'access_token' ].inject({}) { |hsh, cur| hsh["#{cur}_path".to_sym] = "/#{Dropbox::VERSION}/oauth/#{cur}" ; hsh }
9
- options_hash[:site] = Dropbox::HOST
9
+ options_hash[:site] = Dropbox::AUTH_HOST
10
10
  options_hash[:proxy] = nil
11
11
 
12
12
  consumer_mock = mock('OAuth::Consumer')
@@ -20,7 +20,7 @@ describe Dropbox::Session do
20
20
  key = 'test_key'
21
21
  secret = 'test_secret'
22
22
  options_hash = [ 'request_token', 'authorize', 'access_token' ].inject({}) { |hsh, cur| hsh["#{cur}_path".to_sym] = "/#{Dropbox::VERSION}/oauth/#{cur}" ; hsh }
23
- options_hash[:site] = Dropbox::SSL_HOST
23
+ options_hash[:site] = Dropbox::AUTH_SSL_HOST
24
24
  options_hash[:proxy] = nil
25
25
 
26
26
  consumer_mock = mock('OAuth::Consumer')
@@ -34,7 +34,7 @@ describe Dropbox::Session do
34
34
  key = 'test_key'
35
35
  secret = 'test_secret'
36
36
  options_hash = [ 'request_token', 'authorize', 'access_token' ].inject({}) { |hsh, cur| hsh["#{cur}_path".to_sym] = "/#{Dropbox::VERSION}/oauth/#{cur}" ; hsh }
37
- options_hash[:site] = Dropbox::HOST
37
+ options_hash[:site] = Dropbox::AUTH_HOST
38
38
  options_hash[:proxy] = proxy = mock('proxy')
39
39
 
40
40
  consumer_mock = mock('OAuth::Consumer')
@@ -1,3 +1,4 @@
1
+ require 'bundler'
1
2
  Bundler.require :default, :test
2
3
 
3
4
  $LOAD_PATH.unshift(File.dirname(__FILE__))
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 2
8
- - 0
9
- version: 1.2.0
8
+ - 1
9
+ version: 1.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tim Morgan
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-10-31 00:00:00 -07:00
17
+ date: 2010-11-26 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -76,6 +76,33 @@ dependencies:
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: *id004
79
+ - !ruby/object:Gem::Dependency
80
+ name: jeweler
81
+ requirement: &id005 !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ segments:
87
+ - 0
88
+ version: "0"
89
+ type: :runtime
90
+ prerelease: false
91
+ version_requirements: *id005
92
+ - !ruby/object:Gem::Dependency
93
+ name: rspec
94
+ requirement: &id006 !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ segments:
100
+ - 2
101
+ - 0
102
+ version: "2.0"
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: *id006
79
106
  description: An easy-to-use client library for the official Dropbox API.
80
107
  email: dropbox@timothymorgan.info
81
108
  executables: []
@@ -88,7 +115,6 @@ extra_rdoc_files:
88
115
  - README.rdoc
89
116
  files:
90
117
  - .document
91
- - .gitignore
92
118
  - .rspec
93
119
  - ChangeLog
94
120
  - Gemfile
@@ -124,8 +150,8 @@ homepage: http://github.com/RISCfuture/dropbox
124
150
  licenses: []
125
151
 
126
152
  post_install_message:
127
- rdoc_options:
128
- - --charset=UTF-8
153
+ rdoc_options: []
154
+
129
155
  require_paths:
130
156
  - lib
131
157
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -133,7 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
159
  requirements:
134
160
  - - ">="
135
161
  - !ruby/object:Gem::Version
136
- hash: -1468643052692495920
162
+ hash: -616371653592127053
137
163
  segments:
138
164
  - 0
139
165
  version: "0"
data/.gitignore DELETED
@@ -1,27 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## RUBYMINE
17
- .idea
18
-
19
- ## PROJECT::GENERAL
20
- coverage
21
- rdoc
22
- pkg
23
- .rvmrc
24
- .bundle
25
-
26
- ## PROJECT::SPECIFIC
27
- keys.json