phocoder-rails 0.0.52 → 0.0.53

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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/app/models/encodable_job.rb +3 -1
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1,4 +1,4 @@
1
- 0.0.52
1
+ 0.0.53
2
2
 
3
3
 
4
4
 
@@ -181,7 +181,9 @@ class EncodableJob < ActiveRecord::Base
181
181
  encodable = params[:class].constantize.find params[:id]
182
182
  end
183
183
  puts "encodable = #{encodable.to_json}"
184
- encodable.filename = File.basename(params[:output][:url]) if encodable.filename.blank?
184
+ if encodable.respond_to?(:filename) && encodable.filename.blank?
185
+ encodable.filename = File.basename(params[:output][:url])
186
+ end
185
187
  if ActsAsPhocodable.storeage_mode == "local"
186
188
  encodable.save_url(params[:output][:url])
187
189
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phocoder-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.52
4
+ version: 0.0.53
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-01-03 00:00:00.000000000 Z
12
+ date: 2013-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -425,7 +425,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
425
425
  version: '0'
426
426
  segments:
427
427
  - 0
428
- hash: 4213961976185896641
428
+ hash: -3431241612581879020
429
429
  required_rubygems_version: !ruby/object:Gem::Requirement
430
430
  none: false
431
431
  requirements:
@@ -434,7 +434,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
434
434
  version: '0'
435
435
  segments:
436
436
  - 0
437
- hash: 4213961976185896641
437
+ hash: -3431241612581879020
438
438
  requirements: []
439
439
  rubyforge_project:
440
440
  rubygems_version: 1.8.24