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 +4 -4
- data/README.md +1 -0
- data/exe/hiddengems.rb +11 -1
- data/lib/hiddengems/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a47531cb9520bab4fcb67bb5290340088c5d11ca3099d78fa2917b8b5fa26dad
|
4
|
+
data.tar.gz: 357f84413e436a8fcef588a617e2feb831c7b3ce5fa7058ea80b0a8ab8f3bf78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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|
|
data/lib/hiddengems/version.rb
CHANGED