eltiempobcn 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/place.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e96ecf6597cf3e0cc65643dfbd8043ca69082a015b8c1a92a0ba203971b96b5a
|
|
4
|
+
data.tar.gz: 6370ffdf6ea6727d36fa5b54872b5ba5dd0aef365eaabf6ece5119c70bf562d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 920d093061ff3d4a71e12e1b6c9d6824568603d789d896d95d63beae34eefb00f8bd846c5d59b8d6b554dbc1954d30cf42c4ba6f6e34bfd22d2fb33e8c3c2945
|
|
7
|
+
data.tar.gz: a9f5fcf7cad5c3763a1a882f67b5a3645dd2b5228b7e3ea03c5f387fab530c0687d096e38bc185e8da9d6b6df620c935c9197e1224b3391979a5b5fefa5ab02b
|
data/lib/place.rb
CHANGED
|
@@ -76,10 +76,11 @@ class String
|
|
|
76
76
|
def to_sym_city
|
|
77
77
|
I18n.config.available_locales = :en
|
|
78
78
|
begin
|
|
79
|
-
raise unless return_string = I18n.transliterate( self ).tr( " ", "" ).downcase.to_sym
|
|
79
|
+
raise "ElTiempoBCN gem can't handle encoding yet. Please contact the author for more details" unless return_string = I18n.transliterate( self ).tr( " ", "" ).downcase.to_sym
|
|
80
80
|
return return_string
|
|
81
|
-
rescue CompatibilityError => e
|
|
82
|
-
|
|
81
|
+
rescue Encoding::CompatibilityError => e
|
|
82
|
+
puts e
|
|
83
|
+
puts e.backtrace.inspect
|
|
83
84
|
end
|
|
84
85
|
end
|
|
85
86
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eltiempobcn
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marcelo Jimenez
|
|
@@ -53,7 +53,7 @@ dependencies:
|
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
55
|
description: It's a simple gem to get the weather for different regions in Catalonia
|
|
56
|
-
using CLI.
|
|
56
|
+
using CLI. Won't handle encodings.
|
|
57
57
|
email:
|
|
58
58
|
- mejimenez@gmail.com
|
|
59
59
|
executables:
|