geordi 9.4.0 → 9.5.0

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: 97ef2212b1a8f95156b775dda16fc0db73b6cee054c2a87909c4e66e3e016061
4
- data.tar.gz: 8e8db7c3128364ce377a8dfc0370f56cff50cea97224961b29b7723e7d9b1ea7
3
+ metadata.gz: ed94a4f4c3730adc498969884b6019bc690f7348404d87681741a368fad3d9d4
4
+ data.tar.gz: 71be7102e51bde905e8ce266e024642ddce03007cada78eaff3f56bb1a604391
5
5
  SHA512:
6
- metadata.gz: fff144b88f312d7152cab557932d7499205aa5ac7469b9142da7ae740e9c81bc25f77633fab010bc84379aef5a18c29cb7a118783a235a9e4f272409b101239f
7
- data.tar.gz: f4486cd4786412a46d7bd98e22d312fcb998f87d98c6948ca6ce3605f5f882127b53d381caea050d58adfe2bc358d081eab99016132bf61dcf621cce7be892bb
6
+ metadata.gz: 829799256546ace81d2e17cb6dcb194aafcb4060cdcb65b337a0d4811967a616fcced13e93337291bde7aa052b6d8b7e08cf07e2984e23a5dd1aa80843014030
7
+ data.tar.gz: a88924470f394329db5f1cff666e2df6b3b2004eba892a9623c741aaa1de7e28dc705953c14cd88a83da5893aadd1f68e0152d11cd695c298690b78a77f42143
data/CHANGELOG.md CHANGED
@@ -10,7 +10,21 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
10
10
  ### Breaking changes
11
11
 
12
12
 
13
- ## 9.4.0 2022-12-20
13
+ # 9.5.0 2023-03-22
14
+
15
+ ### Compatible changes
16
+ * `commit` command: The pivotal tracker story is linked in the description of the commit
17
+ * `server` command: Use `daho.im` instead of `vcap.me` when offering the local development URL
18
+ * `rspec` command: chromedriver is updated automatically, if auto-update is configured and the app uses selenium-webdriver
19
+
20
+
21
+ ## 9.4.1 2023-01-09
22
+
23
+ ### Compatible changes
24
+ * Ruby 3.2 support
25
+
26
+
27
+ ## 9.4.0 2022-12-09
14
28
 
15
29
  ### Compatible changes
16
30
  * `branch` command: Git user initials are now stored in config file
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- geordi (9.4.0)
4
+ geordi (9.5.0)
5
5
  thor (~> 1)
6
6
 
7
7
  GEM
data/exe/b CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  call = ARGV.dup
4
- call = ['bundle', 'exec'] + call if File.exists?('Gemfile')
4
+ call = ['bundle', 'exec'] + call if File.exist?('Gemfile')
5
5
  exec *call
6
-
data/exe/dumple CHANGED
@@ -27,7 +27,7 @@ end
27
27
 
28
28
  def cd_to_project_root(fail_gently)
29
29
  current = Dir.pwd
30
- until File.exists?(DB_CONFIG_PATH)
30
+ until File.exist?(DB_CONFIG_PATH)
31
31
  Dir.chdir '..'
32
32
  if current == Dir.pwd
33
33
  if fail_gently
@@ -10,8 +10,15 @@ LONGDESC
10
10
 
11
11
  def rspec(*files)
12
12
  if File.exist?('spec/spec_helper.rb')
13
+ require 'geordi/settings'
14
+
15
+ settings = Geordi::Settings.new
16
+
13
17
  invoke_geordi 'bundle_install'
14
18
  invoke_geordi 'yarn_install'
19
+ if settings.auto_update_chromedriver && Util.gem_available?('selenium-webdriver')
20
+ invoke_geordi 'chromedriver_update', quiet_if_matching: true
21
+ end
15
22
 
16
23
  Interaction.announce 'Running specs'
17
24
 
@@ -12,7 +12,7 @@ def server(port = nil)
12
12
 
13
13
  Interaction.announce 'Booting a development server'
14
14
  port ||= options.port
15
- Interaction.note "URL: http://#{File.basename(Dir.pwd)}.vcap.me:#{port}"
15
+ Interaction.note "URL: http://#{File.basename(Dir.pwd)}.daho.im:#{port}"
16
16
  puts
17
17
 
18
18
  command = Util.server_command
data/lib/geordi/gitpt.rb CHANGED
@@ -22,7 +22,7 @@ module Geordi
22
22
 
23
23
  story = choose_story
24
24
  if story
25
- create_commit "[##{story.id}] #{story.name}", *git_args
25
+ create_commit "[##{story.id}] #{story.name}", "Story: #{story.url}", *git_args
26
26
  end
27
27
  end
28
28
 
@@ -76,7 +76,7 @@ module Geordi
76
76
 
77
77
  def applicable_stories
78
78
  if Util.testing?
79
- return ENV['GEORDI_TESTING_NO_PT_STORIES'] == 'true' ? [] : [OpenStruct.new(id: 12, name: 'Test Story')]
79
+ return ENV['GEORDI_TESTING_NO_PT_STORIES'] == 'true' ? [] : [OpenStruct.new(id: 12, name: 'Test Story', url: 'https://www.story-url.com')]
80
80
  end
81
81
 
82
82
  projects = load_projects
@@ -128,11 +128,11 @@ module Geordi
128
128
  nil # Return nothing
129
129
  end
130
130
 
131
- def create_commit(message, *git_args)
131
+ def create_commit(title, description, *git_args)
132
132
  extra = highline.ask("\nAdd an optional message").strip
133
- message << ' - ' << extra if extra != ''
133
+ title << ' - ' << extra if extra != ''
134
134
 
135
- Util.run!(['git', 'commit', '--allow-empty', '-m', message, *git_args])
135
+ Util.run!(['git', 'commit', '--allow-empty', '-m', title, '-m', description, *git_args])
136
136
  end
137
137
 
138
138
  def bold(string)
@@ -77,10 +77,10 @@ module Geordi
77
77
  global_path = GLOBAL_SETTINGS_FILE_NAME
78
78
  local_path = LOCAL_SETTINGS_FILE_NAME
79
79
 
80
- global_settings = if File.exists?(global_path)
80
+ global_settings = if File.exist?(global_path)
81
81
  YAML.safe_load(File.read(global_path))
82
82
  end
83
- local_settings = if File.exists?(local_path)
83
+ local_settings = if File.exist?(local_path)
84
84
  YAML.safe_load(File.read(local_path))
85
85
  end
86
86
 
@@ -88,7 +88,7 @@ module Geordi
88
88
  unless ENV[SETTINGS_WARNED]
89
89
  check_for_invalid_keys(global_settings, ALLOWED_GLOBAL_SETTINGS, global_path)
90
90
  check_for_invalid_keys(local_settings, ALLOWED_LOCAL_SETTINGS, local_path)
91
- Interaction.warn "Unsupported config file \".firefox-version\". Please remove it." if File.exists?('.firefox-version')
91
+ Interaction.warn "Unsupported config file \".firefox-version\". Please remove it." if File.exist?('.firefox-version')
92
92
 
93
93
  ENV[SETTINGS_WARNED] = 'true'
94
94
  end
data/lib/geordi/util.rb CHANGED
@@ -80,7 +80,7 @@ module Geordi
80
80
  def binstub_or_fallback(executable)
81
81
  binstub_file = "bin/#{executable}"
82
82
 
83
- File.exists?(binstub_file) ? binstub_file : "bundle exec #{executable}"
83
+ File.exist?(binstub_file) ? binstub_file : "bundle exec #{executable}"
84
84
  end
85
85
 
86
86
  def console_command(environment)
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '9.4.0'.freeze
2
+ VERSION = '9.5.0'.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: 9.4.0
4
+ version: 9.5.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: 2022-12-20 00:00:00.000000000 Z
11
+ date: 2023-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
- rubygems_version: 3.3.26
122
+ rubygems_version: 3.1.6
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Collection of command line tools we use in our daily work with Ruby, Rails