warp-dir 1.6.2 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,8 +54,8 @@ module Warp
54
54
  response
55
55
  rescue Exception => e
56
56
  if config.debug
57
- STDERR.puts(e.inspect)
58
- STDERR.puts(e.backtrace.join("\n"))
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', '<config> – location of the configuration file (default: ' + Warp::Dir.default_config + ')', default: Warp::Dir.default_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 'Version ' + Warp::Dir::VERSION
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 occured 1 STDERR
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 == STDOUT ? "STDOUT" : "STDERR"}"
27
+ "code:#{exit_code}, stream:#{stream == $stdout ? "STDOUT" : "STDERR"}"
28
28
  end
29
29
  end
30
30
 
31
- INFO = Type.new(0, STDOUT)
32
- ERROR = Type.new(1, STDERR)
33
- SHELL = Type.new(2, STDOUT)
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 then
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 'All entries are valid in your file ' + s.config.warprc.blue + ' are ' + 'valid.'.green
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
@@ -4,7 +4,6 @@ class Warp::Dir::Command::Help < Warp::Dir::Command
4
4
  description 'Show this extremely unhelpful text'
5
5
  aliases :wtf
6
6
 
7
-
8
7
  def run(opts, flags = [])
9
8
  commander = ::Warp::Dir.commander
10
9
  cmd = self
@@ -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
- matches = if File.exist?(path)
23
- File.open path do |file|
24
- file.find { |line| line =~ ::Warp::Dir::SHELL_WRAPPER_REGX }
25
- end
26
- end
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
- if !pre_installed || config[:force]
89
- source = File.read(file)
90
- source.gsub!(/# WarpDir.*BEGIN\n.*\n# WarpDir.*END/, '')
91
- File.open(file, 'w') do |f|
92
- f.write source
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
 
@@ -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
- STDERR.puts "FLAGS: [#{flags}]".bold.green if config.debug
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
- STDERR.puts 'Command: '.yellow + command.bold.green if config.debug
21
+ $stderr.puts 'Command: '.yellow + command.bold.green if config.debug
22
22
  ls_output = `#{command}`
23
- STDERR.puts 'Output: '.yellow + ls_output.bold.blue if config.debug
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
@@ -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: " + aliases.join(', ').blue + '' : '')
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
- STDERR.printf 'Initialized Command: '.yellow.bold
82
+ $stderr.printf 'Initialized Command: '.yellow.bold
83
83
  pp self
84
84
  end
85
85
  end
@@ -5,7 +5,7 @@ module Warp
5
5
  class Config
6
6
 
7
7
  DEFAULTS = {
8
- warprc: ENV['HOME'] + '/.warprc',
8
+ warprc: "#{::Dir.home}/.warprc",
9
9
  shell: false,
10
10
  force: false,
11
11
  debug: false,
@@ -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
@@ -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 ? STDERR.printf(out) : out
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
- STDOUT.printf(message.blue.bold)
35
+ $stdout.printf(message.blue.bold)
36
36
  end
37
37
 
38
38
  class PointFormatter
@@ -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
- 'warprc file may be corrupt, offending line is: ' +
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
- STDERR.puts "No warprc file found in the path #{warprc_file_path}" if config.debug
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|
@@ -3,7 +3,7 @@
3
3
  require_relative '../../colored'
4
4
  module Warp
5
5
  module Dir
6
- VERSION = '1.6.2'
6
+ VERSION = '1.7.0'
7
7
 
8
8
  @install_notice = <<~EOF
9
9
 
@@ -16,7 +16,7 @@ module Warp
16
16
 
17
17
  EOF
18
18
  @install_notice += <<-EOF.bold.green
19
- $ warp-dir install --dotfile ~/.bash_profile
19
+ warp-dir install --dotfile ~/.bash_profile
20
20
 
21
21
  EOF
22
22
  @install_notice += <<~EOF
@@ -28,13 +28,16 @@ module Warp
28
28
  EOF
29
29
  @install_notice += <<-EOF.bold.blue
30
30
  $ wd help
31
- $ wd <directory> # change directory – works just like "cd"
32
- $ 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}
33
34
  EOF
34
- @install_notice += <<~EOF
35
+ @install_notice += <<~EOF.green
36
+
37
+ Please submit issues and pull requests on Github:
35
38
 
36
- Please submit issues and pull requests to:
37
- https://github.com/kigster/warp-dir
39
+ https://github.com/kigster/warp-dir
40
+ • via email to Konstantin Gredeskoul, @kigster on GMail, @kig on Twitter.
38
41
 
39
42
  Thank you!
40
43
  EOF
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 = ENV['HOME'] + '/.bash_wd'
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 + folder + '/*.rb') { |file| Kernel.require file }
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 ENV['HOME'], '~'
28
+ %x(pwd).chomp.gsub ::Dir.home, '~'
29
29
  end
30
30
 
31
31
  def relative(path)
32
- path.gsub ENV['HOME'], '~'
32
+ path.gsub ::Dir.home, '~'
33
33
  end
34
34
 
35
35
  def absolute(path)
36
- path.gsub '~', ENV['HOME']
36
+ path.gsub '~', ::Dir.home
37
37
  end
38
38
 
39
39
  def default_config
data/warp-dir.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.summary = %q{Warp-Dir (aka 'wd') replaces 'cd' and lets you instantly move between saved "warp points" and regular folders.}
14
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)."
15
15
  s.homepage = 'https://github.com/kigster/warp-dir'
16
- s.files = `git ls-files`.split($\).reject{ |f| f.match(%r{^(doc|spec)/}) }
16
+ s.files = `git ls-files`.split($\).reject{ |f| f.match(%r{^((docs|spec)/.*|README.pdf)$}) }
17
17
 
18
18
  s.executables << 'warp-dir'
19
19
  s.bindir = 'exe'
@@ -27,8 +27,13 @@ Gem::Specification.new do |s|
27
27
  s.add_dependency('slop', '~> 4.2')
28
28
 
29
29
  s.add_development_dependency 'bundler'
30
- s.add_development_dependency 'codeclimate-test-reporter'
31
30
  s.add_development_dependency 'rake'
32
- s.add_development_dependency 'rspec', '~> 3.6'
31
+ s.add_development_dependency 'rspec', '~> 3'
33
32
  s.add_development_dependency 'rspec-its'
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'
34
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.6.2
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: 2020-01-29 00:00:00.000000000 Z
11
+ date: 2022-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: codeclimate-test-reporter
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,7 +53,21 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rake
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec-its
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - ">="
@@ -67,21 +81,49 @@ dependencies:
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
- name: rspec
84
+ name: rubocop
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - "~>"
87
+ - - ">="
74
88
  - !ruby/object:Gem::Version
75
- version: '3.6'
89
+ version: '0'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - "~>"
94
+ - - ">="
81
95
  - !ruby/object:Gem::Version
82
- version: '3.6'
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
- name: rspec-its
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,22 +146,21 @@ executables:
104
146
  extensions: []
105
147
  extra_rdoc_files: []
106
148
  files:
107
- - ".atom-build.json"
108
- - ".codeclimate.yml"
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"
114
- - ".relaxed-rubocop-2.4.yml"
157
+ - ".relaxed-rubocop-2.5.yml"
115
158
  - ".rspec"
116
159
  - ".rubocop.yml"
117
- - ".travis.yml"
160
+ - ".rubocop_todo.yml"
118
161
  - Gemfile
119
- - Guardfile
120
162
  - LICENSE
121
- - README.md
122
- - ROADMAP.md
163
+ - README.adoc
123
164
  - Rakefile
124
165
  - bin/console
125
166
  - bin/warp-dir.bash
@@ -152,17 +193,21 @@ files:
152
193
  homepage: https://github.com/kigster/warp-dir
153
194
  licenses:
154
195
  - MIT
155
- metadata: {}
196
+ metadata:
197
+ rubygems_mfa_required: 'true'
156
198
  post_install_message: "\n\e[33m\e[1m>>> PLEASE READ THIS! \e[0m\e[0m\n\nFor this gem
157
199
  to work, you must also install the coupled shell function\ninto your shell initialization
158
200
  file. The following command should complete the\nsetup (but please change '~/.bash_profile'
159
201
  with whatever you use for shell\ninitialization, although for most situations ~/.bash_profile
160
- is good enough).\n\n\e[32m\e[1m $ warp-dir install --dotfile ~/.bash_profile\n\n\e[0m\e[0mRestart
202
+ is good enough).\n\n\e[32m\e[1m warp-dir install --dotfile ~/.bash_profile\n\n\e[0m\e[0mRestart
161
203
  your shell, and you should now have 'wd' shell function that\nshould be used instead
162
204
  of the warp-dir executable.\n\nStart with:\n\n\e[34m\e[1m $ wd help\n $ wd <directory>
163
- \ # change directory – works just like \"cd\"\n $ wd add <name> # add current
164
- directory as a warp point, call it <name>\n\e[0m\e[0m\nPlease submit issues and
165
- pull requests to:\nhttps://github.com/kigster/warp-dir\n\nThank you!\n"
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"
166
211
  rdoc_options: []
167
212
  require_paths:
168
213
  - lib
@@ -177,8 +222,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
222
  - !ruby/object:Gem::Version
178
223
  version: 1.3.6
179
224
  requirements: []
180
- rubygems_version: 3.1.2
181
- signing_key:
225
+ rubygems_version: 3.3.14
226
+ signing_key:
182
227
  specification_version: 4
183
228
  summary: Warp-Dir (aka 'wd') replaces 'cd' and lets you instantly move between saved
184
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,26 +0,0 @@
1
- language: ruby
2
- env:
3
- - CODECLIMATE_REPO_TOKEN=5306e7c3069bd3fef06f717d679f41e969e13bb05efef5bbe1fd781043b0c117
4
- rvm:
5
- - 2.3.8
6
- - 2.4.9
7
- - 2.5.7
8
- - 2.6.5
9
- - 2.7.0
10
- before_install:
11
- - gem update --system
12
- - gem install bundler
13
- - bundle install --jobs 10 --redownload
14
- before_script:
15
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
16
- - chmod +x ./cc-test-reporter
17
- - ./cc-test-reporter before-build
18
- script:
19
- - USER=travis bundle exec rspec --format documentation
20
- after_script:
21
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
22
- cache: bundler
23
- addons:
24
- code_climate:
25
- repo_token:
26
- secure: wNEKCPWPHHLuA3O70A7rChnLzNb5hXsJ5wjfvCJK36Y/bU7iJLQds54Pt5ZB3hgo8f0nXP6tTGeoy7D5GhESwcyOFB0shOuliJ7ym0oxH9twixez7G/B8B+AJzfLcrhAN350dsSZ81mD8n62F4+u3NCZnmAYNIlj8XR4dF8GOXtUsTyowQiPUkJ7bA4Jk4mukBwIkDTRDp5Mev9nbN7NFpoK+BlHuKElHFZxjVUYK84JQ6TNwcp80YC6my8RtRnS+P4gZJYb0aMSPWayLsTFjgV/VHgZeQn3HzAL4+UIvQ6G8/lVJCQCaH1KJSkQBnH5nZVT/oNXit3Kj9OluXh3PhJRPNhxB7q2p0HGsR20/h+eqZpjUw6hdzBXzqCCLQJUFCo4upvCKSAcggygtGiOL7rIO0vB99JRkGjGRl98SPJ5S8/cnEi3JsIrd5wqS8mVn1uGJE8XkjAUs1nw5yNx0sqSa2z7wQoPVH5j8bWBOAcJANNQyUhbhQO1d1hc7IBLKFgC8w+DNknpl0UsrGhseCPoluuvvpH5em5Xfx5HDqXGUcs1tmuoW6t8FvlEnJlkR8QNJh8eQepjgub0OCax1FwFVR/98w1VKY7lMpFFHwUszJoP3Z1eM/h+ftv0Eu4Zlb+pcOHTSdxCVNYzN9Aw+IUb81cI5RpZCUoQYlfOf1g=
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
-