jpmobile 5.0.0.beta2 → 5.0.0.beta3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb4d8766b1ea417201147e466f2084b48f794cac
4
- data.tar.gz: a4a672f26c05452639406937df52be1b3406c6cc
3
+ metadata.gz: d16f43b79310f9b5517146eefb69eb42305013f8
4
+ data.tar.gz: 033e12681c8c71b102d01ba430f355a0b2e688bb
5
5
  SHA512:
6
- metadata.gz: d00c714192c78351c8c3eb345fee00d76a6911c33a962e91614b6a6117a2ae9f483d4e65e68f2cdde4502c8c8172a610fe82307962880a90dddccb01e0598dc8
7
- data.tar.gz: dd5018b73e174846580146ad799aeefb66fb6fb501c65c9bf0f449f4221b2a8a6cefaca9ac60d49b15ee3c10e10c984673fff8fe00f225805916ed2e91e389a5
6
+ metadata.gz: 21c798c9f5d1aac125ad3776304e228f26b52864c1d5f8451914c119abc2e957f4e967d5f5ae63ec24ef9274cb63a4e7284926bfaaa3569603f6ce765f613608
7
+ data.tar.gz: a95f420130b509c52e11dfbc920c0215d57bd1a9e3be0d85beb699fb973e2c591809c263c28847b6aef4e96130bb07f6ed508b20a843d8389796f4407a7f4df5
data/jpmobile.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
17
  gem.require_paths = ["lib"]
18
18
 
19
- gem.add_development_dependency 'rails', '5.0.0.beta2'
19
+ gem.add_development_dependency 'rails', '5.0.0.beta4'
20
20
  gem.add_development_dependency 'rspec'
21
21
  gem.add_development_dependency 'rspec-rails'
22
22
  gem.add_development_dependency 'rspec-its'
data/lib/jpmobile/mail.rb CHANGED
@@ -110,7 +110,7 @@ module Mail
110
110
 
111
111
  # In jpmobile, value is already transfered correctly encodings.
112
112
  def raw_source=(value)
113
- @raw_source = value.to_crlf
113
+ @raw_source = ::Mail::Utilities.to_crlf(value)
114
114
  end
115
115
 
116
116
  def separate_parts_with_jpmobile
@@ -237,7 +237,7 @@ module Mail
237
237
  # override charset
238
238
  if self.header[:content_type]
239
239
  @charset = header[:content_type].parameters[:charset] || ''
240
- unless @charset.blank?
240
+ unless @charset.empty?
241
241
  @mobile_main_type = self.header[:content_type].main_type
242
242
  end
243
243
  end
@@ -248,7 +248,7 @@ module Mail
248
248
  header[:subject].value = header[:subject].decoded
249
249
  end
250
250
 
251
- if @body_part_jpmobile and @mobile and !@charset.blank?
251
+ if @body_part_jpmobile and @mobile and !@charset.empty?
252
252
  if ["base64", "quoted-printable"].include?(self.content_transfer_encoding) and
253
253
  self.content_type.match(/text/)
254
254
  @body_part_jpmobile = Jpmobile::Util.decode(@body_part_jpmobile, self.content_transfer_encoding, @charset)
@@ -299,7 +299,7 @@ module Mail
299
299
  attr_accessor :mobile, :content_type_with_jpmobile
300
300
 
301
301
  def raw_source_with_jpmobile
302
- raw_source_without_jpmobile.to_crlf
302
+ ::Mail::Utilities.to_crlf(raw_source_without_jpmobile)
303
303
  end
304
304
 
305
305
  # convert encoding
data/lib/jpmobile/util.rb CHANGED
@@ -336,7 +336,7 @@ module Jpmobile
336
336
  end
337
337
 
338
338
  _extract_charset = Jpmobile::Util.extract_charset(_str)
339
- charset = _extract_charset unless _extract_charset.blank? or _extract_charset == charset
339
+ charset = _extract_charset unless _extract_charset.empty? or _extract_charset == charset
340
340
  Jpmobile::Util.set_encoding(_str, charset)
341
341
  end
342
342
  end
@@ -1,3 +1,3 @@
1
1
  module Jpmobile
2
- VERSION = "5.0.0.beta2"
2
+ VERSION = "5.0.0.beta3"
3
3
  end
@@ -36,7 +36,7 @@ namespace :test do
36
36
  FileUtils.rm_rf("Gemfile.lock")
37
37
  FileUtils.rm_rf(rails_root)
38
38
  FileUtils.mkdir_p(rails_root)
39
- `rails _5.0.0.beta2_ new #{rails_root} --skip-bundle`
39
+ `rails _5.0.0.beta4_ new #{rails_root} --skip-bundle`
40
40
  end
41
41
 
42
42
  # setup jpmobile
@@ -384,11 +384,11 @@ describe "Jpmobile::Mail#receive" do
384
384
  end
385
385
 
386
386
  it "subject should be parsed correctly" do
387
- expect(@mail.subject).to be_blank
387
+ expect(@mail.subject).to be_nil
388
388
  end
389
389
 
390
390
  it "body should be parsed correctly" do
391
- expect(@mail.body.to_s).to be_blank
391
+ expect(@mail.body.to_s).to be_empty
392
392
  end
393
393
  end
394
394
  end
@@ -11,7 +11,7 @@ gem 'pry-byebug'
11
11
 
12
12
  # Bundle gems for certain environments:
13
13
  group :development, :test do
14
- gem "rspec-rails", '3.5.0.beta1'
14
+ gem "rspec-rails", '3.5.0.beta3'
15
15
  gem 'capybara'
16
16
  gem 'capybara-webkit'
17
17
  gem 'rails-controller-testing'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jpmobile
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.beta2
4
+ version: 5.0.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shin-ichiro OGAWA
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-25 00:00:00.000000000 Z
12
+ date: 2016-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 5.0.0.beta2
20
+ version: 5.0.0.beta4
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 5.0.0.beta2
27
+ version: 5.0.0.beta4
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rspec
30
30
  requirement: !ruby/object:Gem::Requirement