geordi 5.2.2 → 5.2.3

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: 7cdbb8d2117f5dabfe50dd59aefd6350f0bc4ed432c34b84ed69c1eb7ec4deb8
4
- data.tar.gz: 8c698261c37144cb4d5d237bb7617103cb662b442702f629c8a84bc2b90e46fd
3
+ metadata.gz: 601c58f6344b5fb02e2514749e216e60a6f6f1cc656d2a37eabb891cc013edfa
4
+ data.tar.gz: 07b06fa74266f0ba5506b8218e10c78b4156c854cef9bb8bca3fd77ba5b6d30a
5
5
  SHA512:
6
- metadata.gz: 5073101d9cf2117115e5ae56ef1c702f7a809390b11a80aef7d18b8006ce6a57c2519e6ba46c2498bb08fdb7f41c1dc87393dc241faaaddff9f7f02d6fea09e6
7
- data.tar.gz: ebbd01ff8e87137f89dccb27f8f57d2aca28c5993631957ec5d1c23cb23b24182b368748bcfb0dadd8f0c4d841218755ac34c4f3ba449333f3aa7b2c6f0c3e25
6
+ metadata.gz: 533ceae3f15d374526bafa76278914212de5b930250c8375c8f4cde1661e56d4c22093a4266c48b3646b023c4925599e2c46e0f93f38b52430a9748ce1778e7c
7
+ data.tar.gz: edf3b697d11b5ec5c932ccd6a60311325ea0d8ed50e3d0650aae3f63b8cd514374dfd465212aae82e6585daee7f7466113cf6b1dacbf430a2b7c95269c9b0dc2
@@ -1 +1 @@
1
- 2.5.8
1
+ 2.2
@@ -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.2 2020-12-17
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
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- geordi (5.2.2)
4
+ geordi (5.2.3)
5
5
  thor (~> 1)
6
6
 
7
7
  GEM
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
@@ -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('../../bin/launchy_browser', __dir__)
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'
@@ -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
- # Lines look like `* will_paginate (2.3.15)` or `railslts-version (2.3.18.16 7f51cc7)`
171
- bundle_list.split("\n").each do |line|
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
- return Gem::Version.new(matches[1])
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
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '5.2.2'.freeze
2
+ VERSION = '5.2.3'.freeze
3
3
  end
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.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: 2020-12-17 00:00:00.000000000 Z
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.8
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