myweatherforecast 0.5.8 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data/lib/myweatherforecast.rb +28 -3
- data.tar.gz.sig +0 -0
- metadata +54 -31
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 188d33fb7250e0cbd3b21c565b315961da8d2f2d6b19b712abc7b208cb3e447d
|
4
|
+
data.tar.gz: 01a67e12b7e55e1c5c117aa25849b408292b8f00d7afc8c548c8350ad5757e17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbde4891f487c50a93b779bfc9d84c38cff8f08a2849a8ec5200929bae12cc3343c47f841da419c03f527cc78aa632c56ab77836aa3602fae919c76bc886e556
|
7
|
+
data.tar.gz: 3dcea0689126a75541fff8cde34aee194ce59879b4883a442a9eec04619a8c510d49273258b20039f66dda4e1c46564d916a847414f24bfaadd1513d3ae1ab9f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/myweatherforecast.rb
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
require 'json'
|
6
6
|
require 'time'
|
7
7
|
require 'geocoder'
|
8
|
-
require 'forecast_io'
|
9
8
|
require 'open-uri'
|
10
|
-
|
9
|
+
require 'emoji2020'
|
10
|
+
require 'forecast_io'
|
11
11
|
|
12
12
|
|
13
13
|
# This gem is a wrapper of the forecast_io gem
|
@@ -111,6 +111,31 @@ class MyWeatherForecast
|
|
111
111
|
|
112
112
|
def afternoon() period(12, 17) end
|
113
113
|
def early_hours() period(0, 5) end
|
114
|
+
|
115
|
+
def emoji()
|
116
|
+
|
117
|
+
h = {
|
118
|
+
'clear-day' => :sun,
|
119
|
+
'partly-cloudy-day' => :sun_behind_cloud
|
120
|
+
}
|
121
|
+
|
122
|
+
h = {
|
123
|
+
'clear-day' => :sun,
|
124
|
+
'clear-night' => :night_with_stars,
|
125
|
+
'rain' => :cloud_with_rain,
|
126
|
+
'snow' => :cloud_with_snow,
|
127
|
+
'sleet' => :cloud_with_rain,
|
128
|
+
'wind' => :leaf_fluttering_in_wind,
|
129
|
+
'fog' => :fog,
|
130
|
+
'cloudy' => :cloud,
|
131
|
+
'partly-cloudy-day' => :partly_cloudy,
|
132
|
+
'partly-cloudy-night' => :cloud
|
133
|
+
}
|
134
|
+
|
135
|
+
Emoji2020.new(h[icon()])
|
136
|
+
|
137
|
+
end
|
138
|
+
|
114
139
|
def evening() period(17, night_time.hour+1) end
|
115
140
|
def morning() period(6, 12) end
|
116
141
|
def night() period(night_time.hour, 23) end
|
@@ -323,4 +348,4 @@ class MyWeatherForecast
|
|
323
348
|
Daily.new(@forecast, @tlabel, d)
|
324
349
|
end
|
325
350
|
|
326
|
-
end
|
351
|
+
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myweatherforecast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,28 +10,32 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
13
|
+
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZX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7UW4/BUMZcenlM
|
29
|
+
Xx841MdN5yfy91NWeo/Qy0ruxCnNtCvXsVEx6P1TVLaZBxkU/i/H3TgNrOsqgRHz
|
30
|
+
8S428Xg3PTTYkMf27+sLMO8uXmEYeCjrbdEyUBiCtmPht776T2nepwOJNwqgb8x8
|
31
|
+
qSMtqEYZxY3x+4Dd9CNf2xQujQ26Q4qyZnzYIuZQb9aHMgAiww3rst8Kxc83pggI
|
32
|
+
It47yWd2GhjXd7fv/9MZ0Uhfov+ExsqSr9H0HDjf8KCL+Y9OzNAW7ixpQpXK0pQJ
|
33
|
+
i54CNZiaGNwJnBVp9USO7cA5jCKN1Iouaj/Vbie5XXhiGnOZ/cyfna/K/fX10/lh
|
34
|
+
JL0NiXQMvY3FTEjgq7BZxit1Q7dE07TH54CD/f5EMNm9v/f5BKVPDF+pfAUrZnKy
|
35
|
+
T8ZItjfCqcG6MNMdmPqplYAqpSJzVB9ucdkrz8Ia5Lf1waJw6Dd0m1zHWYSofIH8
|
36
|
+
HuG3HnRIMQNQE2s1PFtxmX2w
|
33
37
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
38
|
+
date: 2020-04-26 00:00:00.000000000 Z
|
35
39
|
dependencies:
|
36
40
|
- !ruby/object:Gem::Dependency
|
37
41
|
name: forecast_io
|
@@ -42,7 +46,7 @@ dependencies:
|
|
42
46
|
version: '2.0'
|
43
47
|
- - ">="
|
44
48
|
- !ruby/object:Gem::Version
|
45
|
-
version: 2.0.
|
49
|
+
version: 2.0.2
|
46
50
|
type: :runtime
|
47
51
|
prerelease: false
|
48
52
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -52,29 +56,49 @@ dependencies:
|
|
52
56
|
version: '2.0'
|
53
57
|
- - ">="
|
54
58
|
- !ruby/object:Gem::Version
|
55
|
-
version: 2.0.
|
59
|
+
version: 2.0.2
|
56
60
|
- !ruby/object:Gem::Dependency
|
57
61
|
name: geocoder
|
58
62
|
requirement: !ruby/object:Gem::Requirement
|
59
63
|
requirements:
|
60
64
|
- - "~>"
|
61
65
|
- !ruby/object:Gem::Version
|
62
|
-
version: '1.
|
66
|
+
version: '1.6'
|
63
67
|
- - ">="
|
64
68
|
- !ruby/object:Gem::Version
|
65
|
-
version: 1.2
|
69
|
+
version: 1.6.2
|
66
70
|
type: :runtime
|
67
71
|
prerelease: false
|
68
72
|
version_requirements: !ruby/object:Gem::Requirement
|
69
73
|
requirements:
|
70
74
|
- - "~>"
|
71
75
|
- !ruby/object:Gem::Version
|
72
|
-
version: '1.
|
76
|
+
version: '1.6'
|
73
77
|
- - ">="
|
74
78
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.2
|
79
|
+
version: 1.6.2
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: emoji2020
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 0.2.0
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.2'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.2.0
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0.2'
|
76
100
|
description:
|
77
|
-
email: james@
|
101
|
+
email: james@jamesrobertson.eu
|
78
102
|
executables: []
|
79
103
|
extensions: []
|
80
104
|
extra_rdoc_files: []
|
@@ -99,8 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
123
|
- !ruby/object:Gem::Version
|
100
124
|
version: '0'
|
101
125
|
requirements: []
|
102
|
-
|
103
|
-
rubygems_version: 2.4.8
|
126
|
+
rubygems_version: 3.0.3
|
104
127
|
signing_key:
|
105
128
|
specification_version: 4
|
106
129
|
summary: This gem is a wrapper of the forecast_io gem.
|
metadata.gz.sig
CHANGED
Binary file
|