warp-dir 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/rubocop.yml +27 -0
- data/.github/workflows/ruby.yml +27 -0
- data/.github/workflows/shellcheck.yml +18 -0
- data/.gitignore +1 -1
- data/.idea/runConfigurations/All_Specs.xml +6 -9
- data/.relaxed-rubocop-2.5.yml +153 -0
- data/.rspec +1 -0
- data/.rubocop.yml +40 -1154
- data/.rubocop_todo.yml +685 -0
- data/Gemfile +9 -0
- data/LICENSE +2 -2
- data/README.adoc +244 -0
- data/Rakefile +19 -61
- data/bin/console +5 -4
- data/bin/warp-dir.bash +220 -54
- data/exe/warp-dir +3 -2
- data/lib/warp/dir/app/cli.rb +5 -5
- data/lib/warp/dir/app/response.rb +8 -10
- data/lib/warp/dir/command/clean.rb +1 -1
- data/lib/warp/dir/command/help.rb +0 -1
- data/lib/warp/dir/command/install.rb +12 -15
- data/lib/warp/dir/command/ls.rb +3 -3
- data/lib/warp/dir/command.rb +2 -2
- data/lib/warp/dir/config.rb +1 -1
- data/lib/warp/dir/errors.rb +3 -0
- data/lib/warp/dir/formatter.rb +2 -2
- data/lib/warp/dir/point.rb +1 -2
- data/lib/warp/dir/serializer/dotfile.rb +1 -1
- data/lib/warp/dir/store.rb +2 -2
- data/lib/warp/dir/version.rb +23 -19
- data/lib/warp/dir.rb +6 -6
- data/warp-dir.gemspec +15 -9
- metadata +69 -23
- data/.atom-build.json +0 -22
- data/.codeclimate.yml +0 -22
- data/.travis.yml +0 -13
- data/Guardfile +0 -14
- data/README.md +0 -181
- data/ROADMAP.md +0 -96
data/lib/warp/dir/app/cli.rb
CHANGED
@@ -54,8 +54,8 @@ module Warp
|
|
54
54
|
response
|
55
55
|
rescue Exception => e
|
56
56
|
if config.debug
|
57
|
-
|
58
|
-
|
57
|
+
$stderr.puts(e.inspect)
|
58
|
+
$stderr.puts(e.backtrace.join("\n"))
|
59
59
|
end
|
60
60
|
on :error do
|
61
61
|
message e.message.red
|
@@ -101,10 +101,10 @@ module Warp
|
|
101
101
|
opts.bool '-q', '--quiet', ' – suppress output (quiet mode)'
|
102
102
|
opts.bool '-d', '--debug', ' – show stacktrace if errors are detected'
|
103
103
|
opts.string '-s', '--dotfile', '<dotfile> – shell init file to append the wd wrapper, eg. ~/.bashrc'
|
104
|
-
opts.string '-c', '--config',
|
104
|
+
opts.string '-c', '--config', "<config> – location of the configuration file (default: #{Warp::Dir.default_config})", default: Warp::Dir.default_config
|
105
105
|
opts.on '-V', '--version', ' – print the version' do
|
106
|
-
puts
|
107
|
-
exit
|
106
|
+
$stdout.puts "Version #{Warp::Dir::VERSION}"
|
107
|
+
exit 0
|
108
108
|
end
|
109
109
|
|
110
110
|
Slop::Parser.new(opts).parse(arguments)
|
@@ -8,7 +8,7 @@ module Warp
|
|
8
8
|
# Use Case exit code stream
|
9
9
|
#----------------------------------------------------------------
|
10
10
|
# Information / Help / List 0 STDOUT
|
11
|
-
# Error
|
11
|
+
# Error occurred 1 STDERR
|
12
12
|
# Execute Shell Command 2 STDOUT
|
13
13
|
|
14
14
|
class Type < Struct.new(:exit_code, :stream)
|
@@ -24,24 +24,22 @@ module Warp
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def to_s
|
27
|
-
"code:#{exit_code}, stream:#{stream ==
|
27
|
+
"code:#{exit_code}, stream:#{stream == $stdout ? "STDOUT" : "STDERR"}"
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
INFO = Type.new(0,
|
32
|
-
ERROR = Type.new(1,
|
33
|
-
SHELL = Type.new(2,
|
31
|
+
INFO = Type.new(0, $stdout)
|
32
|
+
ERROR = Type.new(1, $stderr)
|
33
|
+
SHELL = Type.new(2, $stdout)
|
34
34
|
|
35
35
|
SHELL.instance_eval do
|
36
36
|
def print(msg)
|
37
37
|
under_shell = ::Warp::Dir.eval_context?
|
38
|
-
if under_shell
|
38
|
+
if under_shell
|
39
39
|
stream.printf("#{msg};")
|
40
40
|
else
|
41
41
|
stream.printf(
|
42
|
-
'WARNING: '.red
|
43
|
-
"This functionality is only available within shell eval{} context:\n\n\t#{msg.yellow.bold}\n\n" +
|
44
|
-
"Please install shell wrapper 'wd' via the 'install' command.\n")
|
42
|
+
"#{'WARNING: '.red}This functionality is only available within shell eval{} context:\n\n\t#{msg.yellow.bold}\n\nPlease install shell wrapper 'wd' via the 'install' command.\n")
|
45
43
|
end
|
46
44
|
end
|
47
45
|
|
@@ -89,7 +87,7 @@ module Warp
|
|
89
87
|
@messages << message
|
90
88
|
self
|
91
89
|
else
|
92
|
-
@messages.join
|
90
|
+
@messages.join
|
93
91
|
end
|
94
92
|
end
|
95
93
|
|
@@ -10,7 +10,7 @@ class Warp::Dir::Command::Clean < Warp::Dir::Command
|
|
10
10
|
s = self.store
|
11
11
|
if removed.empty?
|
12
12
|
on :success do
|
13
|
-
message
|
13
|
+
message "All entries are valid in your file #{s.config.warprc.blue} are #{'valid.'.green}"
|
14
14
|
end
|
15
15
|
else
|
16
16
|
on :success do
|
@@ -19,12 +19,11 @@ class Warp::Dir::Command::Install < Warp::Dir::Command
|
|
19
19
|
|
20
20
|
def already_installed?(file_path)
|
21
21
|
path = ::Warp::Dir.absolute(file_path)
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
matches
|
22
|
+
if File.exist?(path)
|
23
|
+
File.open path do |file|
|
24
|
+
file.find { |line| line =~ ::Warp::Dir::SHELL_WRAPPER_REGX }
|
25
|
+
end
|
26
|
+
end
|
28
27
|
end
|
29
28
|
end
|
30
29
|
|
@@ -84,16 +83,14 @@ class Warp::Dir::Command::Install < Warp::Dir::Command
|
|
84
83
|
file = ::Warp::Dir.absolute(shell_init_file)
|
85
84
|
pre_installed = self.class.already_installed?(file)
|
86
85
|
self.existing << file if pre_installed
|
87
|
-
if File.exist?(file)
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
f.write wrapper
|
94
|
-
end
|
95
|
-
self.installed << shell_init_file
|
86
|
+
if File.exist?(file) && (!pre_installed || config[:force])
|
87
|
+
source = File.read(file)
|
88
|
+
source.gsub!(/# WarpDir.*BEGIN\n.*\n# WarpDir.*END/, '')
|
89
|
+
File.open(file, 'w') do |f|
|
90
|
+
f.write source
|
91
|
+
f.write wrapper
|
96
92
|
end
|
93
|
+
self.installed << shell_init_file
|
97
94
|
end
|
98
95
|
end
|
99
96
|
|
data/lib/warp/dir/command/ls.rb
CHANGED
@@ -10,7 +10,7 @@ module Warp
|
|
10
10
|
# @param [Object] args
|
11
11
|
def run(opts, *flags)
|
12
12
|
point = store.find_point(point_name)
|
13
|
-
|
13
|
+
$stderr.puts "FLAGS: [#{flags}]".bold.green if config.debug
|
14
14
|
|
15
15
|
command_flags = if flags && !flags.empty?
|
16
16
|
flags
|
@@ -18,9 +18,9 @@ module Warp
|
|
18
18
|
['-al']
|
19
19
|
end
|
20
20
|
command = "ls #{command_flags.join(' ')} #{point.path}/"
|
21
|
-
|
21
|
+
$stderr.puts 'Command: '.yellow + command.bold.green if config.debug
|
22
22
|
ls_output = `#{command}`
|
23
|
-
|
23
|
+
$stderr.puts 'Output: '.yellow + ls_output.bold.blue if config.debug
|
24
24
|
on :success do
|
25
25
|
message ls_output.bold
|
26
26
|
end
|
data/lib/warp/dir/command.rb
CHANGED
@@ -19,7 +19,7 @@ module Warp
|
|
19
19
|
self.command_name.to_s.yellow,
|
20
20
|
(self.send(:needs_a_point?) ? '<point>'.cyan : ' '.cyan),
|
21
21
|
self.send(:description).blue.bold,
|
22
|
-
(self.respond_to?(:aliases) && !aliases.empty? ? ", aka:
|
22
|
+
(self.respond_to?(:aliases) && !aliases.empty? ? ", aka: #{aliases.join(', ').blue}" : '')
|
23
23
|
)
|
24
24
|
end
|
25
25
|
|
@@ -79,7 +79,7 @@ module Warp
|
|
79
79
|
|
80
80
|
if store.config.debug
|
81
81
|
require 'pp'
|
82
|
-
|
82
|
+
$stderr.printf 'Initialized Command: '.yellow.bold
|
83
83
|
pp self
|
84
84
|
end
|
85
85
|
end
|
data/lib/warp/dir/config.rb
CHANGED
data/lib/warp/dir/errors.rb
CHANGED
@@ -6,6 +6,7 @@ module Warp
|
|
6
6
|
|
7
7
|
class StoreFormatError < Warp::Dir::Errors::Runtime
|
8
8
|
attr_reader :line
|
9
|
+
|
9
10
|
def initialize(msg, line)
|
10
11
|
@line = line
|
11
12
|
super msg
|
@@ -21,6 +22,7 @@ module Warp
|
|
21
22
|
# it's own concrete message
|
22
23
|
class InstanceError < Warp::Dir::Errors::Runtime
|
23
24
|
attr_accessor :instance
|
25
|
+
|
24
26
|
def initialize(message = nil)
|
25
27
|
super message ? message : "#{self.class.name}->[#{instance}]"
|
26
28
|
end
|
@@ -49,6 +51,7 @@ module Warp
|
|
49
51
|
super color_error('Point ', point.to_s, ' was not found.')
|
50
52
|
end
|
51
53
|
end
|
54
|
+
|
52
55
|
class PointAlreadyExists < ::Warp::Dir::Errors::InstanceError
|
53
56
|
def initialize(point)
|
54
57
|
self.instance = point
|
data/lib/warp/dir/formatter.rb
CHANGED
@@ -20,7 +20,7 @@ module Warp
|
|
20
20
|
out << "#{message} ".red if !exception && message
|
21
21
|
out << "#{exception.message}:\n#{message}".red if message && exception
|
22
22
|
out << "\n"
|
23
|
-
print ?
|
23
|
+
print ? $stderr.printf(out) : out
|
24
24
|
end
|
25
25
|
|
26
26
|
def self.format_point(point, *args)
|
@@ -32,7 +32,7 @@ module Warp
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def happy(message: nil)
|
35
|
-
|
35
|
+
$stdout.printf(message.blue.bold)
|
36
36
|
end
|
37
37
|
|
38
38
|
class PointFormatter
|
data/lib/warp/dir/point.rb
CHANGED
@@ -28,8 +28,7 @@ module Warp
|
|
28
28
|
name, path = line.split(/:/)
|
29
29
|
if name.nil? || path.nil?
|
30
30
|
raise Warp::Dir::Errors::StoreFormatError.new(
|
31
|
-
|
32
|
-
line, line)
|
31
|
+
"warprc file may be corrupt, offending line is: #{line}", line)
|
33
32
|
end
|
34
33
|
self.new(name, path)
|
35
34
|
end
|
@@ -14,7 +14,7 @@ module Warp
|
|
14
14
|
|
15
15
|
def restore!
|
16
16
|
unless File.exist?(warprc_file_path)
|
17
|
-
|
17
|
+
$stderr.puts "No warprc file found in the path #{warprc_file_path}" if config.debug
|
18
18
|
return
|
19
19
|
end
|
20
20
|
File.open(warprc_file_path, 'r') do |f|
|
data/lib/warp/dir/store.rb
CHANGED
data/lib/warp/dir/version.rb
CHANGED
@@ -1,42 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require_relative '../../colored'
|
2
4
|
module Warp
|
3
5
|
module Dir
|
4
|
-
VERSION = '1.
|
6
|
+
VERSION = '1.7.0'
|
5
7
|
|
6
|
-
@install_notice =
|
8
|
+
@install_notice = <<~EOF
|
7
9
|
|
8
|
-
#{'>>> PLEASE READ THIS! '.bold.yellow}
|
10
|
+
#{'>>> PLEASE READ THIS! '.bold.yellow}
|
9
11
|
|
10
|
-
For this gem to work, you must also install the coupled shell function
|
11
|
-
into your shell initialization file. The following command should complete the
|
12
|
-
setup (but please change '~/.
|
13
|
-
initialization, although for most situations ~/.
|
12
|
+
For this gem to work, you must also install the coupled shell function
|
13
|
+
into your shell initialization file. The following command should complete the
|
14
|
+
setup (but please change '~/.bash_profile' with whatever you use for shell
|
15
|
+
initialization, although for most situations ~/.bash_profile is good enough).
|
14
16
|
|
15
17
|
EOF
|
16
18
|
@install_notice += <<-EOF.bold.green
|
17
|
-
|
19
|
+
warp-dir install --dotfile ~/.bash_profile
|
18
20
|
|
19
21
|
EOF
|
20
|
-
@install_notice +=
|
21
|
-
Restart your shell, and you should now have 'wd' shell function that
|
22
|
-
should be used instead of the warp-dir executable.
|
22
|
+
@install_notice += <<~EOF
|
23
|
+
Restart your shell, and you should now have 'wd' shell function that
|
24
|
+
should be used instead of the warp-dir executable.
|
23
25
|
|
24
|
-
Start with:
|
26
|
+
Start with:
|
25
27
|
|
26
28
|
EOF
|
27
29
|
@install_notice += <<-EOF.bold.blue
|
28
30
|
$ wd help
|
29
|
-
$ wd <directory> # change directory – works just like "cd"
|
30
|
-
$ wd add <name> # add current directory as a warp point, call it <name>
|
31
|
+
$ wd <directory> #{'# change directory – works just like "cd"'.bold.black}
|
32
|
+
$ wd add <name> #{'# add current directory as a warp point, call it <name>'.bold.black}
|
33
|
+
$ wd<TAB> #{'# to see the command completion in action'.bold.black}
|
31
34
|
EOF
|
32
|
-
@install_notice +=
|
35
|
+
@install_notice += <<~EOF.green
|
36
|
+
|
37
|
+
Please submit issues and pull requests on Github:
|
33
38
|
|
34
|
-
|
35
|
-
|
39
|
+
• https://github.com/kigster/warp-dir
|
40
|
+
• via email to Konstantin Gredeskoul, @kigster on GMail, @kig on Twitter.
|
36
41
|
|
37
|
-
Thank you!
|
42
|
+
Thank you!
|
38
43
|
EOF
|
39
44
|
INSTALL_NOTICE = @install_notice
|
40
45
|
end
|
41
46
|
end
|
42
|
-
|
data/lib/warp/dir.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
require_relative 'dir/version'
|
2
2
|
module Warp
|
3
3
|
PROJECT_LIBS = File.dirname(File.absolute_path(__FILE__))
|
4
|
-
PROJECT_HOME = PROJECT_LIBS
|
4
|
+
PROJECT_HOME = "#{PROJECT_LIBS}/../.."
|
5
5
|
|
6
6
|
module Dir
|
7
7
|
# tried in order.
|
8
8
|
INSTALL_TIME = Time.now
|
9
9
|
DOTFILES = %w(.bash_profile .bashrc .profile .bash_login).map{|f| "~/#{f}" }
|
10
10
|
SHELL_WRAPPER_FILE = "#{PROJECT_HOME}/bin/warp-dir.bash"
|
11
|
-
SHELL_WRAPPER_DEST =
|
11
|
+
SHELL_WRAPPER_DEST = "#{::Dir.home}/.bash_wd"
|
12
12
|
SHELL_WRAPPER_REGX = %r[WarpDir \(v(\d+\.\d+\.\d+)]
|
13
13
|
SHELL_WRAPPER_SRCE = <<-eof
|
14
14
|
# WarpDir (v#{Warp::Dir::VERSION}, appended on #{INSTALL_TIME}) BEGIN
|
@@ -17,7 +17,7 @@ module Warp
|
|
17
17
|
eof
|
18
18
|
class << self
|
19
19
|
def require_all_from(folder)
|
20
|
-
::Dir.glob(Warp::PROJECT_LIBS
|
20
|
+
::Dir.glob("#{Warp::PROJECT_LIBS}#{folder}/*.rb") { |file| Kernel.require file }
|
21
21
|
end
|
22
22
|
|
23
23
|
def eval_context?
|
@@ -25,15 +25,15 @@ eof
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def pwd
|
28
|
-
%x(pwd).chomp.gsub
|
28
|
+
%x(pwd).chomp.gsub ::Dir.home, '~'
|
29
29
|
end
|
30
30
|
|
31
31
|
def relative(path)
|
32
|
-
path.gsub
|
32
|
+
path.gsub ::Dir.home, '~'
|
33
33
|
end
|
34
34
|
|
35
35
|
def absolute(path)
|
36
|
-
path.gsub '~',
|
36
|
+
path.gsub '~', ::Dir.home
|
37
37
|
end
|
38
38
|
|
39
39
|
def default_config
|
data/warp-dir.gemspec
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
3
4
|
$:.unshift lib unless $:.include?(lib)
|
4
5
|
require 'warp/dir/version'
|
5
6
|
|
@@ -10,24 +11,29 @@ Gem::Specification.new do |s|
|
|
10
11
|
s.email = ['kig@reinvent.one']
|
11
12
|
s.version = Warp::Dir::VERSION
|
12
13
|
s.summary = %q{Warp-Dir (aka 'wd') replaces 'cd' and lets you instantly move between saved "warp points" and regular folders.}
|
13
|
-
s.description =
|
14
|
+
s.description = "Warp-Dir is compatible (and inspired by) the popular 'wd' tool available as a ZSH module. This one is written in ruby and so it should work in any shell. Credits for the original zsh-only tool go to (https://github.com/mfaerevaag/wd)."
|
14
15
|
s.homepage = 'https://github.com/kigster/warp-dir'
|
15
|
-
s.files = `git ls-files`.split($\).reject{ |f| f.match(%r{^(
|
16
|
+
s.files = `git ls-files`.split($\).reject{ |f| f.match(%r{^((docs|spec)/.*|README.pdf)$}) }
|
16
17
|
|
17
|
-
s.executables
|
18
|
-
s.bindir
|
18
|
+
s.executables << 'warp-dir'
|
19
|
+
s.bindir = 'exe'
|
19
20
|
|
20
21
|
s.post_install_message = ::Warp::Dir::INSTALL_NOTICE
|
21
22
|
s.require_paths = %w(lib)
|
22
23
|
|
23
|
-
s.required_ruby_version = '>= 2.
|
24
|
+
s.required_ruby_version = '>= 2.3.0'
|
24
25
|
s.required_rubygems_version = '>= 1.3.6'
|
25
26
|
|
26
27
|
s.add_dependency('slop', '~> 4.2')
|
27
28
|
|
28
29
|
s.add_development_dependency 'bundler'
|
29
30
|
s.add_development_dependency 'rake'
|
30
|
-
s.add_development_dependency 'rspec', '~> 3
|
31
|
+
s.add_development_dependency 'rspec', '~> 3'
|
31
32
|
s.add_development_dependency 'rspec-its'
|
32
|
-
s.add_development_dependency '
|
33
|
+
s.add_development_dependency 'rubocop'
|
34
|
+
s.add_development_dependency 'rubocop-rake'
|
35
|
+
s.add_development_dependency 'rubocop-rspec'
|
36
|
+
s.add_development_dependency 'yard'
|
37
|
+
|
38
|
+
s.metadata['rubygems_mfa_required'] = 'true'
|
33
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: warp-dir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Gredeskoul
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slop
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3
|
61
|
+
version: '3'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3
|
68
|
+
version: '3'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec-its
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,49 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop-rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop-rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: yard
|
85
127
|
requirement: !ruby/object:Gem::Requirement
|
86
128
|
requirements:
|
87
129
|
- - ">="
|
@@ -104,20 +146,21 @@ executables:
|
|
104
146
|
extensions: []
|
105
147
|
extra_rdoc_files: []
|
106
148
|
files:
|
107
|
-
- ".
|
108
|
-
- ".
|
149
|
+
- ".github/workflows/rubocop.yml"
|
150
|
+
- ".github/workflows/ruby.yml"
|
151
|
+
- ".github/workflows/shellcheck.yml"
|
109
152
|
- ".gitignore"
|
110
153
|
- ".idea/encodings.xml"
|
111
154
|
- ".idea/modules.xml"
|
112
155
|
- ".idea/runConfigurations/All_Specs.xml"
|
113
156
|
- ".idea/vcs.xml"
|
157
|
+
- ".relaxed-rubocop-2.5.yml"
|
114
158
|
- ".rspec"
|
115
159
|
- ".rubocop.yml"
|
116
|
-
- ".
|
117
|
-
-
|
160
|
+
- ".rubocop_todo.yml"
|
161
|
+
- Gemfile
|
118
162
|
- LICENSE
|
119
|
-
- README.
|
120
|
-
- ROADMAP.md
|
163
|
+
- README.adoc
|
121
164
|
- Rakefile
|
122
165
|
- bin/console
|
123
166
|
- bin/warp-dir.bash
|
@@ -150,17 +193,21 @@ files:
|
|
150
193
|
homepage: https://github.com/kigster/warp-dir
|
151
194
|
licenses:
|
152
195
|
- MIT
|
153
|
-
metadata:
|
196
|
+
metadata:
|
197
|
+
rubygems_mfa_required: 'true'
|
154
198
|
post_install_message: "\n\e[33m\e[1m>>> PLEASE READ THIS! \e[0m\e[0m\n\nFor this gem
|
155
199
|
to work, you must also install the coupled shell function\ninto your shell initialization
|
156
|
-
file. The following command should complete the\nsetup (but please change '~/.
|
157
|
-
with whatever you use for shell\ninitialization, although for most situations ~/.
|
158
|
-
is good enough).\n\n\e[32m\e[1m
|
200
|
+
file. The following command should complete the\nsetup (but please change '~/.bash_profile'
|
201
|
+
with whatever you use for shell\ninitialization, although for most situations ~/.bash_profile
|
202
|
+
is good enough).\n\n\e[32m\e[1m warp-dir install --dotfile ~/.bash_profile\n\n\e[0m\e[0mRestart
|
159
203
|
your shell, and you should now have 'wd' shell function that\nshould be used instead
|
160
204
|
of the warp-dir executable.\n\nStart with:\n\n\e[34m\e[1m $ wd help\n $ wd <directory>
|
161
|
-
\ # change directory – works just like \"cd\"\n $ wd add <name>
|
162
|
-
directory as a warp point, call it <name>\
|
163
|
-
|
205
|
+
\ \e[30m\e[1m# change directory – works just like \"cd\"\e[0m\e[0m\n $ wd add <name>
|
206
|
+
\ \e[30m\e[1m# add current directory as a warp point, call it <name>\e[0m\e[0m\n
|
207
|
+
\ $ wd<TAB> \e[30m\e[1m# to see the command completion in action\e[0m\e[0m\n\e[0m\e[0m\e[32m\nPlease
|
208
|
+
submit issues and pull requests on Github:\n\n • https://github.com/kigster/warp-dir\n
|
209
|
+
• via email to Konstantin Gredeskoul, @kigster on GMail, @kig on Twitter.\n\nThank
|
210
|
+
you!\n\e[0m"
|
164
211
|
rdoc_options: []
|
165
212
|
require_paths:
|
166
213
|
- lib
|
@@ -168,16 +215,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
168
215
|
requirements:
|
169
216
|
- - ">="
|
170
217
|
- !ruby/object:Gem::Version
|
171
|
-
version: 2.
|
218
|
+
version: 2.3.0
|
172
219
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
220
|
requirements:
|
174
221
|
- - ">="
|
175
222
|
- !ruby/object:Gem::Version
|
176
223
|
version: 1.3.6
|
177
224
|
requirements: []
|
178
|
-
|
179
|
-
|
180
|
-
signing_key:
|
225
|
+
rubygems_version: 3.3.14
|
226
|
+
signing_key:
|
181
227
|
specification_version: 4
|
182
228
|
summary: Warp-Dir (aka 'wd') replaces 'cd' and lets you instantly move between saved
|
183
229
|
"warp points" and regular folders.
|
data/.atom-build.json
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"cmd": "bundle",
|
3
|
-
"name": "Run All Specs",
|
4
|
-
"args": [ "exec", "rspec", "-c", "-b", "-p 1", "--format progress", "--color", "spec/" ],
|
5
|
-
"keymap": "ctrl-r",
|
6
|
-
"sh": true,
|
7
|
-
"errorMatch": [
|
8
|
-
"rspec (?<file>[\\/0-9a-zA-Z\\._]+):(?<line>\\d+) #",
|
9
|
-
"# (?<file>\\./.*):(?<line>\\d+)",
|
10
|
-
"\\s+from (?<file>\\./.*):(?<line>\\d+)",
|
11
|
-
"`(require|load)': (?<file>\\./.*):(?<line>\\d+)",
|
12
|
-
"^(<file>/.*):(?<line>\\d+)"
|
13
|
-
],
|
14
|
-
"targets": {
|
15
|
-
"Run Current Spec": {
|
16
|
-
"cmd": "bundle",
|
17
|
-
"args": [ "exec", "rspec", "{FILE_ACTIVE}" ],
|
18
|
-
"sh": false,
|
19
|
-
"keymap": "ctrl-shift-r"
|
20
|
-
}
|
21
|
-
}
|
22
|
-
}
|
data/.codeclimate.yml
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
---
|
2
|
-
engines:
|
3
|
-
duplication:
|
4
|
-
enabled: true
|
5
|
-
config:
|
6
|
-
languages:
|
7
|
-
- ruby
|
8
|
-
fixme:
|
9
|
-
enabled: true
|
10
|
-
rubocop:
|
11
|
-
enabled: true
|
12
|
-
ratings:
|
13
|
-
paths:
|
14
|
-
- "**.inc"
|
15
|
-
- "**.js"
|
16
|
-
- "**.jsx"
|
17
|
-
- "**.module"
|
18
|
-
- "**.php"
|
19
|
-
- "**.py"
|
20
|
-
- "**.rb"
|
21
|
-
exclude_paths:
|
22
|
-
- spec/
|
data/.travis.yml
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
env:
|
3
|
-
- CODECLIMATE_REPO_TOKEN=5306e7c3069bd3fef06f717d679f41e969e13bb05efef5bbe1fd781043b0c117
|
4
|
-
rvm:
|
5
|
-
- 2.2.3
|
6
|
-
- 2.3.1
|
7
|
-
script: "gem install bundler rake --no-ri --no-rdoc; rake"
|
8
|
-
notifications:
|
9
|
-
email:
|
10
|
-
recipients:
|
11
|
-
- kigster@gmail.com
|
12
|
-
on_success: change
|
13
|
-
on_failure: always
|
data/Guardfile
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
#^syntax detection
|
3
|
-
|
4
|
-
# A sample Guardfile
|
5
|
-
# More info at https://github.com/guard/guard#readme
|
6
|
-
|
7
|
-
guard 'rspec' do
|
8
|
-
watch(%r{^warp-dir\.gemspec}) { "spec"}
|
9
|
-
watch(%r{^lib/(.+)\.rb$}) { "spec" }
|
10
|
-
watch(%r{^spec/.+_spec\.rb$})
|
11
|
-
watch('spec/spec_helper.rb') { "spec" }
|
12
|
-
watch(%r{spec/support/.*}) { "spec" }
|
13
|
-
end
|
14
|
-
|