Skip to content

Instantly share code, notes, and snippets.

@itochan
Last active December 22, 2015 02:19
Show Gist options
  • Save itochan/6402966 to your computer and use it in GitHub Desktop.
Save itochan/6402966 to your computer and use it in GitHub Desktop.
require 'date'
require 'i18n'
JAVA = "http://www.java.com/#{I18n.locale}/"
YOU = `whoami`
def DOWNLOAD(today)
puts "Free Java Download"
puts JAVA
`open #{JAVA}` if `uname`.chomp == "Darwin"
end
def TODAY!
Date.today
end
JAVA + YOU
DOWNLOAD TODAY!
@asonas
Copy link

asonas commented Apr 10, 2014

benri patch

diff --git a/java_plus_you.rb b/java_plus_you.rb
index 74786f9..21e3926 100644
--- a/java_plus_you.rb
+++ b/java_plus_you.rb
@@ -1,6 +1,7 @@
 require "date"
+require 'i18n'

-JAVA = "http://www.java.com/en/"
+JAVA = "http://www.java.com/#{I18n.locale}/"
 YOU = `whoami`

 def DOWNLOAD(today)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment