Skip to content

Commit

Permalink
code: Move all code to .code
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Mar 14, 2016
1 parent 8f3f21e commit 0c0689e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions update.rb → .code/update.rb
Expand Up @@ -20,9 +20,9 @@ def debug(message)
end


TLDFILE = 'tlds.txt'
DEBUG = true
DATE = Time.now.strftime('%Y-%m-%d')
TLDFILE = File.expand_path('../../.tmp/tlds.txt', __FILE__)
DEBUG = true
DATE = Time.now.strftime('%Y-%m-%d')

File.open(TLDFILE, "w+") { |f| f.write(open('https://data.iana.org/TLD/tlds-alpha-by-domain.txt').read) }
if File.read(TLDFILE).empty?
Expand Down Expand Up @@ -56,3 +56,4 @@ def debug(message)
end

sh "git push origin master"

2 changes: 1 addition & 1 deletion .gitignore
@@ -1 +1 @@
tlds.txt
.tmp/tlds.txt

0 comments on commit 0c0689e

Please sign in to comment.