gemqs 0.0.1 → 0.1.1

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 (5) hide show
  1. data/README +12 -0
  2. data/gemqs.gemspec +3 -2
  3. data/lib/gemqs/version.rb +1 -1
  4. data/lib/gemqs.rb +2 -0
  5. metadata +32 -11
data/README CHANGED
@@ -1,2 +1,14 @@
1
1
  Gem Quicksearch
2
+
3
+ Install: gem install gemqs
2
4
 
5
+ Usage: gemqs [term1] [term2] [..etc]
6
+
7
+ Example:
8
+
9
+ dave@ubuntu_machine:$ gemqs rails test
10
+ gemqs searching http://rubygems.org on the terms: rails test
11
+ sunspot-rails-tester (0.0.4) 2,617 downloads Enable sunspot during testing for *real* integration tests
12
+ rails-test-serving (0.1.4.2) 669 downloads Makes unit tests of a Rails application run instantly
13
+ universe-rails-testing (0.1.1) 579 downloads gem install universe-rails-testing
14
+ rails-test-toolbox (0.2.0) 422 downloads An opinionated list of helpful testing tools for working with Ruby on Rails.
data/gemqs.gemspec CHANGED
@@ -23,7 +23,8 @@ Gem::Specification.new do |s|
23
23
  s.add_development_dependency "nokogiri"
24
24
  s.add_development_dependency "rainbow"
25
25
 
26
-
27
- s.add_development_dependency "nokogiri"
26
+ s.add_runtime_dependency "mechanize"
27
+ s.add_runtime_dependency "nokogiri"
28
+ s.add_runtime_dependency "rainbow"
28
29
 
29
30
  end
data/lib/gemqs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gemqs
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/gemqs.rb CHANGED
@@ -45,6 +45,8 @@ module Gemqs
45
45
  def get_page
46
46
  if conf[:query].size > 0
47
47
  puts " searching #{conf['urls'].map{|k,v| v }.join(', ')} on the terms: "+conf[:terms].join( " " )
48
+ # puts conf['urls']['rubygems']+conf[:query]
49
+
48
50
  rpage=html_page
49
51
  ritems = rpage.css('div.gems.border>ol>li')
50
52
  ritems.each do |rli|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemqs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-17 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mechanize
16
- requirement: &14895100 !ruby/object:Gem::Requirement
16
+ requirement: &19311160 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *14895100
24
+ version_requirements: *19311160
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: nokogiri
27
- requirement: &14892400 !ruby/object:Gem::Requirement
27
+ requirement: &19310740 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *14892400
35
+ version_requirements: *19310740
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rainbow
38
- requirement: &14887900 !ruby/object:Gem::Requirement
38
+ requirement: &19310260 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,18 +43,40 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *14887900
46
+ version_requirements: *19310260
47
+ - !ruby/object:Gem::Dependency
48
+ name: mechanize
49
+ requirement: &19309800 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *19309800
47
58
  - !ruby/object:Gem::Dependency
48
59
  name: nokogiri
49
- requirement: &14885980 !ruby/object:Gem::Requirement
60
+ requirement: &19309360 !ruby/object:Gem::Requirement
50
61
  none: false
51
62
  requirements:
52
63
  - - ! '>='
53
64
  - !ruby/object:Gem::Version
54
65
  version: '0'
55
- type: :development
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *19309360
69
+ - !ruby/object:Gem::Dependency
70
+ name: rainbow
71
+ requirement: &19308920 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :runtime
56
78
  prerelease: false
57
- version_requirements: *14885980
79
+ version_requirements: *19308920
58
80
  description: Command line interface to search rubygems.org
59
81
  email:
60
82
  - daveheitzman@yahoo.com
@@ -97,4 +119,3 @@ signing_key:
97
119
  specification_version: 3
98
120
  summary: Command line interface to search rubygems.org
99
121
  test_files: []
100
- has_rdoc: