cloudhdr_rails 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -136,7 +136,7 @@ class CloudhdrJob < ActiveRecord::Base
136
136
 
137
137
  def self.update_from_cloudhdr_generic_job_with_thumbnails(params)
138
138
  #debugger
139
- job = self.for_jobs.find_by_cloudhdr_job_id params[:job][:id]
139
+ job = self.find_by_cloudhdr_job_id params[:job][:id]
140
140
  image = job.image
141
141
 
142
142
  img_params = {}
@@ -876,6 +876,10 @@ module ActsAsCloudhdr
876
876
  "http://#{s3_bucket_name}.s3.amazonaws.com/#{s3_key}"
877
877
  end
878
878
 
879
+ def signed_s3_url options
880
+ s3_obj.url_for(:read, :expires => 10*60).to_s
881
+ end
882
+
879
883
  def s3_bucket_name
880
884
  self.class.s3_bucket_name
881
885
  end
@@ -1,3 +1,3 @@
1
1
  module CloudhdrRails
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudhdr_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-10 00:00:00.000000000 Z
12
+ date: 2013-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -209,7 +209,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
209
209
  version: '0'
210
210
  segments:
211
211
  - 0
212
- hash: -1738569091697543811
212
+ hash: 2451382812740672643
213
213
  required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  none: false
215
215
  requirements:
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
218
  version: '0'
219
219
  segments:
220
220
  - 0
221
- hash: -1738569091697543811
221
+ hash: 2451382812740672643
222
222
  requirements: []
223
223
  rubyforge_project:
224
224
  rubygems_version: 1.8.25