metric_space 0.0.1 → 0.0.3

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: c7441e2c577b880b3d511bdd2e726fb1082d111f
4
- data.tar.gz: 5897051193d86ae84a6b00ad7c3c742bf660bb06
3
+ metadata.gz: 95f9354064dfeae7662545c858ec8d79eff3ed0f
4
+ data.tar.gz: 0fd387fe9dd38b09ce49e7fc0014e714adddb2cf
5
5
  SHA512:
6
- metadata.gz: ec725f1af4b59acc0ad656800aff00526c3de08ab4104a6a7266320e4fdcda9d8bb511e44ba745b0d1d96a9d514dc02bbec47675b5efe056317a3fb93920ff19
7
- data.tar.gz: 0e8599bcc362dbc17eb91f6c8e9fdb892485f350ae2530b0ed41a667e23ba51397488c7bec944219a3075abceb049bc4da2c88b9f8390fdc397e35318ebdea99
6
+ metadata.gz: 2de743e7b27d341d314efb30fc4f3eeb700ef0784229c9e64be75f8efdea7fe89fcd1107313293c820fbcfc75e821d1f710e3e6e3f40e9192556c978add0f2db
7
+ data.tar.gz: 054c788df5c2e646433c46c7df5e240a6b1b52cb900f67b776741940208ed79f589d0ed875ffe68772be081891ebdf387bb62b77b1c5a1b424b8e8c52a62254d
data/.travis.yml CHANGED
@@ -2,3 +2,4 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
+ - jruby-head
data/Gemfile CHANGED
@@ -2,3 +2,11 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in metric_space.gemspec
4
4
  gemspec
5
+
6
+ group :development, :test do
7
+ gem 'coveralls', require: false
8
+ gem 'rspec'
9
+ gem 'guard'
10
+ gem 'guard-bundler'
11
+ gem 'guard-rspec'
12
+ end
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # MetricSpace
1
+ # MetricSpace [![Gem Version](https://badge.fury.io/rb/metric_space.png)](http://badge.fury.io/rb/metric_space) [![Build Status](https://travis-ci.org/fractalsoft/metric_space.png)](https://travis-ci.org/fractalsoft/metric_space) [![Dependency Status](https://gemnasium.com/fractalsoft/metric_space.png)](https://gemnasium.com/fractalsoft/metric_space) [![Coverage Status](https://coveralls.io/repos/fractalsoft/metric_space/badge.png)](https://coveralls.io/r/fractalsoft/metric_space)
2
2
 
3
3
  Count distance between points in selected metric space
4
4
 
@@ -18,8 +18,15 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ ```ruby
22
+ point1 = {x: 1.0, y: 2.0, z: 3.0}
23
+ point2 = {x: 2.5, y: -1.0}
22
24
 
25
+ MetricSpace::BritishRails.distance(point1, point2)
26
+ MetricSpace::Euclidean.distance(point1, point2)
27
+ MetricSpace::Maximum.distance(point1, point2)
28
+ MetricSpace::Taxicab.distance(point1, point2)
29
+ ```
23
30
  ## Contributing
24
31
 
25
32
  1. Fork it
@@ -1,3 +1,3 @@
1
1
  module MetricSpace
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
data/metric_space.gemspec CHANGED
@@ -19,8 +19,4 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_development_dependency "bundler", "~> 1.3"
21
21
  spec.add_development_dependency "rake"
22
- spec.add_development_dependency "rspec"
23
- spec.add_development_dependency "guard"
24
- spec.add_development_dependency "guard-bundler"
25
- spec.add_development_dependency "guard-rspec"
26
22
  end
data/spec/spec_helper.rb CHANGED
@@ -5,6 +5,8 @@
5
5
  #
6
6
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
7
  require 'metric_space'
8
+ require 'coveralls'
9
+ Coveralls.wear!
8
10
 
9
11
  RSpec.configure do |config|
10
12
  config.treat_symbols_as_metadata_keys_with_true_values = true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metric_space
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksander Malaszkiewicz
@@ -38,62 +38,6 @@ dependencies:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '>='
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: guard
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '>='
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: guard-bundler
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - '>='
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '>='
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: guard-rspec
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
41
  description:
98
42
  email:
99
43
  - info@fractalsoft.org