theme-check 0.7.0 → 0.7.1

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: c75935127b3ec2257d0e857c46b501a0c5189da619776202a2180234606c84ca
4
- data.tar.gz: 3a54ffed715331b78f6ae3949b76466068539cd9fea4275e64f9f7a413ffd22b
3
+ metadata.gz: dbaabfa5164c15e0044073e62b846a2ec063f624ed7b4ffcef258391d5174988
4
+ data.tar.gz: d6391abfd933a518ccc4cd0fa6a359022bd12cbf26f7966cca4db46f4c7c3906
5
5
  SHA512:
6
- metadata.gz: 2720180bf217fd64061f6ed4edc5ba01616fbb6ec6b30254638c992924719d179af0f2d72c4a1a1330c7b1e6a0ef9856aec4567aca73161a0cd2b59033fffcf4
7
- data.tar.gz: c1d79dad05a55c374d4a2e008484d3c527f4483174e66ffb3c30ce96f65e8a2f03c6295de33130295b70bc63f3d3aed4dce2c7eac14de0347aa73fca599b062e
6
+ metadata.gz: 220efb59f50619efdf330ce4b97757cf072752ee543238cd0caa1da0e873da513ad62edc54cf711a7cfaa2b200c32f545740a4034661800ff07932b66cb74f1a
7
+ data.tar.gz: a2860be5d8fb053123055b77cb5040bdf68fbf6ec851446b10aa6161d45ddec2b8ff6e101771f74b29758f5924f15682303e120d7b457e721e492c53922abb06
data/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
1
 
2
+ 0.7.1 / 2021-04-12
3
+ ==================
4
+
5
+ * Fix High CPU Bug in RemoteAsset check
6
+ * Fix document link for render tags that trim whitespace.
7
+
2
8
  0.7.0 / 2021-04-08
3
9
  ==================
4
10
 
@@ -24,7 +24,7 @@ module ThemeCheck
24
24
  'shopify_asset_url',
25
25
  ]
26
26
 
27
- RESOURCE_TAG = /<(?<tag_name>img|script|link|source)#{HTML_ATTRIBUTES}>/oim
27
+ RESOURCE_TAG = %r{<(?<tag_name>img|script|link|source)#{HTML_ATTRIBUTES}/?>}oim
28
28
  RESOURCE_URL = /\s(?:src|href)=(?<resource_url>#{QUOTED_LIQUID_ATTRIBUTE})/oim
29
29
  ASSET_URL_FILTER = /[\|\s]*(#{ASSET_URL_FILTERS.join('|')})/omi
30
30
  PROTOCOL = %r{(https?:)?//}
@@ -3,8 +3,8 @@
3
3
  module ThemeCheck
4
4
  module LanguageServer
5
5
  PARTIAL_RENDER = %r{
6
- \{\%\s*render\s+'(?<partial>[^']*)'|
7
- \{\%\s*render\s+"(?<partial>[^"]*)"
6
+ \{\%-?\s*render\s+'(?<partial>[^']*)'|
7
+ \{\%-?\s*render\s+"(?<partial>[^"]*)"
8
8
  }mix
9
9
  end
10
10
  end
@@ -24,7 +24,7 @@ module ThemeCheck
24
24
  puts "Grabbing sha256 checksum from Rubygems.org"
25
25
  require 'digest/sha2'
26
26
  require 'open-uri'
27
- gem_checksum = open("https://rubygems.org/downloads/theme-check-#{ThemeCheck::VERSION}.gem") do |io|
27
+ gem_checksum = URI.open("https://rubygems.org/downloads/theme-check-#{ThemeCheck::VERSION}.gem") do |io|
28
28
  Digest::SHA256.new.hexdigest(io.read)
29
29
  end
30
30
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ThemeCheck
3
- VERSION = "0.7.0"
3
+ VERSION = "0.7.1"
4
4
  end
@@ -13,7 +13,7 @@ class ThemeCheck < Formula
13
13
  class RubyGemsDownloadStrategy < AbstractDownloadStrategy
14
14
  include RubyBin
15
15
 
16
- def fetch
16
+ def fetch(_timeout: nil, **_options)
17
17
  ohai("Fetching theme-check from gem source")
18
18
  cache.cd do
19
19
  ENV['GEM_SPEC_CACHE'] = "#{cache}/gem_spec_cache"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theme-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-André Cournoyer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-08 00:00:00.000000000 Z
11
+ date: 2021-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: liquid