Переглянути джерело

Update npm documentation (3.9.0)

Thibaut Courouble 9 роки тому
батько
коміт
cccb6093e0
1 змінених файлів з 7 додано та 1 видалено
  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