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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/jpmobile/rack/filter.rb +1 -1
- data/lib/jpmobile/version.rb +1 -1
- data/test/rails/overrides/spec/requests/pc_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4b40681d31282cdbf4a8578f6d3525c3b882011650e29520a1af4a859de9113
|
4
|
+
data.tar.gz: 7453e53f4bb4143a16696a0825dc3f5220922ee97987bcbb804369056e2b5431
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6526d0e974937db68f9e53fb7b945e469ff81dd69ad634797f47e521cd25d53770ba9a1d42b64a22dbf0632bff32e07a57de380ff29f716d3166476931cc4aea
|
7
|
+
data.tar.gz: 6d1a3e74920adaaed5215a810246eb33538944eaf0a1b5c240ecddb4145b55f0d8d27aeca8e0a56c4dd3d0d8a1349cb41a4e3d55379f8d87f9118e3b0e5e6154
|
data/Gemfile.lock
CHANGED
data/lib/jpmobile/rack/filter.rb
CHANGED
@@ -13,7 +13,7 @@ module Jpmobile
|
|
13
13
|
|
14
14
|
status, env, response = @app.call(env)
|
15
15
|
|
16
|
-
if env['Content-Type']
|
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
|
|
data/lib/jpmobile/version.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2018-06-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mail
|