rfd 0.6.8 → 0.6.9

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: 329a3780147f3be36d9d7840779d7a195ec09fc38a614724a416e1e3b38c0889
4
- data.tar.gz: a71ccdc53bd633c05513f73ba77721307b144dd327ecefafaaf0eaa366254e5a
3
+ metadata.gz: 323d87aef7ac725e1dda66c4fc9008401f784d177fda1d93d3893caa3f0aefea
4
+ data.tar.gz: b87f6831f7b92f41ca33b3117a7ea8d79d85dd75607bb9e9973030e1d22207b2
5
5
  SHA512:
6
- metadata.gz: 895bd5831559d892e851e25c70a6e154368f4397771c20774e1df7a54e4fa56a633bd42a6fd37bd98f260790ca8bba293efacf329c95ca46452de4f3a73eb3c4
7
- data.tar.gz: 5b025f3188b98077b439d969a861ec52d63ba1483b8a19cbead3cd629894ced970ad11a70f466e8d55a0d26a2fefb5730746e31d7c410d477238d0e60656d617
6
+ metadata.gz: bdafa08d499d35cef4df3a14ae871241c4cfe7b7a6579b7e541377b1ae1952fe44db243678bcacb2c660dad71267271ad99fec95bcdd4b310cf93ddd874ffc97
7
+ data.tar.gz: d9066a242964e13a5356ce4fa349a58978faa64355e3899850fa1d3ce8f8d3d4309b3930e097e880c099c2970953f666d8d8eaf11ece7cc443e5155875149b26
data/lib/rfd/commands.rb CHANGED
@@ -285,7 +285,9 @@ module Rfd
285
285
  # cd to the upper hierarchy.
286
286
  def del
287
287
  if current_dir.path != '/'
288
+ dir_was = times == 1 ? current_dir.name : File.basename(current_dir.join(['..'] * (times - 1)))
288
289
  cd File.expand_path(current_dir.join(['..'] * times))
290
+ find dir_was
289
291
  end
290
292
  end
291
293
 
data/rfd.gemspec CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "rfd"
8
- spec.version = '0.6.8'
8
+ spec.version = '0.6.9'
9
9
  spec.authors = ["Akira Matsuda"]
10
10
  spec.email = ["ronnie@dio.jp"]
11
11
  spec.description = 'Ruby on Files & Directories'
data/spec/testdir/.link1 CHANGED
@@ -1 +1 @@
1
- spec/testdir/.file1
1
+ .file1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rfd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Matsuda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-05 00:00:00.000000000 Z
11
+ date: 2018-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -136,8 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  requirements: []
139
- rubyforge_project:
140
- rubygems_version: 2.7.6
139
+ rubygems_version: 3.0.1
141
140
  signing_key:
142
141
  specification_version: 4
143
142
  summary: Ruby on Files & Directories