populate-me 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -71,7 +71,8 @@ module PopulateMe
71
71
  def convert(col, convert_steps, style)
72
72
  return if @doc[col].nil?
73
73
  if @temp_attachments.nil? || @temp_attachments[col].nil?
74
- f = model.gridfs.get(@doc[col]['original'])
74
+ f = model.gridfs.get(@doc[col]['original']) rescue nil
75
+ return if f.nil?
75
76
  return unless f.content_type[/^image\//]
76
77
  src = Tempfile.new('MongoStash_src')
77
78
  src.binmode
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'populate-me'
3
- s.version = "0.0.3"
3
+ s.version = "0.0.4"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.summary = "ALPHA !!! Populate Me is relatively complete but simple CMS"
6
6
  s.description = "ALPHA !!! Populate Me is relatively complete but simple CMS. It includes a Rack middleware for putting in your Rack stack, and a bespoke MongoDB ODM. But Populate Me is not really finished yet."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: populate-me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
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: 2012-09-28 00:00:00.000000000 Z
12
+ date: 2012-10-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack-golem