sodacan 0.0.7 → 0.0.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18f1da3f2b8325bbdb0fb07f7eb303b8463adf8f
4
- data.tar.gz: a97777fe0484825850f7af72172ec7ee11dd3caa
3
+ metadata.gz: 0cfd3229ece8dc23335a894a0eacd1af6f5541d3
4
+ data.tar.gz: 5b7438e31ee98b6d2ed90fb20002a2b52071fd25
5
5
  SHA512:
6
- metadata.gz: 2c1304256fbb5d15f80c4cad5d45228a089e2ebb3fb0e0416bef5dc87f58a40bb0b8040cb691537bc371414baf7cf5271e203ab7fd0fa6635cc9fe4994ddc34b
7
- data.tar.gz: 3957e4b03c72373d26cc5772f4c1ce3c9351cc51bbe3d95ac94a2a1121d6d0e6a849c6aa54c14d88fe4466aa61ee19434f46812b7406a348725a69a633e18bb1
6
+ metadata.gz: 11457579ebfb3db1a94a08f3506ded19a5195e2dd19d80673e9fa3e802441546ed4d0f8a89568732f699f165be37bfa6d3d96a043466e49c41fbed854eccd576
7
+ data.tar.gz: 38197420434f8ccfb7ab4b9ddd2c75aeb54f350351ef5da9d254b37716ee02719a3224cab6f83328552c4020c71e47659526f91258e772e4f000a7870d4e9048
@@ -1,12 +1,8 @@
1
1
  module SodaCan
2
2
  class Location
3
3
  def initialize (params)
4
- lat = nil
5
- lat = Float(params['latitude']) if params['latitude']
6
- long = nil
7
- long = Float(params['longitude']) if params['longitude']
8
- define_singleton_method(:latitude){ lat }
9
- define_singleton_method(:longitude){ long }
4
+ define_singleton_method(:latitude){ params['latitude'].to_f }
5
+ define_singleton_method(:longitude){ params['longitude'].to_f }
10
6
  end
11
7
  end
12
8
  end
@@ -1,3 +1,3 @@
1
1
  module SodaCan
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
data/sodacan-0.0.7.gem ADDED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sodacan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trevor John
@@ -85,6 +85,7 @@ files:
85
85
  - lib/sodacan/location.rb
86
86
  - lib/sodacan/version.rb
87
87
  - sodacan-0.0.6.gem
88
+ - sodacan-0.0.7.gem
88
89
  - sodacan.gemspec
89
90
  - spec/sodacan_spec.rb
90
91
  - spec/spec_helper.rb