cldwalker-gem_grep 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/Rakefile +1 -0
- data/VERSION.yml +1 -1
- data/lib/rubygems/commands/grep_command.rb +4 -1
- data/lib/rubygems_plugin.rb +0 -3
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -6,7 +6,7 @@ Enhances search command by displaying results in an ascii table and providing op
|
|
6
6
|
|
7
7
|
Install the gem with:
|
8
8
|
|
9
|
-
|
9
|
+
gem source -a http://gems.github.com && sudo gem install cldwalker-gem_grep
|
10
10
|
|
11
11
|
== Examples
|
12
12
|
|
@@ -51,7 +51,7 @@ Choosing your columns works for remote gems as well.
|
|
51
51
|
+---------------------------+---------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
52
52
|
10 rows in set
|
53
53
|
|
54
|
-
For
|
54
|
+
For <b>local gems only</b>, you get increased searching ability with --fields/-f. Pass it a comma delimited list of gemspec attributes you want to search on, aliased as shown above. Let's see my gems that were created/authored by jamis:
|
55
55
|
|
56
56
|
bash> gem grep jamis -f a
|
57
57
|
|
data/Rakefile
CHANGED
data/VERSION.yml
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
require 'rubygems/commands/query_command'
|
2
|
+
require 'rubygems/super_search'
|
3
|
+
require 'hirb'
|
4
|
+
|
1
5
|
class Gem::Commands::GrepCommand < Gem::Commands::QueryCommand
|
2
6
|
class<<self
|
3
7
|
def valid_gemspec_columns
|
@@ -64,7 +68,6 @@ class Gem::Commands::GrepCommand < Gem::Commands::QueryCommand
|
|
64
68
|
|
65
69
|
# borrowed from query command
|
66
70
|
def cleanup_tuples(spec_tuples)
|
67
|
-
output = []
|
68
71
|
versions = Hash.new { |h,name| h[name] = [] }
|
69
72
|
|
70
73
|
spec_tuples.each do |spec_tuple, source_uri|
|
data/lib/rubygems_plugin.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cldwalker-gem_grep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Horner
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-04-
|
12
|
+
date: 2009-04-25 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
version:
|
61
61
|
requirements: []
|
62
62
|
|
63
|
-
rubyforge_project:
|
63
|
+
rubyforge_project: tagaholic
|
64
64
|
rubygems_version: 1.2.0
|
65
65
|
signing_key:
|
66
66
|
specification_version: 3
|