byebug 9.0.4 → 9.0.5

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
  SHA1:
3
- metadata.gz: 62195d06eef51870d2ec0ce9bba2ebd2b95ce76e
4
- data.tar.gz: edb0c276f8b0a1713802095539f02de00e4512d0
3
+ metadata.gz: b4e23e41b748149fde1e27a62d7acc75dde046cb
4
+ data.tar.gz: d0cf42efb883f7e1a1d57e1461d29ba6f14d3554
5
5
  SHA512:
6
- metadata.gz: 7229315ef6635c7c15d0fdcccdb1e765817b88b8a966bfa40267c83a799493b13627083fac82bf1221401cf7e57866d48793ddd7f8faf1523ad73d882c3d6fcf
7
- data.tar.gz: be19a35440627df7ee9f0e4ff892eb472c2d0f15323ed5c128e88b7f9e5f51d0379e2d844df0bb0626fe55ccf8ffe3c0cf0db8e6ad622142e7019025c4b78c0e
6
+ metadata.gz: d0eb92662556f8a58e678d63c336621ac5a050e94f8f3cdfc2fd276eb920418f5d2133bd9e038896804bee4299d597dc6870e7cd818f2b0cf532cfc18b4c727a
7
+ data.tar.gz: d51f4ebdcd26bacd3f4173559f2ee69fe090c02126b158595b13993fb379103a18297e6af612bbb91bf178f296088e6b77fd16e3ec30a70a2680073c8a312f0f
@@ -2,7 +2,13 @@
2
2
 
3
3
  ## Master (Unreleased)
4
4
 
5
- ## 9.0.4 - 2015-05-19
5
+ ## 9.0.5 - 2016-05-28
6
+
7
+ ### Fixed
8
+
9
+ * Error loading rc file when `ENV['HOME']` is unset.
10
+
11
+ ## 9.0.4 - 2016-05-19
6
12
 
7
13
  ### Fixed
8
14
 
@@ -47,9 +47,7 @@ module Byebug
47
47
  # are debugging, in the directory where you invoke byebug.
48
48
  #
49
49
  def run_init_script
50
- run_rc_file(ENV['HOME'])
51
-
52
- run_rc_file(Dir.pwd) unless Dir.pwd == ENV['HOME']
50
+ rc_dirs.each { |dir| run_rc_file(dir) }
53
51
  end
54
52
 
55
53
  def self.load_settings
@@ -94,6 +92,15 @@ module Byebug
94
92
  ensure
95
93
  Context.interface = old_interface
96
94
  end
95
+
96
+ #
97
+ # List of folders to load rc files from
98
+ #
99
+ # @note Files will be loaded in the order specified here.
100
+ #
101
+ def rc_dirs
102
+ [ENV['HOME'], Dir.pwd].compact.uniq
103
+ end
97
104
  end
98
105
 
99
106
  Byebug.load_settings
@@ -71,11 +71,11 @@ module Byebug
71
71
  # Usage banner.
72
72
  #
73
73
  def banner
74
- <<-EOB.gsub(/^ {8}/, '')
74
+ <<-EOB.gsub(/^ {6}/, '')
75
75
 
76
- byebug #{Byebug::VERSION}
76
+ byebug #{Byebug::VERSION}
77
77
 
78
- Usage: byebug [options] <script.rb> -- <script.rb parameters>
78
+ Usage: byebug [options] <script.rb> -- <script.rb parameters>
79
79
 
80
80
  EOB
81
81
  end
@@ -3,5 +3,5 @@
3
3
  # Reopen main module to define the library version
4
4
  #
5
5
  module Byebug
6
- VERSION = '9.0.4'.freeze
6
+ VERSION = '9.0.5'.freeze
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: byebug
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.4
4
+ version: 9.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Rodriguez
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-05-19 00:00:00.000000000 Z
13
+ date: 2016-05-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler