geordi 5.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +2 -1
- data/CHANGELOG.md +2 -0
- data/README.md +1 -1
- data/lib/geordi/commands/_setup_vnc.rb +8 -10
- data/lib/geordi/cucumber.rb +3 -2
- data/lib/geordi/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7807d5539f7a89704caedcb84cbbe86fdf249f0d118419a208bc6de5a56d163d
|
4
|
+
data.tar.gz: 3e3ab52311d9148bb515d373e1404bf84a112111ab49935fb30e3694b04d2365
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09e3ced6e1773f894560ec79ac6625ebc61af0e6eb0592785a5e273c6fb3df514691803072719854534d311cc6e8c8b1d62e9f4d184b31ca6b9e7bd74f5ad102'
|
7
|
+
data.tar.gz: 8d74f8a681f19d9f8d5d08ee95a4d4e2a30074d97021692f0734a40a14821ed6a204b435ffa615de57b5925994a65f00294f8492eafbe59baddc81daa5bfb034
|
data/.github/workflows/test.yml
CHANGED
@@ -35,7 +35,8 @@ jobs:
|
|
35
35
|
ruby-version: "${{ matrix.ruby }}"
|
36
36
|
- name: Install vncserver
|
37
37
|
run: |
|
38
|
-
sudo apt-get
|
38
|
+
sudo apt-get update
|
39
|
+
sudo apt-get install -y tightvncserver
|
39
40
|
# Fake required password for vncserver
|
40
41
|
mkdir ~/.vnc && touch ~/.vnc/passwd && chmod 700 ~/.vnc/passwd
|
41
42
|
- name: Bundle
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Geordi [![
|
1
|
+
Geordi [![Tests](https://github.com/makandra/geordi/workflows/Tests/badge.svg)](https://github.com/makandra/geordi/actions)
|
2
2
|
======
|
3
3
|
|
4
4
|
Geordi is a collection of command line tools we use in our daily work with
|
@@ -23,26 +23,24 @@ def _setup_vnc
|
|
23
23
|
Interaction.success 'It appears you already have a VNC server installed. Good job!'
|
24
24
|
else
|
25
25
|
puts 'Please run:'
|
26
|
-
Interaction.note_cmd 'sudo apt-get install
|
26
|
+
Interaction.note_cmd 'sudo apt-get install tightvncserver'
|
27
|
+
puts 'In case this package is not available, you may try vnc4server instead.'
|
27
28
|
Interaction.prompt 'Continue ...'
|
28
29
|
|
29
30
|
puts
|
31
|
+
|
30
32
|
Interaction.note 'We will now set a password for your VNC server.'
|
31
33
|
puts Util.strip_heredoc <<-TEXT
|
32
|
-
When running our cucumber script,
|
33
|
-
|
34
|
-
without our cucumber script, a user with
|
35
|
-
your machine.
|
34
|
+
When running our cucumber script, this password will be used while also
|
35
|
+
restricting access to the local machine. However, if you start a vncserver
|
36
|
+
without our cucumber script, keep in mind that a user with this password
|
37
|
+
can connect to your machine.
|
36
38
|
|
37
39
|
TEXT
|
38
40
|
puts 'Please run:'
|
39
|
-
Interaction.note_cmd '
|
41
|
+
Interaction.note_cmd 'vncpasswd'
|
40
42
|
Interaction.warn 'Enter a secure password!'
|
41
43
|
Interaction.prompt 'Continue ...'
|
42
|
-
|
43
|
-
puts 'Now stop the server again. Please run:'
|
44
|
-
Interaction.note_cmd 'vncserver -kill :20'
|
45
|
-
Interaction.prompt 'Continue ...'
|
46
44
|
end
|
47
45
|
|
48
46
|
Interaction.announce 'Setup VNC viewer'
|
data/lib/geordi/cucumber.rb
CHANGED
@@ -11,8 +11,9 @@ module Geordi
|
|
11
11
|
class Cucumber
|
12
12
|
|
13
13
|
VNC_DISPLAY = ':17'.freeze
|
14
|
-
|
15
|
-
|
14
|
+
VNC_PASSWORD_FILE = File.absolute_path('~/.vnc/passwd').freeze # default for "vncpasswd"
|
15
|
+
VNC_SERVER_COMMAND = "vncserver #{VNC_DISPLAY} -localhost -nolisten tcp -geometry 1280x1024 -rfbauth #{VNC_PASSWORD_FILE}".freeze
|
16
|
+
VNC_VIEWER_COMMAND = "vncviewer #{VNC_DISPLAY} -passwd #{VNC_PASSWORD_FILE}".freeze
|
16
17
|
VNC_ENV_VARIABLES = %w[DISPLAY BROWSER LAUNCHY_BROWSER].freeze
|
17
18
|
|
18
19
|
def run(files, cucumber_options, options = {})
|
data/lib/geordi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geordi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henning Koch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
|
-
rubygems_version: 3.
|
121
|
+
rubygems_version: 3.1.4
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: Collection of command line tools we use in our daily work with Ruby, Rails
|