gogo_maps 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: def747f175577c50c24ec743f8ec1f36ba81432a
4
- data.tar.gz: b4eefda51bfe0ef6faae5c4bb0754ad482d956e4
3
+ metadata.gz: 6e946a3c75ceaea0f122976307b89122effc974a
4
+ data.tar.gz: 78ed74e1f04f613a3ce0b572fc7fcb87a67feef7
5
5
  SHA512:
6
- metadata.gz: c83df3d052eec4e53f226a3a1952ae99f721eaae1795c1cfe3bd710f8dd345a0ac80a22f2b1207490c1f5011aa5ad8e8fe55b91d37692329da2f422cd04f787a
7
- data.tar.gz: 8507b6a82df33761d1c848a1b3c03a0b3e749d69afe6a4af9597a2c203700ec44af42bed3771fe7398456ecbf87fb974ae7dd48652344c638e089b312b0a6728
6
+ metadata.gz: 7af054199eb82c3c9951d32c627788f673694ca56952e0c6f12514666f008330c9e1f428eaa39d82b7c90b5bb50039784a3c75f646092e37c57d5db179a5069a
7
+ data.tar.gz: 266b192a89bbeba04853339a86d5134d5f3b663f1c968890dc453eab4c7db719baf9d8f65c319b74cde21e455619e0fea84bc68fefc79b417f2d08d058df79b8
@@ -1,3 +1,3 @@
1
1
  module GogoMaps
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/gogo_maps.rb CHANGED
@@ -14,10 +14,10 @@ module GogoMaps
14
14
  )
15
15
  end
16
16
 
17
- def random
17
+ def random(opts={})
18
18
  lat = ((-160..160).to_a.sample + rand).round(8)
19
19
  lng = ((-160..160).to_a.sample + rand).round(8)
20
- get(latlng:[lat, lng].join(','))
20
+ get({latlng:[lat, lng].join(',')}.merge(opts))
21
21
  rescue
22
22
  random #FIXIT:
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gogo_maps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - gogotanaka