paperclipdropbox 0.1.1 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Paperclipdropbox
2
- VERSION = "0.1.1"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -80,6 +80,7 @@ module Paperclip
80
80
  @dropboxsession = Dropbox::Session.deserialize(File.read("#{Rails.root}/config/dropboxsession.yml"))
81
81
  end
82
82
  end
83
+ @dropboxsession.mode = :dropbox
83
84
  @dropboxsession
84
85
  else
85
86
  log("reading Dropbox Session")
@@ -16,8 +16,8 @@ namespace :paperclipdropbox do
16
16
 
17
17
  @dropbox_user = @options[:dropbox_user]
18
18
  @dropbox_password = @options[:dropbox_password]
19
- @dropbox_key = '8ti7qntpcysl91j'
20
- @dropbox_secret = 'i0tshr4cpd1pa4e'
19
+ @dropbox_key = @options[:dropbox_key] ||'8ti7qntpcysl91j'
20
+ @dropbox_secret = @options[:dropbox_secret] || 'i0tshr4cpd1pa4e'
21
21
 
22
22
  @dropboxsession = Dropbox::Session.new(@dropbox_key, @dropbox_secret)
23
23
  @dropboxsession.mode = :dropbox
@@ -28,7 +28,7 @@ namespace :paperclipdropbox do
28
28
  puts ""
29
29
  puts ""
30
30
  begin
31
- @dropboxsession.authorize!
31
+ @dropboxsession.authorize
32
32
 
33
33
  puts "Authorized - #{@dropboxsession.authorized?}"
34
34
  rescue
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.email = ["paul@ketelle.com"]
11
11
  s.homepage = "https://github.com/dripster82/paperclipdropbox"
12
12
  s.summary = %q{Dropbox storage support for paperclip file attachment}
13
- s.description = %q{Dropbox storage support for paperclip file attachment}
13
+ s.description = %q{Adds Dropbox storage support for the Paperclip gem. Dropbox account required.}
14
14
 
15
15
  s.rubyforge_project = "paperclipdropbox"
16
16
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: paperclipdropbox
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 1.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paul Ketelle
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-19 00:00:00 Z
13
+ date: 2011-08-25 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: paperclip
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: "0"
35
35
  type: :runtime
36
36
  version_requirements: *id002
37
- description: Dropbox storage support for paperclip file attachment
37
+ description: Adds Dropbox storage support for the Paperclip gem. Dropbox account required.
38
38
  email:
39
39
  - paul@ketelle.com
40
40
  executables: []
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  requirements: []
77
77
 
78
78
  rubyforge_project: paperclipdropbox
79
- rubygems_version: 1.7.2
79
+ rubygems_version: 1.8.8
80
80
  signing_key:
81
81
  specification_version: 3
82
82
  summary: Dropbox storage support for paperclip file attachment