gem-ag 0.0.3 → 0.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38428e73520fd6ff13da40a4a9b0d7ce0ce13a6a
4
- data.tar.gz: af3ac09a1671393b5875d7f38adcb22d3c3a2fd9
3
+ metadata.gz: 25a0eb5788b4351b8b1eac2a766034a897ea6008
4
+ data.tar.gz: da8c173e32cd45175f1d7c8ce34bae3325207ad8
5
5
  SHA512:
6
- metadata.gz: d2318e5fa8d88c7151125f55ca39e0a83a5b3f1c94a3a0e186c9abd273d15bc141c6dfa565509f6650be0422c90ac876d3a9188cbb19768fe5d3c6066efaa169
7
- data.tar.gz: 4cf570c29bb50112ae148d73703835f8767898d87ffb76a0bbe60aa37a80ed5d0b8e7163371d3a4fb579fa11a63b9aaad55f8b17c5d702306231d9cd466f2cca
6
+ metadata.gz: 7054b5fd73f84450e66efb29660f17d44196849337871c687b722d5087bc32f64563c1aa87c388fab73e0c09f1779f0c0ec25517c46dba14a0852bdba95c4be1
7
+ data.tar.gz: 89c10691ba90669bc754ebc68fa22e0b533b14ae6bf4373c55ba5a4d037257c530d6e60bec215c1eed2838ffc9facff05dbc959ef0d6d2d6d7aacdb0a460a4a4
data/README.md CHANGED
@@ -1,11 +1,17 @@
1
1
  # Gem::Ag
2
2
 
3
- RubyGems plugin to search with [The Silver Searcher](https://github.com/ggreer/the_silver_searcher)
3
+ Quickly search through all the code in your installed gems using `ag`.
4
+
5
+ RubyGems plugin to search with [The Silver Searcher](https://github.com/ggreer/the_silver_searcher), this was inspired by Jim Gay's [Searching Through Your Bundled Gems](http://www.saturnflyer.com/blog/jim/2013/03/15/searching-through-your-bundled-gems/) blog post.
4
6
 
5
7
 
6
8
  ## Installation
7
9
 
8
- Add this line to your application's Gemfile:
10
+ Install it with rubygems:
11
+
12
+ $ gem install gem-ag
13
+
14
+ Or to include it with your app add this line to your application's Gemfile:
9
15
 
10
16
  ```ruby
11
17
  gem 'gem-ag'
@@ -15,50 +21,41 @@ And then execute:
15
21
 
16
22
  $ bundle
17
23
 
18
- Or install it yourself as:
19
-
20
- $ gem install gem-ag
21
24
 
22
25
  ## Usage
23
26
 
24
27
  The `gem ag` command attempts to support all the same command line options as `ag` out of the box. The big difference is you cannot specify paths to search. Instead you can pass in a list of gem names.
25
28
 
26
- ```
27
- Usage: gem ag PATTERN [GEMNAME ...] [options]
28
- ```
29
+ $ gem ag PATTERN [GEMNAME ...] [options]
30
+
31
+ To see a full list of supported options run:
32
+
33
+ $ gem help ag
29
34
 
30
35
  ### Examples
31
36
 
32
37
  Search for "Hello World" in Rails and Active Record gems.
33
38
 
34
- ```
35
- gem ag "Hello World" rails active-record
36
- ```
39
+ $ gem ag "Hello World" rails active-record
37
40
 
38
41
  Search for "def" in the rake gem, and print ag stats.
39
42
 
40
- ```
41
- gem ag --stats "def" rake
42
- ````
43
+ $ gem ag --stats "def" rake
43
44
 
44
45
  Search in all installed gems:
45
46
 
46
- ```
47
- gem ag "Hello World"
48
- ```
47
+ $ gem ag "Hello World"
49
48
 
50
- By using `bundle exec` you can search only in the gems in yoru bundle.
49
+ By using `bundle exec` you can search only in the gems in yoru bundle. This does require you to include it in your application's `Gemfile`.
51
50
 
52
51
  Search in all bundled gems:
53
52
 
54
- ```
55
- bundle exec gem ag "Hello World"
56
- ```
53
+ $ bundle exec gem ag "Hello World"
57
54
 
58
55
  ## Contributing
59
56
 
60
- 1. Fork it ( https://github.com/[my-github-username]/gem-ag/fork )
57
+ 1. [Fork it](https://github.com/csexton/gem-ag/fork)
61
58
  2. Create your feature branch (`git checkout -b my-new-feature`)
62
- 3. Commit your changes (`git commit -am 'Add some feature'`)
59
+ 3. Commit your changes (`git commit -am 'Add some feature'`), with a nice [commit message](http://stopwritingramblingcommitmessages.com/).
63
60
  4. Push to the branch (`git push origin my-new-feature`)
64
61
  5. Create a new Pull Request
data/gem-ag.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "gem-ag"
7
- spec.version = "0.0.3"
7
+ spec.version = "0.0.4"
8
8
  spec.authors = ["Christopher Sexton"]
9
9
  spec.email = ["github@codeography.com"]
10
10
  spec.summary = %q{Search installed gems with ag}
@@ -18,5 +18,4 @@ Gem::Specification.new do |spec|
18
18
 
19
19
  spec.add_development_dependency "bundler", "~> 1.7"
20
20
  spec.add_development_dependency "rake", "~> 10.0"
21
- spec.add_development_dependency "pry"
22
21
  end
@@ -1,5 +1,4 @@
1
1
  require 'rubygems/command'
2
- require 'pry'
3
2
 
4
3
  class Gem::Commands::AgCommand < Gem::Command
5
4
  def initialize
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-ag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Sexton
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
- - !ruby/object:Gem::Dependency
42
- name: pry
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  description:
56
42
  email:
57
43
  - github@codeography.com