gemqs 0.0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +12 -0
- data/gemqs.gemspec +3 -2
- data/lib/gemqs/version.rb +1 -1
- data/lib/gemqs.rb +2 -0
- 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.
|
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
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.
|
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: &
|
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: *
|
24
|
+
version_requirements: *19311160
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: nokogiri
|
27
|
-
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: *
|
35
|
+
version_requirements: *19310740
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rainbow
|
38
|
-
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: *
|
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: &
|
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: :
|
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: *
|
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:
|