postageapp 1.0.12 → 1.0.13

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 The Working Group, Inc
1
+ Copyright (c) 2011 Oleg Khabarov, The Working Group, Inc
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [PostageApp](http://postageapp.com) Ruby Gem [![Build Status](http://travis-ci.org/postageapp/postageapp-ruby.png)](http://travis-ci.org/postageapp/postageapp-ruby)
1
+ # [PostageApp](http://postageapp.com) Ruby Gem [![Build Status](https://secure.travis-ci.org/postageapp/postageapp-ruby.png)](http://travis-ci.org/postageapp/postageapp-ruby)
2
2
 
3
3
  This is the gem used to integrate Ruby apps with PostageApp service.
4
4
  Personalized, mass email sending can be offloaded to PostageApp via JSON based API.
@@ -180,4 +180,4 @@ For projects other than Rails you'll need to tell where there project_root is at
180
180
 
181
181
  Copyright
182
182
  ---------
183
- (C) 2010 [The Working Group, Inc](http://www.twg.ca/)
183
+ (C) 2011 Oleg Khabarov, [The Working Group, Inc](http://www.twg.ca/)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.12
1
+ 1.0.13
@@ -5,7 +5,7 @@ module PostageApp::FailedRequest
5
5
  def self.store(request)
6
6
  return false if !store_path || !PostageApp.configuration.requests_to_resend.member?(request.method.to_s)
7
7
 
8
- open(file_path(request.uid), 'w') do |f|
8
+ open(file_path(request.uid), 'wb') do |f|
9
9
  f.write(Marshal.dump(request))
10
10
  end unless File.exists?(file_path(request.uid))
11
11
 
@@ -72,7 +72,7 @@ class PostageApp::Request
72
72
  # Unique ID of the request
73
73
  def uid(reload = false)
74
74
  @uid = nil if reload
75
- @uid ||= Digest::SHA1.hexdigest("#{Time.now.to_f}#{self.arguments}")
75
+ @uid ||= Digest::SHA1.hexdigest("#{rand}#{Time.now.to_f}#{self.arguments}")
76
76
  end
77
77
 
78
78
  # Arguments need to be appended with some some stuff before it's ready to be send out
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{postageapp}
8
- s.version = "1.0.12"
8
+ s.version = "1.0.13"
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{2011-09-14}
12
+ s.date = %q{2011-09-15}
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 = [
@@ -17,7 +17,6 @@ Gem::Specification.new do |s|
17
17
  "README.md"
18
18
  ]
19
19
  s.files = [
20
- ".document",
21
20
  ".travis.yml",
22
21
  "Gemfile",
23
22
  "LICENSE",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postageapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-14 00:00:00.000000000 -04:00
12
+ date: 2011-09-15 00:00:00.000000000 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
17
- requirement: &70287819364600 !ruby/object:Gem::Requirement
17
+ requirement: &70185008567600 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70287819364600
25
+ version_requirements: *70185008567600
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: jeweler
28
- requirement: &70287819362900 !ruby/object:Gem::Requirement
28
+ requirement: &70185008565500 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *70287819362900
36
+ version_requirements: *70185008565500
37
37
  description: Gem that interfaces with PostageApp.com service to send emails from web
38
38
  apps
39
39
  email: oleg@twg.ca
@@ -43,7 +43,6 @@ extra_rdoc_files:
43
43
  - LICENSE
44
44
  - README.md
45
45
  files:
46
- - .document
47
46
  - .travis.yml
48
47
  - Gemfile
49
48
  - LICENSE
@@ -116,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
115
  version: '0'
117
116
  segments:
118
117
  - 0
119
- hash: -1447981717329273579
118
+ hash: -1713293234131232485
120
119
  required_rubygems_version: !ruby/object:Gem::Requirement
121
120
  none: false
122
121
  requirements:
data/.document DELETED
@@ -1,5 +0,0 @@
1
- README.md
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE