capybara-wsl 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 677b081aa2669018eacb29b107de53fed0b6504a3e68484d193446084e5392a5
4
- data.tar.gz: 782cf20c5c5ec1623ae71c3d3410af23b12eebe231bf7cfbd3b4927e9eac29f6
3
+ metadata.gz: 04e04f7c677729e9d7e3548f5982a69bbaf858e7f55834fa41b5fa5f394c2764
4
+ data.tar.gz: 89c9fd0d1aa1df15315587904f0a40157c93120d2078d61f4e989b21b725b186
5
5
  SHA512:
6
- metadata.gz: c05a9ce925c9ba369ec21eb13099d6d5de64a9924cabcee79dfbafe74d142445869bf4cc46a981a3495d88d6da1747edc7290925cf0d843bbe32eb12cae17fe8
7
- data.tar.gz: 1a36d375e350a2d98680ce20b653648327e9a82e1cf07674e5f68f6c2326199d470d5804c2fffa0e387363f9f0d5962b8c32f596f644a2d0505346ed4418394c
6
+ metadata.gz: 62f5848e003552e5df7c55619cc30942d2367c031130a9f1cc54e408235be55cba80decb8c65a3fbd10156c677575fec04d89a27af8d40e4b686c091679ef70a
7
+ data.tar.gz: b4e65eae735cf4d12bce4599d443e2080a6dd8a2778e9862b966d24f2085320fd1cb2295e857ea5bf07cc2cfbbb444c4ca0c4183e3f2302f44473fe436494bc8
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  CapybaraWSL
2
2
  =======================
3
+ [![Gem Version](https://badge.fury.io/rb/capybara-wsl.svg)](https://badge.fury.io/rb/capybara-wsl)
3
4
 
4
5
  #### Allows you use open saved pages from WSL
5
6
 
@@ -10,11 +11,11 @@ This gem modifies that path to include `wsl$` part so that it's understandable f
10
11
  ### Installation
11
12
  In your `Gemfile` add:
12
13
  ```
13
- gem "capybara-wsl", git: "git@github.com:dersnek/capybara-wsl.git"
14
+ gem "capybara-wsl"
14
15
  ```
15
16
  Then run `bundle install`.
16
17
 
17
- Or via [specific_install](https://github.com/rdp/specific_install) gem if you don't want to clutter your `Gemfile`.
18
+ Or `gem install capybara-wsl`, but then running it is a bit less straightforward.
18
19
 
19
20
  ### Important note
20
21
  In order for it to work, you have to add `$BROWSER` env variable.
@@ -1,10 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ $:.push File.expand_path("../lib", __FILE__)
4
+ require "capybara/wsl/version"
5
+
3
6
  Gem::Specification.new do |s|
4
7
  s.name = "capybara-wsl"
5
- s.version = "0.2.0"
6
- s.date = "2020-06-24"
7
- s.summary = "WSL support for Capybara"
8
+ s.version = Capybara::WSL::VERSION
9
+ s.summary = "Open pages/screenshots in WSL from Capybara"
8
10
  s.description = "Allows Capybara to open pages/screenshots in Windows browsers via Launchy."
9
11
  s.authors = ["Mark Tityuk"]
10
12
  s.email = "mark.tityuk@gmail.com"
@@ -40,7 +40,7 @@ module Capybara
40
40
  private
41
41
 
42
42
  def self.modify_path(path)
43
- path.gsub "/home/", "file://///wsl$/#{distro_folder_name}/home/"
43
+ path.prepend("file://///wsl$/#{distro_folder_name}")
44
44
  end
45
45
 
46
46
  def self.distro_folder_name
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Capybara
4
+ module WSL
5
+ VERSION = "0.2.1"
6
+ end
7
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-wsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Tityuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-24 00:00:00.000000000 Z
11
+ date: 2020-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -51,6 +51,7 @@ files:
51
51
  - lib/capybara/wsl.rb
52
52
  - lib/capybara/wsl/distros.rb
53
53
  - lib/capybara/wsl/dsl.rb
54
+ - lib/capybara/wsl/version.rb
54
55
  homepage: https://github.com/dersnek/capybara-wsl
55
56
  licenses:
56
57
  - MIT
@@ -73,5 +74,5 @@ requirements: []
73
74
  rubygems_version: 3.1.2
74
75
  signing_key:
75
76
  specification_version: 4
76
- summary: WSL support for Capybara
77
+ summary: Open pages/screenshots in WSL from Capybara
77
78
  test_files: []