geordi 2.10.1 → 2.11.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e80ce0bcf572c2bcd331b2127371b3969c1b6ac02be617cdb6abb05686e6730
4
- data.tar.gz: 270104330ccc177602ce0190508fb8079e166720e91d7c39e75e16cab880db60
3
+ metadata.gz: c18885f25960a7c8977933c0910c427cb4ca43a462b80ae272610514e7597f0e
4
+ data.tar.gz: 07a5a7c2cfd084b0e148a3f02fc4a294119ea6e65d2664bde0c8f3da2f37429f
5
5
  SHA512:
6
- metadata.gz: f40138a830731675086cea816f8f21dfb0db4a4d93456def9077cf74d4297be5503af8698739ba9add26529308805cc560e0bf55d0fa5d9c064dabc42d60a98d
7
- data.tar.gz: 8c139434e23cc7ef57a8779f2a3dfab60e3d42991e11c221672b26964003d84e7b3bf41d08332a3992ebf0512e00888584b87355f225e4f5e882d3599cb5665d
6
+ metadata.gz: 0225535d4bce93d49b6a49cd27d53da4de8814298a835961beacebcc17c972b10c155ae6a66b136b9614725cab551e8a93868cf2c7d26f67570eb86714dca0a3
7
+ data.tar.gz: 5e0d4bdf3f39f9e5253b25abd515deaac20831b0bc8694eafc2c34a1b961f7ca37a78d7149b7a5711611a7eb886b6996ed24ff4f66b67c1d5ce7e8ffd5c2695e
data/.gitignore CHANGED
@@ -5,3 +5,4 @@ pkg/*
5
5
  .DS_Store
6
6
  .pt_project_id
7
7
  tmp
8
+ .byebug_history
data/CHANGELOG.md CHANGED
@@ -5,7 +5,22 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
5
5
 
6
6
 
7
7
  ## Unreleased
8
+
9
+ ### Compatible changes
10
+
11
+ ### Breaking changes
12
+
13
+
14
+ ## 2.11.0 2020-05-04
15
+
8
16
  ### Compatible changes
17
+ - Added the possibility to change the Rails root for the capistrano config via the environment variable `RAILS_ROOT`. This allows you as a gem developer to run a command like `RAILS_ROOT=~/Projects/my-blog geordi console staging` whereas `geordi` uses the capistrano config from `my-blog`. Otherwise you would need to follow the instructions of [this card](https://makandracards.com/makandra/46617-how-to-use-a-local-gem-in-your-gemfile) to test changes in the gem locally.
18
+ - Bug fix for "no staged changes" even if there are changes present (#83).
19
+ - Fixed deprecation warning for `Thor exit with status 0 on errors` (#84).
20
+ - Replaced `Bundler.with_unbundled_env` with `Bundler.with_original_env` (#77). This is a better replacement than 42cd1c4.
21
+ - Add deprecation warning `Deprecation warning: Ruby 1.8.7 and 1.9.3 support will be dropped in Geordi 3.x.` to Geordi 2.
22
+ - Fix error `thor requires Ruby version >= 2.0.0` for Ruby 1.8.7 and 1.9.3 (https://github.com/makandra/geordi/issues/79#issuecomment-598664191).
23
+
9
24
  ### Breaking changes
10
25
 
11
26
 
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- geordi (2.10.1)
5
- thor (>= 0.18.0)
4
+ geordi (2.11.0)
5
+ thor (~> 0.18.0)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
@@ -12,55 +12,27 @@ GEM
12
12
  childprocess (>= 0.3.6)
13
13
  cucumber (>= 1.1.1)
14
14
  rspec-expectations (>= 2.7.0)
15
- axiom-types (0.1.1)
16
- descendants_tracker (~> 0.0.4)
17
- ice_nine (~> 0.11.0)
18
- thread_safe (~> 0.3, >= 0.3.1)
19
15
  builder (3.2.3)
20
16
  childprocess (1.0.1)
21
17
  rake (< 13.0)
22
- coderay (1.1.2)
23
- coercible (1.0.0)
24
- descendants_tracker (~> 0.0.1)
25
18
  cucumber (1.3.20)
26
19
  builder (>= 2.1.2)
27
20
  diff-lcs (>= 1.1.3)
28
21
  gherkin (~> 2.12)
29
22
  multi_json (>= 1.7.5, < 2.0)
30
23
  multi_test (>= 0.1.2)
31
- declarative (0.0.10)
32
- declarative-option (0.1.0)
33
- descendants_tracker (0.0.4)
34
- thread_safe (~> 0.3, >= 0.3.1)
35
24
  diff-lcs (1.2.5)
36
- equalizer (0.0.11)
37
- excon (0.67.0)
38
- faraday (0.17.0)
39
- multipart-post (>= 1.2, < 3)
40
- faraday_middleware (0.13.1)
41
- faraday (>= 0.7.4, < 1.0)
42
25
  gherkin (2.12.2)
43
26
  multi_json (~> 1.3)
44
27
  highline (1.6.21)
45
- ice_nine (0.11.2)
46
28
  launchy (2.4.3)
47
29
  addressable (~> 2.3)
48
- method_source (0.9.2)
49
- mimemagic (0.3.3)
50
30
  multi_json (1.13.1)
51
31
  multi_test (0.1.2)
52
- multipart-post (2.1.1)
53
32
  parallel (0.5.16)
54
33
  parallel_tests (0.6.18)
55
34
  parallel
56
- pry (0.12.2)
57
- coderay (~> 1.1.0)
58
- method_source (~> 0.9.0)
59
35
  rake (10.5.0)
60
- representable (3.0.4)
61
- declarative (< 0.1.0)
62
- declarative-option (< 0.2.0)
63
- uber (< 0.2.0)
64
36
  rspec-expectations (3.4.0)
65
37
  diff-lcs (>= 1.2.0, < 2.0)
66
38
  rspec-support (~> 3.4.0)
@@ -68,24 +40,7 @@ GEM
68
40
  diff-lcs (>= 1.2.0, < 2.0)
69
41
  rspec-support (~> 3.4.0)
70
42
  rspec-support (3.4.1)
71
- thor (1.0.1)
72
- thread_safe (0.3.6)
73
- tracker_api (1.10.0)
74
- addressable
75
- equalizer
76
- excon
77
- faraday
78
- faraday_middleware
79
- mimemagic
80
- multi_json
81
- representable
82
- virtus
83
- uber (0.1.0)
84
- virtus (1.0.5)
85
- axiom-types (~> 0.1)
86
- coercible (~> 1.0)
87
- descendants_tracker (~> 0.0, >= 0.0.3)
88
- equalizer (~> 0.0, >= 0.0.9)
43
+ thor (0.18.1)
89
44
 
90
45
  PLATFORMS
91
46
  ruby
@@ -96,9 +51,7 @@ DEPENDENCIES
96
51
  highline
97
52
  launchy
98
53
  parallel_tests
99
- pry
100
54
  rspec-mocks
101
- tracker_api
102
55
 
103
56
  BUNDLED WITH
104
57
  1.17.3
data/README.md CHANGED
@@ -385,6 +385,9 @@ calling your local geordi like so (adjust paths to your needs):
385
385
 
386
386
  # @option -I: add directory to load path
387
387
  ruby -I ../geordi/lib ../geordi/bin/geordi <command>
388
+
389
+ # with debugger
390
+ ruby -r byebug -I ../geordi/lib ../geordi/bin/geordi <command>
388
391
 
389
392
  Don't forget to update this README. The whole `geordi` section is auto-generated
390
393
  by `rake readme`. Also remember to add your changes to the CHANGELOG.
data/geordi.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
21
  s.require_paths = ["lib"]
22
22
 
23
- s.add_runtime_dependency 'thor', '>= 0.18.0'
23
+ s.add_runtime_dependency 'thor', '~> 0.18.0'
24
24
 
25
25
  s.post_install_message = <<-ATTENTION
26
26
  * Binary `geordi` installed
@@ -53,18 +53,21 @@ module Geordi
53
53
  end
54
54
 
55
55
  def find_project_root!
56
- current = Dir.pwd
57
- until File.exists?('Capfile')
58
- Dir.chdir '..'
59
- raise <<-ERROR if current == Dir.pwd
60
- Could not locate Capfile.
61
-
62
- Are you calling me from within a Rails project?
63
- Maybe Capistrano is not installed in this project.
64
- ERROR
65
-
66
- current = Dir.pwd
56
+ current = ENV['RAILS_ROOT'] || Dir.pwd
57
+
58
+ until File.exists?(File.join(current, 'Capfile'))
59
+ if current == '/' || current == '/home' || !File.directory?(current)
60
+ raise <<-ERROR
61
+ Could not locate Capfile.
62
+
63
+ Are you calling me from within a Rails project?
64
+ Maybe Capistrano is not installed in this project.
65
+ ERROR
66
+ else
67
+ current = File.dirname(current)
68
+ end
67
69
  end
70
+
68
71
  current
69
72
  end
70
73
 
data/lib/geordi/cli.rb CHANGED
@@ -5,8 +5,17 @@ require 'geordi/util'
5
5
 
6
6
  module Geordi
7
7
  class CLI < Thor
8
+
9
+ if Geordi::Util.ruby_version <= Gem::Version.new('2.0.0')
10
+ warn "Deprecation warning: Ruby 1.8.7 and 1.9.3 support will be dropped in Geordi 3.x."
11
+ end
12
+
8
13
  include Geordi::Interaction
9
14
 
15
+ def self.exit_on_failure?
16
+ true
17
+ end
18
+
10
19
  # load all tasks defined in lib/geordi/commands
11
20
  Dir[File.expand_path '../commands/*.rb', __FILE__].each do |file|
12
21
  class_eval File.read(file), file
data/lib/geordi/util.rb CHANGED
@@ -52,7 +52,7 @@ module Geordi
52
52
  success = if !defined?(Bundler)
53
53
  system(*commands)
54
54
  elsif Gem::Version.new(Bundler::VERSION) >= Gem::Version.new('2.1.2')
55
- Bundler.with_unbundled_env do
55
+ Bundler.with_original_env do
56
56
  system(*commands)
57
57
  end
58
58
  else
@@ -94,7 +94,7 @@ module Geordi
94
94
  ENV['GEORDI_TESTING_STAGED_CHANGES'] == 'true'
95
95
  else
96
96
  statuses = `git status --porcelain`.split("\n")
97
- statuses.any? { |l| l.start_with? 'A' }
97
+ statuses.any? { |l| l.start_with? /[A-Z]/i }
98
98
  end
99
99
  end
100
100
 
@@ -161,6 +161,10 @@ module Geordi
161
161
  nil
162
162
  end
163
163
 
164
+ def ruby_version
165
+ Gem::Version.new(RUBY_VERSION)
166
+ end
167
+
164
168
  def file_containing?(file, regex)
165
169
  File.exists?(file) and File.read(file).scan(regex).any?
166
170
  end
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '2.10.1'
2
+ VERSION = '2.11.0'
3
3
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geordi
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.1
4
+ version: 2.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-17 00:00:00.000000000 Z
11
+ date: 2020-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.18.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.18.0
27
27
  description: Collection of command line tools we use in our daily work with Ruby,
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
158
  requirements: []
159
- rubygems_version: 3.0.3
159
+ rubygems_version: 3.1.2
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Collection of command line tools we use in our daily work with Ruby, Rails