pages/EXAMPLES.md in nvd_feed_api-0.0.3 vs pages/EXAMPLES.md in nvd_feed_api-0.1.0
- old
+ new
@@ -10,12 +10,10 @@
# Scrap the NVD website to get the feeds attributes.
s.scrap
# Change the default feed storage location beacause default value is '/tmp/'.
# '/tmp/' is mounted as tmpFS and is cleaned at every start.
# This will considerably speed up your performance is you have to reboot.
-NVDFeedScraper::Feed.default_storage_location = "/home/shark/Dev/cve_feeds"
+NVDFeedScraper::Feed.default_storage_location = "/home/user/Dev/cve_feeds"
# Create a {Feed} object for all available feeds
-s.feeds(s.available_feeds).each do |f|
- # and for each one download the JSON file and fill the attributes.
- f.json_pull
-end
+# and for each one download the JSON file and fill the attributes.
+s.feeds(s.available_feeds).each(&:json_pull)
```