jpmobile 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +3 -3
  2. data/lib/jpmobile/mail.rb +42 -0
  3. metadata +144 -239
@@ -1,5 +1,5 @@
1
- ---
2
- :build:
1
+ ---
3
2
  :major: 1
4
- :patch: 0
5
3
  :minor: 0
4
+ :patch: 1
5
+ :build: !!null
@@ -406,6 +406,48 @@ module Mail
406
406
  alias_method :encoded, :encoded_with_jpmobile
407
407
  end
408
408
 
409
+ class ContentTypeElement # :nodoc:
410
+ def initialize_with_jpmobile(string)
411
+ if m = string.match(/\A(.*?)(name|filename)=("|')(.+)("|')(.*?)\z/) and
412
+ m[4].each_byte.detect { |b| (b == 0 || b > 127)}
413
+ name = [m[4]].pack('m').strip
414
+ string = "#{m[1]}#{m[2]}=#{m[3]}#{name}#{m[5]}#{m[6]}"
415
+ end
416
+
417
+ initialize_without_jpmobile(string)
418
+ end
419
+ alias_method :initialize_without_jpmobile, :initialize
420
+ alias_method :initialize, :initialize_with_jpmobile
421
+ end
422
+
423
+ class ContentDispositionElement # :nodoc:
424
+ def initialize_with_jpmobile(string)
425
+ if m = string.match(/\A(.*?)(name|filename)=("|')(.+)("|')(.*?)\z/) and
426
+ m[4].each_byte.detect { |b| (b == 0 || b > 127)}
427
+ name = [m[4]].pack('m').strip
428
+ string = "#{m[1]}#{m[2]}=#{m[3]}#{name}#{m[5]}#{m[6]}"
429
+ end
430
+
431
+ initialize_without_jpmobile(string)
432
+ end
433
+ alias_method :initialize_without_jpmobile, :initialize
434
+ alias_method :initialize, :initialize_with_jpmobile
435
+ end
436
+
437
+ class ContentLocationElement # :nodoc:
438
+ def initialize_with_jpmobile(string)
439
+ if m = string.match(/\A(.*?)(name|filename)=("|')(.+)("|')(.*?)\z/) and
440
+ m[4].each_byte.detect { |b| (b == 0 || b > 127)}
441
+ name = [m[4]].pack('m').strip
442
+ string = "#{m[1]}#{m[2]}=#{m[3]}#{name}#{m[5]}#{m[6]}"
443
+ end
444
+
445
+ initialize_without_jpmobile(string)
446
+ end
447
+ alias_method :initialize_without_jpmobile, :initialize
448
+ alias_method :initialize, :initialize_with_jpmobile
449
+ end
450
+
409
451
  class Sendmail
410
452
  def Sendmail.call(path, arguments, destinations, mail)
411
453
  encoded_mail = mail.encoded
metadata CHANGED
@@ -1,296 +1,212 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: jpmobile
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 0
10
- version: 1.0.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Yoji Shidara
14
9
  - Shin-ichiro OGAWA
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2011-07-26 00:00:00 +09:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
13
+ date: 2011-07-28 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
23
16
  name: jeweler
24
- version_requirements: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &19537140 !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
33
- prerelease: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
34
23
  type: :development
35
- requirement: *id001
36
- - !ruby/object:Gem::Dependency
24
+ prerelease: false
25
+ version_requirements: *19537140
26
+ - !ruby/object:Gem::Dependency
37
27
  name: rails
38
- version_requirements: &id002 !ruby/object:Gem::Requirement
28
+ requirement: &19536040 !ruby/object:Gem::Requirement
39
29
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 21
44
- segments:
45
- - 3
46
- - 0
47
- - 9
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
48
33
  version: 3.0.9
49
- prerelease: false
50
34
  type: :development
51
- requirement: *id002
52
- - !ruby/object:Gem::Dependency
35
+ prerelease: false
36
+ version_requirements: *19536040
37
+ - !ruby/object:Gem::Dependency
53
38
  name: rspec
54
- version_requirements: &id003 !ruby/object:Gem::Requirement
39
+ requirement: &19534560 !ruby/object:Gem::Requirement
55
40
  none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 23
60
- segments:
61
- - 2
62
- - 6
63
- - 0
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
64
44
  version: 2.6.0
65
- prerelease: false
66
45
  type: :development
67
- requirement: *id003
68
- - !ruby/object:Gem::Dependency
46
+ prerelease: false
47
+ version_requirements: *19534560
48
+ - !ruby/object:Gem::Dependency
69
49
  name: rspec-rails
70
- version_requirements: &id004 !ruby/object:Gem::Requirement
50
+ requirement: &19532780 !ruby/object:Gem::Requirement
71
51
  none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 23
76
- segments:
77
- - 2
78
- - 6
79
- - 0
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
80
55
  version: 2.6.0
81
- prerelease: false
82
56
  type: :development
83
- requirement: *id004
84
- - !ruby/object:Gem::Dependency
57
+ prerelease: false
58
+ version_requirements: *19532780
59
+ - !ruby/object:Gem::Dependency
85
60
  name: webrat
86
- version_requirements: &id005 !ruby/object:Gem::Requirement
61
+ requirement: &19529480 !ruby/object:Gem::Requirement
87
62
  none: false
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- hash: 3
92
- segments:
93
- - 0
94
- version: "0"
95
- prerelease: false
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
96
67
  type: :development
97
- requirement: *id005
98
- - !ruby/object:Gem::Dependency
68
+ prerelease: false
69
+ version_requirements: *19529480
70
+ - !ruby/object:Gem::Dependency
99
71
  name: geokit
100
- version_requirements: &id006 !ruby/object:Gem::Requirement
72
+ requirement: &19525380 !ruby/object:Gem::Requirement
101
73
  none: false
102
- requirements:
103
- - - ">="
104
- - !ruby/object:Gem::Version
105
- hash: 3
106
- segments:
107
- - 0
108
- version: "0"
109
- prerelease: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
110
78
  type: :development
111
- requirement: *id006
112
- - !ruby/object:Gem::Dependency
79
+ prerelease: false
80
+ version_requirements: *19525380
81
+ - !ruby/object:Gem::Dependency
113
82
  name: sqlite3-ruby
114
- version_requirements: &id007 !ruby/object:Gem::Requirement
83
+ requirement: &19524260 !ruby/object:Gem::Requirement
115
84
  none: false
116
- requirements:
117
- - - ">="
118
- - !ruby/object:Gem::Version
119
- hash: 3
120
- segments:
121
- - 0
122
- version: "0"
123
- prerelease: false
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
124
89
  type: :development
125
- requirement: *id007
126
- - !ruby/object:Gem::Dependency
90
+ prerelease: false
91
+ version_requirements: *19524260
92
+ - !ruby/object:Gem::Dependency
127
93
  name: hpricot
128
- version_requirements: &id008 !ruby/object:Gem::Requirement
94
+ requirement: &19521980 !ruby/object:Gem::Requirement
129
95
  none: false
130
- requirements:
131
- - - ">="
132
- - !ruby/object:Gem::Version
133
- hash: 3
134
- segments:
135
- - 0
136
- version: "0"
137
- prerelease: false
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
138
100
  type: :development
139
- requirement: *id008
140
- - !ruby/object:Gem::Dependency
101
+ prerelease: false
102
+ version_requirements: *19521980
103
+ - !ruby/object:Gem::Dependency
141
104
  name: jeweler
142
- version_requirements: &id009 !ruby/object:Gem::Requirement
105
+ requirement: &19520200 !ruby/object:Gem::Requirement
143
106
  none: false
144
- requirements:
145
- - - ">="
146
- - !ruby/object:Gem::Version
147
- hash: 1
148
- segments:
149
- - 1
150
- - 5
151
- - 1
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
152
110
  version: 1.5.1
153
- prerelease: false
154
111
  type: :development
155
- requirement: *id009
156
- - !ruby/object:Gem::Dependency
112
+ prerelease: false
113
+ version_requirements: *19520200
114
+ - !ruby/object:Gem::Dependency
157
115
  name: rspec
158
- version_requirements: &id010 !ruby/object:Gem::Requirement
116
+ requirement: &19519040 !ruby/object:Gem::Requirement
159
117
  none: false
160
- requirements:
161
- - - ">="
162
- - !ruby/object:Gem::Version
163
- hash: 3
164
- segments:
165
- - 2
166
- - 3
167
- - 0
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
168
121
  version: 2.3.0
169
- prerelease: false
170
122
  type: :development
171
- requirement: *id010
172
- - !ruby/object:Gem::Dependency
123
+ prerelease: false
124
+ version_requirements: *19519040
125
+ - !ruby/object:Gem::Dependency
173
126
  name: rspec-rails
174
- version_requirements: &id011 !ruby/object:Gem::Requirement
127
+ requirement: &19518360 !ruby/object:Gem::Requirement
175
128
  none: false
176
- requirements:
177
- - - ">="
178
- - !ruby/object:Gem::Version
179
- hash: 3
180
- segments:
181
- - 2
182
- - 3
183
- - 0
129
+ requirements:
130
+ - - ! '>='
131
+ - !ruby/object:Gem::Version
184
132
  version: 2.3.0
185
- prerelease: false
186
133
  type: :development
187
- requirement: *id011
188
- - !ruby/object:Gem::Dependency
134
+ prerelease: false
135
+ version_requirements: *19518360
136
+ - !ruby/object:Gem::Dependency
189
137
  name: webrat
190
- version_requirements: &id012 !ruby/object:Gem::Requirement
138
+ requirement: &19516720 !ruby/object:Gem::Requirement
191
139
  none: false
192
- requirements:
193
- - - ">="
194
- - !ruby/object:Gem::Version
195
- hash: 7
196
- segments:
197
- - 0
198
- - 7
199
- - 2
140
+ requirements:
141
+ - - ! '>='
142
+ - !ruby/object:Gem::Version
200
143
  version: 0.7.2
201
- prerelease: false
202
144
  type: :development
203
- requirement: *id012
204
- - !ruby/object:Gem::Dependency
145
+ prerelease: false
146
+ version_requirements: *19516720
147
+ - !ruby/object:Gem::Dependency
205
148
  name: geokit
206
- version_requirements: &id013 !ruby/object:Gem::Requirement
149
+ requirement: &19515300 !ruby/object:Gem::Requirement
207
150
  none: false
208
- requirements:
209
- - - ">="
210
- - !ruby/object:Gem::Version
211
- hash: 3
212
- segments:
213
- - 1
214
- - 5
215
- - 0
151
+ requirements:
152
+ - - ! '>='
153
+ - !ruby/object:Gem::Version
216
154
  version: 1.5.0
217
- prerelease: false
218
155
  type: :development
219
- requirement: *id013
220
- - !ruby/object:Gem::Dependency
156
+ prerelease: false
157
+ version_requirements: *19515300
158
+ - !ruby/object:Gem::Dependency
221
159
  name: sqlite3-ruby
222
- version_requirements: &id014 !ruby/object:Gem::Requirement
160
+ requirement: &19513240 !ruby/object:Gem::Requirement
223
161
  none: false
224
- requirements:
225
- - - ">="
226
- - !ruby/object:Gem::Version
227
- hash: 31
228
- segments:
229
- - 1
230
- - 3
231
- - 2
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
232
165
  version: 1.3.2
233
- prerelease: false
234
166
  type: :development
235
- requirement: *id014
236
- - !ruby/object:Gem::Dependency
167
+ prerelease: false
168
+ version_requirements: *19513240
169
+ - !ruby/object:Gem::Dependency
237
170
  name: hpricot
238
- version_requirements: &id015 !ruby/object:Gem::Requirement
171
+ requirement: &19511300 !ruby/object:Gem::Requirement
239
172
  none: false
240
- requirements:
241
- - - ">="
242
- - !ruby/object:Gem::Version
243
- hash: 57
244
- segments:
245
- - 0
246
- - 8
247
- - 3
173
+ requirements:
174
+ - - ! '>='
175
+ - !ruby/object:Gem::Version
248
176
  version: 0.8.3
249
- prerelease: false
250
177
  type: :development
251
- requirement: *id015
252
- - !ruby/object:Gem::Dependency
178
+ prerelease: false
179
+ version_requirements: *19511300
180
+ - !ruby/object:Gem::Dependency
253
181
  name: git
254
- version_requirements: &id016 !ruby/object:Gem::Requirement
182
+ requirement: &19509880 !ruby/object:Gem::Requirement
255
183
  none: false
256
- requirements:
257
- - - ">="
258
- - !ruby/object:Gem::Version
259
- hash: 21
260
- segments:
261
- - 1
262
- - 2
263
- - 5
184
+ requirements:
185
+ - - ! '>='
186
+ - !ruby/object:Gem::Version
264
187
  version: 1.2.5
265
- prerelease: false
266
188
  type: :development
267
- requirement: *id016
268
- - !ruby/object:Gem::Dependency
189
+ prerelease: false
190
+ version_requirements: *19509880
191
+ - !ruby/object:Gem::Dependency
269
192
  name: rails
270
- version_requirements: &id017 !ruby/object:Gem::Requirement
193
+ requirement: &19506180 !ruby/object:Gem::Requirement
271
194
  none: false
272
- requirements:
273
- - - ">="
274
- - !ruby/object:Gem::Version
275
- hash: 1
276
- segments:
277
- - 3
278
- - 0
279
- - 3
195
+ requirements:
196
+ - - ! '>='
197
+ - !ruby/object:Gem::Version
280
198
  version: 3.0.3
281
- prerelease: false
282
199
  type: :development
283
- requirement: *id017
200
+ prerelease: false
201
+ version_requirements: *19506180
284
202
  description: A Rails plugin for Japanese mobile-phones
285
203
  email: dara@shidara.net
286
204
  executables: []
287
-
288
205
  extensions: []
289
-
290
- extra_rdoc_files:
206
+ extra_rdoc_files:
291
207
  - README
292
208
  - README.rdoc
293
- files:
209
+ files:
294
210
  - .rspec
295
211
  - CHANGELOG
296
212
  - Gemfile
@@ -490,39 +406,28 @@ files:
490
406
  - tools/generate_emoticon_conversion_table.rb
491
407
  - tools/generate_softbank_emoticon_table.rb
492
408
  - tools/list_gps_unsupported_au.rb
493
- has_rdoc: true
494
409
  homepage: http://jpmobile-rails.org
495
410
  licenses: []
496
-
497
411
  post_install_message:
498
412
  rdoc_options: []
499
-
500
- require_paths:
413
+ require_paths:
501
414
  - lib
502
- required_ruby_version: !ruby/object:Gem::Requirement
415
+ required_ruby_version: !ruby/object:Gem::Requirement
503
416
  none: false
504
- requirements:
505
- - - ">="
506
- - !ruby/object:Gem::Version
507
- hash: 3
508
- segments:
509
- - 0
510
- version: "0"
511
- required_rubygems_version: !ruby/object:Gem::Requirement
417
+ requirements:
418
+ - - ! '>='
419
+ - !ruby/object:Gem::Version
420
+ version: '0'
421
+ required_rubygems_version: !ruby/object:Gem::Requirement
512
422
  none: false
513
- requirements:
514
- - - ">="
515
- - !ruby/object:Gem::Version
516
- hash: 3
517
- segments:
518
- - 0
519
- version: "0"
423
+ requirements:
424
+ - - ! '>='
425
+ - !ruby/object:Gem::Version
426
+ version: '0'
520
427
  requirements: []
521
-
522
428
  rubyforge_project:
523
- rubygems_version: 1.5.2
429
+ rubygems_version: 1.8.6
524
430
  signing_key:
525
431
  specification_version: 3
526
432
  summary: A Rails plugin for Japanese mobile-phones
527
433
  test_files: []
528
-