jump 0.1.3 → 0.1.4
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.
- data/Changelog +8 -0
- data/README.rdoc +23 -0
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/bin/jump-bin +5 -3
- data/lib/bookmarks.rb +2 -2
- data/test/bookmarks_test.rb +3 -3
- data/test/test_helper.rb +3 -3
- metadata +4 -4
data/Changelog
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
Wed Aug 11 15:14:05 CEST 2010 Flavio Castelli <flavio@castelli.name>
|
2
|
+
|
3
|
+
* updated the documentation
|
4
|
+
|
5
|
+
Tue Aug 10 14:32:11 CEST 2010 Flavio Castelli <flavio@castelli.name>
|
6
|
+
|
7
|
+
* updated the usage banner
|
8
|
+
|
1
9
|
Tue Aug 10 10:25:26 CEST 2010 Flavio Castelli <flavio@castelli.name>
|
2
10
|
|
3
11
|
* First release
|
data/README.rdoc
CHANGED
@@ -82,6 +82,22 @@ Jump is packaged as a gem:
|
|
82
82
|
|
83
83
|
$ gem install jump
|
84
84
|
|
85
|
+
=== Notes for Debian & Ubuntu users
|
86
|
+
|
87
|
+
The rubygem package shipped with Debian & Ubuntu acts in a different way.
|
88
|
+
Once jump has been installed you have to updated your <i>PATH</i> (unless you
|
89
|
+
have already done it).
|
90
|
+
|
91
|
+
Execute the following command:
|
92
|
+
$ gem environment
|
93
|
+
and take a look at the <i>GEM PATHS</i> section.
|
94
|
+
|
95
|
+
You will have something like that:
|
96
|
+
- GEM PATHS:
|
97
|
+
- /var/lib/gems/1.8
|
98
|
+
In this case <i>/var/lib/gems/1.8</i> is your <i>GEM PATH</i>.
|
99
|
+
Add <i>GEM PATH/bin</i> to your <i>PATH</i>.
|
100
|
+
|
85
101
|
== Bash integration
|
86
102
|
|
87
103
|
=== Using bash-completion (recommended)
|
@@ -97,6 +113,13 @@ Execute the following command once jump has been installed:
|
|
97
113
|
The <i>bash_completion.d</i> directory is usually located under <i>/etc/</i>.
|
98
114
|
OSX users will find this directory under fink/port/brew installation directory (e.g. <i>/opt/local/etc</i>).
|
99
115
|
|
116
|
+
Note for Ubuntu users: the <tt>gem contents jump</tt> command won't show the
|
117
|
+
absolute installation path.
|
118
|
+
|
119
|
+
All the files shipped with jump can be found under the following path:
|
120
|
+
[GEM PATH]/gems/jump-[JUMP VERSION]/
|
121
|
+
Take a look at the previous section in order to figure out your <i>GEM PATH</i>.
|
122
|
+
|
100
123
|
=== Without bash-completion
|
101
124
|
|
102
125
|
If you do not want to install <i>bash_completion</i> then execute the following command:
|
data/Rakefile
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
# Copyright (C) 2010 Flavio Castelli <flavio@castelli.name>
|
4
4
|
# Copyright (C) 2010 Giuseppe Capizzi <gcapizzi@gmail.com>
|
5
5
|
#
|
6
|
-
#
|
6
|
+
# jump is free software; you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
8
8
|
# the Free Software Foundation; either version 2 of the License, or
|
9
9
|
# (at your option) any later version.
|
10
10
|
#
|
11
|
-
#
|
11
|
+
# jump is distributed in the hope that it will be useful,
|
12
12
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
13
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
14
|
# GNU General Public License for more details.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/bin/jump-bin
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
# Copyright (C) 2010 Flavio Castelli <flavio@castelli.name>
|
6
6
|
# Copyright (C) 2010 Giuseppe Capizzi <gcapizzi@gmail.com>
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# jump is free software; you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU General Public License as published by
|
10
10
|
# the Free Software Foundation; either version 2 of the License, or
|
11
11
|
# (at your option) any later version.
|
12
12
|
#
|
13
|
-
#
|
13
|
+
# jump is distributed in the hope that it will be useful,
|
14
14
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
15
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16
16
|
# GNU General Public License for more details.
|
@@ -23,11 +23,13 @@
|
|
23
23
|
THIS_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
|
24
24
|
|
25
25
|
require "#{File.dirname(THIS_FILE)}/../lib/bookmarks"
|
26
|
+
require 'rubygems'
|
27
|
+
require 'optparse'
|
26
28
|
|
27
29
|
options = {}
|
28
30
|
begin
|
29
31
|
OptionParser.new do |opts|
|
30
|
-
opts.banner = "Usage:
|
32
|
+
opts.banner = "Usage: jump [options] [BOOKMARK[/path/to/subfolder]]"
|
31
33
|
|
32
34
|
opts.on("-a", "--add BOOKMARK", "Saves the current directory in BOOKMARK") do |v|
|
33
35
|
options[:add] = v
|
data/lib/bookmarks.rb
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
# Copyright (C) 2010 Flavio Castelli <flavio@castelli.name>
|
4
4
|
# Copyright (C) 2010 Giuseppe Capizzi <gcapizzi@gmail.com>
|
5
5
|
#
|
6
|
-
#
|
6
|
+
# jump is free software; you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
8
8
|
# the Free Software Foundation; either version 2 of the License, or
|
9
9
|
# (at your option) any later version.
|
10
10
|
#
|
11
|
-
#
|
11
|
+
# jump is distributed in the hope that it will be useful,
|
12
12
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
13
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
14
|
# GNU General Public License for more details.
|
data/test/bookmarks_test.rb
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
# Copyright (C) 2010 Flavio Castelli <flavio@castelli.name>
|
4
4
|
# Copyright (C) 2010 Giuseppe Capizzi <gcapizzi@gmail.com>
|
5
5
|
#
|
6
|
-
#
|
6
|
+
# jump is free software; you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
8
8
|
# the Free Software Foundation; either version 2 of the License, or
|
9
9
|
# (at your option) any later version.
|
10
10
|
#
|
11
|
-
#
|
11
|
+
# jump is distributed in the hope that it will be useful,
|
12
12
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
13
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
14
|
# GNU General Public License for more details.
|
@@ -136,4 +136,4 @@ EOF
|
|
136
136
|
end
|
137
137
|
end
|
138
138
|
|
139
|
-
end
|
139
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
# Copyright (C) 2010 Flavio Castelli <flavio@castelli.name>
|
4
4
|
# Copyright (C) 2010 Giuseppe Capizzi <gcapizzi@gmail.com>
|
5
5
|
#
|
6
|
-
#
|
6
|
+
# jump is free software; you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
8
8
|
# the Free Software Foundation; either version 2 of the License, or
|
9
9
|
# (at your option) any later version.
|
10
10
|
#
|
11
|
-
#
|
11
|
+
# jump is distributed in the hope that it will be useful,
|
12
12
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
13
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
14
|
# GNU General Public License for more details.
|
@@ -21,4 +21,4 @@
|
|
21
21
|
require 'rubygems'
|
22
22
|
require 'test/unit'
|
23
23
|
require 'fakefs/safe'
|
24
|
-
require 'yaml'
|
24
|
+
require 'yaml'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jump
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Flavio Castelli
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-08-
|
19
|
+
date: 2010-08-11 00:00:00 +02:00
|
20
20
|
default_executable: jump-bin
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|