jpmobile 5.2.1 → 5.2.2

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
  SHA256:
3
- metadata.gz: c63e7fa07c75ad2c17c00a4e406ad9728ff256398ac9e2e981f698081451e623
4
- data.tar.gz: 6a6a72213b870c5b563a55264a5b7932dfa3ddea60cf7cbcd1de49d3e17ccf96
3
+ metadata.gz: c4b40681d31282cdbf4a8578f6d3525c3b882011650e29520a1af4a859de9113
4
+ data.tar.gz: 7453e53f4bb4143a16696a0825dc3f5220922ee97987bcbb804369056e2b5431
5
5
  SHA512:
6
- metadata.gz: c03beec28f2f055cbab2112455cbf703256fb1e51233eeb5670c027eb713f14c54199fe89b2be9a726cadb653ad6c42d4521bb7956b72d8835459c9d46718b3b
7
- data.tar.gz: de647d201b7fa7d9910fb271c2595e0f3c07b8ee5d7cfbf7963036632a1c113545845eb38a9fea5f2f249dbc648ce6f395b71318894fb5971b4d2b2ad2a02991
6
+ metadata.gz: 6526d0e974937db68f9e53fb7b945e469ff81dd69ad634797f47e521cd25d53770ba9a1d42b64a22dbf0632bff32e07a57de380ff29f716d3166476931cc4aea
7
+ data.tar.gz: 6d1a3e74920adaaed5215a810246eb33538944eaf0a1b5c240ecddb4145b55f0d8d27aeca8e0a56c4dd3d0d8a1349cb41a4e3d55379f8d87f9118e3b0e5e6154
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jpmobile (5.2.1)
4
+ jpmobile (5.2.2)
5
5
  mail (~> 2.7.0)
6
6
 
7
7
  GEM
@@ -13,7 +13,7 @@ module Jpmobile
13
13
 
14
14
  status, env, response = @app.call(env)
15
15
 
16
- if env['Content-Type'].match?(%r{text/html|application/xhtml\+xml})
16
+ if env['Content-Type']&.match?(%r{text/html|application/xhtml\+xml})
17
17
  if mobile && mobile.apply_filter?
18
18
  type, charset = env['Content-Type'].split(/;\s*charset=/)
19
19
 
@@ -1,3 +1,3 @@
1
1
  module Jpmobile
2
- VERSION = '5.2.1'.freeze
2
+ VERSION = '5.2.2'.freeze
3
3
  end
@@ -17,4 +17,10 @@ describe 'PCからのアクセスの場合', type: :request do
17
17
 
18
18
  expect(request.mobile?).to be_falsey
19
19
  end
20
+
21
+ context 'routesが存在しない場合' do
22
+ it 'ActionController::RoutingErrorをraiseする' do
23
+ expect { get '/not_exist', params: {}, env: @headers }.to raise_error ActionController::RoutingError
24
+ end
25
+ end
20
26
  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: 5.2.1
4
+ version: 5.2.2
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: 2018-04-25 00:00:00.000000000 Z
12
+ date: 2018-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mail