We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7812b0c commit 199a8b1Copy full SHA for 199a8b1
scripts/tweet.rb
@@ -15,7 +15,7 @@
15
sitemap_xml = Nokogiri::XML(open(sitemap_url))
16
urls = sitemap_xml.css("url loc").map { |x|
17
x.text
18
- }.select { |x| x !~ /blog/ }
+ }.select { |x| x !~ /blog|newsletter/ }
19
20
# Some notable 3rd party stuff
21
urls << 'https://docs.docker.com/engine/admin/logging/fluentd/' # Docker
@@ -34,7 +34,7 @@
34
# Formatting
35
title = Nokogiri::HTML(open(url_to_tweet)).css("title").text
36
title.gsub!(/\s*\| Fluentd.*$/, "")
37
- tweet_body = "\"#{title}\" #{url_to_tweet}"
+ tweet_body = "\"#{title.strip}\" #{url_to_tweet}"
38
39
# client
40
client = Twitter::REST::Client.new do |config|
0 commit comments