rak-eugeneching 1.5
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 +7 -0
- data/History.txt +27 -0
- data/Manifest.txt +8 -0
- data/README.md +83 -0
- data/bin/rak +827 -0
- data/lib/rak.rb +4 -0
- data/spec/help_spec.rb +56 -0
- data/spec/rak_spec.rb +615 -0
- metadata +54 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4815beb5321dc6803aef80fb1d080e0374402e3b
|
4
|
+
data.tar.gz: 61523b43603aeb527be83279356acdc085ac2ff5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4f5e1d0cc6e5133b6411a1eaa836ee088d6e77a7b24530ff474e9f7512c128361243bbd58ee0c9ec185ca934eeca574116718d9b906da11e5be31f28441ab651
|
7
|
+
data.tar.gz: c9ecb01fb008d68cfee76e348198fde89ac40d9723453c8930171f47c3ccd5bc89b49c3586f531c20445b0e1fca88b0a720632339d365f64e96b69cfe25094ba
|
data/History.txt
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
== 1.0 / 2009-09-27
|
3
|
+
|
4
|
+
* MinGW is a valid Windows platform type.
|
5
|
+
* Can use ~bang and ~ques in a regex and they will be turned into ! and ?
|
6
|
+
This is to get around bash.
|
7
|
+
* Added -k negative file match option (Contributed by Juozas Gaigalas')
|
8
|
+
* Added .cc and .hpp to the C++ file types
|
9
|
+
* Added Vala file types
|
10
|
+
* 20% faster on average
|
11
|
+
* Moved to Github
|
12
|
+
|
13
|
+
== 0.9 / 2008-02-03
|
14
|
+
|
15
|
+
* Added .rake to ruby files
|
16
|
+
* Colouring works on Win32 if win32console gem is installed.
|
17
|
+
* Checks that file is readable by the current user.
|
18
|
+
* Ignores socket files.
|
19
|
+
* Added .erb and .haml to Ruby filetypes.
|
20
|
+
* Added search at end-of/start-of line options
|
21
|
+
* Fixed searching up the directory tree when passed '.'
|
22
|
+
|
23
|
+
== 0.8.0 / 2007-10-30
|
24
|
+
|
25
|
+
* Initial release.
|
26
|
+
|
27
|
+
|
data/Manifest.txt
ADDED
data/README.md
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
### What is Rak
|
2
|
+
|
3
|
+
Rak is a grep replacement in pure Ruby. It accepts Ruby syntax regular
|
4
|
+
expressions and automatically recurses directories, skipping .svn/, .cvs/,
|
5
|
+
pkg/ and more things you don't care about. It is based on the Perl tool
|
6
|
+
ack by Andy Lester.
|
7
|
+
|
8
|
+
### Original credits
|
9
|
+
|
10
|
+
Rak was originally implemented by Daniel Lucraft, whose blog may be found
|
11
|
+
at http://danlucraft.com/blog/. Full credits to the original version to
|
12
|
+
him. His project may be found at https://github.com/danlucraft/rak.
|
13
|
+
|
14
|
+
### This version of Rak
|
15
|
+
|
16
|
+
This is my improvement of the original implementation of Rak, for
|
17
|
+
stability, as well as UI improvements. I also added column handling so
|
18
|
+
that editors interacting with Rak, or otherwise, may point directly to
|
19
|
+
the line and word that was Rak'ed for. Column is only shown for the first
|
20
|
+
matching word, if there are multiple, for a given line. Finally,
|
21
|
+
ignore-case mode is default, as I feel that such a case is more common.
|
22
|
+
|
23
|
+
### Gem and Installation
|
24
|
+
|
25
|
+
This is released as a Gem under eugeneching-rak. Hence, the easiest
|
26
|
+
way to install this fork of Rak is to do a:
|
27
|
+
|
28
|
+
gem install eugeneching-rak
|
29
|
+
|
30
|
+
### Features
|
31
|
+
|
32
|
+
From original Rak:
|
33
|
+
* Ruby regular expression syntax (uses oniguruma gem if installed).
|
34
|
+
* Highlighted output.
|
35
|
+
* Automatically recurses down the current directory or any given
|
36
|
+
directories.
|
37
|
+
* Skips version control directories, backups like '~' and '#' and your
|
38
|
+
* ruby project's pkg directory.
|
39
|
+
* Allows inclusion and exclusion of files based on types.
|
40
|
+
* Many options similar to grep.
|
41
|
+
|
42
|
+
Added features:
|
43
|
+
* Ignore case mode is default behaviour.
|
44
|
+
* UI improvements, in terms of display, alignment and coloring
|
45
|
+
* Detects and displays column of match
|
46
|
+
* Various fixes
|
47
|
+
|
48
|
+
### Author
|
49
|
+
|
50
|
+
Eugene Ching (codejury)
|
51
|
+
Email: eugene@enegue.com
|
52
|
+
Web: www.codejury.com
|
53
|
+
Twitter: @eugeneching
|
54
|
+
|
55
|
+
### Licence
|
56
|
+
|
57
|
+
Note that the original Rak was released under the MIT license. This
|
58
|
+
version of Rak follows.
|
59
|
+
|
60
|
+
(The MIT License)
|
61
|
+
|
62
|
+
Copyright (c) 2013 Eugene Ching
|
63
|
+
|
64
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
65
|
+
a copy of this software and associated documentation files (the
|
66
|
+
'Software'), to deal in the Software without restriction, including
|
67
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
68
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
69
|
+
permit persons to whom the Software is furnished to do so, subject to
|
70
|
+
the following conditions:
|
71
|
+
|
72
|
+
The above copyright notice and this permission notice shall be
|
73
|
+
included in all copies or substantial portions of the Software.
|
74
|
+
|
75
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
76
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
77
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
78
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
79
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
80
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
81
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
82
|
+
|
83
|
+
|