damn-weather 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/damn_weather.rb +1 -1
- data/lib/damn_weather/emoji.rb +2 -3
- data/lib/damn_weather/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d66c5914b16ef62706f55a5730a81c8e114e5be
|
4
|
+
data.tar.gz: 6ca3bfac832fdda07b42455d1db905a57d7ed628
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04a9371e13d2213626de3514d2fa545cea18122bd98e1d4300da313c6308089905f309d41958579d5fe727019cef2ed2296e944e5fb18961b3282d767050cbe5
|
7
|
+
data.tar.gz: 6d29eee1e26b5317c6b18362dc83795334a1c459d9e923a0d4f183d5176c14885ef025c8859492301887bcf5607f77b937541e4a526f1bcbafbe6f95f46bdb4f
|
data/lib/damn_weather.rb
CHANGED
@@ -15,7 +15,7 @@ module DamnWeather
|
|
15
15
|
gem_root = Gem::Specification.find_by_name('mm_geoip').gem_dir
|
16
16
|
db_file = "#{gem_root}/data/GeoLiteCity.dat"
|
17
17
|
unless File.exist?(db_file)
|
18
|
-
puts "Downloading database file... (This may take a while)"
|
18
|
+
puts "\xF0\x9F\x9A\xA7 Downloading database file... (This may take a while)"
|
19
19
|
open(db_file, 'w') do |local_file|
|
20
20
|
open('http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz') do |remote_file|
|
21
21
|
local_file.write(Zlib::GzipReader.new(remote_file).read)
|
data/lib/damn_weather/emoji.rb
CHANGED
@@ -2,7 +2,6 @@ module Emoji
|
|
2
2
|
def heavy_rain
|
3
3
|
["\xF0\x9F\x92\xA6", # multiple drops
|
4
4
|
"\xE2\x98\x94", # umbrella with drops
|
5
|
-
"\xF0\x9F\x98\x9E", # disappointed face
|
6
5
|
"\xF0\x9F\x98\xBF", # crying cat
|
7
6
|
"\xF0\x9F\x92\xA7" # droplet
|
8
7
|
]
|
@@ -18,7 +17,8 @@ module Emoji
|
|
18
17
|
def snow
|
19
18
|
["\xE2\x9B\x84", # snowman
|
20
19
|
"\xF0\x9F\x8F\x82", # snowboarder
|
21
|
-
"\xE2\x9D\x84" # snowflake
|
20
|
+
"\xE2\x9D\x84", # snowflake
|
21
|
+
"\xF0\x9F\x8E\x85" # santa
|
22
22
|
]
|
23
23
|
end
|
24
24
|
|
@@ -61,7 +61,6 @@ module Emoji
|
|
61
61
|
|
62
62
|
def thunder
|
63
63
|
["\xF0\x9F\x98\xA8", # fearful face
|
64
|
-
"\xF0\x9F\x99\x88", # monkey with hands on face
|
65
64
|
"\xE2\x98\x94", # umbrella with drops
|
66
65
|
"\xE2\x9A\xA1" # high voltage sigh
|
67
66
|
]
|
data/lib/damn_weather/version.rb
CHANGED