sunweather 0.3.3 → 0.3.4
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/VERSION +1 -1
- data/bin/sunweather +1 -1
- data/lib/{runner.rb → sunweather/runner.rb} +5 -5
- data/sunweather.gemspec +5 -5
- metadata +5 -5
- /data/lib/{data.rb → sunweather/data.rb} +0 -0
- /data/lib/{geo.rb → sunweather/geo.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48e68129144f9dd9e97b28ce939f7fe206c209b8
|
4
|
+
data.tar.gz: 461d3a98d36723d6ecac5cb6f5c96599d087524a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc7cd90ed5cbac3f769e3687fcc3a2be416fc3698d8b0c78de8a5478fac897c6ea348a1938bed59e7d74b62eecfadbe5c802b2697cd01ca0c111244af1180b40
|
7
|
+
data.tar.gz: adbdf07c228d2d0809f992974addf62982fe738eade8f6acf86b54931a9e2c4babbfe57e9b17e6fe825b94e0e25de02963b905cffbd83c39d075e75795e69373
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.4
|
data/bin/sunweather
CHANGED
@@ -5,16 +5,16 @@ module Sunweather
|
|
5
5
|
class Runner
|
6
6
|
|
7
7
|
def initialize
|
8
|
-
end
|
9
|
-
|
10
|
-
def data
|
11
8
|
@geo = (ARGV[0] ? Geo.new(ARGV[0]) : Geo.new)
|
12
9
|
@data = Data.new(@geo.lat, @geo.lng)
|
10
|
+
end
|
11
|
+
|
12
|
+
def cli_output
|
13
13
|
"Dawn from #{hours_minutes(@data.start_of_dawn)} to #{hours_minutes(@data.sunrise)}.\nDusk from #{hours_minutes(@data.sunset)} to #{hours_minutes(@data.end_of_dusk)}.\nTemperature: #{@data.temperature}°C, feels like #{@data.feels_like}°C.\nWeather: #{@data.conditions}, Winds #{@data.wind_speed.downcase}, direction #{@data.wind_direction}.\n"
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
17
|
-
puts
|
16
|
+
def run_cli
|
17
|
+
puts cli_output
|
18
18
|
end
|
19
19
|
|
20
20
|
def hours_minutes time
|
data/sunweather.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "sunweather"
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Tobi Frank"]
|
12
|
-
s.date = "2013-12-
|
12
|
+
s.date = "2013-12-03"
|
13
13
|
s.description = "Provides sunrise/sunset and weather info for given address."
|
14
14
|
s.email = "tobifrank38@gmail.com"
|
15
15
|
s.executables = ["sunweather"]
|
@@ -27,9 +27,9 @@ Gem::Specification.new do |s|
|
|
27
27
|
"Rakefile",
|
28
28
|
"VERSION",
|
29
29
|
"bin/sunweather",
|
30
|
-
"lib/data.rb",
|
31
|
-
"lib/geo.rb",
|
32
|
-
"lib/runner.rb",
|
30
|
+
"lib/sunweather/data.rb",
|
31
|
+
"lib/sunweather/geo.rb",
|
32
|
+
"lib/sunweather/runner.rb",
|
33
33
|
"spec/data_spec.rb",
|
34
34
|
"spec/geo_spec.rb",
|
35
35
|
"spec/spec_helper.rb",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunweather
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobi Frank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -168,9 +168,9 @@ files:
|
|
168
168
|
- Rakefile
|
169
169
|
- VERSION
|
170
170
|
- bin/sunweather
|
171
|
-
- lib/data.rb
|
172
|
-
- lib/geo.rb
|
173
|
-
- lib/runner.rb
|
171
|
+
- lib/sunweather/data.rb
|
172
|
+
- lib/sunweather/geo.rb
|
173
|
+
- lib/sunweather/runner.rb
|
174
174
|
- spec/data_spec.rb
|
175
175
|
- spec/geo_spec.rb
|
176
176
|
- spec/spec_helper.rb
|
File without changes
|
File without changes
|