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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31aeeaf73b48f5745351dea208d1d74b61dfaf0830fc0000be65854abbf489b4
4
- data.tar.gz: 8f98713a2370e9bf7b92b34b02a981b2ac8d55d6e209a19ccef1a802dfe62fa8
3
+ metadata.gz: 4152b7a44a0adfe7a3de6bdd6b80294032b8563aae414f61731a090b56d9cad9
4
+ data.tar.gz: f5342b12612912a6263f823b664993240256099e030d71f30212614d0135a740
5
5
  SHA512:
6
- metadata.gz: 55b34aef9b0cb6be4a0079b8668f1af76c2b68419e2f5f6046ffb21bf921a4595c8a9a593f3b639e763d40f121bdb9f27800451c3a48cc7fd332c14b45ca5adf
7
- data.tar.gz: 077baf19b701f348bac0dd32a0f59a9782e4dbdad4d21fc34b5ac0989b9ced1cf6ecf9f6808af52f4074c2b0d0ae253b1168bdf8490f4e10b29bf9b34fe23b31
6
+ metadata.gz: 16bc5a458e05d2c09c9a68a4f30a942aa0f8f1f8dc360fa03caaaff3f1434c99d1a86f44a9e765dbb14f4a656c0c74a5bd8afade29fc5670a124779246fddc6f
7
+ data.tar.gz: 5f897817125890dbe7848ef1ad02547a643d61a101b756aabf5dbd73cae6d2b19778354cbcf6363db66e715e00d0e9fc6c69e8c38121c25d6e1b29ff37dde0ca
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 1.0.2
2
+
3
+ * Switch user-agent check from String#match to Regexp#match
4
+
1
5
  1.0.1
2
6
 
3
7
  * Bumped Rake dependency to silence CVE-2020-8130 warning
@@ -41,7 +41,7 @@ module DynamicRendering
41
41
  private
42
42
 
43
43
  def request_suitable_for_dynamic_rendering?
44
- request.user_agent.match?(USE_DYNAMIC_RENDERING_FOR_USER_AGENTS)
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
- request.user_agent.match?(MOBILE_USER_AGENT)
54
+ MOBILE_USER_AGENT.match?(request.user_agent)
55
55
  end
56
56
 
57
57
  def response_suitable_for_dynamic_rendering?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DynamicRendering
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
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.1
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: 2020-10-08 00:00:00.000000000 Z
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.0.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