From b8b1647f6dfa5e415fbcccdb448d51938f991039 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 17 Aug 2019 12:56:31 +0200 Subject: [PATCH] ansible: fix 2.8 and use #{version} --- lib/docs/scrapers/ansible.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/docs/scrapers/ansible.rb b/lib/docs/scrapers/ansible.rb index 8e3a63ad..2ebb42ce 100644 --- a/lib/docs/scrapers/ansible.rb +++ b/lib/docs/scrapers/ansible.rb @@ -32,27 +32,27 @@ module Docs version '2.8' do self.release = '2.8.3' - self.base_url = 'https://docs.ansible.com/ansible/2.7/' + self.base_url = "https://docs.ansible.com/ansible/#{version}/" end version '2.7' do self.release = '2.7.12' - self.base_url = 'https://docs.ansible.com/ansible/2.7/' + self.base_url = "https://docs.ansible.com/ansible/#{version}/" end version '2.6' do self.release = '2.6.18' - self.base_url = 'https://docs.ansible.com/ansible/2.6/' + self.base_url = "https://docs.ansible.com/ansible/#{version}/" end version '2.5' do self.release = '2.5.15' - self.base_url = 'https://docs.ansible.com/ansible/2.5/' + self.base_url = "https://docs.ansible.com/ansible/#{version}/" end version '2.4' do self.release = '2.4.6' - self.base_url = 'https://docs.ansible.com/ansible/2.4/' + self.base_url = "https://docs.ansible.com/ansible/#{version}/" options[:skip] = %w( glossary.html