prak 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +0 -1
- data/lib/prak.rb +1 -1
- data/lib/prak/command_line.rb +2 -1
- data/lib/prak/help.rb +3 -0
- data/lib/prak/search.rb +9 -1
- metadata +3 -5
- data/History.txt +0 -27
data/Manifest.txt
CHANGED
data/lib/prak.rb
CHANGED
data/lib/prak/command_line.rb
CHANGED
@@ -29,7 +29,8 @@ class Prak
|
|
29
29
|
:php => %w( .php .phpt .php3 .php4 .php5 ),
|
30
30
|
:prolog => %w( .pl .ecl ),
|
31
31
|
:python => %w( .py ),
|
32
|
-
:ruby => %w( .rb .rhtml .rjs .rxml Rakefile
|
32
|
+
:ruby => %w( .rb .rhtml .rjs .rxml Rakefile Gemfile Rakefile
|
33
|
+
.rake .gemspec .erb .haml .slim),
|
33
34
|
:scheme => %w( .scm ),
|
34
35
|
:shell => %w( .sh .bash .csh .ksh .zsh ),
|
35
36
|
:sql => %w( .sql .ctl ),
|
data/lib/prak/help.rb
CHANGED
@@ -71,6 +71,9 @@ File inclusion/exclusion:
|
|
71
71
|
Miscellaneous:
|
72
72
|
--help This help
|
73
73
|
--version Display version & copyright
|
74
|
+
|
75
|
+
You can specify a .prakrc file in your current directory having options
|
76
|
+
on each line, that will be sourced before ARGV
|
74
77
|
END
|
75
78
|
|
76
79
|
TYPES_HELP=<<END
|
data/lib/prak/search.rb
CHANGED
@@ -3,7 +3,15 @@ class Prak
|
|
3
3
|
def self.search run_opts = {}
|
4
4
|
|
5
5
|
# command_line_options and sets some standards
|
6
|
-
|
6
|
+
if run_opts.empty?
|
7
|
+
if File.exists? ".prakrc"
|
8
|
+
File.open(".prakrc").each do |line|
|
9
|
+
ARGV << line.gsub(/r?\n/, "")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
parse_command_line_options
|
13
|
+
end
|
14
|
+
|
7
15
|
|
8
16
|
unless opt[:colour]
|
9
17
|
FILE_COLOUR.replace ""
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-08-24 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hoe
|
16
|
-
requirement: &
|
16
|
+
requirement: &2157190280 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '2.12'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2157190280
|
25
25
|
description: ! 'Modifications by Sven Winkler
|
26
26
|
|
27
27
|
|
@@ -39,11 +39,9 @@ executables:
|
|
39
39
|
- prak
|
40
40
|
extensions: []
|
41
41
|
extra_rdoc_files:
|
42
|
-
- History.txt
|
43
42
|
- Manifest.txt
|
44
43
|
- README.txt
|
45
44
|
files:
|
46
|
-
- History.txt
|
47
45
|
- Manifest.txt
|
48
46
|
- README.txt
|
49
47
|
- Rakefile
|
data/History.txt
DELETED
@@ -1,27 +0,0 @@
|
|
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
|
-
|