playwright-cli 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/playwright/cli/utils/os.rb +1 -0
- data/lib/playwright/cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdd2831aab4e514900ed006127e7f86ebb2b5e0f310691b1bd5bc6e856b7d15b
|
4
|
+
data.tar.gz: 04bd0ce28f45407fe654d56e872630b5e3a3ab1534ec66c315fc7c53c96315a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86947a60ab58ee3b734c8b5edc594ea71cf186e268440edc861b84104f56cb7caec63bc703f4fdbcd1d6e7dcd8fa53616f3f1f49f3943fe83da4674a494cd2ee
|
7
|
+
data.tar.gz: 11366a11cd5b3d350b50f265469efdda3fb300314cdd978c9ec1e3cea43faf3b3a42f5c635db53655abe8e75680c7dc77b8b065fc7456e25ff616c870ce776eb
|
@@ -22,6 +22,7 @@ module Playwright
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def open_editor path:, name: Pathname.new(path).base
|
25
|
+
display.error "#{name} is not a Playwright script!" unless Dir.exists?(path) || File.exists?(path)
|
25
26
|
if %x[ $EDITOR #{path} ]
|
26
27
|
display.print "Opening #{name} in your default editor..."
|
27
28
|
else
|