hiddengems 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e29968b1a0adad5f4dd2a9157d3fed7230731bbe6c0c4c280e76651ffe1386ba
4
- data.tar.gz: cdacc9d81bd931e81ee5f163a463f646703f0f8204b55c5835c430145bbfc4ef
3
+ metadata.gz: a47531cb9520bab4fcb67bb5290340088c5d11ca3099d78fa2917b8b5fa26dad
4
+ data.tar.gz: 357f84413e436a8fcef588a617e2feb831c7b3ce5fa7058ea80b0a8ab8f3bf78
5
5
  SHA512:
6
- metadata.gz: b6b8cefd2cd498838b7ccb91126ccd9aba5e94c1965c5dd89bcdcc16be4c2ed6f76f6d81e3470278d910788daeaadefa6a16cec8bb506d3d010b21b32d73d748
7
- data.tar.gz: 0dcc45deb33d553985583bc2c3478cac6dedbf8e2a7d2ce8998123fb5c5ee53a2f8cb1d87b4b62a06ff13771d1b46f17430eb890534c369cf287e86a224a5d0e
6
+ metadata.gz: 30306422b2a18cc4ac4cc7fa3d3506868392e2b600066ac94294475ed70ad741afa0df5f2e4eedbceb00a345a4b6467dea648acdbc0589b18e3dc8527a4ec15e
7
+ data.tar.gz: f9b61754013e77e08b766a10b8e39fe4d464b5c39631e79f5e556074884c1d8a392e5e856f2651f4ee1b388ca1d26a0fd8971ca1b523fac4fbc0144730ea079f
data/README.md CHANGED
@@ -50,6 +50,7 @@ Where [options] are:
50
50
  -a, --latest-version-date=<i> Weight of latest version date (default: 1)
51
51
  -g, --avg-version-date=<i> Weight of average version date (default: 1)
52
52
  -o, --download-slope=<i> Weight of download slope (default: 1)
53
+ -r, --rejectfilter=<s> Regular Expression of gem names to reject (default: )
53
54
  -h, --help Show this message
54
55
 
55
56
 
data/exe/hiddengems.rb CHANGED
@@ -111,6 +111,7 @@ EOS
111
111
  opt :latest_version_date, "Weight of latest version date", type: :integer, default: 1
112
112
  opt :avg_version_date, "Weight of average version date", type: :integer, default: 1
113
113
  opt :download_slope, "Weight of download slope", type: :integer, default: 1
114
+ opt :rejectfilter, "Regular Expression of gem names to reject", type: :string
114
115
  end
115
116
 
116
117
  puts "Option values:"
@@ -149,8 +150,17 @@ until curpage == 0
149
150
  puts "looking for more..." if curpage != 0
150
151
  end
151
152
 
152
-
153
153
  puts "\nSearch term '#{searchTerm}' returned #{gems.size} hits"
154
+ if opts[:rejectfilter_given]
155
+ puts "Filtering out unwanted gems with #{opts[:rejectfilter]}"
156
+ re = Regexp.compile(opts[:rejectfilter])
157
+ gems.reject! {|each|
158
+ re.match(each.name)
159
+ }
160
+ puts "\n#{gems.size} remaining gems after reject filter"
161
+ end
162
+
163
+
154
164
  if opts[:links]
155
165
  puts "\nValidating URIs..."
156
166
  gems.reject! {|each|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hiddengems
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiddengems
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Parker