Browse Source

Update npm documentation (3.9.0)

Thibaut Courouble 9 years ago
parent
commit
cccb6093e0
1 changed files with 7 additions and 1 deletions
  1. 7 1
      lib/docs/scrapers/npm.rb

+ 7 - 1
lib/docs/scrapers/npm.rb

@@ -2,7 +2,7 @@ module Docs
   class Npm < UrlScraper
     self.name = 'npm'
     self.type = 'npm'
-    self.release = '3.8.5'
+    self.release = '3.9.0'
     self.base_url = 'https://docs.npmjs.com/'
     self.links = {
       home: 'https://www.npmjs.com/',
@@ -27,5 +27,11 @@ module Docs
       Licensed under the npm License.<br>
       npm is a trademark of npm, Inc.
     HTML
+
+    private
+
+    def request_options
+      super.merge accept_encoding: 'gzip'
+    end
   end
 end