geordi 1.1.4 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MzdiOTEwNTRjZTJlN2IzYzU2NTExMzg0YzZmNjRjY2RhODllNjNkYg==
5
+ data.tar.gz: !binary |-
6
+ NDQ4YzU5MWYzODY0OWUyMzFkYjcyNDEzMzM0N2UyZDY5ZjY2NGY0Mg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MjdmYjc1NWU2YzRmYjcwYzE5NDc3OWUyODIyZDBhYjEwMDA1MTAyNDA5YTlh
10
+ YWIwYTQxZTZhMzRlNGQ1YWUyYTFhMWM4MWJiZmJjZWI0N2FkM2YyNDY3ZjRj
11
+ ZDZiNWYzNGIxY2M1YWZiOThkOTQwNTJkZDg5MTQ5ZThmMTgwMjA=
12
+ data.tar.gz: !binary |-
13
+ NzIyNjhkOGE5YmI2YmMwYjdhNzRkYzZiYTg2OTVmNjNkZjRiZjRjYWFkMDM3
14
+ ZDdmMzczZWI3YWEzMzU4ODc4NTRmYjc0MjIxYzJkYWE2NjQwZGVkMTcwZWI4
15
+ OTljYzcwZjFjMTUzNDFiMjg0YmY3NTc4MmIwMDg5ZjI4MWE4MjI=
data/README.md CHANGED
@@ -303,7 +303,11 @@ Contributing
303
303
 
304
304
  Copy `lib/geordi/COMMAND_TEMPLATE` to `lib/geordi/commands/your_command` and
305
305
  edit it to do what you need it to do. Usually, it is hard to automatedly test
306
- Geordi commands, so make sure you've manually tested it.
306
+ Geordi commands, so make sure you've manually tested it. You can do so by
307
+ calling your local geordi like so (adjust paths to your needs):
308
+
309
+ # @option -I: add directory to load path
310
+ ruby -I ../geordi/lib ../geordi/bin/geordi <command>
307
311
 
308
312
  Don't forget to update this README. The whole `geordi` section is auto-generated
309
313
  by `rake update_readme`.
data/bin/cap-all CHANGED
@@ -1,3 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ echo 'DEPRECATED: Use `geordi ca[pistrano]` instead'
3
4
  exec 'geordi', 'capistrano', *ARGV
data/bin/console-for CHANGED
@@ -1,3 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ echo 'DEPRECATED: Use `geordi con[sole]` instead'
3
4
  exec 'geordi', 'console', *ARGV
data/bin/cuc CHANGED
@@ -1,3 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ echo 'DEPRECATED: Use `geordi cu[cumber]` instead'
3
4
  exec 'geordi', 'cucumber', *ARGV
data/bin/cuc-show CHANGED
@@ -1,3 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- exec 'geordi', 'vnc-show'
3
+ echo 'DEPRECATED: Use `geordi vn[c]` instead'
4
+ exec 'geordi', 'vnc'
data/bin/cuc-vnc-setup CHANGED
@@ -1,3 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ echo 'DEPRECATED: Use `geordi vn[c] --setup` instead'
3
4
  exec 'geordi', 'setup-vnc'
@@ -1,3 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ echo 'DEPRECATED: Use `geordi dep[loy]` instead'
3
4
  exec 'geordi', 'deploy'
data/bin/dump-for CHANGED
@@ -4,4 +4,5 @@ if (i = ARGV.index '-s')
4
4
  ARGV[i] = '-l'
5
5
  end
6
6
 
7
+ echo 'DEPRECATED: Use `geordi du[mp]` instead'
7
8
  exec 'geordi', 'dump', *ARGV
data/bin/gitpt CHANGED
@@ -1,3 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ echo 'DEPRECATED: Use `geordi com[mit]` instead'
3
4
  exec 'geordi', 'commit'
data/bin/load-dump CHANGED
@@ -1,3 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ echo 'DEPRECATED: Use `geordi du[mp] -l` instead'
3
4
  exec 'geordi', 'dump', '-l', *ARGV
data/bin/migrate-all CHANGED
@@ -1,3 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ echo 'DEPRECATED: Use `geordi m[igrate]` instead'
3
4
  exec 'geordi', 'migrate'
data/bin/rs CHANGED
@@ -1,3 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ echo 'DEPRECATED: Use `geordi rs[pec]` instead'
3
4
  exec 'geordi', 'rspec', *ARGV
data/bin/run_tests CHANGED
@@ -1,3 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ echo 'DEPRECATED: Use `geordi f[irefox]` instead'
3
4
  exec 'geordi', 'with-firefox-for-selenium', *ARGV
data/bin/shell-for CHANGED
@@ -1,3 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ echo 'DEPRECATED: Use `geordi sh[ell]` instead'
3
4
  exec 'geordi', 'shell', *ARGV
data/bin/tests CHANGED
@@ -1,3 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ echo 'DEPRECATED: Use `geordi t[est]` instead'
3
4
  exec 'geordi', 'test'
data/geordi.gemspec CHANGED
@@ -24,19 +24,6 @@ Gem::Specification.new do |s|
24
24
  # s.add_development_dependency 'debugger'
25
25
 
26
26
  s.post_install_message = <<-ATTENTION
27
-
28
- ********************************************
29
-
30
- geordi 1.0 moves most of the scripts to
31
- the `geordi` binary. Run `geordi` and
32
- `geordi help <cmd>` for further information.
33
-
34
- Tip: Create an alias for geordi for quick
35
- access. Add this to your ~/.bashrc:
36
-
37
- alias g="geordi"
38
-
39
- ********************************************
40
-
27
+ Binary `geordi` installed
41
28
  ATTENTION
42
29
  end
@@ -1,5 +1,5 @@
1
- desc 'setup-vnc', 'Setup VNC for running Selenium tests there'
2
- def setup_vnc
1
+ desc '-setup-vnc', 'Setup VNC for running Selenium tests there', :hide => true
2
+ def _setup_vnc
3
3
  `clear`
4
4
 
5
5
  note 'This script will help you install a VNC server and a VNC viewer.'
@@ -11,7 +11,7 @@ def setup_vnc
11
11
 
12
12
  You can still inspect everything with:
13
13
  TEXT
14
- note_cmd 'geordi vnc-show'
14
+ note_cmd 'geordi vnc'
15
15
  puts
16
16
  note 'Please open a second shell to execute instructions.'
17
17
  prompt 'Continue ...'
@@ -1,5 +1,5 @@
1
- desc 'cleanup-directory', 'Remove unneeded files'
2
- def cleanup_directory
1
+ desc 'clean', 'Remove unneeded files from the current directory'
2
+ def clean
3
3
 
4
4
  announce 'Removing tempfiles'
5
5
  for pattern in %w[ webrat-* capybara-* tmp/webrat-* tmp/capybara-* tmp/rtex/* log/*.log ]
@@ -4,18 +4,35 @@ Example: `geordi cucumber features/authentication_feature:3`
4
4
 
5
5
  Runs Cucumber as you want: with `bundle exec`, `cucumber_spinner` detection,
6
6
  separate Firefox for Selenium, etc.
7
+
8
+ Sometimes, the dot-printing Cucumber formatter does not show errors. In case a
9
+ feature fails without a message, try calling with `--debug` or `-d`.
10
+
11
+ Any unknown option will be passed through to Cucumber, e.g. `--format pretty`.
7
12
  LONGDESC
8
13
 
9
- option :verbose, :aliases => '-v', :type => :boolean, :desc => 'Print the testing command'
14
+ option :verbose, :aliases => '-v', :type => :boolean,
15
+ :desc => 'Print the testrun command'
16
+ option :debug, :aliases => '-d', :type => :boolean,
17
+ :desc => 'Run with `-f pretty -b` which helps hunting down bugs'
18
+ option :rerun, :aliases => '-r', :type => :numeric, :default => 0,
19
+ :desc => 'Rerun features up to N times while failing'
10
20
 
11
21
  def cucumber(*files)
12
- require 'geordi/cucumber'
22
+ if File.directory?('features')
23
+ require 'geordi/cucumber'
13
24
 
14
- invoke_cmd 'bundle_install'
25
+ invoke_cmd 'bundle_install'
15
26
 
16
- if File.directory?('features')
17
27
  announce 'Running features'
18
- Geordi::Cucumber.new.run(files, :verbose => options.verbose) or fail 'Features failed.'
28
+ files << '--format' << 'pretty' << '-b' if options.debug
29
+ (1 + options.rerun).times do |i|
30
+ return true if Geordi::Cucumber.new.run(files, :verbose => options.verbose)
31
+
32
+ announce "Rerun ##{ i + 1 } of #{ options.rerun }"
33
+ end
34
+ fail 'Features failed.' # Give up
35
+
19
36
  else
20
37
  note 'Cucumber not employed.'
21
38
  end
@@ -1,35 +1,73 @@
1
- desc 'deploy', 'Guided deployment'
2
- def deploy
3
- ENV['PAGER'] = 'cat'
1
+ desc 'deploy [STAGE]', 'Guided deployment across branches'
2
+ long_desc <<-LONGDESC
3
+ Example: `geordi deploy production`
4
4
 
5
- master_branch = prompt 'master branch:', 'master'
6
- production_branch = prompt 'production branch:', 'production'
7
- production_stage = prompt 'production capistrano stage:', 'production'
5
+ Merge, push and deploy with a single command! There are several scenarios where
6
+ this command comes in handy:
8
7
 
9
- announce "Checking if your #{master_branch} is up to date"
10
- diff_size = `git fetch && git diff #{master_branch} origin/#{master_branch} | wc -l`.strip
8
+ 1) Production deploy. From the master branch, run `geordi deploy production`.
9
+ This will merge `master` to `production`, push and deploy to production.
10
+
11
+ 2) Feature branch deploy. From the feature branch, run `geordi deploy staging`.
12
+ This will merge the feature branch to `master`, push and deploy to staging.
13
+
14
+ 3) Simple deploy. If the source branch matches the target branch, merging will
15
+ be skipped.
16
+
17
+ Calling the command without arguments will infer the target stage from the
18
+ current branch and fall back to master/staging.
19
+
20
+ When your project does not have a `deploy:migrations` task, this command will
21
+ run `cap deploy` instead when called with `-M`: `geordi deploy -M staging`.
22
+ LONGDESC
23
+
24
+ option :no_migrations, :aliases => '-M', :type => :boolean,
25
+ :desc => 'Run cap deploy instead of cap deploy:migrations'
26
+
27
+ def deploy(target_stage = nil)
28
+ # Set/Infer default values
29
+ branch_stage_map = { 'master' => 'staging', 'production' => 'production'}
30
+ proposed_stage = target_stage || branch_stage_map.fetch(Util.current_branch, 'staging')
31
+
32
+ target_stage = prompt 'Deployment capistrano stage:', proposed_stage
33
+ source_branch = prompt 'Source branch:', Util.current_branch
34
+ target_branch = prompt 'Deploy branch:', branch_stage_map.invert.fetch(target_stage, 'master')
35
+
36
+ merge_needed = (source_branch != target_branch)
37
+
38
+ announce "Checking whether your #{source_branch} branch is ready"
39
+ diff_size = `git fetch && git diff #{source_branch} origin/#{source_branch} | wc -l`.strip
11
40
  changes_size = `git status -s | wc -l`.strip
12
41
 
13
- if diff_size == '0' and changes_size == '0'
14
- note 'All good.'
42
+ if merge_needed and diff_size != '0'
43
+ fail "Your #{source_branch} branch is not the same as on origin. Fix that first."
44
+ elsif changes_size != '0'
45
+ fail "Your #{source_branch} branch holds uncommitted changes. Fix that first."
15
46
  else
16
- fail "Your #{master_branch} is not the same as on origin or holds uncommitted changes. Fix that first."
47
+ note 'All good.'
17
48
  end
18
49
 
19
- announce "Checking what's on #{production_stage} right now..."
20
- Util.system! "git checkout #{production_branch} && git pull"
50
+ if merge_needed
51
+ announce "Checking what's in your #{target_branch} branch right now ..."
52
+ Util.system! "git checkout #{target_branch} && git pull"
53
+ end
21
54
 
22
- announce "You are about to deploy the following commits from #{master_branch} to #{production_branch}:"
23
- Util.system! "git log #{production_branch}..#{master_branch} --oneline"
55
+ announce "You are about to #{'merge & ' if merge_needed}push & deploy the following commits"
56
+ note "From branch #{source_branch}"
57
+ note "Merge into branch #{target_branch}" if merge_needed
58
+ note "Deploy to #{target_stage}"
59
+ Util.system! "git --no-pager log origin/#{target_branch}..#{source_branch} --oneline"
24
60
 
25
61
  if prompt('Go ahead with the deployment?', 'n', /y|yes/)
26
- capistrano_call = "cap #{production_stage} deploy:migrations"
27
- if file_containing?('Gemfile', /capistrano/)
28
- capistrano_call = "bundle exec #{capistrano_call}"
29
- end
62
+ capistrano_call = "cap #{target_stage} deploy"
63
+ capistrano_call << ':migrations' unless options.no_migrations
64
+ capistrano_call = "bundle exec #{capistrano_call}" if file_containing?('Gemfile', /capistrano/)
30
65
 
31
66
  puts
32
- Util.system! "git merge #{master_branch} && git push && #{capistrano_call}"
67
+ command = "git push && #{capistrano_call}"
68
+ command = "git merge #{source_branch} && " << command if merge_needed
69
+ puts 'Pretending to execute:', command
70
+ # Util.system! command, :show_cmd => true
33
71
 
34
72
  success 'Deployment complete.'
35
73
  else
@@ -0,0 +1,30 @@
1
+ desc 'firefox COMMAND', 'Run a command with firefox for selenium set up'
2
+ long_desc <<-LONGDESC
3
+ Example: `geordi firefox b cucumber` or `geordi firefox --setup 24.0`
4
+
5
+ Useful when you need Firefox for Selenium, but can't use the `geordi cucumber`
6
+ command.
7
+
8
+ *Install* a special Firefox by calling with `--setup <version>`.
9
+ LONGDESC
10
+
11
+ option :setup, :type => :string, :banner => 'setup=FIREFOX_VERSION',
12
+ :desc => 'If set, will install a special Firefox with the given version'
13
+
14
+ def firefox(*command)
15
+ if options.setup
16
+ require 'geordi/firefox_for_selenium'
17
+ Geordi::FirefoxForSelenium.install(options.setup)
18
+
19
+ else
20
+ note 'Setting up Firefox for Selenium ...'
21
+
22
+ require 'geordi/cucumber'
23
+ Cucumber.new.setup_vnc
24
+ FirefoxForSelenium.setup_firefox
25
+
26
+ puts
27
+ note_cmd command.join(' ')
28
+ system *command # Util.system! would reset the Firefox PATH
29
+ end
30
+ end
@@ -0,0 +1,20 @@
1
+ desc 'vnc', 'Show the hidden VNC window'
2
+ long_desc <<-LONGDESC
3
+ Example: `geordi vnc` or `geordi vnc --setup`
4
+
5
+ Launch a VNC session to the hidden screen where `geordi cucumber` runs Selenium
6
+ tests.
7
+
8
+ When called with `--setup`, will guide through the setup of VNC.
9
+ LONGDESC
10
+
11
+ option :setup, :type => :boolean
12
+
13
+ def vnc
14
+ if options.setup
15
+ invoke_cmd :_setup_vnc
16
+ else
17
+ require 'geordi/cucumber'
18
+ Geordi::Cucumber.new.launch_vnc_viewer
19
+ end
20
+ end
@@ -86,11 +86,11 @@ module Geordi
86
86
  features_to_run = find_all_features_recursively('features') if features_to_run.empty?
87
87
  features_to_run = features_to_run.join(" ")
88
88
  parallel_tests_args = "-t #{type_arg}"
89
- cucumber_args = command_line_args.empty? ? '' : "-o '#{escape_shell_args(command_line_args).join(" ")}'"
89
+ cucumber_args = command_line_args.join(' ')
90
+
90
91
  [use_firefox_for_selenium, 'b parallel_test', parallel_tests_args, cucumber_args, "-- #{features_to_run}"].flatten.compact.join(" ")
91
92
  end
92
93
 
93
-
94
94
  def use_firefox_for_selenium
95
95
  path = Geordi::FirefoxForSelenium.path_from_config
96
96
  if path
@@ -98,7 +98,6 @@ module Geordi
98
98
  end
99
99
  end
100
100
 
101
-
102
101
  def escape_shell_args(*args)
103
102
  args.flatten.collect do |arg|
104
103
  arg.gsub(/([\\ "])/) { |match| "\\#{$1}" }
@@ -134,29 +133,27 @@ module Geordi
134
133
  end
135
134
 
136
135
  def command_line_features
137
- @command_line_features ||= begin
138
- index = argv.find_index("--")
139
- if index.nil? && argv.first && argv.first[0,1] != "-"
140
- find_all_features_recursively(argv)
141
- elsif index
142
- files_or_dirs = argv[index + 1 .. -1]
143
- find_all_features_recursively(files_or_dirs)
144
- else
145
- []
146
- end
147
- end
136
+ @command_line_features ||= argv - command_line_args
148
137
  end
149
138
 
150
139
  def command_line_args
151
- @command_line_args ||= begin
152
- index = argv.find_index("--")
153
- if index.nil? && argv.first && argv.first[0,1] == "-"
154
- argv
155
- elsif index
156
- argv[0 .. index-1]
157
- else
158
- []
140
+ @command_line_args ||= Array.new.tap do |args|
141
+ # Sorry for this mess. Option parsing doesn't get much prettier.
142
+ argv.each_cons(2) do |a, b|
143
+ break if a == '--' # This is the common no-options-beyond marker
144
+
145
+ case a
146
+ when '-f', '--format', '-p', '--profile'
147
+ args << a << b # b is the value of the option
148
+ else
149
+ args << a if a.start_with? '-'
150
+ end
159
151
  end
152
+
153
+ # Since we're using each_cons(2), the loop above will never process the
154
+ # last arg. Do it manually here.
155
+ last_arg = argv.last
156
+ args << last_arg if (last_arg && last_arg.start_with?('-'))
160
157
  end
161
158
  end
162
159
 
@@ -227,10 +227,10 @@ module Geordi
227
227
  puts
228
228
  puts strip_heredoc(<<-INSTRUCTION)
229
229
  Your patched copy of Firefox will be used when you run Cucumber using
230
- the cucumber script that comes with the geordi gem. If you prefer to run
231
- Cucumber on your own, you must call it like this:
230
+ the cucumber script that comes with the geordi gem. If you cannot use
231
+ `geordi cucumber`, but still need the test browser set up, you can use:
232
232
 
233
- PATH=#{path}:$PATH cucumber
233
+ geordi firefox <any command>
234
234
 
235
235
  Enjoy!
236
236
  INSTRUCTION
data/lib/geordi/util.rb CHANGED
@@ -58,6 +58,10 @@ module Geordi
58
58
  end
59
59
  end
60
60
 
61
+ def current_branch
62
+ `git rev-parse --abbrev-ref HEAD`.strip
63
+ end
64
+
61
65
  end
62
66
  end
63
67
  end
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '1.1.4'
2
+ VERSION = '1.2.0'
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geordi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
5
- prerelease:
4
+ version: 1.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Henning Koch
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-05-18 00:00:00.000000000 Z
11
+ date: 2015-12-23 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: thor
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -32,10 +29,8 @@ description: Collection of command line tools we use in our daily work with Ruby
32
29
  email:
33
30
  - henning.koch@makandra.de
34
31
  executables:
35
- - apache-site
36
32
  - b
37
33
  - cap-all
38
- - cleanup-directory
39
34
  - console-for
40
35
  - cuc
41
36
  - cuc-show
@@ -48,12 +43,8 @@ executables:
48
43
  - launchy_browser
49
44
  - load-dump
50
45
  - migrate-all
51
- - optimize-png
52
- - power-rake
53
- - remove-executable-flags
54
46
  - rs
55
47
  - run_tests
56
- - setup-firefox-for-selenium
57
48
  - shell-for
58
49
  - tests
59
50
  extensions: []
@@ -65,10 +56,8 @@ files:
65
56
  - LICENSE
66
57
  - README.md
67
58
  - Rakefile
68
- - bin/apache-site
69
59
  - bin/b
70
60
  - bin/cap-all
71
- - bin/cleanup-directory
72
61
  - bin/console-for
73
62
  - bin/cuc
74
63
  - bin/cuc-show
@@ -81,12 +70,8 @@ files:
81
70
  - bin/launchy_browser
82
71
  - bin/load-dump
83
72
  - bin/migrate-all
84
- - bin/optimize-png
85
- - bin/power-rake
86
- - bin/remove-executable-flags
87
73
  - bin/rs
88
74
  - bin/run_tests
89
- - bin/setup-firefox-for-selenium
90
75
  - bin/shell-for
91
76
  - bin/tests
92
77
  - geordi.gemspec
@@ -95,10 +80,11 @@ files:
95
80
  - lib/geordi/capistrano.rb
96
81
  - lib/geordi/capistrano_config.rb
97
82
  - lib/geordi/cli.rb
83
+ - lib/geordi/commands/_setup_vnc.rb
98
84
  - lib/geordi/commands/apache_site.rb
99
85
  - lib/geordi/commands/bundle_install.rb
100
86
  - lib/geordi/commands/capistrano.rb
101
- - lib/geordi/commands/cleanup_directory.rb
87
+ - lib/geordi/commands/clean.rb
102
88
  - lib/geordi/commands/commit.rb
103
89
  - lib/geordi/commands/console.rb
104
90
  - lib/geordi/commands/create_database_yml.rb
@@ -108,6 +94,7 @@ files:
108
94
  - lib/geordi/commands/devserver.rb
109
95
  - lib/geordi/commands/dump.rb
110
96
  - lib/geordi/commands/eurest.rb
97
+ - lib/geordi/commands/firefox.rb
111
98
  - lib/geordi/commands/migrate.rb
112
99
  - lib/geordi/commands/png_optimize.rb
113
100
  - lib/geordi/commands/rake.rb
@@ -115,15 +102,12 @@ files:
115
102
  - lib/geordi/commands/rspec.rb
116
103
  - lib/geordi/commands/security_update.rb
117
104
  - lib/geordi/commands/setup.rb
118
- - lib/geordi/commands/setup_firefox_for_selenium.rb
119
- - lib/geordi/commands/setup_vnc.rb
120
105
  - lib/geordi/commands/shell.rb
121
106
  - lib/geordi/commands/tests.rb
122
107
  - lib/geordi/commands/unit.rb
123
108
  - lib/geordi/commands/update.rb
124
109
  - lib/geordi/commands/version.rb
125
- - lib/geordi/commands/vnc_show.rb
126
- - lib/geordi/commands/with_firefox_for_selenium.rb
110
+ - lib/geordi/commands/vnc.rb
127
111
  - lib/geordi/commands/with_rake.rb
128
112
  - lib/geordi/cucumber.rb
129
113
  - lib/geordi/dump_loader.rb
@@ -137,31 +121,28 @@ files:
137
121
  homepage: http://makandra.com
138
122
  licenses:
139
123
  - MIT
140
- post_install_message: ! "\n ********************************************\n\n geordi
141
- 1.0 moves most of the scripts to\n the `geordi` binary. Run `geordi` and\n `geordi
142
- help <cmd>` for further information.\n\n Tip: Create an alias for geordi for
143
- quick \n access. Add this to your ~/.bashrc:\n\n alias g=\"geordi\"\n\n
144
- \ ********************************************\n\n"
124
+ metadata: {}
125
+ post_install_message: ! ' Binary `geordi` installed
126
+
127
+ '
145
128
  rdoc_options: []
146
129
  require_paths:
147
130
  - lib
148
131
  required_ruby_version: !ruby/object:Gem::Requirement
149
- none: false
150
132
  requirements:
151
133
  - - ! '>='
152
134
  - !ruby/object:Gem::Version
153
135
  version: '0'
154
136
  required_rubygems_version: !ruby/object:Gem::Requirement
155
- none: false
156
137
  requirements:
157
138
  - - ! '>='
158
139
  - !ruby/object:Gem::Version
159
140
  version: '0'
160
141
  requirements: []
161
142
  rubyforge_project: geordi
162
- rubygems_version: 1.8.23.2
143
+ rubygems_version: 2.4.8
163
144
  signing_key:
164
- specification_version: 3
145
+ specification_version: 4
165
146
  summary: Collection of command line tools we use in our daily work with Ruby, Rails
166
147
  and Linux at makandra.
167
148
  test_files: []
data/bin/apache-site DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- exec 'geordi', 'apache_site', *ARGV
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- exec 'geordi', 'cleanup-directory'
data/bin/optimize-png DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- exec 'geordi', 'png-optimize', *ARGV
data/bin/power-rake DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- exec 'geordi', 'rake', *ARGV
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- exec 'geordi', 'remove-executable-flags'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- exec 'geordi', 'setup-firefox-for-selenium'
@@ -1,6 +0,0 @@
1
- desc 'setup-firefox-for-selenium VERSION', 'Install a special firefox for running Selenium tests'
2
- def setup_firefox_for_selenium(version)
3
- require 'geordi/firefox_for_selenium'
4
-
5
- Geordi::FirefoxForSelenium.install(version)
6
- end
@@ -1,6 +0,0 @@
1
- desc 'vnc-show', 'Show the hidden VNC window'
2
- def vnc_show
3
- require 'geordi/cucumber'
4
-
5
- Geordi::Cucumber.new.launch_vnc_viewer
6
- end
@@ -1,18 +0,0 @@
1
- desc 'with-firefox-for-selenium COMMAND', 'Run a command with firefox for selenium set up'
2
- long_desc <<-LONGDESC
3
- Example: `geordi with-firefox-for-selenium b cucumber`
4
-
5
- Useful when you need Firefox for Selenium, but can't use the `geordi cucumber`
6
- command.
7
- LONGDESC
8
-
9
- def with_firefox_for_selenium(*command)
10
- note 'Setting up Firefox for Selenium ...'
11
- require 'geordi/cucumber'
12
- Cucumber.new.setup_vnc
13
- FirefoxForSelenium.setup_firefox
14
- puts
15
-
16
- note_cmd command.join(' ')
17
- system *command # Util.system! would reset the Firefox PATH
18
- end