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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0eec96f8af1e1aa9529c9dd13d6e8863506caed0c87c018a9b56637f4d4dcc6f
4
- data.tar.gz: 65997da9eb23bd3da6d1386abefee6164c63b2ad098b1bf8930e061e0ec27103
3
+ metadata.gz: bdd2831aab4e514900ed006127e7f86ebb2b5e0f310691b1bd5bc6e856b7d15b
4
+ data.tar.gz: 04bd0ce28f45407fe654d56e872630b5e3a3ab1534ec66c315fc7c53c96315a2
5
5
  SHA512:
6
- metadata.gz: 3fa3cf2d017197c3fc06db80d9a33f565e78bb438548b887882b968351e6cd790451de7788fa411c284bf4de62657aa6556e586c53f53d15e30c608e776dbbea
7
- data.tar.gz: 32e834d0a2141ecb2698572b6b29317950e2d46b812e23a6dc4f42d649309ef6d018f5dbca6a5d7061976712d1ed04bd1fc042aa13453cd6088d8f43793654b2
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
@@ -1,5 +1,5 @@
1
1
  module Playwright
2
2
  class CLI < Hanami::CLI
3
- VERSION = "0.1.10"
3
+ VERSION = "0.1.11"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playwright-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Gregory