paperclip-fedora 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,11 +44,11 @@ module Paperclip
44
44
  def to_file(style=default_style)
45
45
  return @queued_for_write[style.to_s] if @queued_for_write[style.to_s]
46
46
  ds = fedora_object.datastreams[style.to_s]
47
- file = Tempfile.new([ds.label, style.to_s])
47
+ file = Tempfile.new([fedora_object.label, style.to_s])
48
48
  file.binmode
49
- file.write(ds.file)
49
+ file.write(ds.read)
50
50
  file.rewind
51
- return file
51
+ file
52
52
  end
53
53
 
54
54
  def flush_writes
@@ -1,5 +1,5 @@
1
1
  module Paperclip
2
2
  module Fedora
3
- VERSION = "0.2.8"
3
+ VERSION = "0.2.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-fedora
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-29 00:00:00.000000000Z
12
+ date: 2011-10-04 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: paperclip
16
- requirement: &2168574360 !ruby/object:Gem::Requirement
16
+ requirement: &2156789840 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2168574360
24
+ version_requirements: *2156789840
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rubydora
27
- requirement: &2168573420 !ruby/object:Gem::Requirement
27
+ requirement: &2156789420 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2168573420
35
+ version_requirements: *2156789420
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &2168572400 !ruby/object:Gem::Requirement
38
+ requirement: &2156789000 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2168572400
46
+ version_requirements: *2156789000
47
47
  description: Adds Fedora Commons storage support for the Paperclip gem.
48
48
  email:
49
49
  - jaredsartin@gmail.com
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project: paperclip-fedora
84
- rubygems_version: 1.8.10
84
+ rubygems_version: 1.8.6
85
85
  signing_key:
86
86
  specification_version: 3
87
87
  summary: Fedora Commons storage support for paperclip file attachment