grip 0.6.8 → 0.6.9

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.8
1
+ 0.6.9
data/grip.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{grip}
8
- s.version = "0.6.8"
8
+ s.version = "0.6.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["twoism", "jnunemaker"]
@@ -54,7 +54,10 @@ module Grip
54
54
  new_attachment.owner_type = self.class.to_s
55
55
  new_attachment.file_name = File.basename(new_file.path)
56
56
  new_attachment.file_size = File.size(new_file.path)
57
- new_attachment.content_type = MIME::Types.type_for(new_file.path)[0].content_type
57
+
58
+ # ruby 1.9 mime type hack
59
+ new_attachment.content_type = MIME::Types.type_for(new_file.path)[0].content_type rescue MIME::Types.type_for(new_file.path)
60
+
58
61
  new_attachment.file = new_file
59
62
  new_attachment.variants = opts[:variants] || {}
60
63
  new_attachment.save!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - twoism