theme-check 0.7.1 → 0.7.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: dbaabfa5164c15e0044073e62b846a2ec063f624ed7b4ffcef258391d5174988
4
- data.tar.gz: d6391abfd933a518ccc4cd0fa6a359022bd12cbf26f7966cca4db46f4c7c3906
3
+ metadata.gz: b516a7041c1025cd22bcbb4cab685b45893b38fa41ab55b539efad60cf67e100
4
+ data.tar.gz: 86d5d5054247c0c86b4a31b066a579fc60fbcf4f0d32940354c4fc9793667498
5
5
  SHA512:
6
- metadata.gz: 220efb59f50619efdf330ce4b97757cf072752ee543238cd0caa1da0e873da513ad62edc54cf711a7cfaa2b200c32f545740a4034661800ff07932b66cb74f1a
7
- data.tar.gz: a2860be5d8fb053123055b77cb5040bdf68fbf6ec851446b10aa6161d45ddec2b8ff6e101771f74b29758f5924f15682303e120d7b457e721e492c53922abb06
6
+ metadata.gz: b76463ad9ecab829705519f163745fdd7cb6dea084558983c914dd3ddf923385050da1c535ad73f48a4442dd8a67bc797fd072e293aa85befb15a141870196db
7
+ data.tar.gz: 67571132dcf7fd556c81d4eb7f7e15c8db6c7ccee70384bb6654915090d5c8c213dbbee9b9b36acd74f0cac02390630defe7c1de1956f41f61c9d30294cdd4a0
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ 0.7.2 / 2021-04-12
3
+ ==================
4
+
5
+ * Fixup bug in RemoteAsset causing Language Server to break
6
+
2
7
  0.7.1 / 2021-04-12
3
8
  ==================
4
9
 
@@ -76,6 +76,7 @@ module ThemeCheck
76
76
  next if url_hosted_by_shopify?(resource_url)
77
77
  next if resource_url =~ ABSOLUTE_PATH
78
78
  next if resource_url =~ RELATIVE_PATH
79
+ next if resource_url.empty?
79
80
 
80
81
  start = match.begin(0) + resource_match.begin(:resource_url)
81
82
  add_offense(
@@ -32,6 +32,8 @@ module ThemeCheck
32
32
  node&.markup
33
33
  end
34
34
 
35
+ raise ArgumentError, "Offense markup cannot be an empty string" if @markup.is_a?(String) && @markup.empty?
36
+
35
37
  @line_number = if line_number
36
38
  line_number
37
39
  elsif @node
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ThemeCheck
3
- VERSION = "0.7.1"
3
+ VERSION = "0.7.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theme-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-André Cournoyer