dewey 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGELOG.md +4 -0
  2. data/README.md +4 -0
  3. data/lib/dewey/mime.rb +1 -1
  4. metadata +2 -2
@@ -3,6 +3,10 @@
3
3
  Features:
4
4
 
5
5
  - Removed dependency on xmlsimple. Processing was so minimal it was pointless.
6
+
7
+ Bugfixes:
8
+
9
+ - Handle files with no extension
6
10
 
7
11
  ---
8
12
  ## 0.1.1 (June 28, 2010)
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  Dewey allows you to simply upload, download and delete files from your Google
2
2
  Docs account. Let Google do all of the hard work of converting your documents!
3
3
 
4
+ # Note
5
+
6
+ Dewey is in alpha. It is not recommended you use this in production code.
7
+
4
8
  ## Usage
5
9
 
6
10
  First, create a new Dewey::Document instance using your google docs account and
@@ -36,7 +36,7 @@ module Dewey
36
36
  # types, when gathered from +file+ require extra coercion and will be handled
37
37
  # automatically.
38
38
  def self.mime_type(file)
39
- type = (file.path.match(/\.(\w+)/)[1]).downcase
39
+ type = (file.path.match(/\.(\w+)/)[1] rescue '').downcase
40
40
  case type
41
41
  when /csv/ then SPREADSHEET_MIMETYPES[:csv]
42
42
  when /doc$/ then DOCUMENT_MIMETYPES[:doc]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Parker Selbert