geordi 5.2.2 → 5.2.3
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 +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +7 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/geordi/commands/console.rb +1 -1
- data/lib/geordi/commands/docker.rb +7 -5
- data/lib/geordi/commands/shell.rb +0 -2
- data/lib/geordi/cucumber.rb +1 -1
- data/lib/geordi/util.rb +4 -14
- 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: 601c58f6344b5fb02e2514749e216e60a6f6f1cc656d2a37eabb891cc013edfa
|
4
|
+
data.tar.gz: 07b06fa74266f0ba5506b8218e10c78b4156c854cef9bb8bca3fd77ba5b6d30a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 533ceae3f15d374526bafa76278914212de5b930250c8375c8f4cde1661e56d4c22093a4266c48b3646b023c4925599e2c46e0f93f38b52430a9748ce1778e7c
|
7
|
+
data.tar.gz: edf3b697d11b5ec5c932ccd6a60311325ea0d8ed50e3d0650aae3f63b8cd514374dfd465212aae82e6585daee7f7466113cf6b1dacbf430a2b7c95269c9b0dc2
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.2
|
data/CHANGELOG.md
CHANGED
@@ -7,27 +7,30 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
7
7
|
## Unreleased
|
8
8
|
|
9
9
|
### Compatible changes
|
10
|
-
|
11
10
|
### Breaking changes
|
12
11
|
|
13
12
|
|
14
|
-
## 5.2.
|
13
|
+
## 5.2.3 2021-01-27
|
15
14
|
|
16
15
|
### Compatible changes
|
16
|
+
* Remove auto-bundling from `geordi shell` and remote `geordi console`
|
17
|
+
|
18
|
+
|
19
|
+
## 5.2.2 2020-12-17
|
17
20
|
|
21
|
+
### Compatible changes
|
18
22
|
* Ignore ACL settings when loading a PostgreSQL dump
|
19
23
|
|
20
24
|
|
21
25
|
## 5.2.1 2020-12-15
|
22
26
|
|
23
27
|
### Compatible changes
|
24
|
-
|
25
28
|
* Fix a bug regarding `geordi vnc` which was introduced in 5.1.0
|
26
29
|
|
30
|
+
|
27
31
|
## 5.2.0 2020-12-14
|
28
32
|
|
29
33
|
### Compatible changes
|
30
|
-
|
31
34
|
* Geordi update will exit with a warning when Ruby version changes during pull.
|
32
35
|
* Add `geordi docker` command with support for opening a shell for dockerized dev environments.
|
33
36
|
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -171,6 +171,7 @@ There are three subcommands:
|
|
171
171
|
Fetches all docker containers.
|
172
172
|
- `geordi docker shell`
|
173
173
|
Runs the docker service named 'main'.
|
174
|
+
Append `--secondary` to open a second shell in a already running container.
|
174
175
|
- `geordi docker vnc`
|
175
176
|
Opens a VNC viewer to connect to the VNC server in the container.
|
176
177
|
|
@@ -14,9 +14,9 @@ option :select_server, type: :string, aliases: '-s', banner: '[SERVER_NUMBER]',
|
|
14
14
|
|
15
15
|
def console(target = 'development', *_args)
|
16
16
|
require 'geordi/remote'
|
17
|
-
invoke_geordi 'bundle_install'
|
18
17
|
|
19
18
|
if target == 'development'
|
19
|
+
invoke_geordi 'bundle_install'
|
20
20
|
invoke_geordi 'yarn_install'
|
21
21
|
|
22
22
|
Interaction.announce 'Opening a local Rails console'
|
@@ -1,17 +1,17 @@
|
|
1
1
|
class DockerCLI < Thor
|
2
|
-
desc 'setup', 'Setup docker and fetch required docker-container for the current project
|
2
|
+
desc 'setup', 'Setup docker and fetch required docker-container for the current project'
|
3
3
|
def setup
|
4
4
|
docker.setup
|
5
5
|
end
|
6
6
|
|
7
|
-
desc 'shell', 'Open a shell in the main docker container for the current project
|
7
|
+
desc 'shell', 'Open a shell in the main docker container for the current project'
|
8
8
|
option :secondary, default: false, type: :boolean
|
9
9
|
map 'shell' => '_shell'
|
10
10
|
def _shell
|
11
11
|
docker.shell(:secondary => options[:secondary])
|
12
12
|
end
|
13
13
|
|
14
|
-
desc 'vnc', 'Open a vnc viewer connecting to the docker container
|
14
|
+
desc 'vnc', 'Open a vnc viewer connecting to the docker container'
|
15
15
|
def vnc
|
16
16
|
docker.vnc
|
17
17
|
end
|
@@ -24,7 +24,7 @@ class DockerCLI < Thor
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
-
desc 'docker', 'Manage docker containers for the current project
|
27
|
+
desc 'docker', 'Manage docker containers for the current project'
|
28
28
|
long_desc <<-LONGDESC
|
29
29
|
Manage docker containers to run your project dockerized.
|
30
30
|
|
@@ -35,10 +35,12 @@ There are three subcommands:
|
|
35
35
|
|
36
36
|
- `geordi docker setup`
|
37
37
|
Fetches all docker containers.
|
38
|
+
|
38
39
|
- `geordi docker shell`
|
39
40
|
Runs the docker service named 'main'.
|
41
|
+
Append `--secondary` to open a second shell in an already running container.
|
42
|
+
|
40
43
|
- `geordi docker vnc`
|
41
44
|
Opens a VNC viewer to connect to the VNC server in the container.
|
42
|
-
|
43
45
|
LONGDESC
|
44
46
|
subcommand 'docker', DockerCLI
|
@@ -15,8 +15,6 @@ option :select_server, type: :string, aliases: '-s', banner: '[SERVER_NUMBER]',
|
|
15
15
|
def shelll(target, *_args)
|
16
16
|
require 'geordi/remote'
|
17
17
|
|
18
|
-
invoke_geordi 'bundle_install'
|
19
|
-
|
20
18
|
Interaction.announce 'Opening a shell on ' + target
|
21
19
|
Geordi::Remote.new(target).shell(options)
|
22
20
|
end
|
data/lib/geordi/cucumber.rb
CHANGED
@@ -60,7 +60,7 @@ module Geordi
|
|
60
60
|
VNC_ENV_VARIABLES.each do |variable|
|
61
61
|
ENV["OUTER_#{variable}"] = ENV[variable] if ENV[variable]
|
62
62
|
end
|
63
|
-
ENV['BROWSER'] = ENV['LAUNCHY_BROWSER'] = File.expand_path('../../
|
63
|
+
ENV['BROWSER'] = ENV['LAUNCHY_BROWSER'] = File.expand_path('../../exe/launchy_browser', __dir__)
|
64
64
|
ENV['DISPLAY'] = VNC_DISPLAY
|
65
65
|
|
66
66
|
Interaction.note 'Run `geordi vnc` to view the Selenium test browsers'
|
data/lib/geordi/util.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'geordi/interaction'
|
2
2
|
require 'socket'
|
3
|
+
require 'bundler'
|
3
4
|
|
4
5
|
module Geordi
|
5
6
|
class Util
|
@@ -167,15 +168,10 @@ module Geordi
|
|
167
168
|
# Get the version for the given gem by parsing Gemfile.lock.
|
168
169
|
# Returns nil if the gem is not used.
|
169
170
|
def gem_version(gem)
|
170
|
-
|
171
|
-
|
172
|
-
matches = line.match(/\* #{gem} \(([\d\.]+)/)
|
173
|
-
next if matches.nil? || matches[1].nil?
|
171
|
+
lock_file = Bundler::LockfileParser.new(Bundler.read_file(Bundler.default_lockfile))
|
172
|
+
spec = lock_file.specs.detect { |spec| spec.name == gem }
|
174
173
|
|
175
|
-
|
176
|
-
end
|
177
|
-
|
178
|
-
nil
|
174
|
+
spec && spec.version
|
179
175
|
end
|
180
176
|
|
181
177
|
def file_containing?(file, regex)
|
@@ -192,12 +188,6 @@ module Geordi
|
|
192
188
|
string
|
193
189
|
end
|
194
190
|
|
195
|
-
private
|
196
|
-
|
197
|
-
def bundle_list
|
198
|
-
@bundle_list ||= `bundle list`
|
199
|
-
end
|
200
|
-
|
201
191
|
end
|
202
192
|
end
|
203
193
|
end
|
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.2.
|
4
|
+
version: 5.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henning Koch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-27 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.0.
|
121
|
+
rubygems_version: 3.0.3
|
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
|