meteorologist 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/meteorologist.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f221780cb05ec076ac1c2120566a4b6b82adadf0
|
4
|
+
data.tar.gz: 476bc7db639356030a8cfaae177efa66736c5e9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b08026e0114d74cd411ae23ac28916bf52b471675a22f4f2b7ab7af19eaf875e298c9f7aaf7a0736cbdc30088c6a49f9248dd25b0da78ca0996187a2e9ed8733
|
7
|
+
data.tar.gz: 49b399bb03e0fa67feffe20c6e60891d16facd2377c00c5a41fa87abd3e130686b795e53214e6e77e09839a717d22d198c3d9c305881a6ceefdffc34728f8af6
|
data/lib/meteorologist.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
Dir.glob(
|
1
|
+
Dir.glob(File.expand_path('meteorologist/*.rb', __FILE__)) { |f| require f }
|
2
2
|
|
3
3
|
class Meteorologist
|
4
4
|
def initialize(location, options = {})
|
5
5
|
validate_environment
|
6
6
|
|
7
7
|
@location = location
|
8
|
-
@forecaster_class = options.fetch(:forecaster) { Forecaster }
|
9
|
-
@navigator_class = options.fetch(:navigator) { Navigator }
|
10
|
-
@moon_info_class = options.fetch(:moon_info) { MoonInfo }
|
8
|
+
@forecaster_class = options.fetch(:forecaster) { ::Forecaster }
|
9
|
+
@navigator_class = options.fetch(:navigator) { ::Navigator }
|
10
|
+
@moon_info_class = options.fetch(:moon_info) { ::MoonInfo }
|
11
11
|
@forecast_time = options.fetch(:forecast_time) { Time.now }
|
12
12
|
@units = options.fetch(:units) { 'si' } # or 'us' for Imperial units
|
13
13
|
end
|