gren 0.0.6 → 0.1.0

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.
Files changed (4) hide show
  1. data/History.txt +4 -0
  2. data/README.rdoc +21 -26
  3. data/lib/gren.rb +1 -1
  4. metadata +6 -12
@@ -1,3 +1,7 @@
1
+ === 0.1.0 2010/08/02
2
+
3
+ * update README.rdoc.
4
+
1
5
  === 0.0.6 2010/07/29
2
6
 
3
7
  * update github
@@ -1,25 +1,18 @@
1
1
  = gren (grep next)
2
2
 
3
- * http://github.com/ongaeshi/gren
3
+ http://ongaeshi.github.com/gren
4
4
 
5
5
  == DESCRIPTION:
6
- grengrepの置き換えを狙った次世代型grepツールです。
6
+ gren is a next grep tool.
7
7
 
8
8
  == CONCEPT:
9
- grepと比べた時の特徴は、
10
9
 
11
- * 指定ディレクトリ以下にある全てのファイルの中身を調べます
12
- * バイナリかテキストかをツールが自動で判断して検索してくれます
13
- * 対象設定(*.rbとか*/*.cpp)は指定しなくて構いません
14
- * README,README.jaのような特殊な拡張子のファイルも検索対象に含めます
15
- * .pngや.exeの中身は調べません。
16
- * *~, .svn, .git, CVS等はデフォルトで探索対象から除外します
17
- * 表示形式はgrepと同じです
18
- * emacsのgrep-mode等でそのまま使えます
10
+ * The basis is find+grep.
11
+ * The item that the user specifies to the minimum
12
+ * The binary or the text or the tool judges it from the automatic operation.
13
+ * Convenient retrieval result
19
14
 
20
15
  == INSTALL:
21
- RubyGemからインストールして下さい。
22
-
23
16
  gem install gren
24
17
 
25
18
  == USAGE:
@@ -31,7 +24,7 @@ RubyGemからインストールして下さい。
31
24
  --id, --ignore-dir REGEXP Ignore dir pattern.
32
25
 
33
26
  == SAMPLE:
34
- === 現在ディレクトリ以下で"FileTest"を検索
27
+ === "FileTest" is retrieved below the present directory.
35
28
  % gren FileTest
36
29
  pkg/gren-0.0.5/lib/gren/findgrep.rb:34: next unless FileTest.file?(fpath)
37
30
  pkg/gren-0.0.5/lib/gren/findgrep.rb:39: unless FileTest.readable?(fpath)
@@ -53,7 +46,7 @@ RubyGemからインストールして下さい。
53
46
  files : 49 in 53 (35.63KB in 61.53KB)
54
47
  match : 3 files, 15 hit
55
48
 
56
- === pkg/ディレクトリ以下で"FileTest"を検索
49
+ === "FileTest" is retrieved below the directory pkg/
57
50
  % gren FileTest pkg/
58
51
  pkg/gren-0.0.5/lib/gren/findgrep.rb:34: next unless FileTest.file?(fpath)
59
52
  pkg/gren-0.0.5/lib/gren/findgrep.rb:39: unless FileTest.readable?(fpath)
@@ -70,7 +63,7 @@ RubyGemからインストールして下さい。
70
63
  files : 32 in 36 (22.64KB in 48.54KB)
71
64
  match : 2 files, 10 hit
72
65
 
73
- === pkg/ディレクトリ以下、.rbファイルに限定して"FILE"を検索(file : 32 in 36 → file : 14 in 36 になっていることに注目)
66
+ === Below the directory pkg/. It limits to the rb file and "FILE" is retrieved, that is, (file: 32 in 36 → file: 14 It is paid attention that it is in 36. )
74
67
  % gren FILE -f "\.rb$"
75
68
  pkg/gren-0.0.5/test/test_helper.rb:3:require File.dirname(__FILE__) + '/../lib/gren'
76
69
  .
@@ -82,8 +75,7 @@ RubyGemからインストールして下さい。
82
75
  files : 14 in 36 (15.36KB in 48.54KB)
83
76
  match : 12 files, 18 hit
84
77
 
85
- === .rbファイルに限定して"FILE"を検索する、ただしpkg/ディレクトリ以下は探索対象から除外
86
- --id で指定されたディレクトリはそれ以下の探索自体がスキップされます
78
+ === --id ignore directory
87
79
  % gren FILE -f "\.rb$" --id pkg
88
80
  test/test_helper.rb:3:require File.dirname(__FILE__) + '/../lib/gren'
89
81
  test/test_gren_cli.rb:1:require File.join(File.dirname(__FILE__), "test_helper.rb")
@@ -99,7 +91,7 @@ RubyGemからインストールして下さい。
99
91
  files : 7 in 17 (7.68KB in 11.32KB)
100
92
  match : 6 files, 9 hit
101
93
 
102
- === .rbファイルに限定して"FILE"を検索する、ただしpkgディレクトリ以下は探索対象から除外、test_*.rbという名前のファイルも除外
94
+ === --if ignore files
103
95
  % gren FILE -f "\.rb$" --id pkg --if "test_.+\.rb$"
104
96
  lib/gren.rb:1:$:.unshift(File.dirname(__FILE__)) unless
105
97
  lib/gren.rb:2: $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
@@ -112,7 +104,7 @@ RubyGemからインストールして下さい。
112
104
  files : 4 in 17 (7.07KB in 11.32KB)
113
105
  match : 3 files, 6 hit
114
106
 
115
- === -iオプションを付けると大文字、小文字の違いを無視する
107
+ === -i ignore case
116
108
  % gren FILE -i -f "\.rb$" --id pkg --if "test_.+\.rb$"
117
109
  lib/gren.rb:1:$:.unshift(File.dirname(__FILE__)) unless
118
110
  lib/gren.rb:2: $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
@@ -126,8 +118,7 @@ RubyGemからインストールして下さい。
126
118
  files : 4 in 17 (7.07KB in 11.32KB)
127
119
  match : 4 files, 53 hit
128
120
 
129
- === -lでリスティングモード、探索時に辿ったファイル、マッチしたファイル、無視したファイル、無視したディレクトリ、読み込み禁止で読めなかったもの等が一覧出来る
130
- 大量にテキストが出力される可能性があるので注意(リダイレクト推奨)
121
+ === -l listing mode.
131
122
  % gren FILE -l
132
123
  test/test_helper.rb:3:require File.dirname(__FILE__) + '/../lib/gren'
133
124
  .
@@ -166,7 +157,7 @@ RubyGemからインストールして下さい。
166
157
  files : 49 in 53 (33.96KB in 59.86KB)
167
158
  match : 30 files, 42 hit
168
159
 
169
- === おまけ : 自分のホームディレクトリでエゴサーチ(結構ヒットするなー)
160
+ === The extra: It ego searches by my home directory
170
161
  % cd ~
171
162
  % gren ongaeshi
172
163
  .
@@ -178,9 +169,13 @@ RubyGemからインストールして下さい。
178
169
  match : 44 files, 162 hit
179
170
 
180
171
  == for Emacs:
181
- (global-set-key "\C-x\C-g" 'grep-find) ; キーバインドはお好みで
182
- ;(setq grep-find-command "gren ") ; for OSX
183
- ;(setq grep-find-command "gren.bat ") ; for Windows
172
+ for OSX
173
+ (global-set-key "\C-x\C-g" 'grep-find) ; your favarite key
174
+ (setq grep-find-command "gren ")
175
+
176
+ for Windows
177
+ (global-set-key "\C-x\C-g" 'grep-find) ; your favarite key
178
+ (setq grep-find-command "gren.bat ")
184
179
 
185
180
  == LICENSE:
186
181
  MIT License
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module Gren
5
- VERSION = '0.0.6'
5
+ VERSION = '0.1.0'
6
6
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
+ - 1
7
8
  - 0
8
- - 6
9
- version: 0.0.6
9
+ version: 0.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - ongaeshi
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-29 00:00:00 +09:00
17
+ date: 2010-08-03 00:00:00 +09:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -45,10 +45,7 @@ dependencies:
45
45
  version: 2.6.1
46
46
  type: :development
47
47
  version_requirements: *id002
48
- description: !binary |
49
- Z3JlbuOBr2dyZXDjga7nva7jgY3mj5vjgYjjgpLni5njgaPjgZ/mrKHkuJbk
50
- u6PlnotncmVw44OE44O844Or44Gn44GZ44CC
51
-
48
+ description: gren is a next grep tool.
52
49
  email:
53
50
  - ongaeshi0621@gmail.com
54
51
  executables:
@@ -78,7 +75,7 @@ files:
78
75
  - test/test_gren_cli.rb
79
76
  - test/test_helper.rb
80
77
  has_rdoc: true
81
- homepage: http://github.com/ongaeshi/gren
78
+ homepage: http://ongaeshi.github.com/gren
82
79
  licenses: []
83
80
 
84
81
  post_install_message: PostInstall.txt
@@ -107,10 +104,7 @@ rubyforge_project: gren
107
104
  rubygems_version: 1.3.6
108
105
  signing_key:
109
106
  specification_version: 3
110
- summary: !binary |
111
- Z3JlbuOBr2dyZXDjga7nva7jgY3mj5vjgYjjgpLni5njgaPjgZ/mrKHkuJbk
112
- u6PlnotncmVw44OE44O844Or44Gn44GZ44CC
113
-
107
+ summary: gren is a next grep tool.
114
108
  test_files:
115
109
  - test/test_gren.rb
116
110
  - test/test_gren_cli.rb