tentacle 0.1.2 → 0.1.3

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/README.md +7 -1
  2. data/bin/tentacle +2 -2
  3. data/lib/tentacle.rb +1 -1
  4. metadata +3 -3
data/README.md CHANGED
@@ -29,7 +29,7 @@ Command line YUM repository browser/agregattor.
29
29
 
30
30
  tentacle search ruby
31
31
 
32
- Searches for package names matching ruby. Regexp may be used.
32
+ Searches for package names matching ruby. Regexp may be used. Package name search is case insensitive
33
33
 
34
34
  **Regexp search**
35
35
 
@@ -56,6 +56,12 @@ Search for ruby packages in RBEL 5 repository. The list of available repo-ids is
56
56
 
57
57
  Search for Source RPMS matching ruby-1.9
58
58
 
59
+ **List repo packages**
60
+
61
+ tentacle search --repo-id rbel5-src
62
+
63
+ Omitting the package name, tentacle lists all the packages in the rbel5-src repository
64
+
59
65
  # Copyright
60
66
 
61
67
  Copyright (c) 2011 Sergio Rubio. See LICENSE.txt for
@@ -44,7 +44,7 @@ class SearchCommand < Clamp::Command
44
44
  option "--distro-class", "CLASS", "Filter by distro class"
45
45
  option "--repo-id", "CLASS", "Filter by distro class"
46
46
  option "--source", :flag, "Search only SRPMS"
47
- parameter "PKG", "Search for packages matching PKG", :attribute_name => :pkg
47
+ parameter "[PKG]", "Search for packages matching PKG", :attribute_name => :pkg, :default => '.*'
48
48
 
49
49
  def execute
50
50
  $stdout.sync = true
@@ -52,7 +52,7 @@ class SearchCommand < Clamp::Command
52
52
  FeedCollection.all.each do |fc|
53
53
  next if source? and not fc.repo_id =~ /-src$/
54
54
 
55
- if repo_id and fc.repo_id != repo_id
55
+ if repo_id and fc.repo_id !~ /#{repo_id}/i
56
56
  next
57
57
  end
58
58
  if distro_class and fc.distro_class != distro_class
@@ -1,6 +1,6 @@
1
1
  module Tentacle
2
2
 
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
 
5
5
  def validate_url(url)
6
6
  RestClient.get(url + '/repodata/repomd.xml') rescue return false
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tentacle
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sergio Rubio