Skip to content

Commit d99a2c9

Browse files
committed
Version lodash documentation (3 and 4)
Ref freeCodeCamp#25.
1 parent d6aa0d8 commit d99a2c9

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

assets/javascripts/templates/pages/about_tmpl.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ credits = [
216216
'http://creativecommons.org/licenses/by/3.0/'
217217
], [
218218
'Lo-Dash',
219-
'2012-2015 The Dojo Foundation',
219+
'2012-2016 The Dojo Foundation',
220220
'MIT',
221221
'https://raw.github.com/lodash/lodash/master/LICENSE.txt'
222222
], [

lib/docs/scrapers/lodash.rb

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ class Lodash < UrlScraper
33
self.name = 'lodash'
44
self.slug = 'lodash'
55
self.type = 'lodash'
6-
self.release = '3.10.0'
7-
self.base_url = 'https://lodash.com/docs'
86
self.links = {
97
home: 'https://lodash.com/',
108
code: 'https://github.com/lodash/lodash/'
@@ -16,8 +14,18 @@ class Lodash < UrlScraper
1614
options[:skip_links] = true
1715

1816
options[:attribution] = <<-HTML
19-
&copy; 2012&ndash;2015 The Dojo Foundation<br>
17+
&copy; 2012&ndash;2016 The Dojo Foundation<br>
2018
Licensed under the MIT License.
2119
HTML
20+
21+
version '4' do
22+
self.release = '4.0.0'
23+
self.base_url = 'https://lodash.com/docs'
24+
end
25+
26+
version '3' do
27+
self.release = '3.10.0'
28+
self.base_url = 'https://lodash.com/docs' # OUT-OF-DATE
29+
end
2230
end
2331
end

0 commit comments

Comments
 (0)