rateless_bot 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -1
- data/lib/rateless_bot/plugins/weather.rb +2 -1
- data/lib/rateless_bot/version.rb +1 -1
- data/rateless_bot.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecae8fd604a1d1efd7ae39b9ab6ec73ee4fc0592
|
4
|
+
data.tar.gz: b6557e9095456c57a9df47fa0aa66a3926016414
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a98e1481bdab573c6cb14a21043ca235e61573608b3b6bf02e43142695d43596ae43505706df3e8ae0ea379f86a1de88665b7a1c22738b4c8dbddf0b0c7c685f
|
7
|
+
data.tar.gz: 0d0369b5a9140f644a78ef75a49d685b7cdd564d869086c43655387d1c60f7b4a839bc3c56bd1265d1003b8d522709df125ccfe1a25d75a1f4148e5e30fa24fa
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rateless_bot (0.
|
4
|
+
rateless_bot (0.4.0)
|
5
5
|
cinch (= 2.3.2)
|
6
|
+
countries (= 1.2.5)
|
6
7
|
lastfm (= 1.27.1)
|
7
8
|
open-weather (~> 0.12)
|
8
9
|
video_info (= 2.6.1)
|
@@ -19,9 +20,14 @@ GEM
|
|
19
20
|
ast (2.3.0)
|
20
21
|
cinch (2.3.2)
|
21
22
|
concurrent-ruby (1.0.2)
|
23
|
+
countries (1.2.5)
|
24
|
+
currencies (~> 0.4.2)
|
25
|
+
i18n_data (~> 0.7.0)
|
26
|
+
currencies (0.4.2)
|
22
27
|
httparty (0.14.0)
|
23
28
|
multi_xml (>= 0.5.2)
|
24
29
|
i18n (0.7.0)
|
30
|
+
i18n_data (0.7.0)
|
25
31
|
iso8601 (0.9.1)
|
26
32
|
json (1.8.3)
|
27
33
|
lastfm (1.27.1)
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'cinch'
|
2
2
|
require 'open_weather'
|
3
|
+
require 'countries'
|
3
4
|
|
4
5
|
class Weather
|
5
6
|
def help
|
@@ -31,7 +32,7 @@ class Weather
|
|
31
32
|
end
|
32
33
|
|
33
34
|
city = current_weather['name']
|
34
|
-
country = current_weather['sys']['country']
|
35
|
+
country = ISO3166::Country.new(current_weather['sys']['country']).name
|
35
36
|
humidity = current_weather['main']['humidity']
|
36
37
|
temp_celsius = current_weather['main']['temp'].round(1)
|
37
38
|
temp_fahrenheit = (temp_celsius * 1.8 + 32).round(1)
|
data/lib/rateless_bot/version.rb
CHANGED
data/rateless_bot.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rateless_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vincent Heuken
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 2.6.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: countries
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.2.5
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.2.5
|
97
111
|
description:
|
98
112
|
email:
|
99
113
|
- me@vincentheuken.com
|