geordi 3.2.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +10 -1
- data/Gemfile.lock +1 -1
- data/README.md +111 -142
- data/Rakefile +18 -8
- data/geordi.gemspec +1 -0
- data/lib/geordi/COMMAND_TEMPLATE +3 -1
- data/lib/geordi/commands/chromedriver_update.rb +2 -2
- data/lib/geordi/commands/commit.rb +0 -5
- data/lib/geordi/commands/console.rb +8 -11
- data/lib/geordi/commands/create_databases.rb +2 -1
- data/lib/geordi/commands/cucumber.rb +13 -15
- data/lib/geordi/commands/delete_dumps.rb +0 -1
- data/lib/geordi/commands/deploy.rb +11 -11
- data/lib/geordi/commands/drop_databases.rb +0 -6
- data/lib/geordi/commands/dump.rb +9 -17
- data/lib/geordi/commands/firefox.rb +2 -5
- data/lib/geordi/commands/migrate.rb +1 -1
- data/lib/geordi/commands/rake.rb +3 -1
- data/lib/geordi/commands/rspec.rb +5 -9
- data/lib/geordi/commands/security_update.rb +14 -15
- data/lib/geordi/commands/server.rb +1 -1
- data/lib/geordi/commands/setup.rb +2 -11
- data/lib/geordi/commands/shell.rb +7 -8
- data/lib/geordi/commands/unit.rb +1 -1
- data/lib/geordi/commands/update.rb +0 -11
- data/lib/geordi/commands/vnc.rb +1 -3
- data/lib/geordi/commands/with_rake.rb +1 -1
- data/lib/geordi/cucumber.rb +2 -2
- data/lib/geordi/util.rb +11 -3
- data/lib/geordi/version.rb +1 -1
- metadata +6 -33
- data/exe/cap-all +0 -4
- data/exe/console-for +0 -4
- data/exe/cuc +0 -4
- data/exe/cuc-show +0 -4
- data/exe/cuc-vnc-setup +0 -4
- data/exe/deploy-to-production +0 -4
- data/exe/dump-for +0 -8
- data/exe/gitpt +0 -4
- data/exe/load-dump +0 -4
- data/exe/migrate-all +0 -4
- data/exe/rs +0 -4
- data/exe/run_tests +0 -4
- data/exe/shell-for +0 -4
- data/exe/tests +0 -4
- data/lib/geordi/commands/eurest.rb +0 -4
data/lib/geordi/commands/unit.rb
CHANGED
@@ -3,17 +3,6 @@ long_desc <<-LONGDESC
|
|
3
3
|
Example: `geordi update`
|
4
4
|
|
5
5
|
Performs: `git pull`, `bundle install` (if necessary) and migrates (if applicable).
|
6
|
-
|
7
|
-
After updating, loads a dump into the development db when called with the
|
8
|
-
`--dump` option:
|
9
|
-
|
10
|
-
geordi update -d staging
|
11
|
-
|
12
|
-
After updating, runs all tests when called with the `--test` option:
|
13
|
-
|
14
|
-
geordi update -t
|
15
|
-
|
16
|
-
See `geordi help update` for details.
|
17
6
|
LONGDESC
|
18
7
|
|
19
8
|
option :dump, type: :string, aliases: '-d', banner: 'TARGET',
|
data/lib/geordi/commands/vnc.rb
CHANGED
@@ -4,11 +4,9 @@ Example: `geordi vnc` or `geordi vnc --setup`
|
|
4
4
|
|
5
5
|
Launch a VNC session to the hidden screen where `geordi cucumber` runs Selenium
|
6
6
|
tests.
|
7
|
-
|
8
|
-
When called with `--setup`, will guide through the setup of VNC.
|
9
7
|
LONGDESC
|
10
8
|
|
11
|
-
option :setup, type: :boolean
|
9
|
+
option :setup, type: :boolean, desc: 'Guide through the setup of VNC'
|
12
10
|
|
13
11
|
def vnc
|
14
12
|
if options.setup
|
data/lib/geordi/cucumber.rb
CHANGED
@@ -74,7 +74,7 @@ module Geordi
|
|
74
74
|
unless argv.include?('--format') || argv.include?('-f')
|
75
75
|
format_args = spinner_available? ? ['--format', 'CucumberSpinner::CuriousProgressBarFormatter'] : ['--format', 'progress']
|
76
76
|
end
|
77
|
-
[use_firefox_for_selenium, '
|
77
|
+
[use_firefox_for_selenium, Util.binstub('cucumber'), format_args, escape_shell_args(argv)].flatten.compact.join(' ')
|
78
78
|
end
|
79
79
|
|
80
80
|
def parallel_execution_command
|
@@ -87,7 +87,7 @@ module Geordi
|
|
87
87
|
|
88
88
|
[
|
89
89
|
use_firefox_for_selenium,
|
90
|
-
'
|
90
|
+
'bundle exec parallel_test -t ' + type_arg,
|
91
91
|
%(-o '#{command_line_options.join(' ')} --tags "#{not_tag('@solo')}"'),
|
92
92
|
"-- #{features.join(' ')}",
|
93
93
|
].compact.join(' ')
|
data/lib/geordi/util.rb
CHANGED
@@ -62,13 +62,21 @@ module Geordi
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
def binstub(executable, *arguments)
|
66
|
+
binstub_file = "bin/#{executable}"
|
67
|
+
|
68
|
+
command = File.exists?(binstub_file) ? [binstub_file] : ['bundle exec', executable]
|
69
|
+
command.push(*arguments)
|
70
|
+
command.join(' ')
|
71
|
+
end
|
72
|
+
|
65
73
|
def console_command(environment)
|
66
74
|
if gem_major_version('rails') == 2
|
67
75
|
'script/console ' + environment
|
68
76
|
elsif gem_major_version('rails') == 3
|
69
|
-
'
|
77
|
+
binstub 'rails', 'console', environment
|
70
78
|
else
|
71
|
-
|
79
|
+
binstub 'rails', 'console -e', environment
|
72
80
|
end
|
73
81
|
end
|
74
82
|
|
@@ -76,7 +84,7 @@ module Geordi
|
|
76
84
|
if gem_major_version('rails') == 2
|
77
85
|
'script/server ""'
|
78
86
|
else
|
79
|
-
'
|
87
|
+
binstub 'rails', 'server'
|
80
88
|
end
|
81
89
|
end
|
82
90
|
|
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:
|
4
|
+
version: 4.0.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-07-
|
11
|
+
date: 2020-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -30,23 +30,9 @@ email:
|
|
30
30
|
- henning.koch@makandra.de
|
31
31
|
executables:
|
32
32
|
- b
|
33
|
-
- cap-all
|
34
|
-
- console-for
|
35
|
-
- cuc
|
36
|
-
- cuc-show
|
37
|
-
- cuc-vnc-setup
|
38
|
-
- deploy-to-production
|
39
|
-
- dump-for
|
40
33
|
- dumple
|
41
34
|
- geordi
|
42
|
-
- gitpt
|
43
35
|
- launchy_browser
|
44
|
-
- load-dump
|
45
|
-
- migrate-all
|
46
|
-
- rs
|
47
|
-
- run_tests
|
48
|
-
- shell-for
|
49
|
-
- tests
|
50
36
|
extensions: []
|
51
37
|
extra_rdoc_files: []
|
52
38
|
files:
|
@@ -60,23 +46,9 @@ files:
|
|
60
46
|
- README.md
|
61
47
|
- Rakefile
|
62
48
|
- exe/b
|
63
|
-
- exe/cap-all
|
64
|
-
- exe/console-for
|
65
|
-
- exe/cuc
|
66
|
-
- exe/cuc-show
|
67
|
-
- exe/cuc-vnc-setup
|
68
|
-
- exe/deploy-to-production
|
69
|
-
- exe/dump-for
|
70
49
|
- exe/dumple
|
71
50
|
- exe/geordi
|
72
|
-
- exe/gitpt
|
73
51
|
- exe/launchy_browser
|
74
|
-
- exe/load-dump
|
75
|
-
- exe/migrate-all
|
76
|
-
- exe/rs
|
77
|
-
- exe/run_tests
|
78
|
-
- exe/shell-for
|
79
|
-
- exe/tests
|
80
52
|
- geordi.gemspec
|
81
53
|
- lib/geordi.rb
|
82
54
|
- lib/geordi/COMMAND_TEMPLATE
|
@@ -98,7 +70,6 @@ files:
|
|
98
70
|
- lib/geordi/commands/deploy.rb
|
99
71
|
- lib/geordi/commands/drop_databases.rb
|
100
72
|
- lib/geordi/commands/dump.rb
|
101
|
-
- lib/geordi/commands/eurest.rb
|
102
73
|
- lib/geordi/commands/firefox.rb
|
103
74
|
- lib/geordi/commands/migrate.rb
|
104
75
|
- lib/geordi/commands/png_optimize.rb
|
@@ -130,7 +101,9 @@ homepage: http://makandra.com
|
|
130
101
|
licenses:
|
131
102
|
- MIT
|
132
103
|
metadata: {}
|
133
|
-
post_install_message:
|
104
|
+
post_install_message: |
|
105
|
+
* Binary `geordi` installed
|
106
|
+
* Geordi 4.0.0 has removed its deprecated executables. If you want to invoke these commands like before, you may create aliases on your machine. For the alias mapping, please refer to https://github.com/makandra/geordi/commit/68fa92acb146ebde3acb92d7b9556bd4eaa2b4ff
|
134
107
|
rdoc_options: []
|
135
108
|
require_paths:
|
136
109
|
- lib
|
@@ -145,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
118
|
- !ruby/object:Gem::Version
|
146
119
|
version: '0'
|
147
120
|
requirements: []
|
148
|
-
rubygems_version: 3.
|
121
|
+
rubygems_version: 3.1.4
|
149
122
|
signing_key:
|
150
123
|
specification_version: 4
|
151
124
|
summary: Collection of command line tools we use in our daily work with Ruby, Rails
|
data/exe/cap-all
DELETED
data/exe/console-for
DELETED
data/exe/cuc
DELETED
data/exe/cuc-show
DELETED
data/exe/cuc-vnc-setup
DELETED
data/exe/deploy-to-production
DELETED
data/exe/dump-for
DELETED
data/exe/gitpt
DELETED
data/exe/load-dump
DELETED
data/exe/migrate-all
DELETED
data/exe/rs
DELETED
data/exe/run_tests
DELETED
data/exe/shell-for
DELETED
data/exe/tests
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
desc 'eurest', 'Open the current Eurest cantina menu', hide: true
|
2
|
-
def eurest
|
3
|
-
Util.system! %(file="Speiseplan_KW`date +%V`.pdf" && wget -O/tmp/$file http://www.eurest-extranet.de/eurest/export/sites/default/sigma-technopark/de/downloads/$file && xdg-open /tmp/$file)
|
4
|
-
end
|