mdarby-scribd_fu 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +1 -1
- data/lib/scribd_fu/attachment_fu.rb +5 -1
- data/scribd_fu.gemspec +2 -2
- metadata +2 -2
data/README.textile
CHANGED
@@ -32,7 +32,7 @@ h2. How to Use
|
|
32
32
|
|
33
33
|
* Sign up for "Scribd.com's API access":http://www.scribd.com/developers/signup_api (it's totally free)
|
34
34
|
|
35
|
-
* Run @./script/generate
|
35
|
+
* Run @./script/generate scribd_fu@ and fill out @config/scribd_fu.yml@ file with your Scribd account info.
|
36
36
|
|
37
37
|
* If you're using AttachmentFu, add @has_ipaper_and_uses 'AttachmentFu'@ to your model that uses ScribdFu
|
38
38
|
|
@@ -28,7 +28,11 @@ module ScribdFu
|
|
28
28
|
|
29
29
|
# Yields the correct path to the file, either the local filename or the S3 URL.
|
30
30
|
def file_path
|
31
|
-
public_filename
|
31
|
+
if public_filename.starts_with?("http://s3.amazonaws.com/")
|
32
|
+
public_filename
|
33
|
+
else
|
34
|
+
"#{RAILS_ROOT}/public#{public_filename}"
|
35
|
+
end
|
32
36
|
end
|
33
37
|
end
|
34
38
|
|
data/scribd_fu.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "scribd_fu"
|
3
|
-
s.version = "2.0.
|
4
|
-
s.date = "2009-
|
3
|
+
s.version = "2.0.2"
|
4
|
+
s.date = "2009-04-02"
|
5
5
|
s.summary = "Quick and easy interactions with Scribd's iPaper service"
|
6
6
|
s.email = "matt@matt-darby.com"
|
7
7
|
s.homepage = "http://github.com/mdarby/scribd_fu/tree/master"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mdarby-scribd_fu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Darby
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-04-02 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|