jpmobile 3.0.6 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +1 -1
- data/jpmobile.gemspec +2 -2
- data/lib/jpmobile/mobile/unicode_emoticon.rb +1 -1
- data/spec/unit/mobile/iphone_spec.rb +34 -0
- metadata +4 -3
    
        data/VERSION.yml
    CHANGED
    
    
    
        data/jpmobile.gemspec
    CHANGED
    
    | @@ -5,11 +5,11 @@ | |
| 5 5 |  | 
| 6 6 | 
             
            Gem::Specification.new do |s|
         | 
| 7 7 | 
             
              s.name = %q{jpmobile}
         | 
| 8 | 
            -
              s.version = "3.0. | 
| 8 | 
            +
              s.version = "3.0.7"
         | 
| 9 9 |  | 
| 10 10 | 
             
              s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
         | 
| 11 11 | 
             
              s.authors = ["Yoji Shidara", "Shin-ichiro OGAWA"]
         | 
| 12 | 
            -
              s.date = %q{ | 
| 12 | 
            +
              s.date = %q{2012-11-27}
         | 
| 13 13 | 
             
              s.description = %q{A Rails plugin for Japanese mobile-phones}
         | 
| 14 14 | 
             
              s.email = %q{dara@shidara.net}
         | 
| 15 15 | 
             
              s.extra_rdoc_files = [
         | 
| @@ -0,0 +1,34 @@ | |
| 1 | 
            +
            # -*- coding: utf-8 -*-
         | 
| 2 | 
            +
            require File.expand_path(File.join(File.dirname(__FILE__), '../spec_helper'))
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            describe Jpmobile::Mobile::Iphone do
         | 
| 5 | 
            +
              describe 'iOS 4.0' do
         | 
| 6 | 
            +
                it "unicode_emoticon? should be false" do
         | 
| 7 | 
            +
                  request = double('request')
         | 
| 8 | 
            +
                  request.stub(:user_agent) {'Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_4 like Mac OS X; ja-jp) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8K2 Safari/6533.18.5'}
         | 
| 9 | 
            +
             | 
| 10 | 
            +
                  mobile = Jpmobile::Mobile::Iphone.new({}, request)
         | 
| 11 | 
            +
                  mobile.unicode_emoticon?.should be_false
         | 
| 12 | 
            +
                end
         | 
| 13 | 
            +
              end
         | 
| 14 | 
            +
             | 
| 15 | 
            +
              describe 'iOS 5.0' do
         | 
| 16 | 
            +
                it "unicode_emoticon? should be true" do
         | 
| 17 | 
            +
                  request = double('request')
         | 
| 18 | 
            +
                  request.stub(:user_agent) {'Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3'}
         | 
| 19 | 
            +
             | 
| 20 | 
            +
                  mobile = Jpmobile::Mobile::Iphone.new({}, request)
         | 
| 21 | 
            +
                  mobile.unicode_emoticon?.should be_true
         | 
| 22 | 
            +
                end
         | 
| 23 | 
            +
              end
         | 
| 24 | 
            +
             | 
| 25 | 
            +
              describe 'iOS 6.0' do
         | 
| 26 | 
            +
                it "unicode_emoticon? should be true" do
         | 
| 27 | 
            +
                  request = double('request')
         | 
| 28 | 
            +
                  request.stub(:user_agent) {'Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A403 Safari/8536.25'}
         | 
| 29 | 
            +
             | 
| 30 | 
            +
                  mobile = Jpmobile::Mobile::Iphone.new({}, request)
         | 
| 31 | 
            +
                  mobile.unicode_emoticon?.should be_true
         | 
| 32 | 
            +
                end
         | 
| 33 | 
            +
              end
         | 
| 34 | 
            +
            end
         | 
    
        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: 3.0. | 
| 4 | 
            +
              version: 3.0.7
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -10,7 +10,7 @@ authors: | |
| 10 10 | 
             
            autorequire: 
         | 
| 11 11 | 
             
            bindir: bin
         | 
| 12 12 | 
             
            cert_chain: []
         | 
| 13 | 
            -
            date: 2012- | 
| 13 | 
            +
            date: 2012-11-27 00:00:00.000000000 Z
         | 
| 14 14 | 
             
            dependencies:
         | 
| 15 15 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 16 16 | 
             
              name: jeweler
         | 
| @@ -399,6 +399,7 @@ files: | |
| 399 399 | 
             
            - spec/unit/encoding_spec.rb
         | 
| 400 400 | 
             
            - spec/unit/is_carrier_spec.rb
         | 
| 401 401 | 
             
            - spec/unit/mail_spec.rb
         | 
| 402 | 
            +
            - spec/unit/mobile/iphone_spec.rb
         | 
| 402 403 | 
             
            - spec/unit/receive_mail_spec.rb
         | 
| 403 404 | 
             
            - spec/unit/spec_helper.rb
         | 
| 404 405 | 
             
            - spec/unit/util_spec.rb
         | 
| @@ -554,7 +555,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 554 555 | 
             
                  version: '0'
         | 
| 555 556 | 
             
            requirements: []
         | 
| 556 557 | 
             
            rubyforge_project: 
         | 
| 557 | 
            -
            rubygems_version: 1.8. | 
| 558 | 
            +
            rubygems_version: 1.8.23
         | 
| 558 559 | 
             
            signing_key: 
         | 
| 559 560 | 
             
            specification_version: 3
         | 
| 560 561 | 
             
            summary: A Rails plugin for Japanese mobile-phones
         |