postmark-mitt 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.9
1
+ 0.0.10
data/lib/postmark/mitt.rb CHANGED
@@ -136,16 +136,24 @@ module Postmark
136
136
 
137
137
  class MittTempfile < Tempfile
138
138
  def initialize(basename, content_type, tmpdir=Dir::tmpdir)
139
- super(basename, tmpdir, :encoding => 'ascii-8bit')
139
+ if Postmark.ruby19?
140
+ super(basename, tmpdir, :encoding => 'ascii-8bit')
141
+ else
142
+ super(basename, tmpdir)
143
+ end
140
144
  @basename = basename
141
145
  @content_type = content_type
142
146
  end
143
147
 
144
- # The content type of the "uploaded" file
148
+ # the content type of the "uploaded" file
145
149
  attr_accessor :content_type
146
150
 
147
151
  def original_filename
148
- @basename || File.basename(path)
152
+ @basename || file.basename(path)
149
153
  end
150
154
  end
155
+
156
+ def self.ruby19?
157
+ RUBY_VERSION > "1.9"
158
+ end
151
159
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "postmark-mitt"
8
- s.version = "0.0.9"
8
+ s.version = "0.0.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Randy Schmidt"]
12
- s.date = "2012-05-09"
12
+ s.date = "2012-05-22"
13
13
  s.description = "This gem will help you take JSON posted to your app from incoming email through Postmark. It will turn it back into an object with methods to help inspect the contents of the email"
14
14
  s.email = "randy@forge38.com"
15
15
  s.extra_rdoc_files = [
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
33
33
  s.homepage = "http://github.com/r38y/postmark-mitt"
34
34
  s.licenses = ["MIT"]
35
35
  s.require_paths = ["lib"]
36
- s.rubygems_version = "1.8.23"
36
+ s.rubygems_version = "1.8.22"
37
37
  s.summary = "Mitt for incoming email through Postmark"
38
38
 
39
39
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,106 +1,107 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: postmark-mitt
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.9
3
+ version: !ruby/object:Gem::Version
4
+ hash: 11
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 10
10
+ version: 0.0.10
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Randy Schmidt
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-05-09 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2012-05-22 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: json_pure
16
- requirement: !ruby/object:Gem::Requirement
22
+ version_requirements: &id001 !ruby/object:Gem::Requirement
17
23
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ hash: 3
28
+ segments:
29
+ - 0
30
+ version: "0"
22
31
  type: :runtime
23
32
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
33
+ requirement: *id001
34
+ - !ruby/object:Gem::Dependency
31
35
  name: multi_json
32
- requirement: !ruby/object:Gem::Requirement
36
+ version_requirements: &id002 !ruby/object:Gem::Requirement
33
37
  none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ hash: 3
42
+ segments:
43
+ - 0
44
+ version: "0"
38
45
  type: :runtime
39
46
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
+ requirement: *id002
48
+ - !ruby/object:Gem::Dependency
47
49
  name: rspec
48
- requirement: !ruby/object:Gem::Requirement
50
+ version_requirements: &id003 !ruby/object:Gem::Requirement
49
51
  none: false
50
- requirements:
52
+ requirements:
51
53
  - - ~>
52
- - !ruby/object:Gem::Version
54
+ - !ruby/object:Gem::Version
55
+ hash: 43
56
+ segments:
57
+ - 2
58
+ - 9
59
+ - 0
53
60
  version: 2.9.0
54
61
  type: :development
55
62
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: 2.9.0
62
- - !ruby/object:Gem::Dependency
63
+ requirement: *id003
64
+ - !ruby/object:Gem::Dependency
63
65
  name: bundler
64
- requirement: !ruby/object:Gem::Requirement
66
+ version_requirements: &id004 !ruby/object:Gem::Requirement
65
67
  none: false
66
- requirements:
68
+ requirements:
67
69
  - - ~>
68
- - !ruby/object:Gem::Version
69
- version: '1.0'
70
+ - !ruby/object:Gem::Version
71
+ hash: 15
72
+ segments:
73
+ - 1
74
+ - 0
75
+ version: "1.0"
70
76
  type: :development
71
77
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: '1.0'
78
- - !ruby/object:Gem::Dependency
78
+ requirement: *id004
79
+ - !ruby/object:Gem::Dependency
79
80
  name: jeweler
80
- requirement: !ruby/object:Gem::Requirement
81
+ version_requirements: &id005 !ruby/object:Gem::Requirement
81
82
  none: false
82
- requirements:
83
+ requirements:
83
84
  - - ~>
84
- - !ruby/object:Gem::Version
85
+ - !ruby/object:Gem::Version
86
+ hash: 49
87
+ segments:
88
+ - 1
89
+ - 8
90
+ - 3
85
91
  version: 1.8.3
86
92
  type: :development
87
93
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ~>
92
- - !ruby/object:Gem::Version
93
- version: 1.8.3
94
- description: This gem will help you take JSON posted to your app from incoming email
95
- through Postmark. It will turn it back into an object with methods to help inspect
96
- the contents of the email
94
+ requirement: *id005
95
+ description: This gem will help you take JSON posted to your app from incoming email through Postmark. It will turn it back into an object with methods to help inspect the contents of the email
97
96
  email: randy@forge38.com
98
97
  executables: []
98
+
99
99
  extensions: []
100
- extra_rdoc_files:
100
+
101
+ extra_rdoc_files:
101
102
  - LICENSE
102
103
  - README.rdoc
103
- files:
104
+ files:
104
105
  - Gemfile
105
106
  - LICENSE
106
107
  - README.rdoc
@@ -114,31 +115,37 @@ files:
114
115
  - spec/postmark/mitt_spec.rb
115
116
  - spec/spec_helper.rb
116
117
  homepage: http://github.com/r38y/postmark-mitt
117
- licenses:
118
+ licenses:
118
119
  - MIT
119
120
  post_install_message:
120
121
  rdoc_options: []
121
- require_paths:
122
+
123
+ require_paths:
122
124
  - lib
123
- required_ruby_version: !ruby/object:Gem::Requirement
125
+ required_ruby_version: !ruby/object:Gem::Requirement
124
126
  none: false
125
- requirements:
126
- - - ! '>='
127
- - !ruby/object:Gem::Version
128
- version: '0'
129
- segments:
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ hash: 3
131
+ segments:
130
132
  - 0
131
- hash: 3531988289335183197
132
- required_rubygems_version: !ruby/object:Gem::Requirement
133
+ version: "0"
134
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
135
  none: false
134
- requirements:
135
- - - ! '>='
136
- - !ruby/object:Gem::Version
137
- version: '0'
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ hash: 3
140
+ segments:
141
+ - 0
142
+ version: "0"
138
143
  requirements: []
144
+
139
145
  rubyforge_project:
140
- rubygems_version: 1.8.23
146
+ rubygems_version: 1.8.22
141
147
  signing_key:
142
148
  specification_version: 3
143
149
  summary: Mitt for incoming email through Postmark
144
150
  test_files: []
151
+