jpmobile 3.0.9 → 4.0.0
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.
- checksums.yaml +4 -4
- data/.gitignore +19 -0
- data/Gemfile +3 -11
- data/MIT-LICENSE +1 -1
- data/README.rdoc +7 -8
- data/Rakefile +1 -43
- data/VERSION.yml +1 -1
- data/jpmobile.gemspec +22 -38
- data/lib/jpmobile.rb +3 -1
- data/lib/jpmobile/configuration.rb +19 -0
- data/lib/jpmobile/emoticon/z_combine.rb +0 -4
- data/lib/jpmobile/hook_action_controller.rb +27 -0
- data/lib/jpmobile/mail.rb +56 -77
- data/lib/jpmobile/mailer.rb +1 -0
- data/lib/jpmobile/rack.rb +0 -16
- data/lib/jpmobile/resolver.rb +1 -1
- data/lib/jpmobile/util.rb +35 -128
- data/lib/jpmobile/version.rb +3 -0
- data/lib/tasks/jpmobile_tasks.rake +2 -2
- data/spec/unit/receive_mail_spec.rb +3 -28
- data/spec/unit/util_spec.rb +12 -23
- data/test/rails/overrides/Gemfile +46 -5
- data/test/rails/overrides/app/controllers/mobile_spec_controller.rb +3 -0
- data/test/rails/overrides/app/models/user.rb +0 -1
- data/test/rails/overrides/app/views/layouts/application.html.erb +12 -0
- data/test/rails/overrides/app/views/layouts/application_mobile.html.erb +1 -1
- data/test/rails/overrides/app/views/mobile_mailer/default_to_mail.text.erb +1 -0
- data/test/rails/overrides/app/views/mobile_spec/_partial_view_sample.html.erb +1 -0
- data/test/rails/overrides/app/views/mobile_spec/no_mobile.html.erb +3 -0
- data/test/rails/overrides/config/routes.rb +2 -2
- data/test/rails/overrides/spec/controllers/mobile_spec_controller_spec.rb +36 -2
- data/test/rails/overrides/spec/mailers/mobile_mailer_spec.rb +4 -5
- metadata +194 -142
- data/spec/unit/email-fixtures/iphone-jis.eml +0 -15
- data/spec/unit/email-fixtures/pc-mail-attached-without-subject.eml +0 -45
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            <%= @text -%>
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            in partial
         | 
| @@ -2,6 +2,8 @@ | |
| 2 2 | 
             
            require File.expand_path(File.join(File.dirname(__FILE__), '/../spec_helper'))
         | 
| 3 3 |  | 
| 4 4 | 
             
            describe MobileSpecController do
         | 
| 5 | 
            +
              render_views
         | 
| 6 | 
            +
             | 
| 5 7 | 
             
              describe "GET 'index'" do
         | 
| 6 8 | 
             
                context 'PC access' do
         | 
| 7 9 | 
             
                  it "should be successful" do
         | 
| @@ -33,7 +35,7 @@ describe MobileSpecController do | |
| 33 35 | 
             
                    get 'file_render'
         | 
| 34 36 |  | 
| 35 37 | 
             
                    response.should be_success
         | 
| 36 | 
            -
                    response.should  | 
| 38 | 
            +
                    response.body.should match('The change you wanted was rejected')
         | 
| 37 39 | 
             
                    request.mobile?.should be_false
         | 
| 38 40 | 
             
                  end
         | 
| 39 41 | 
             
                end
         | 
| @@ -42,11 +44,43 @@ describe MobileSpecController do | |
| 42 44 | 
             
                  it "should be successful" do
         | 
| 43 45 | 
             
                    request.user_agent = "DoCoMo/2.0 SH902i(c100;TB;W24H12)"
         | 
| 44 46 | 
             
                    get 'file_render'
         | 
| 47 | 
            +
             | 
| 45 48 | 
             
                    response.should be_success
         | 
| 46 | 
            -
                    response.should  | 
| 49 | 
            +
                    response.body.should match('The change you wanted was rejected')
         | 
| 47 50 | 
             
                    request.mobile?.should be_true
         | 
| 48 51 | 
             
                    request.mobile.should be_a(Jpmobile::Mobile::Docomo)
         | 
| 49 52 | 
             
                  end
         | 
| 50 53 | 
             
                end
         | 
| 51 54 | 
             
              end
         | 
| 55 | 
            +
             | 
| 56 | 
            +
              describe "GET 'no_mobile'" do
         | 
| 57 | 
            +
                around do |example|
         | 
| 58 | 
            +
                  orig_value = Jpmobile.config.fallback_view_selector
         | 
| 59 | 
            +
                  Jpmobile.config.fallback_view_selector = true
         | 
| 60 | 
            +
             | 
| 61 | 
            +
                  example.run
         | 
| 62 | 
            +
             | 
| 63 | 
            +
                  Jpmobile.config.fallback_view_selector = orig_value
         | 
| 64 | 
            +
                end
         | 
| 65 | 
            +
             | 
| 66 | 
            +
                context 'PC access' do
         | 
| 67 | 
            +
                  it "should be successful" do
         | 
| 68 | 
            +
                    request.user_agent = 'Mozilla'
         | 
| 69 | 
            +
                    get 'no_mobile'
         | 
| 70 | 
            +
             | 
| 71 | 
            +
                    response.should be_success
         | 
| 72 | 
            +
                    response.body.should_not match('RailsRoot PC mobile')
         | 
| 73 | 
            +
                  end
         | 
| 74 | 
            +
                end
         | 
| 75 | 
            +
             | 
| 76 | 
            +
                context 'mobile access' do
         | 
| 77 | 
            +
                  it "should be successful" do
         | 
| 78 | 
            +
                    request.user_agent = "DoCoMo/2.0 SH902i(c100;TB;W24H12)"
         | 
| 79 | 
            +
                    get 'no_mobile'
         | 
| 80 | 
            +
             | 
| 81 | 
            +
                    response.should be_success
         | 
| 82 | 
            +
                    response.body.should_not match('RailsRoot mobile')
         | 
| 83 | 
            +
                  end
         | 
| 84 | 
            +
                end
         | 
| 85 | 
            +
              end
         | 
| 52 86 | 
             
            end
         | 
| @@ -475,14 +475,13 @@ describe MobileMailer, " mail address" do | |
| 475 475 | 
             
              end
         | 
| 476 476 |  | 
| 477 477 | 
             
              it "複数のアドレスが有効になること" do
         | 
| 478 | 
            -
                 | 
| 479 | 
            -
                to | 
| 480 | 
            -
                MobileMailer.view_selection(to, @subject, @text).deliver
         | 
| 478 | 
            +
                to = [".ruby.rails.@domomo-ezweb.ne.jp", "ruby.rails.@domomo-ezweb.ne.jp", "ruby...rails@domomo-ezweb.ne.jp"]
         | 
| 479 | 
            +
                MobileMailer.view_selection(to.join(", "), @subject, @text).deliver
         | 
| 481 480 |  | 
| 482 481 | 
             
                emails = ActionMailer::Base.deliveries
         | 
| 483 482 | 
             
                emails.size.should == 1
         | 
| 484 | 
            -
                emails.first.to.should ==  | 
| 485 | 
            -
                emails.first.destinations.should ==  | 
| 483 | 
            +
                emails.first.to.should == to
         | 
| 484 | 
            +
                emails.first.destinations.should == to
         | 
| 486 485 | 
             
              end
         | 
| 487 486 | 
             
            end
         | 
| 488 487 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,18 +1,18 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: jpmobile
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version:  | 
| 4 | 
            +
              version: 4.0.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 | 
            -
            - Yoji Shidara
         | 
| 8 7 | 
             
            - Shin-ichiro OGAWA
         | 
| 8 | 
            +
            - Yoji Shidara
         | 
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date:  | 
| 12 | 
            +
            date: 2013-06-26 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 | 
            -
              name:  | 
| 15 | 
            +
              name: rails
         | 
| 16 16 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 17 17 | 
             
                requirements:
         | 
| 18 18 | 
             
                - - '>='
         | 
| @@ -25,20 +25,6 @@ dependencies: | |
| 25 25 | 
             
                - - '>='
         | 
| 26 26 | 
             
                  - !ruby/object:Gem::Version
         | 
| 27 27 | 
             
                    version: '0'
         | 
| 28 | 
            -
            - !ruby/object:Gem::Dependency
         | 
| 29 | 
            -
              name: rails
         | 
| 30 | 
            -
              requirement: !ruby/object:Gem::Requirement
         | 
| 31 | 
            -
                requirements:
         | 
| 32 | 
            -
                - - ~>
         | 
| 33 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 34 | 
            -
                    version: 3.2.8
         | 
| 35 | 
            -
              type: :development
         | 
| 36 | 
            -
              prerelease: false
         | 
| 37 | 
            -
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 38 | 
            -
                requirements:
         | 
| 39 | 
            -
                - - ~>
         | 
| 40 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 41 | 
            -
                    version: 3.2.8
         | 
| 42 28 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 43 29 | 
             
              name: rspec
         | 
| 44 30 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -123,140 +109,28 @@ dependencies: | |
| 123 109 | 
             
                - - '>='
         | 
| 124 110 | 
             
                  - !ruby/object:Gem::Version
         | 
| 125 111 | 
             
                    version: '0'
         | 
| 126 | 
            -
            - !ruby/object:Gem::Dependency
         | 
| 127 | 
            -
              name: rails
         | 
| 128 | 
            -
              requirement: !ruby/object:Gem::Requirement
         | 
| 129 | 
            -
                requirements:
         | 
| 130 | 
            -
                - - '>='
         | 
| 131 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 132 | 
            -
                    version: 3.2.0
         | 
| 133 | 
            -
              type: :development
         | 
| 134 | 
            -
              prerelease: false
         | 
| 135 | 
            -
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 136 | 
            -
                requirements:
         | 
| 137 | 
            -
                - - '>='
         | 
| 138 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 139 | 
            -
                    version: 3.2.0
         | 
| 140 | 
            -
            - !ruby/object:Gem::Dependency
         | 
| 141 | 
            -
              name: jeweler
         | 
| 142 | 
            -
              requirement: !ruby/object:Gem::Requirement
         | 
| 143 | 
            -
                requirements:
         | 
| 144 | 
            -
                - - '>='
         | 
| 145 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 146 | 
            -
                    version: 1.5.1
         | 
| 147 | 
            -
              type: :development
         | 
| 148 | 
            -
              prerelease: false
         | 
| 149 | 
            -
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 150 | 
            -
                requirements:
         | 
| 151 | 
            -
                - - '>='
         | 
| 152 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 153 | 
            -
                    version: 1.5.1
         | 
| 154 | 
            -
            - !ruby/object:Gem::Dependency
         | 
| 155 | 
            -
              name: rspec
         | 
| 156 | 
            -
              requirement: !ruby/object:Gem::Requirement
         | 
| 157 | 
            -
                requirements:
         | 
| 158 | 
            -
                - - '>='
         | 
| 159 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 160 | 
            -
                    version: 2.6.0
         | 
| 161 | 
            -
              type: :development
         | 
| 162 | 
            -
              prerelease: false
         | 
| 163 | 
            -
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 164 | 
            -
                requirements:
         | 
| 165 | 
            -
                - - '>='
         | 
| 166 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 167 | 
            -
                    version: 2.6.0
         | 
| 168 | 
            -
            - !ruby/object:Gem::Dependency
         | 
| 169 | 
            -
              name: rspec-rails
         | 
| 170 | 
            -
              requirement: !ruby/object:Gem::Requirement
         | 
| 171 | 
            -
                requirements:
         | 
| 172 | 
            -
                - - '>='
         | 
| 173 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 174 | 
            -
                    version: 2.6.0
         | 
| 175 | 
            -
              type: :development
         | 
| 176 | 
            -
              prerelease: false
         | 
| 177 | 
            -
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 178 | 
            -
                requirements:
         | 
| 179 | 
            -
                - - '>='
         | 
| 180 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 181 | 
            -
                    version: 2.6.0
         | 
| 182 | 
            -
            - !ruby/object:Gem::Dependency
         | 
| 183 | 
            -
              name: webrat
         | 
| 184 | 
            -
              requirement: !ruby/object:Gem::Requirement
         | 
| 185 | 
            -
                requirements:
         | 
| 186 | 
            -
                - - '>='
         | 
| 187 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 188 | 
            -
                    version: 0.7.2
         | 
| 189 | 
            -
              type: :development
         | 
| 190 | 
            -
              prerelease: false
         | 
| 191 | 
            -
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 192 | 
            -
                requirements:
         | 
| 193 | 
            -
                - - '>='
         | 
| 194 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 195 | 
            -
                    version: 0.7.2
         | 
| 196 | 
            -
            - !ruby/object:Gem::Dependency
         | 
| 197 | 
            -
              name: geokit
         | 
| 198 | 
            -
              requirement: !ruby/object:Gem::Requirement
         | 
| 199 | 
            -
                requirements:
         | 
| 200 | 
            -
                - - '>='
         | 
| 201 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 202 | 
            -
                    version: 1.5.0
         | 
| 203 | 
            -
              type: :development
         | 
| 204 | 
            -
              prerelease: false
         | 
| 205 | 
            -
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 206 | 
            -
                requirements:
         | 
| 207 | 
            -
                - - '>='
         | 
| 208 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 209 | 
            -
                    version: 1.5.0
         | 
| 210 | 
            -
            - !ruby/object:Gem::Dependency
         | 
| 211 | 
            -
              name: sqlite3-ruby
         | 
| 212 | 
            -
              requirement: !ruby/object:Gem::Requirement
         | 
| 213 | 
            -
                requirements:
         | 
| 214 | 
            -
                - - '>='
         | 
| 215 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 216 | 
            -
                    version: 1.3.2
         | 
| 217 | 
            -
              type: :development
         | 
| 218 | 
            -
              prerelease: false
         | 
| 219 | 
            -
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 220 | 
            -
                requirements:
         | 
| 221 | 
            -
                - - '>='
         | 
| 222 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 223 | 
            -
                    version: 1.3.2
         | 
| 224 | 
            -
            - !ruby/object:Gem::Dependency
         | 
| 225 | 
            -
              name: hpricot
         | 
| 226 | 
            -
              requirement: !ruby/object:Gem::Requirement
         | 
| 227 | 
            -
                requirements:
         | 
| 228 | 
            -
                - - '>='
         | 
| 229 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 230 | 
            -
                    version: 0.8.3
         | 
| 231 | 
            -
              type: :development
         | 
| 232 | 
            -
              prerelease: false
         | 
| 233 | 
            -
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 234 | 
            -
                requirements:
         | 
| 235 | 
            -
                - - '>='
         | 
| 236 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 237 | 
            -
                    version: 0.8.3
         | 
| 238 112 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 239 113 | 
             
              name: git
         | 
| 240 114 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 241 115 | 
             
                requirements:
         | 
| 242 116 | 
             
                - - '>='
         | 
| 243 117 | 
             
                  - !ruby/object:Gem::Version
         | 
| 244 | 
            -
                    version:  | 
| 118 | 
            +
                    version: '0'
         | 
| 245 119 | 
             
              type: :development
         | 
| 246 120 | 
             
              prerelease: false
         | 
| 247 121 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 248 122 | 
             
                requirements:
         | 
| 249 123 | 
             
                - - '>='
         | 
| 250 124 | 
             
                  - !ruby/object:Gem::Version
         | 
| 251 | 
            -
                    version:  | 
| 252 | 
            -
            description: A Rails plugin for  | 
| 253 | 
            -
            email: | 
| 125 | 
            +
                    version: '0'
         | 
| 126 | 
            +
            description: A Rails plugin for mobile devices in Japan
         | 
| 127 | 
            +
            email:
         | 
| 128 | 
            +
            - rust.stnard@gmail.com
         | 
| 254 129 | 
             
            executables: []
         | 
| 255 130 | 
             
            extensions: []
         | 
| 256 | 
            -
            extra_rdoc_files:
         | 
| 257 | 
            -
            - README
         | 
| 258 | 
            -
            - README.rdoc
         | 
| 131 | 
            +
            extra_rdoc_files: []
         | 
| 259 132 | 
             
            files:
         | 
| 133 | 
            +
            - .gitignore
         | 
| 260 134 | 
             
            - .rspec
         | 
| 261 135 | 
             
            - CHANGELOG
         | 
| 262 136 | 
             
            - Gemfile
         | 
| @@ -269,6 +143,7 @@ files: | |
| 269 143 | 
             
            - install.rb
         | 
| 270 144 | 
             
            - jpmobile.gemspec
         | 
| 271 145 | 
             
            - lib/jpmobile.rb
         | 
| 146 | 
            +
            - lib/jpmobile/configuration.rb
         | 
| 272 147 | 
             
            - lib/jpmobile/datum_conv.rb
         | 
| 273 148 | 
             
            - lib/jpmobile/docomo_guid.rb
         | 
| 274 149 | 
             
            - lib/jpmobile/email.rb
         | 
| @@ -322,6 +197,7 @@ files: | |
| 322 197 | 
             
            - lib/jpmobile/sinatra.rb
         | 
| 323 198 | 
             
            - lib/jpmobile/trans_sid.rb
         | 
| 324 199 | 
             
            - lib/jpmobile/util.rb
         | 
| 200 | 
            +
            - lib/jpmobile/version.rb
         | 
| 325 201 | 
             
            - lib/tasks/jpmobile_tasks.rake
         | 
| 326 202 | 
             
            - spec/rack/jpmobile/android_spec.rb
         | 
| 327 203 | 
             
            - spec/rack/jpmobile/au_spec.rb
         | 
| @@ -350,10 +226,8 @@ files: | |
| 350 226 | 
             
            - spec/unit/email-fixtures/docomo-emoji.eml
         | 
| 351 227 | 
             
            - spec/unit/email-fixtures/docomo-gmail-sjis.eml
         | 
| 352 228 | 
             
            - spec/unit/email-fixtures/docomo-jis.eml
         | 
| 353 | 
            -
            - spec/unit/email-fixtures/iphone-jis.eml
         | 
| 354 229 | 
             
            - spec/unit/email-fixtures/iphone-mail3.eml
         | 
| 355 230 | 
             
            - spec/unit/email-fixtures/iphone-message.eml
         | 
| 356 | 
            -
            - spec/unit/email-fixtures/pc-mail-attached-without-subject.eml
         | 
| 357 231 | 
             
            - spec/unit/email-fixtures/pc-mail-multi.eml
         | 
| 358 232 | 
             
            - spec/unit/email-fixtures/pc-mail-single.eml
         | 
| 359 233 | 
             
            - spec/unit/email-fixtures/photo.jpg
         | 
| @@ -405,6 +279,7 @@ files: | |
| 405 279 | 
             
            - test/rails/overrides/app/views/hankaku_input_filter/index.html.erb
         | 
| 406 280 | 
             
            - test/rails/overrides/app/views/hankaku_input_filter/index_xhtml.html.erb
         | 
| 407 281 | 
             
            - test/rails/overrides/app/views/hankaku_input_filter/with_charset.html.erb
         | 
| 282 | 
            +
            - test/rails/overrides/app/views/layouts/application.html.erb
         | 
| 408 283 | 
             
            - test/rails/overrides/app/views/layouts/application_mobile.html.erb
         | 
| 409 284 | 
             
            - test/rails/overrides/app/views/layouts/with_charset.html.erb
         | 
| 410 285 | 
             
            - test/rails/overrides/app/views/layouts/xhtml.html.erb
         | 
| @@ -417,6 +292,7 @@ files: | |
| 417 292 | 
             
            - test/rails/overrides/app/views/links/show_all.html.erb
         | 
| 418 293 | 
             
            - test/rails/overrides/app/views/links/softbank_location.html.erb
         | 
| 419 294 | 
             
            - test/rails/overrides/app/views/links/willcom_location.html.erb
         | 
| 295 | 
            +
            - test/rails/overrides/app/views/mobile_mailer/default_to_mail.text.erb
         | 
| 420 296 | 
             
            - test/rails/overrides/app/views/mobile_mailer/multi_message.html.erb
         | 
| 421 297 | 
             
            - test/rails/overrides/app/views/mobile_mailer/multi_message.text.erb
         | 
| 422 298 | 
             
            - test/rails/overrides/app/views/mobile_mailer/view_selection.html.erb
         | 
| @@ -427,8 +303,10 @@ files: | |
| 427 303 | 
             
            - test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_softbank.html.erb
         | 
| 428 304 | 
             
            - test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_vodafone.html.erb
         | 
| 429 305 | 
             
            - test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_willcom.html.erb
         | 
| 306 | 
            +
            - test/rails/overrides/app/views/mobile_spec/_partial_view_sample.html.erb
         | 
| 430 307 | 
             
            - test/rails/overrides/app/views/mobile_spec/index.html.erb
         | 
| 431 308 | 
             
            - test/rails/overrides/app/views/mobile_spec/index_mobile.html.erb
         | 
| 309 | 
            +
            - test/rails/overrides/app/views/mobile_spec/no_mobile.html.erb
         | 
| 432 310 | 
             
            - test/rails/overrides/app/views/normal_mailer/msg.text.erb
         | 
| 433 311 | 
             
            - test/rails/overrides/app/views/template_path/_partial.html.erb
         | 
| 434 312 | 
             
            - test/rails/overrides/app/views/template_path/_partial_mobile.html.erb
         | 
| @@ -522,8 +400,182 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 522 400 | 
             
                  version: '0'
         | 
| 523 401 | 
             
            requirements: []
         | 
| 524 402 | 
             
            rubyforge_project: 
         | 
| 525 | 
            -
            rubygems_version: 2.0. | 
| 403 | 
            +
            rubygems_version: 2.0.2
         | 
| 526 404 | 
             
            signing_key: 
         | 
| 527 405 | 
             
            specification_version: 4
         | 
| 528 | 
            -
            summary: A Rails plugin for  | 
| 529 | 
            -
            test_files: | 
| 406 | 
            +
            summary: A Rails plugin for mobile devices in Japan
         | 
| 407 | 
            +
            test_files:
         | 
| 408 | 
            +
            - spec/rack/jpmobile/android_spec.rb
         | 
| 409 | 
            +
            - spec/rack/jpmobile/au_spec.rb
         | 
| 410 | 
            +
            - spec/rack/jpmobile/black_berry_spec.rb
         | 
| 411 | 
            +
            - spec/rack/jpmobile/docomo_spec.rb
         | 
| 412 | 
            +
            - spec/rack/jpmobile/emoticon_spec.rb
         | 
| 413 | 
            +
            - spec/rack/jpmobile/filter_spec.rb
         | 
| 414 | 
            +
            - spec/rack/jpmobile/iphone_spec.rb
         | 
| 415 | 
            +
            - spec/rack/jpmobile/mobile_by_ua_spec.rb
         | 
| 416 | 
            +
            - spec/rack/jpmobile/params_filter_spec.rb
         | 
| 417 | 
            +
            - spec/rack/jpmobile/softbank_spec.rb
         | 
| 418 | 
            +
            - spec/rack/jpmobile/willcom_spec.rb
         | 
| 419 | 
            +
            - spec/rack/jpmobile/windows_phone.rb
         | 
| 420 | 
            +
            - spec/rack_helper.rb
         | 
| 421 | 
            +
            - spec/spec_helper.rb
         | 
| 422 | 
            +
            - spec/unit/decorated_mail_spec.rb
         | 
| 423 | 
            +
            - spec/unit/email-fixtures/au-attached.eml
         | 
| 424 | 
            +
            - spec/unit/email-fixtures/au-decomail.eml
         | 
| 425 | 
            +
            - spec/unit/email-fixtures/au-decomail2.eml
         | 
| 426 | 
            +
            - spec/unit/email-fixtures/au-email.eml
         | 
| 427 | 
            +
            - spec/unit/email-fixtures/au-emoji.eml
         | 
| 428 | 
            +
            - spec/unit/email-fixtures/au-emoji2.eml
         | 
| 429 | 
            +
            - spec/unit/email-fixtures/au-emoji5.eml
         | 
| 430 | 
            +
            - spec/unit/email-fixtures/au-kigou.eml
         | 
| 431 | 
            +
            - spec/unit/email-fixtures/bounce_with_utf8_part.eml
         | 
| 432 | 
            +
            - spec/unit/email-fixtures/docomo-emoji.eml
         | 
| 433 | 
            +
            - spec/unit/email-fixtures/docomo-gmail-sjis.eml
         | 
| 434 | 
            +
            - spec/unit/email-fixtures/docomo-jis.eml
         | 
| 435 | 
            +
            - spec/unit/email-fixtures/iphone-mail3.eml
         | 
| 436 | 
            +
            - spec/unit/email-fixtures/iphone-message.eml
         | 
| 437 | 
            +
            - spec/unit/email-fixtures/pc-mail-multi.eml
         | 
| 438 | 
            +
            - spec/unit/email-fixtures/pc-mail-single.eml
         | 
| 439 | 
            +
            - spec/unit/email-fixtures/photo.jpg
         | 
| 440 | 
            +
            - spec/unit/email-fixtures/softbank-blank.eml
         | 
| 441 | 
            +
            - spec/unit/email-fixtures/softbank-emoji-utf8.eml
         | 
| 442 | 
            +
            - spec/unit/email-fixtures/softbank-emoji.eml
         | 
| 443 | 
            +
            - spec/unit/email-fixtures/softbank-gmail-sjis.eml
         | 
| 444 | 
            +
            - spec/unit/email-fixtures/softbank-gmail-utf8.eml
         | 
| 445 | 
            +
            - spec/unit/email_spec.rb
         | 
| 446 | 
            +
            - spec/unit/emoticon_spec.rb
         | 
| 447 | 
            +
            - spec/unit/encoding_spec.rb
         | 
| 448 | 
            +
            - spec/unit/is_carrier_spec.rb
         | 
| 449 | 
            +
            - spec/unit/mail_spec.rb
         | 
| 450 | 
            +
            - spec/unit/mobile/iphone_spec.rb
         | 
| 451 | 
            +
            - spec/unit/receive_mail_spec.rb
         | 
| 452 | 
            +
            - spec/unit/spec_helper.rb
         | 
| 453 | 
            +
            - spec/unit/util_spec.rb
         | 
| 454 | 
            +
            - spec/unit/valid_ip_spec.rb
         | 
| 455 | 
            +
            - spec/unit/variants_spec.rb
         | 
| 456 | 
            +
            - test/rails/.gitignore
         | 
| 457 | 
            +
            - test/rails/overrides/.rspec
         | 
| 458 | 
            +
            - test/rails/overrides/Gemfile
         | 
| 459 | 
            +
            - test/rails/overrides/app/controllers/admin/top_controller.rb
         | 
| 460 | 
            +
            - test/rails/overrides/app/controllers/application_controller.rb
         | 
| 461 | 
            +
            - test/rails/overrides/app/controllers/docomo_guid_always_controller.rb
         | 
| 462 | 
            +
            - test/rails/overrides/app/controllers/docomo_guid_base_controller.rb
         | 
| 463 | 
            +
            - test/rails/overrides/app/controllers/docomo_guid_docomo_controller.rb
         | 
| 464 | 
            +
            - test/rails/overrides/app/controllers/filter_controller.rb
         | 
| 465 | 
            +
            - test/rails/overrides/app/controllers/filter_controller_base.rb
         | 
| 466 | 
            +
            - test/rails/overrides/app/controllers/hankaku_filter_controller.rb
         | 
| 467 | 
            +
            - test/rails/overrides/app/controllers/hankaku_input_filter_controller.rb
         | 
| 468 | 
            +
            - test/rails/overrides/app/controllers/links_controller.rb
         | 
| 469 | 
            +
            - test/rails/overrides/app/controllers/mobile_spec_controller.rb
         | 
| 470 | 
            +
            - test/rails/overrides/app/controllers/template_path_controller.rb
         | 
| 471 | 
            +
            - test/rails/overrides/app/controllers/trans_sid_always_and_session_off_controller.rb
         | 
| 472 | 
            +
            - test/rails/overrides/app/controllers/trans_sid_always_controller.rb
         | 
| 473 | 
            +
            - test/rails/overrides/app/controllers/trans_sid_base_controller.rb
         | 
| 474 | 
            +
            - test/rails/overrides/app/controllers/trans_sid_metal_controller.rb
         | 
| 475 | 
            +
            - test/rails/overrides/app/controllers/trans_sid_mobile_controller.rb
         | 
| 476 | 
            +
            - test/rails/overrides/app/controllers/trans_sid_none_controller.rb
         | 
| 477 | 
            +
            - test/rails/overrides/app/mailers/decorated_mailer.rb
         | 
| 478 | 
            +
            - test/rails/overrides/app/mailers/mobile_mailer.rb
         | 
| 479 | 
            +
            - test/rails/overrides/app/mailers/normal_mailer.rb
         | 
| 480 | 
            +
            - test/rails/overrides/app/models/user.rb
         | 
| 481 | 
            +
            - test/rails/overrides/app/views/decorated_mailer/deco_mail.html.erb
         | 
| 482 | 
            +
            - test/rails/overrides/app/views/decorated_mailer/deco_mail.text.erb
         | 
| 483 | 
            +
            - test/rails/overrides/app/views/filter/index.html.erb
         | 
| 484 | 
            +
            - test/rails/overrides/app/views/hankaku_filter/index.html.erb
         | 
| 485 | 
            +
            - test/rails/overrides/app/views/hankaku_input_filter/index.html.erb
         | 
| 486 | 
            +
            - test/rails/overrides/app/views/hankaku_input_filter/index_xhtml.html.erb
         | 
| 487 | 
            +
            - test/rails/overrides/app/views/hankaku_input_filter/with_charset.html.erb
         | 
| 488 | 
            +
            - test/rails/overrides/app/views/layouts/application.html.erb
         | 
| 489 | 
            +
            - test/rails/overrides/app/views/layouts/application_mobile.html.erb
         | 
| 490 | 
            +
            - test/rails/overrides/app/views/layouts/with_charset.html.erb
         | 
| 491 | 
            +
            - test/rails/overrides/app/views/layouts/xhtml.html.erb
         | 
| 492 | 
            +
            - test/rails/overrides/app/views/links/au_gps.html.erb
         | 
| 493 | 
            +
            - test/rails/overrides/app/views/links/au_location.html.erb
         | 
| 494 | 
            +
            - test/rails/overrides/app/views/links/docomo_foma_gps.html.erb
         | 
| 495 | 
            +
            - test/rails/overrides/app/views/links/docomo_openiarea.html.erb
         | 
| 496 | 
            +
            - test/rails/overrides/app/views/links/docomo_utn.html.erb
         | 
| 497 | 
            +
            - test/rails/overrides/app/views/links/link.html.erb
         | 
| 498 | 
            +
            - test/rails/overrides/app/views/links/show_all.html.erb
         | 
| 499 | 
            +
            - test/rails/overrides/app/views/links/softbank_location.html.erb
         | 
| 500 | 
            +
            - test/rails/overrides/app/views/links/willcom_location.html.erb
         | 
| 501 | 
            +
            - test/rails/overrides/app/views/mobile_mailer/default_to_mail.text.erb
         | 
| 502 | 
            +
            - test/rails/overrides/app/views/mobile_mailer/multi_message.html.erb
         | 
| 503 | 
            +
            - test/rails/overrides/app/views/mobile_mailer/multi_message.text.erb
         | 
| 504 | 
            +
            - test/rails/overrides/app/views/mobile_mailer/view_selection.html.erb
         | 
| 505 | 
            +
            - test/rails/overrides/app/views/mobile_mailer/view_selection_mobile.html.erb
         | 
| 506 | 
            +
            - test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_au.html.erb
         | 
| 507 | 
            +
            - test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_docomo.html.erb
         | 
| 508 | 
            +
            - test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_emobile.html.erb
         | 
| 509 | 
            +
            - test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_softbank.html.erb
         | 
| 510 | 
            +
            - test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_vodafone.html.erb
         | 
| 511 | 
            +
            - test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_willcom.html.erb
         | 
| 512 | 
            +
            - test/rails/overrides/app/views/mobile_spec/_partial_view_sample.html.erb
         | 
| 513 | 
            +
            - test/rails/overrides/app/views/mobile_spec/index.html.erb
         | 
| 514 | 
            +
            - test/rails/overrides/app/views/mobile_spec/index_mobile.html.erb
         | 
| 515 | 
            +
            - test/rails/overrides/app/views/mobile_spec/no_mobile.html.erb
         | 
| 516 | 
            +
            - test/rails/overrides/app/views/normal_mailer/msg.text.erb
         | 
| 517 | 
            +
            - test/rails/overrides/app/views/template_path/_partial.html.erb
         | 
| 518 | 
            +
            - test/rails/overrides/app/views/template_path/_partial_mobile.html.erb
         | 
| 519 | 
            +
            - test/rails/overrides/app/views/template_path/_partial_mobile_docomo.html.erb
         | 
| 520 | 
            +
            - test/rails/overrides/app/views/template_path/_partial_smart_phone.html.erb
         | 
| 521 | 
            +
            - test/rails/overrides/app/views/template_path/_partial_smart_phone_iphone.html.erb
         | 
| 522 | 
            +
            - test/rails/overrides/app/views/template_path/full_path_partial.html.erb
         | 
| 523 | 
            +
            - test/rails/overrides/app/views/template_path/index.html.erb
         | 
| 524 | 
            +
            - test/rails/overrides/app/views/template_path/index_mobile.html.erb
         | 
| 525 | 
            +
            - test/rails/overrides/app/views/template_path/index_mobile_docomo.html.erb
         | 
| 526 | 
            +
            - test/rails/overrides/app/views/template_path/index_smart_phone.html.erb
         | 
| 527 | 
            +
            - test/rails/overrides/app/views/template_path/index_smart_phone_iphone.html.erb
         | 
| 528 | 
            +
            - test/rails/overrides/app/views/template_path/partial.html.erb
         | 
| 529 | 
            +
            - test/rails/overrides/app/views/template_path/show_mobile.html.erb
         | 
| 530 | 
            +
            - test/rails/overrides/app/views/template_path/show_mobile_docomo.html.erb
         | 
| 531 | 
            +
            - test/rails/overrides/app/views/template_path/smart_phone_only.html.erb
         | 
| 532 | 
            +
            - test/rails/overrides/app/views/template_path/smart_phone_only_smart_phone.html.erb
         | 
| 533 | 
            +
            - test/rails/overrides/app/views/template_path/with_ipd.html.erb
         | 
| 534 | 
            +
            - test/rails/overrides/app/views/template_path/with_ipd_tablet_ipad.html.erb
         | 
| 535 | 
            +
            - test/rails/overrides/app/views/template_path/with_tblt.html.erb
         | 
| 536 | 
            +
            - test/rails/overrides/app/views/template_path/with_tblt_tablet.html.erb
         | 
| 537 | 
            +
            - test/rails/overrides/autotest/discover.rb
         | 
| 538 | 
            +
            - test/rails/overrides/config/initializers/jpmobile_generator.rb
         | 
| 539 | 
            +
            - test/rails/overrides/config/routes.rb
         | 
| 540 | 
            +
            - test/rails/overrides/db/migrate/001_add_sessions_table.rb
         | 
| 541 | 
            +
            - test/rails/overrides/db/migrate/20100824062306_create_users.rb
         | 
| 542 | 
            +
            - test/rails/overrides/spec/controllers/mobile_spec_controller_spec.rb
         | 
| 543 | 
            +
            - test/rails/overrides/spec/controllers/trans_sid_controller_spec.rb
         | 
| 544 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/au-attached.eml
         | 
| 545 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/au-decomail.eml
         | 
| 546 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/au-emoji.eml
         | 
| 547 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/au-emoji2.eml
         | 
| 548 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/au-emoji5.eml
         | 
| 549 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/bounced-jp.eml
         | 
| 550 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/docomo-emoji.eml
         | 
| 551 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/docomo-gmail-sjis.eml
         | 
| 552 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/docomo-jis.eml
         | 
| 553 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/no-from.eml
         | 
| 554 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/non-jp.eml
         | 
| 555 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/photo.jpg
         | 
| 556 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/softbank-blank.eml
         | 
| 557 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/softbank-emoji-utf8.eml
         | 
| 558 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/softbank-emoji.eml
         | 
| 559 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/softbank-gmail-sjis.eml
         | 
| 560 | 
            +
            - test/rails/overrides/spec/fixtures/mobile_mailer/softbank-gmail-utf8.eml
         | 
| 561 | 
            +
            - test/rails/overrides/spec/helpers/helpers_spec.rb
         | 
| 562 | 
            +
            - test/rails/overrides/spec/mailers/decorated_mailer_spec.rb
         | 
| 563 | 
            +
            - test/rails/overrides/spec/mailers/mobile_mailer_spec.rb
         | 
| 564 | 
            +
            - test/rails/overrides/spec/mailers/normal_mailer_spec.rb
         | 
| 565 | 
            +
            - test/rails/overrides/spec/rcov.opts
         | 
| 566 | 
            +
            - test/rails/overrides/spec/requests/admin/top_spec.rb
         | 
| 567 | 
            +
            - test/rails/overrides/spec/requests/docomo_guid_spec.rb
         | 
| 568 | 
            +
            - test/rails/overrides/spec/requests/docomo_spec.rb
         | 
| 569 | 
            +
            - test/rails/overrides/spec/requests/emobile_spec.rb
         | 
| 570 | 
            +
            - test/rails/overrides/spec/requests/filter_spec.rb
         | 
| 571 | 
            +
            - test/rails/overrides/spec/requests/helpers_spec.rb
         | 
| 572 | 
            +
            - test/rails/overrides/spec/requests/pc_spec.rb
         | 
| 573 | 
            +
            - test/rails/overrides/spec/requests/softbank_emulator_spec.rb
         | 
| 574 | 
            +
            - test/rails/overrides/spec/requests/template_path_spec.rb
         | 
| 575 | 
            +
            - test/rails/overrides/spec/requests/trans_sid_spec.rb
         | 
| 576 | 
            +
            - test/rails/overrides/spec/spec_helper.rb
         | 
| 577 | 
            +
            - test/sinatra/config.ru
         | 
| 578 | 
            +
            - test/sinatra/guestbook.rb
         | 
| 579 | 
            +
            - test/sinatra/test/filter_test.rb
         | 
| 580 | 
            +
            - test/sinatra/views/index.erb
         | 
| 581 | 
            +
            - test/sinatra/views/index_mobile.erb
         |