sunweather 0.3.2 → 0.3.3
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/lib/runner.rb +6 -5
- data/sunweather.gemspec +2 -3
- metadata +2 -3
- data/meditation +0 -1905
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49a6973eaeaaed7be0e11bd0bf8fb431b115f8e7
|
4
|
+
data.tar.gz: cf8984e6089de72bee634f733b7281a8a0b7fbf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4ef881340fd2938b0faf745f7f09bdac835aa57d248875255f174383c90e4b5a55b9ad708c92d7a680503b73f310d82632651ef9e33c77ece81478f64b11e12
|
7
|
+
data.tar.gz: 1a59aaf124a89a599129afdf0de53aec0e9f7102c1077e0c5e96ba8765086e6bb308db55e229711403431d8f03aa688247279e5f7f67e458e931262bfc1297b8
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.3
|
data/lib/runner.rb
CHANGED
@@ -7,13 +7,14 @@ module Sunweather
|
|
7
7
|
def initialize
|
8
8
|
end
|
9
9
|
|
10
|
-
def
|
10
|
+
def data
|
11
11
|
@geo = (ARGV[0] ? Geo.new(ARGV[0]) : Geo.new)
|
12
12
|
@data = Data.new(@geo.lat, @geo.lng)
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
+
end
|
15
|
+
|
16
|
+
def run
|
17
|
+
puts data
|
17
18
|
end
|
18
19
|
|
19
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.3"
|
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-02"
|
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"]
|
@@ -30,7 +30,6 @@ Gem::Specification.new do |s|
|
|
30
30
|
"lib/data.rb",
|
31
31
|
"lib/geo.rb",
|
32
32
|
"lib/runner.rb",
|
33
|
-
"meditation",
|
34
33
|
"spec/data_spec.rb",
|
35
34
|
"spec/geo_spec.rb",
|
36
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.3
|
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-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -171,7 +171,6 @@ files:
|
|
171
171
|
- lib/data.rb
|
172
172
|
- lib/geo.rb
|
173
173
|
- lib/runner.rb
|
174
|
-
- meditation
|
175
174
|
- spec/data_spec.rb
|
176
175
|
- spec/geo_spec.rb
|
177
176
|
- spec/spec_helper.rb
|