postageapp 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.5
1
+ 1.0.6
@@ -1,6 +1,6 @@
1
1
  class PostageApp::Configuration
2
2
 
3
- # The API key for your postageapp.com project
3
+ # The API key of your postageapp.com project
4
4
  attr_accessor :api_key
5
5
 
6
6
  # +true+ for https, +false+ for http connections (default: is +true+)
@@ -26,7 +26,7 @@ module PostageApp::FailedRequest
26
26
  receipt_response = PostageApp::Request.new(:get_message_receipt, :uid => filename).send(true)
27
27
  if receipt_response.ok?
28
28
  PostageApp.logger.info "NOT RESENDING FAILED REQUEST [#{filename}]"
29
- File.delete(file_path(filename))
29
+ File.delete(file_path(filename)) rescue nil
30
30
 
31
31
  elsif receipt_response.not_found?
32
32
  PostageApp.logger.info "RESENDING FAILED REQUEST [#{filename}]"
@@ -34,7 +34,7 @@ module PostageApp::FailedRequest
34
34
 
35
35
  # Not a fail, so we can remove this file, if it was then
36
36
  # there will be another attempt to resend
37
- File.delete(file_path(filename)) if !response.fail?
37
+ File.delete(file_path(filename)) rescue nil if !response.fail?
38
38
  end
39
39
  end
40
40
 
data/postageapp.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{postageapp}
8
- s.version = "1.0.5"
8
+ s.version = "1.0.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Oleg Khabarov, The Working Group Inc"]
12
- s.date = %q{2010-07-30}
12
+ s.date = %q{2010-09-08}
13
13
  s.description = %q{Gem that interfaces with PostageApp.com service to send emails from web apps}
14
14
  s.email = %q{oleg@twg.ca}
15
15
  s.extra_rdoc_files = [
@@ -1,6 +1,6 @@
1
1
  require File.expand_path('../helper', __FILE__)
2
2
 
3
- require 'postageapp/rails'
3
+ require File.expand_path('../../lib/postageapp/rails/rails', __FILE__)
4
4
 
5
5
  class RailsInitializationTest < Test::Unit::TestCase
6
6
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postageapp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 5
10
- version: 1.0.5
9
+ - 6
10
+ version: 1.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Oleg Khabarov, The Working Group Inc
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-30 00:00:00 -04:00
18
+ date: 2010-09-08 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency