hubeny 0.1.0 → 0.1.1

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: 1b48e5f1a30b594217ab298f761802c898184893
4
- data.tar.gz: aa681be450aa3bd39c1143712fff23225d9fe1b4
3
+ metadata.gz: edc0ea3ebf2c8fecba1ae759a7b50b8b32a304cc
4
+ data.tar.gz: 6291500007e397adc79b4f6369d773c1f16c1ac0
5
5
  SHA512:
6
- metadata.gz: 66d3dbbd92704120259d8452ba30bdf7d8999e954759af04d1aa1b0ad9a156acab93b675a5e162556b5b3edfe80149001137f1f9d8d5c0ff0de9c557a39e0c26
7
- data.tar.gz: 739a562305e815d89046672c587e0bd30968cd2452ee3a2d9c3ddeebfc435d6c4dac1aa16ac4620c162c22c83674084407c0148a052855d106754a91d7b38647
6
+ metadata.gz: 4b5eeb6f2a6b1e535e225e19bca29913b93c077b64758ab09eace2ae8d018a51cf9f94525d74702bc708b9b6ffd7a5ff0b828f1a913a3dd67a284a59deebee0e
7
+ data.tar.gz: e7f0c225144b907518e5453100a1902f951148e15134b6136807cf6233a12d6fc58191e48c0f04eb9f2de7fb1b272955eab53da4a1634fc6dd206af309809b34
data/README.md CHANGED
@@ -21,7 +21,13 @@ Or install it yourself as:
21
21
  ## Usage
22
22
 
23
23
  ```ruby
24
- puts Hubeny.distance(35.65500, 139.74472, 36.10056, 140.09111)
24
+ require "hubeny"
25
+
26
+ # Calculate distance using Hubeny's formula:
27
+ puts Hubeny.distance(35.65500, 139.74472, 36.10056, 140.09111) #=> 58502.458931819616 (in meters)
28
+
29
+ # Calculate distance using Haversine formula:
30
+ puts Hubeny.haversine(35.65500, 139.74472, 36.10056, 140.09111) #=> 58619.80584901641 (in meters)
25
31
  ```
26
32
 
27
33
 
data/bin/hubeny CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
3
  require "hubeny"
5
4
 
6
5
  if ARGV.length < 4
@@ -1,3 +1,3 @@
1
1
  module Hubeny
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubeny
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aoyama, Shotaro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-23 00:00:00.000000000 Z
11
+ date: 2018-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler