apollo-crawler 0.0.29 → 0.0.30
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.
- data/bin/apollo-crawler +2 -3
- data/lib/apollo_crawler/version.rb +1 -1
- metadata +1 -1
data/bin/apollo-crawler
CHANGED
|
@@ -165,9 +165,6 @@ module Crawler
|
|
|
165
165
|
end
|
|
166
166
|
|
|
167
167
|
dest_path = File.join(Dir.pwd, "#{name.underscore}.rb")
|
|
168
|
-
if(@options[:verbose])
|
|
169
|
-
puts "Generating '#{dest_path}'"
|
|
170
|
-
end
|
|
171
168
|
|
|
172
169
|
url = url ? url : "http://some-url-here"
|
|
173
170
|
matcher = matcher ? matcher : "//a"
|
|
@@ -179,6 +176,8 @@ module Crawler
|
|
|
179
176
|
"PLUGIN_MATCHER" => matcher
|
|
180
177
|
}
|
|
181
178
|
|
|
179
|
+
puts "Generating plugin '#{name.titleize}', class: '#{name}', path: '#{dest_path}'"
|
|
180
|
+
|
|
182
181
|
File.open(template_path, 'r') do |tmpl|
|
|
183
182
|
File.open(dest_path, 'w') do |plugin|
|
|
184
183
|
while line = tmpl.gets
|