rails-dynamic-rendering 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/dynamic_rendering/acts_as_dynamically_renderable.rb +2 -2
- data/lib/dynamic_rendering/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4152b7a44a0adfe7a3de6bdd6b80294032b8563aae414f61731a090b56d9cad9
|
4
|
+
data.tar.gz: f5342b12612912a6263f823b664993240256099e030d71f30212614d0135a740
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16bc5a458e05d2c09c9a68a4f30a942aa0f8f1f8dc360fa03caaaff3f1434c99d1a86f44a9e765dbb14f4a656c0c74a5bd8afade29fc5670a124779246fddc6f
|
7
|
+
data.tar.gz: 5f897817125890dbe7848ef1ad02547a643d61a101b756aabf5dbd73cae6d2b19778354cbcf6363db66e715e00d0e9fc6c69e8c38121c25d6e1b29ff37dde0ca
|
data/CHANGELOG.md
CHANGED
@@ -41,7 +41,7 @@ module DynamicRendering
|
|
41
41
|
private
|
42
42
|
|
43
43
|
def request_suitable_for_dynamic_rendering?
|
44
|
-
|
44
|
+
USE_DYNAMIC_RENDERING_FOR_USER_AGENTS.match?(request.user_agent)
|
45
45
|
end
|
46
46
|
|
47
47
|
def dynamic_rendering_viewport
|
@@ -51,7 +51,7 @@ module DynamicRendering
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def dynamic_rendering_request_from_mobile_crawler?
|
54
|
-
|
54
|
+
MOBILE_USER_AGENT.match?(request.user_agent)
|
55
55
|
end
|
56
56
|
|
57
57
|
def response_suitable_for_dynamic_rendering?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-dynamic-rendering
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Giles
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grover
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
requirements: []
|
168
|
-
rubygems_version: 3.
|
168
|
+
rubygems_version: 3.1.2
|
169
169
|
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: Puppeteer based dynamic rendering for Rails applications
|