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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57d540564a5f2f8bd75167c80cffb8c21f2dd04b
4
- data.tar.gz: e3b9cbb713a88f49672443e40f337e120ce64258
3
+ metadata.gz: ecae8fd604a1d1efd7ae39b9ab6ec73ee4fc0592
4
+ data.tar.gz: b6557e9095456c57a9df47fa0aa66a3926016414
5
5
  SHA512:
6
- metadata.gz: 4d2f83928c8cd82c3605412d4cc4009a5ab582203f5c7a54f1540709927153bc45177bb2dc8fd02495ec44e55d8103e7434f7cc1eabfa4d83742aa8b9dfbeb73
7
- data.tar.gz: dffbf6589b89b9a69eddd2b7f5375a5d3efe3befe38dc9770cd54a0315f9777d1905e1b4b115571d71525f84019c8beac8227fcb18e0b65c55776d8d069d53fb
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.3.4)
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)
@@ -1,3 +1,3 @@
1
1
  module RatelessBot
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
data/rateless_bot.gemspec CHANGED
@@ -26,4 +26,5 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency "lastfm", "1.27.1"
27
27
  spec.add_dependency "open-weather", "~> 0.12"
28
28
  spec.add_dependency "video_info", "2.6.1"
29
+ spec.add_dependency "countries", "1.2.5"
29
30
  end
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.0
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