warp-dir 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +7 -0
  2. data/.atom-build.json +22 -0
  3. data/.codeclimate.yml +22 -0
  4. data/.gitignore +40 -0
  5. data/.idea/encodings.xml +6 -0
  6. data/.idea/misc.xml +14 -0
  7. data/.idea/modules.xml +8 -0
  8. data/.idea/runConfigurations/All_Specs.xml +33 -0
  9. data/.idea/vcs.xml +6 -0
  10. data/.idea/warp-dir.iml +224 -0
  11. data/.rspec +4 -0
  12. data/.rubocop.yml +1156 -0
  13. data/.travis.yml +13 -0
  14. data/Gemfile +4 -0
  15. data/Guardfile +14 -0
  16. data/LICENSE +22 -0
  17. data/README.md +114 -0
  18. data/ROADMAP.md +96 -0
  19. data/Rakefile +24 -0
  20. data/bin/console +11 -0
  21. data/bin/setup +8 -0
  22. data/bin/warp-dir +13 -0
  23. data/bin/warp-dir.bash +25 -0
  24. data/lib/warp.rb +4 -0
  25. data/lib/warp/dir.rb +65 -0
  26. data/lib/warp/dir/app/cli.rb +162 -0
  27. data/lib/warp/dir/app/response.rb +133 -0
  28. data/lib/warp/dir/command.rb +120 -0
  29. data/lib/warp/dir/command/add.rb +16 -0
  30. data/lib/warp/dir/command/help.rb +80 -0
  31. data/lib/warp/dir/command/install.rb +78 -0
  32. data/lib/warp/dir/command/list.rb +13 -0
  33. data/lib/warp/dir/command/ls.rb +31 -0
  34. data/lib/warp/dir/command/remove.rb +16 -0
  35. data/lib/warp/dir/command/warp.rb +24 -0
  36. data/lib/warp/dir/commander.rb +71 -0
  37. data/lib/warp/dir/config.rb +87 -0
  38. data/lib/warp/dir/errors.rb +60 -0
  39. data/lib/warp/dir/formatter.rb +77 -0
  40. data/lib/warp/dir/point.rb +53 -0
  41. data/lib/warp/dir/serializer.rb +14 -0
  42. data/lib/warp/dir/serializer/base.rb +43 -0
  43. data/lib/warp/dir/serializer/dotfile.rb +36 -0
  44. data/lib/warp/dir/store.rb +129 -0
  45. data/lib/warp/dir/version.rb +6 -0
  46. data/spec/fixtures/warprc +2 -0
  47. data/spec/spec_helper.rb +71 -0
  48. data/spec/support/cli_expectations.rb +118 -0
  49. data/spec/warp/dir/app/cli_spec.rb +225 -0
  50. data/spec/warp/dir/app/response_spec.rb +131 -0
  51. data/spec/warp/dir/command_spec.rb +62 -0
  52. data/spec/warp/dir/commands/add_spec.rb +40 -0
  53. data/spec/warp/dir/commands/install_spec.rb +20 -0
  54. data/spec/warp/dir/commands/list_spec.rb +37 -0
  55. data/spec/warp/dir/config_spec.rb +45 -0
  56. data/spec/warp/dir/errors_spec.rb +16 -0
  57. data/spec/warp/dir/formatter_spec.rb +38 -0
  58. data/spec/warp/dir/point_spec.rb +35 -0
  59. data/spec/warp/dir/store_spec.rb +105 -0
  60. data/warp-dir.gemspec +56 -0
  61. metadata +228 -0
data/warp-dir.gemspec ADDED
@@ -0,0 +1,56 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'warp/dir/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = 'warp-dir'
8
+ gem.license = 'MIT'
9
+ gem.authors = ['Konstantin Gredeskoul']
10
+ gem.email = ['kig@reinvent.one']
11
+ gem.version = Warp::Dir::VERSION
12
+
13
+ gem.summary = %q{Warp-Dir (aka 'wd') is a command line tool that lets you bookmark any folders, and then 'wd' between any two points on file system in one command.}
14
+ gem.description = %q{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
+ gem.homepage = "https://github.com/kigster/warp-dir"
16
+
17
+ gem.files = `git ls-files`.split($\).reject{ |f| f =~ /^doc\// }
18
+ gem.executables << 'warp-dir'
19
+
20
+ gem.post_install_message =<<-EOF
21
+
22
+ PLEASE NOTE:
23
+
24
+ For this gem to work, you must also install the coupled shell function
25
+ into your ~/.bashrc file (or any other shell initialization file). The
26
+ following command should complete the setup.
27
+
28
+ $ warp-dir install
29
+
30
+ By default, the installer will check common "rc" scripts, but you can
31
+ tell warp-dir where to add shell wrapper with --dotfile <filename>, i.e.
32
+
33
+ $ warp-dir install --dotfile ~/.bashrc
34
+
35
+ Restart your shell, and you should now have 'wd' shell function that
36
+ should be used instead of the warp-dir executable.
37
+
38
+ Start with
39
+
40
+ $ wd help
41
+
42
+ Thank you!
43
+
44
+ EOF
45
+
46
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
47
+ gem.require_paths = ["lib"]
48
+
49
+ gem.add_dependency('slop', '~> 4.2')
50
+ gem.add_dependency('colored', '~> 1')
51
+
52
+ gem.add_development_dependency 'codeclimate-test-reporter', '~> 0.5'
53
+ gem.add_development_dependency 'bundler', '~> 1.11'
54
+ gem.add_development_dependency 'rake', '~> 10.0'
55
+ gem.add_development_dependency 'rspec', '~> 3.4'
56
+ end
metadata ADDED
@@ -0,0 +1,228 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: warp-dir
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Konstantin Gredeskoul
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-03-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: slop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: colored
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: codeclimate-test-reporter
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.5'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.11'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.11'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.4'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.4'
97
+ description: Warp-Dir is compatible (and inspired by) the popular 'wd' tool available
98
+ as a ZSH module. This one is written in ruby and so it should work in any shell.
99
+ Credits for the original zsh-only tool go to (https://github.com/mfaerevaag/wd).
100
+ email:
101
+ - kig@reinvent.one
102
+ executables:
103
+ - warp-dir
104
+ extensions: []
105
+ extra_rdoc_files: []
106
+ files:
107
+ - ".atom-build.json"
108
+ - ".codeclimate.yml"
109
+ - ".gitignore"
110
+ - ".idea/encodings.xml"
111
+ - ".idea/misc.xml"
112
+ - ".idea/modules.xml"
113
+ - ".idea/runConfigurations/All_Specs.xml"
114
+ - ".idea/vcs.xml"
115
+ - ".idea/warp-dir.iml"
116
+ - ".rspec"
117
+ - ".rubocop.yml"
118
+ - ".travis.yml"
119
+ - Gemfile
120
+ - Guardfile
121
+ - LICENSE
122
+ - README.md
123
+ - ROADMAP.md
124
+ - Rakefile
125
+ - bin/console
126
+ - bin/setup
127
+ - bin/warp-dir
128
+ - bin/warp-dir.bash
129
+ - lib/warp.rb
130
+ - lib/warp/dir.rb
131
+ - lib/warp/dir/app/cli.rb
132
+ - lib/warp/dir/app/response.rb
133
+ - lib/warp/dir/command.rb
134
+ - lib/warp/dir/command/add.rb
135
+ - lib/warp/dir/command/help.rb
136
+ - lib/warp/dir/command/install.rb
137
+ - lib/warp/dir/command/list.rb
138
+ - lib/warp/dir/command/ls.rb
139
+ - lib/warp/dir/command/remove.rb
140
+ - lib/warp/dir/command/warp.rb
141
+ - lib/warp/dir/commander.rb
142
+ - lib/warp/dir/config.rb
143
+ - lib/warp/dir/errors.rb
144
+ - lib/warp/dir/formatter.rb
145
+ - lib/warp/dir/point.rb
146
+ - lib/warp/dir/serializer.rb
147
+ - lib/warp/dir/serializer/base.rb
148
+ - lib/warp/dir/serializer/dotfile.rb
149
+ - lib/warp/dir/store.rb
150
+ - lib/warp/dir/version.rb
151
+ - spec/fixtures/warprc
152
+ - spec/spec_helper.rb
153
+ - spec/support/cli_expectations.rb
154
+ - spec/warp/dir/app/cli_spec.rb
155
+ - spec/warp/dir/app/response_spec.rb
156
+ - spec/warp/dir/command_spec.rb
157
+ - spec/warp/dir/commands/add_spec.rb
158
+ - spec/warp/dir/commands/install_spec.rb
159
+ - spec/warp/dir/commands/list_spec.rb
160
+ - spec/warp/dir/config_spec.rb
161
+ - spec/warp/dir/errors_spec.rb
162
+ - spec/warp/dir/formatter_spec.rb
163
+ - spec/warp/dir/point_spec.rb
164
+ - spec/warp/dir/store_spec.rb
165
+ - warp-dir.gemspec
166
+ homepage: https://github.com/kigster/warp-dir
167
+ licenses:
168
+ - MIT
169
+ metadata: {}
170
+ post_install_message: |2+
171
+
172
+ PLEASE NOTE:
173
+
174
+ For this gem to work, you must also install the coupled shell function
175
+ into your ~/.bashrc file (or any other shell initialization file). The
176
+ following command should complete the setup.
177
+
178
+ $ warp-dir install
179
+
180
+ By default, the installer will check common "rc" scripts, but you can
181
+ tell warp-dir where to add shell wrapper with --dotfile <filename>, i.e.
182
+
183
+ $ warp-dir install --dotfile ~/.bashrc
184
+
185
+ Restart your shell, and you should now have 'wd' shell function that
186
+ should be used instead of the warp-dir executable.
187
+
188
+ Start with
189
+
190
+ $ wd help
191
+
192
+ Thank you!
193
+
194
+ rdoc_options: []
195
+ require_paths:
196
+ - lib
197
+ required_ruby_version: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ required_rubygems_version: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - ">="
205
+ - !ruby/object:Gem::Version
206
+ version: '0'
207
+ requirements: []
208
+ rubyforge_project:
209
+ rubygems_version: 2.5.1
210
+ signing_key:
211
+ specification_version: 4
212
+ summary: Warp-Dir (aka 'wd') is a command line tool that lets you bookmark any folders,
213
+ and then 'wd' between any two points on file system in one command.
214
+ test_files:
215
+ - spec/fixtures/warprc
216
+ - spec/spec_helper.rb
217
+ - spec/support/cli_expectations.rb
218
+ - spec/warp/dir/app/cli_spec.rb
219
+ - spec/warp/dir/app/response_spec.rb
220
+ - spec/warp/dir/command_spec.rb
221
+ - spec/warp/dir/commands/add_spec.rb
222
+ - spec/warp/dir/commands/install_spec.rb
223
+ - spec/warp/dir/commands/list_spec.rb
224
+ - spec/warp/dir/config_spec.rb
225
+ - spec/warp/dir/errors_spec.rb
226
+ - spec/warp/dir/formatter_spec.rb
227
+ - spec/warp/dir/point_spec.rb
228
+ - spec/warp/dir/store_spec.rb