jgm-cloudlib 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/cloudlib-web +2 -0
  2. data/cloudlib.gemspec +1 -1
  3. metadata +1 -1
data/bin/cloudlib-web CHANGED
@@ -3,6 +3,7 @@ require 'rubygems'
3
3
  require 'digest/sha1'
4
4
  require 'sinatra' # sinatra gem
5
5
  require 'tempfile'
6
+ require 'fileutils'
6
7
  require 'cloudlib'
7
8
  require 'highline/import' # highline gem
8
9
 
@@ -51,6 +52,7 @@ post '/upload' do
51
52
  tempfilepath = tempfile.path
52
53
  tempfile.close
53
54
  entry = Cloudlib::Entry.from_file(tempfilepath, params[:fileToUpload][:filename])
55
+ FileUtils.rm tempfilepath
54
56
  set_attributes_from_form(entry)
55
57
  entry.save
56
58
  redirect "/"
data/cloudlib.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cloudlib"
3
- s.version = "0.2.5"
3
+ s.version = "0.2.6"
4
4
  s.date = "2008-12-26"
5
5
  s.summary = "Tools for maintaining a library of books and articles in Amazon S3 and SimpleDB"
6
6
  s.email = "jgm@berkeley.edu"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jgm-cloudlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - John MacFarlane