Module: Rudisco::RubyGemsScanner
- Included in:
- Gem
- Defined in:
- lib/rudisco/models/gem/rubygems_scanner.rb
Overview
no-doc
Instance Method Summary collapse
-
#corteges_scanning(corteges) ⇒ Object
Updates cortege(s).
-
#deep_scanning(&callback) ⇒ Object
Long-term task.
-
#surface_scanning ⇒ Object
Scans rubygems.org for new gems.
Instance Method Details
#corteges_scanning(corteges) ⇒ Object
Updates cortege(s).
Used to get latest information about gem(s) total downloads count and so on.
41 42 43 |
# File 'lib/rudisco/models/gem/rubygems_scanner.rb', line 41 def corteges_scanning(corteges) rubygems_manage_corteges Array(corteges) end |
#deep_scanning(&callback) ⇒ Object
Long-term task. Updates database with an actual information. Multithread.
Note: speed limited by rubygems.org.
Can be increased with advanced concurrent processes setup for
sqlite database.
However, this is slow since rubygems.org allowing certain requests
per second count.
29 30 31 |
# File 'lib/rudisco/models/gem/rubygems_scanner.rb', line 29 def deep_scanning(&callback) _deep_scanning &callback end |
#surface_scanning ⇒ Object
Scans rubygems.org for new gems. Also marks gems as outdated when new gem version is out.
To load an actual information for newest gems use #deep_scanning.
11 12 13 |
# File 'lib/rudisco/models/gem/rubygems_scanner.rb', line 11 def surface_scanning _surface_scanning end |