Bladeren bron

Rename version -> release

Thibaut Courouble 10 jaren geleden
bovenliggende
commit
e1c0218230
75 gewijzigde bestanden met toevoegingen van 93 en 93 verwijderingen
  1. 1 1
      assets/javascripts/models/doc.coffee
  2. 1 1
      assets/javascripts/templates/sidebar_tmpl.coffee
  3. 2 2
      lib/docs/core/doc.rb
  4. 2 2
      lib/docs/filters/angular/clean_urls.rb
  5. 3 3
      lib/docs/scrapers/angular.rb
  6. 1 1
      lib/docs/scrapers/apache.rb
  7. 1 1
      lib/docs/scrapers/backbone.rb
  8. 1 1
      lib/docs/scrapers/bower.rb
  9. 1 1
      lib/docs/scrapers/chai.rb
  10. 1 1
      lib/docs/scrapers/clojure.rb
  11. 1 1
      lib/docs/scrapers/coffeescript.rb
  12. 2 2
      lib/docs/scrapers/cordova.rb
  13. 1 1
      lib/docs/scrapers/d3.rb
  14. 1 1
      lib/docs/scrapers/django.rb
  15. 2 2
      lib/docs/scrapers/dojo.rb
  16. 1 1
      lib/docs/scrapers/drupal.rb
  17. 1 1
      lib/docs/scrapers/elixir.rb
  18. 1 1
      lib/docs/scrapers/ember.rb
  19. 1 1
      lib/docs/scrapers/express.rb
  20. 1 1
      lib/docs/scrapers/flow.rb
  21. 1 1
      lib/docs/scrapers/git.rb
  22. 1 1
      lib/docs/scrapers/go.rb
  23. 1 1
      lib/docs/scrapers/grunt.rb
  24. 2 2
      lib/docs/scrapers/haskell.rb
  25. 1 1
      lib/docs/scrapers/iojs.rb
  26. 1 1
      lib/docs/scrapers/jquery/jquery_core.rb
  27. 1 1
      lib/docs/scrapers/jquery/jquery_mobile.rb
  28. 1 1
      lib/docs/scrapers/jquery/jquery_ui.rb
  29. 1 1
      lib/docs/scrapers/knockout.rb
  30. 1 1
      lib/docs/scrapers/laravel.rb
  31. 1 1
      lib/docs/scrapers/less.rb
  32. 1 1
      lib/docs/scrapers/lodash.rb
  33. 1 1
      lib/docs/scrapers/lua.rb
  34. 2 2
      lib/docs/scrapers/marionette.rb
  35. 1 1
      lib/docs/scrapers/meteor.rb
  36. 1 1
      lib/docs/scrapers/mocha.rb
  37. 1 1
      lib/docs/scrapers/modernizr.rb
  38. 1 1
      lib/docs/scrapers/moment.rb
  39. 1 1
      lib/docs/scrapers/mongoose.rb
  40. 1 1
      lib/docs/scrapers/nginx.rb
  41. 1 1
      lib/docs/scrapers/node.rb
  42. 2 2
      lib/docs/scrapers/node_lts.rb
  43. 1 1
      lib/docs/scrapers/nokogiri2.rb
  44. 1 1
      lib/docs/scrapers/npm.rb
  45. 1 1
      lib/docs/scrapers/opentsdb.rb
  46. 1 1
      lib/docs/scrapers/phalcon.rb
  47. 2 2
      lib/docs/scrapers/phaser.rb
  48. 1 1
      lib/docs/scrapers/phoenix.rb
  49. 1 1
      lib/docs/scrapers/php.rb
  50. 2 2
      lib/docs/scrapers/phpunit.rb
  51. 2 2
      lib/docs/scrapers/postgresql.rb
  52. 1 1
      lib/docs/scrapers/python.rb
  53. 1 1
      lib/docs/scrapers/python2.rb
  54. 1 1
      lib/docs/scrapers/q.rb
  55. 1 1
      lib/docs/scrapers/rdoc/minitest.rb
  56. 1 1
      lib/docs/scrapers/rdoc/rails.rb
  57. 1 1
      lib/docs/scrapers/rdoc/ruby.rb
  58. 1 1
      lib/docs/scrapers/react.rb
  59. 1 1
      lib/docs/scrapers/react_native.rb
  60. 1 1
      lib/docs/scrapers/redis.rb
  61. 1 1
      lib/docs/scrapers/relay.rb
  62. 1 1
      lib/docs/scrapers/requirejs.rb
  63. 1 1
      lib/docs/scrapers/rethinkdb.rb
  64. 1 1
      lib/docs/scrapers/rust.rb
  65. 1 1
      lib/docs/scrapers/sass.rb
  66. 1 1
      lib/docs/scrapers/sinon.rb
  67. 1 1
      lib/docs/scrapers/socketio.rb
  68. 2 2
      lib/docs/scrapers/symfony.rb
  69. 1 1
      lib/docs/scrapers/underscore.rb
  70. 1 1
      lib/docs/scrapers/vagrant.rb
  71. 1 1
      lib/docs/scrapers/vue.rb
  72. 1 1
      lib/docs/scrapers/webpack.rb
  73. 1 1
      lib/docs/scrapers/yii.rb
  74. 1 1
      lib/docs/scrapers/yii1.rb
  75. 6 6
      test/lib/docs/core/doc_test.rb

+ 1 - 1
assets/javascripts/models/doc.coffee

@@ -1,5 +1,5 @@
 class app.models.Doc extends app.Model
-  # Attributes: name, slug, type, version, index_path, db_path, db_size, mtime, links
+  # Attributes: name, slug, type, release, index_path, db_path, db_size, mtime, links
 
   constructor: ->
     super

+ 1 - 1
assets/javascripts/templates/sidebar_tmpl.coffee

@@ -8,7 +8,7 @@ templates.sidebarDoc = (doc, options = {}) ->
     link += """<span class="_list-enable" data-enable="#{doc.slug}">Enable</span>"""
   else
     link += """<span class="_list-arrow"></span>"""
-  link += """<span class="_list-count">#{doc.version}</span>""" if doc.version
+  link += """<span class="_list-count">#{doc.release}</span>""" if doc.release
   link +  "#{doc.name}</a>"
 
 templates.sidebarType = (type) ->

+ 2 - 2
lib/docs/core/doc.rb

@@ -6,7 +6,7 @@ module Docs
     class << self
       include Instrumentable
 
-      attr_accessor :name, :slug, :type, :version, :abstract, :links
+      attr_accessor :name, :slug, :type, :release, :abstract, :links
 
       def inherited(subclass)
         subclass.type = type
@@ -36,7 +36,7 @@ module Docs
         { name: name,
           slug: slug,
           type: type,
-          version: version,
+          release: release,
           index_path: index_path,
           db_path: db_path,
           links: links }

+ 2 - 2
lib/docs/filters/angular/clean_urls.rb

@@ -2,8 +2,8 @@ module Docs
   class Angular
     class CleanUrlsFilter < Filter
       def call
-        html.gsub! "angularjs.org/#{Angular.version}/docs/partials/api/", "angularjs.org/#{Angular.version}/docs/api/"
-        html.gsub! %r{angularjs.org/#{Angular.version}/docs/api/(.+?)\.html}, "angularjs.org/#{Angular.version}/docs/api/\1"
+        html.gsub! "angularjs.org/#{Angular.release}/docs/partials/api/", "angularjs.org/#{Angular.release}/docs/api/"
+        html.gsub! %r{angularjs.org/#{Angular.release}/docs/api/(.+?)\.html}, "angularjs.org/#{Angular.release}/docs/api/\1"
         html
       end
     end

+ 3 - 3
lib/docs/scrapers/angular.rb

@@ -5,8 +5,8 @@ module Docs
     self.name = 'Angular.js'
     self.slug = 'angular'
     self.type = 'angular'
-    self.version = '1.4.8'
-    self.base_url = "https://code.angularjs.org/#{version}/docs/partials/api/"
+    self.release = '1.4.8'
+    self.base_url = "https://code.angularjs.org/#{release}/docs/partials/api/"
 
     html_filters.push 'angular/clean_html', 'angular/entries', 'title'
     text_filters.push 'angular/clean_urls'
@@ -33,7 +33,7 @@ module Docs
     def root_page_body
       require 'capybara'
       Capybara.current_driver = :selenium
-      Capybara.visit("https://code.angularjs.org/#{self.class.version}/docs/api")
+      Capybara.visit("https://code.angularjs.org/#{self.class.release}/docs/api")
       Capybara.find('.side-navigation')['innerHTML']
     end
   end

+ 1 - 1
lib/docs/scrapers/apache.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'Apache HTTP Server'
     self.slug = 'apache_http_server'
     self.type = 'apache'
-    self.version = '2.4.18'
+    self.release = '2.4.18'
     self.base_url = 'http://httpd.apache.org/docs/2.4/en/'
     self.links = {
       home: 'http://httpd.apache.org/'

+ 1 - 1
lib/docs/scrapers/backbone.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'Backbone.js'
     self.slug = 'backbone'
     self.type = 'underscore'
-    self.version = '1.2.3'
+    self.release = '1.2.3'
     self.base_url = 'http://backbonejs.org'
     self.links = {
       home: 'http://backbonejs.org/',

+ 1 - 1
lib/docs/scrapers/bower.rb

@@ -2,7 +2,7 @@ module Docs
   class Bower < UrlScraper
     self.name = 'Bower'
     self.type = 'bower'
-    self.version = '1.7.1'
+    self.release = '1.7.1'
     self.base_url = 'http://bower.io/docs/'
     self.root_path = 'api'
     self.links = {

+ 1 - 1
lib/docs/scrapers/chai.rb

@@ -2,7 +2,7 @@ module Docs
   class Chai < UrlScraper
     self.name = 'Chai'
     self.type = 'chai'
-    self.version = '3.4.2'
+    self.release = '3.4.2'
     self.base_url = 'http://chaijs.com'
     self.root_path = '/api/'
     self.initial_paths = %w(/guide/installation/)

+ 1 - 1
lib/docs/scrapers/clojure.rb

@@ -1,7 +1,7 @@
 module Docs
   class Clojure < UrlScraper
     self.type = 'clojure'
-    self.version = '1.7'
+    self.release = '1.7'
     self.base_url = 'http://clojure.github.io/clojure/'
     self.root_path = 'api-index.html'
 

+ 1 - 1
lib/docs/scrapers/coffeescript.rb

@@ -2,7 +2,7 @@ module Docs
   class Coffeescript < UrlScraper
     self.name = 'CoffeeScript'
     self.type = 'coffeescript'
-    self.version = '1.10.0'
+    self.release = '1.10.0'
     self.base_url = 'http://coffeescript.org'
     self.links = {
       home: 'http://coffeescript.org',

+ 2 - 2
lib/docs/scrapers/cordova.rb

@@ -2,8 +2,8 @@ module Docs
   class Cordova < UrlScraper
     self.name = 'Cordova'
     self.type = 'cordova'
-    self.version = '5.4.0'
-    self.base_url = "http://cordova.apache.org/docs/en/#{version}/"
+    self.release = '5.4.0'
+    self.base_url = "http://cordova.apache.org/docs/en/#{release}/"
     self.root_path = 'index.html'
     self.links = {
       home: 'http://cordova.apache.org/'

+ 1 - 1
lib/docs/scrapers/d3.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'D3.js'
     self.slug = 'd3'
     self.type = 'd3'
-    self.version = '3.5.12'
+    self.release = '3.5.12'
     self.base_url = 'https://github.com/mbostock/d3/wiki/'
     self.root_path = 'API-Reference'
     self.links = {

+ 1 - 1
lib/docs/scrapers/django.rb

@@ -2,7 +2,7 @@ module Docs
   class Django < FileScraper
     self.name = 'Django'
     self.type = 'sphinx'
-    self.version = '1.8.6'
+    self.release = '1.8.6'
     self.dir = '/Users/Thibaut/DevDocs/Docs/Django'
     self.base_url = 'https://docs.djangoproject.com/en/1.8/'
     self.root_path = 'index.html'

+ 2 - 2
lib/docs/scrapers/dojo.rb

@@ -5,8 +5,8 @@ module Docs
     include StubRootPage
 
     self.type = 'dojo'
-    self.version = '1.10'
-    self.base_url = "http://dojotoolkit.org/api/#{version}/"
+    self.release = '1.10'
+    self.base_url = "http://dojotoolkit.org/api/#{release}/"
 
     # Dojo expects all the requests to be xhrs or it redirects you back to the docs home page
     # where it uses js to call the backend based on the URL so you get the appropriate documentation

+ 1 - 1
lib/docs/scrapers/drupal.rb

@@ -1,7 +1,7 @@
 module Docs
   class Drupal < UrlScraper
     self.type = 'drupal'
-    self.version = '7.40'
+    self.release = '7.40'
     self.base_url = 'https://api.drupal.org/api/drupal/'
     self.initial_paths = %w(groups groups?page=1)
     self.links = {

+ 1 - 1
lib/docs/scrapers/elixir.rb

@@ -2,7 +2,7 @@ module Docs
   class Elixir < UrlScraper
     self.name = 'Elixir'
     self.type = 'elixir'
-    self.version = '1.2.0'
+    self.release = '1.2.0'
     self.base_url = 'http://elixir-lang.org/docs/stable/'
     self.root_path = 'elixir/api-reference.html'
     self.initial_paths = %w(

+ 1 - 1
lib/docs/scrapers/ember.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'Ember.js'
     self.slug = 'ember'
     self.type = 'ember'
-    self.version = '2.2.0'
+    self.release = '2.2.0'
     self.base_url = 'http://emberjs.com/api/'
     self.links = {
       home: 'http://emberjs.com/',

+ 1 - 1
lib/docs/scrapers/express.rb

@@ -2,7 +2,7 @@ module Docs
   class Express < UrlScraper
     self.name = 'Express'
     self.type = 'express'
-    self.version = '4.13.0'
+    self.release = '4.13.0'
     self.base_url = 'http://expressjs.com/'
     self.root_path = '4x/api.html'
     self.links = {

+ 1 - 1
lib/docs/scrapers/flow.rb

@@ -1,7 +1,7 @@
 module Docs
   class Flow < React
     self.type = 'react'
-    self.version = '0.20'
+    self.release = '0.20'
     self.base_url = 'http://flowtype.org/docs/'
     self.root_path = 'about-flow.html'
     self.links = {

+ 1 - 1
lib/docs/scrapers/git.rb

@@ -1,7 +1,7 @@
 module Docs
   class Git < UrlScraper
     self.type = 'git'
-    self.version = '2.7.0'
+    self.release = '2.7.0'
     self.base_url = 'http://git-scm.com/docs'
     self.initial_paths = %w(/git.html)
     self.links = {

+ 1 - 1
lib/docs/scrapers/go.rb

@@ -1,7 +1,7 @@
 module Docs
   class Go < UrlScraper
     self.type = 'go'
-    self.version = '1.5.2'
+    self.release = '1.5.2'
     self.base_url = 'https://golang.org/pkg/'
     self.links = {
       home: 'https://golang.org/',

+ 1 - 1
lib/docs/scrapers/grunt.rb

@@ -2,7 +2,7 @@ module Docs
   class Grunt < UrlScraper
     self.name = 'Grunt'
     self.type = 'grunt'
-    self.version = '0.4.5'
+    self.release = '0.4.5'
     self.base_url = 'http://gruntjs.com/'
     self.root_path = 'getting-started'
     self.initial_paths = %w(api/grunt)

+ 2 - 2
lib/docs/scrapers/haskell.rb

@@ -2,8 +2,8 @@ module Docs
   class Haskell < UrlScraper
     self.name = 'Haskell'
     self.type = 'haskell'
-    self.version = '7.10.3'
-    self.base_url = "https://downloads.haskell.org/~ghc/#{version}/docs/html/libraries/"
+    self.release = '7.10.3'
+    self.base_url = "https://downloads.haskell.org/~ghc/#{release}/docs/html/libraries/"
     self.root_path = 'index.html'
 
     html_filters.push 'haskell/entries', 'haskell/clean_html'

+ 1 - 1
lib/docs/scrapers/iojs.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'io.js'
     self.slug = 'iojs'
     self.type = 'node'
-    self.version = '3.3.1'
+    self.release = '3.3.1'
     self.base_url = 'https://iojs.org/api/'
     self.links = {
       home: 'https://iojs.org/en/index.html',

+ 1 - 1
lib/docs/scrapers/jquery/jquery_core.rb

@@ -1,7 +1,7 @@
 module Docs
   class JqueryCore < Jquery
     self.name = 'jQuery'
-    self.version = 'up to 2.1.0'
+    self.release = 'up to 2.1.0'
     self.base_url = 'http://local.api.jquery.com'
 
     html_filters.insert_before 'jquery/clean_html', 'jquery_core/entries'

+ 1 - 1
lib/docs/scrapers/jquery/jquery_mobile.rb

@@ -2,7 +2,7 @@ module Docs
   class JqueryMobile < Jquery
     self.name = 'jQuery Mobile'
     self.slug = 'jquerymobile'
-    self.version = '1.4.0'
+    self.release = '1.4.0'
     self.base_url = 'http://local.api.jquerymobile.com'
     self.root_path = '/category/all'
 

+ 1 - 1
lib/docs/scrapers/jquery/jquery_ui.rb

@@ -2,7 +2,7 @@ module Docs
   class JqueryUi < Jquery
     self.name = 'jQuery UI'
     self.slug = 'jqueryui'
-    self.version = '1.10.4'
+    self.release = '1.10.4'
     self.base_url = 'http://local.api.jqueryui.com'
     self.root_path = '/category/all'
 

+ 1 - 1
lib/docs/scrapers/knockout.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'Knockout.js'
     self.slug = 'knockout'
     self.type = 'knockout'
-    self.version = '3.4.0'
+    self.release = '3.4.0'
     self.base_url = 'http://knockoutjs.com/documentation/'
     self.root_path = 'introduction.html'
 

+ 1 - 1
lib/docs/scrapers/laravel.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'Laravel'
     self.slug = 'laravel'
     self.type = 'laravel'
-    self.version = '5.2.0'
+    self.release = '5.2.0'
     self.base_url = 'https://laravel.com'
     self.root_path = '/api/5.2/index.html'
     self.initial_paths = %w(/docs/5.2/installation /api/5.2/classes.html)

+ 1 - 1
lib/docs/scrapers/less.rb

@@ -1,7 +1,7 @@
 module Docs
   class Less < UrlScraper
     self.type = 'less'
-    self.version = '2.5.3'
+    self.release = '2.5.3'
     self.base_url = 'http://lesscss.org'
     self.root_path = '/features'
     self.initial_paths = %w(/functions)

+ 1 - 1
lib/docs/scrapers/lodash.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'lodash'
     self.slug = 'lodash'
     self.type = 'lodash'
-    self.version = '3.10.0'
+    self.release = '3.10.0'
     self.base_url = 'https://lodash.com/docs'
     self.links = {
       home: 'https://lodash.com/',

+ 1 - 1
lib/docs/scrapers/lua.rb

@@ -1,7 +1,7 @@
 module Docs
   class Lua < UrlScraper
     self.type = 'lua'
-    self.version = '5.3'
+    self.release = '5.3'
     self.base_url = 'http://www.lua.org/manual/5.3/'
     self.root_path = 'manual.html'
 

+ 2 - 2
lib/docs/scrapers/marionette.rb

@@ -3,8 +3,8 @@ module Docs
     self.name = 'Marionette.js'
     self.slug = 'marionette'
     self.type = 'marionette'
-    self.version = '2.4.3'
-    self.base_url = "http://marionettejs.com/docs/v#{version}/"
+    self.release = '2.4.3'
+    self.base_url = "http://marionettejs.com/docs/v#{release}/"
     self.root_path = 'index'
     self.links = {
       home: 'http://marionettejs.com/',

+ 1 - 1
lib/docs/scrapers/meteor.rb

@@ -3,7 +3,7 @@ module Docs
     include StubRootPage
 
     self.type = 'meteor'
-    self.version = '1.2.0'
+    self.release = '1.2.0'
     self.base_url = 'http://docs.meteor.com'
     self.root_path = '/#/full/'
     self.links = {

+ 1 - 1
lib/docs/scrapers/mocha.rb

@@ -2,7 +2,7 @@ module Docs
   class Mocha < UrlScraper
     self.name = 'mocha'
     self.type = 'mocha'
-    self.version = '2.3.3'
+    self.release = '2.3.3'
     self.base_url = 'http://mochajs.org/'
     self.links = {
       home: 'http://mochajs.org/',

+ 1 - 1
lib/docs/scrapers/modernizr.rb

@@ -2,7 +2,7 @@ module Docs
   class Modernizr < UrlScraper
     self.name = 'Modernizr'
     self.type = 'modernizr'
-    self.version = '3.2.0'
+    self.release = '3.2.0'
     self.base_url = 'https://modernizr.com/docs/'
 
     html_filters.push 'modernizr/entries', 'modernizr/clean_html', 'title'

+ 1 - 1
lib/docs/scrapers/moment.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'Moment.js'
     self.slug = 'moment'
     self.type = 'moment'
-    self.version = '2.11.1'
+    self.release = '2.11.1'
     self.base_url = 'http://momentjs.com/docs/'
 
     html_filters.push 'moment/clean_html', 'moment/entries', 'title'

+ 1 - 1
lib/docs/scrapers/mongoose.rb

@@ -2,7 +2,7 @@ module Docs
   class Mongoose < UrlScraper
     self.name = 'Mongoose'
     self.type = 'mongoose'
-    self.version = '4.3.5'
+    self.release = '4.3.5'
     self.base_url = 'http://mongoosejs.com/docs/'
     self.root_path = 'index.html'
     self.initial_paths = %w(guide.html api.html)

+ 1 - 1
lib/docs/scrapers/nginx.rb

@@ -2,7 +2,7 @@ module Docs
   class Nginx < UrlScraper
     self.name = 'nginx'
     self.type = 'nginx'
-    self.version = '1.9.9'
+    self.release = '1.9.9'
     self.base_url = 'http://nginx.org/en/docs/'
     self.links = {
       home: 'http://nginx.org/',

+ 1 - 1
lib/docs/scrapers/node.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'Node.js'
     self.slug = 'node'
     self.type = 'node'
-    self.version = '5.4.0'
+    self.release = '5.4.0'
     self.base_url = 'https://nodejs.org/api/'
     self.links = {
       home: 'https://nodejs.org/',

+ 2 - 2
lib/docs/scrapers/node_lts.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'Node.js (LTS)'
     self.slug = 'node_lts'
     self.type = 'node'
-    self.version = '4.2.4'
-    self.base_url = "https://nodejs.org/dist/v#{version}/docs/api/"
+    self.release = '4.2.4'
+    self.base_url = "https://nodejs.org/dist/v#{release}/docs/api/"
   end
 end

+ 1 - 1
lib/docs/scrapers/nokogiri2.rb

@@ -2,7 +2,7 @@ module Docs
   class Nokogiri2 < Rdoc
     self.name = 'Nokogiri'
     self.slug = 'nokogiri'
-    self.version = '1.6.4'
+    self.release = '1.6.4'
     self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Nokogiri'
 
     html_filters.replace 'rdoc/entries', 'nokogiri2/entries'

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

@@ -2,7 +2,7 @@ module Docs
   class Npm < UrlScraper
     self.name = 'npm'
     self.type = 'npm'
-    self.version = '3.5.3'
+    self.release = '3.5.3'
     self.base_url = 'https://docs.npmjs.com/'
     self.links = {
       home: 'https://www.npmjs.com/',

+ 1 - 1
lib/docs/scrapers/opentsdb.rb

@@ -2,7 +2,7 @@ module Docs
   class Opentsdb < UrlScraper
     self.name = 'OpenTSDB'
     self.type = 'opentsdb'
-    self.version = '2.1.0'
+    self.release = '2.1.0'
     self.base_url = 'http://opentsdb.net/docs/build/html/'
     self.root_path = 'index.html'
     self.links = {

+ 1 - 1
lib/docs/scrapers/phalcon.rb

@@ -1,7 +1,7 @@
 module Docs
   class Phalcon < UrlScraper
     self.type = 'phalcon'
-    self.version = '2.0.6'
+    self.release = '2.0.6'
     self.base_url = 'https://docs.phalconphp.com/en/latest/'
     self.root_path = 'index.html'
     self.links = {

+ 2 - 2
lib/docs/scrapers/phaser.rb

@@ -1,8 +1,8 @@
 module Docs
   class Phaser < UrlScraper
     self.type = 'phaser'
-    self.version = '2.4.1'
-    self.base_url = "http://phaser.io/docs/#{version}"
+    self.release = '2.4.1'
+    self.base_url = "http://phaser.io/docs/#{release}"
     self.links = {
       home: 'http://phaser.io/',
       code: 'https://github.com/photonstorm/phaser'

+ 1 - 1
lib/docs/scrapers/phoenix.rb

@@ -1,7 +1,7 @@
 module Docs
   class Phoenix < Elixir
     self.type = 'elixir'
-    self.version = '1.1.2'
+    self.release = '1.1.2'
     self.base_url = 'http://hexdocs.pm/'
     self.root_path = 'phoenix/Phoenix.html'
     self.initial_paths = %w(

+ 1 - 1
lib/docs/scrapers/php.rb

@@ -2,7 +2,7 @@ module Docs
   class Php < FileScraper
     self.name = 'PHP'
     self.type = 'php'
-    self.version = 'up to 5.6.13'
+    self.release = 'up to 5.6.13'
     self.base_url = 'http://www.php.net/manual/en/'
     self.root_path = 'index.html'
     self.initial_paths = %w(

+ 2 - 2
lib/docs/scrapers/phpunit.rb

@@ -2,8 +2,8 @@ module Docs
   class Phpunit < UrlScraper
     self.name = 'PHPUnit'
     self.type = 'phpunit'
-    self.version = '5.1'
-    self.base_url = "https://phpunit.de/manual/#{version}/en/"
+    self.release = '5.1'
+    self.base_url = "https://phpunit.de/manual/#{release}/en/"
     self.root_path = 'index.html'
     self.links = {
       home: 'https://phpunit.de/',

+ 2 - 2
lib/docs/scrapers/postgresql.rb

@@ -2,8 +2,8 @@ module Docs
   class Postgresql < UrlScraper
     self.name = 'PostgreSQL'
     self.type = 'postgres'
-    self.version = '9.4'
-    self.base_url = "http://www.postgresql.org/docs/#{version}/static/"
+    self.release = '9.4'
+    self.base_url = "http://www.postgresql.org/docs/#{release}/static/"
     self.root_path = 'reference.html'
     self.initial_paths = %w(sql.html admin.html)
 

+ 1 - 1
lib/docs/scrapers/python.rb

@@ -1,6 +1,6 @@
 module Docs
   class Python < FileScraper
-    self.version = '3.5.1'
+    self.release = '3.5.1'
     self.type = 'sphinx'
     self.dir = '/Users/Thibaut/DevDocs/Docs/Python' # downloaded from docs.python.org/3/download.html
     self.base_url = 'http://docs.python.org/3/'

+ 1 - 1
lib/docs/scrapers/python2.rb

@@ -2,7 +2,7 @@ module Docs
   class Python2 < FileScraper
     self.name = 'Python 2'
     self.slug = 'python2'
-    self.version = '2.7.10'
+    self.release = '2.7.10'
     self.type = 'sphinx'
     self.dir = '/Users/Thibaut/DevDocs/Docs/Python2' # downloaded from docs.python.org/2.7/download.html
     self.base_url = 'http://docs.python.org/2.7/'

+ 1 - 1
lib/docs/scrapers/q.rb

@@ -2,7 +2,7 @@ module Docs
   class Q < UrlScraper
     self.name = 'Q'
     self.type = 'q'
-    self.version = '1.4.1'
+    self.release = '1.4.1'
     self.base_url = 'https://github.com/kriskowal/q/wiki/'
     self.root_path = 'API-Reference'
     self.links = {

+ 1 - 1
lib/docs/scrapers/rdoc/minitest.rb

@@ -2,7 +2,7 @@ module Docs
   class Minitest < Rdoc
     self.name = 'Ruby / Minitest'
     self.slug = 'minitest'
-    self.version = '5.8.1'
+    self.release = '5.8.1'
     self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Minitest' # rake docs
     self.links = {
       code: 'https://github.com/seattlerb/minitest'

+ 1 - 1
lib/docs/scrapers/rdoc/rails.rb

@@ -2,7 +2,7 @@ module Docs
   class Rails < Rdoc
     self.name = 'Ruby on Rails'
     self.slug = 'rails'
-    self.version = '4.2.3'
+    self.release = '4.2.3'
     self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Rails'
     self.links = {
       home: 'http://rubyonrails.org/',

+ 1 - 1
lib/docs/scrapers/rdoc/ruby.rb

@@ -10,7 +10,7 @@ module Docs
     #   --no-line-numbers \
     #   --op html .
 
-    self.version = '2.2.1'
+    self.release = '2.2.1'
     self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Ruby'
     self.links = {
       home: 'https://www.ruby-lang.org/',

+ 1 - 1
lib/docs/scrapers/react.rb

@@ -2,7 +2,7 @@ module Docs
   class React < UrlScraper
     self.name = 'React'
     self.type = 'react'
-    self.version = '0.14.6'
+    self.release = '0.14.6'
     self.base_url = 'https://facebook.github.io/react/'
     self.root_path = 'docs/getting-started.html'
     self.links = {

+ 1 - 1
lib/docs/scrapers/react_native.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'React Native'
     self.slug = 'react_native'
     self.type = 'react'
-    self.version = '0.18'
+    self.release = '0.18'
     self.base_url = 'https://facebook.github.io/react-native/docs/'
     self.root_path = 'getting-started.html'
     self.links = {

+ 1 - 1
lib/docs/scrapers/redis.rb

@@ -1,7 +1,7 @@
 module Docs
   class Redis < UrlScraper
     self.type = 'redis'
-    self.version = 'up to 3.0.6'
+    self.release = 'up to 3.0.6'
     self.base_url = 'http://redis.io/commands'
     self.links = {
       home: 'http://redis.io/',

+ 1 - 1
lib/docs/scrapers/relay.rb

@@ -1,7 +1,7 @@
 module Docs
   class Relay < React
     self.type = 'react'
-    self.version = '0.6'
+    self.release = '0.6'
     self.base_url = 'https://facebook.github.io/relay/docs/'
     self.root_path = 'getting-started.html'
     self.links = {

+ 1 - 1
lib/docs/scrapers/requirejs.rb

@@ -2,7 +2,7 @@ module Docs
   class Requirejs < UrlScraper
     self.name = 'RequireJS'
     self.type = 'requirejs'
-    self.version = '2.1.22'
+    self.release = '2.1.22'
     self.base_url = 'http://requirejs.org/docs/'
     self.links = {
       home: 'http://requirejs.org/',

+ 1 - 1
lib/docs/scrapers/rethinkdb.rb

@@ -2,7 +2,7 @@ module Docs
   class Rethinkdb < UrlScraper
     self.name = 'RethinkDB'
     self.type = 'rethinkdb'
-    self.version = '2.2.1'
+    self.release = '2.2.1'
     self.base_url = 'http://rethinkdb.com/api/javascript/'
     self.links = {
       home: 'http://rethinkdb.com/',

+ 1 - 1
lib/docs/scrapers/rust.rb

@@ -1,7 +1,7 @@
 module Docs
   class Rust < UrlScraper
     self.type = 'rust'
-    self.version = '1.5.0'
+    self.release = '1.5.0'
     self.base_url = 'http://doc.rust-lang.org/'
     self.root_path = 'book/index.html'
     self.initial_paths = %w(

+ 1 - 1
lib/docs/scrapers/sass.rb

@@ -1,7 +1,7 @@
 module Docs
   class Sass < UrlScraper
     self.type = 'yard'
-    self.version = '3.4.17'
+    self.release = '3.4.17'
     self.base_url = 'http://sass-lang.com/documentation/'
     self.root_path = 'file.SASS_REFERENCE.html'
 

+ 1 - 1
lib/docs/scrapers/sinon.rb

@@ -2,7 +2,7 @@ module Docs
   class Sinon < UrlScraper
     self.name = 'Sinon'
     self.type = 'sinon'
-    self.version = '1.17.1'
+    self.release = '1.17.1'
     self.base_url = 'http://sinonjs.org/docs/'
     self.links = {
       home: 'http://sinonjs.org/',

+ 1 - 1
lib/docs/scrapers/socketio.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'Socket.IO'
     self.slug = 'socketio'
     self.type = 'socketio'
-    self.version = '1.4.3'
+    self.release = '1.4.3'
     self.base_url = 'http://socket.io/docs/'
     self.links = {
       home: 'http://socket.io/',

+ 2 - 2
lib/docs/scrapers/symfony.rb

@@ -3,8 +3,8 @@ module Docs
     self.name = 'Symfony'
     self.slug = 'symfony'
     self.type = 'laravel'
-    self.version = '2.7'
-    self.base_url = "http://api.symfony.com/#{version}/"
+    self.release = '2.7'
+    self.base_url = "http://api.symfony.com/#{release}/"
     self.root_path = 'namespaces.html'
     self.initial_paths = %w(classes.html)
     self.links = {

+ 1 - 1
lib/docs/scrapers/underscore.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'Underscore.js'
     self.slug = 'underscore'
     self.type = 'underscore'
-    self.version = '1.8.3'
+    self.release = '1.8.3'
     self.base_url = 'http://underscorejs.org'
 
     html_filters.push 'underscore/clean_html', 'underscore/entries', 'title'

+ 1 - 1
lib/docs/scrapers/vagrant.rb

@@ -2,7 +2,7 @@ module Docs
   class Vagrant < UrlScraper
     self.name = 'Vagrant'
     self.type = 'vagrant'
-    self.version = '1.8.1'
+    self.release = '1.8.1'
     self.base_url = 'https://docs.vagrantup.com/v2/'
     self.links = {
       home: 'https://www.vagrantup.com/',

+ 1 - 1
lib/docs/scrapers/vue.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'Vue.js'
     self.slug = 'vue'
     self.type = 'vue'
-    self.version = '1.0.13'
+    self.release = '1.0.13'
     self.base_url = 'http://vuejs.org'
     self.root_path = '/guide/index.html'
     self.initial_paths = %w(/api/index.html)

+ 1 - 1
lib/docs/scrapers/webpack.rb

@@ -2,7 +2,7 @@ module Docs
   class Webpack < UrlScraper
     self.name = 'webpack'
     self.type = 'webpack'
-    self.version = '1.12'
+    self.release = '1.12'
     self.base_url = 'https://webpack.github.io/docs/'
     self.links = {
       home: 'https://webpack.github.io/',

+ 1 - 1
lib/docs/scrapers/yii.rb

@@ -1,7 +1,7 @@
 module Docs
   class Yii < UrlScraper
     self.type = 'yii'
-    self.version = '2.0.2'
+    self.release = '2.0.2'
     self.base_url = 'http://www.yiiframework.com/doc-2.0/'
     self.root_path = 'index.html'
 

+ 1 - 1
lib/docs/scrapers/yii1.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'Yii 1'
     self.slug = 'yii1'
     self.type = 'yii'
-    self.version = '1.1.16'
+    self.release = '1.1.16'
     self.base_url = 'http://www.yiiframework.com/doc/api/1.1/'
 
     html_filters.push 'yii1/clean_html', 'yii1/entries'

+ 6 - 6
test/lib/docs/core/doc_test.rb

@@ -53,10 +53,10 @@ class DocsDocTest < MiniTest::Spec
     end
   end
 
-  describe ".version=" do
-    it "stores .version" do
-      doc.version = '1'
-      assert_equal '1', doc.version
+  describe ".release=" do
+    it "stores .release" do
+      doc.release = '1'
+      assert_equal '1', doc.release
     end
   end
 
@@ -115,8 +115,8 @@ class DocsDocTest < MiniTest::Spec
       assert_instance_of Hash, doc.as_json
     end
 
-    it "includes the doc's name, slug, type, version, index_path and db_path" do
-      %w(name slug type version index_path db_path links).each do |attribute|
+    it "includes the doc's name, slug, type, release, index_path and db_path" do
+      %w(name slug type release index_path db_path links).each do |attribute|
         eval "stub(doc).#{attribute} { attribute }"
         assert_equal attribute, doc.as_json[attribute.to_sym]
       end