meteorologist 0.0.3 → 0.0.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/meteorologist.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d2d4967272518bc0557d1d17f3999bb6a32c597a
4
- data.tar.gz: 0d93aff6119cd289621014a987e04108d7de48b0
3
+ metadata.gz: f221780cb05ec076ac1c2120566a4b6b82adadf0
4
+ data.tar.gz: 476bc7db639356030a8cfaae177efa66736c5e9f
5
5
  SHA512:
6
- metadata.gz: 17339c5b7efda12b84d49031bd1e88e1f068b8cdfcfd4bb7bdd3bb6eb5947d1c4b2b6cf29971b70c7b34469f2628fcd9bd72908a736e7933bba755958a0998d3
7
- data.tar.gz: f00b5f667bad9c1bbc4db8c78cae89a7d19688627f608e095740845608b8b4cea1582892b89171a0335dba3a7f83dd9de6470a136d53c823070295fc63138a03
6
+ metadata.gz: b08026e0114d74cd411ae23ac28916bf52b471675a22f4f2b7ab7af19eaf875e298c9f7aaf7a0736cbdc30088c6a49f9248dd25b0da78ca0996187a2e9ed8733
7
+ data.tar.gz: 49b399bb03e0fa67feffe20c6e60891d16facd2377c00c5a41fa87abd3e130686b795e53214e6e77e09839a717d22d198c3d9c305881a6ceefdffc34728f8af6
data/lib/meteorologist.rb CHANGED
@@ -1,13 +1,13 @@
1
- Dir.glob("./lib/meteorologist/*.rb") { |f| require f }
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meteorologist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dax