spliner 1.0.5 → 1.1.0
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 +7 -0
- data/LICENSE.txt +20 -0
- data/README.markdown +4 -4
- data/lib/spliner/spliner.rb +2 -2
- data/lib/spliner/spliner_section.rb +21 -11
- data/lib/spliner/version.rb +3 -0
- data/lib/spliner.rb +1 -4
- metadata +23 -47
- data/.gitignore +0 -2
- data/.travis.yml +0 -8
- data/Gemfile +0 -4
- data/Rakefile +0 -6
- data/spec/spliner_spec.rb +0 -148
- data/spliner.gemspec +0 -25
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 89acfd040767f4ec8454074bf05af816d222218e5f64a6045cee9edf1b11d926
|
|
4
|
+
data.tar.gz: fe8c8212c6230bf61a768eaf399f509487b60211a3bddb0405180ad9df93b81e
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 7d7a5dee2684e3b17c870832e68e2ba71b05e6b724298aaf679dc9ae313dc254cad3631dc7a462ec8785f991501302703a375db6f192907c7aad55f259237427
|
|
7
|
+
data.tar.gz: 1b44da03e4022c8fd11de4015709b0195aac38626767a95742bb826b38dbd78c2400f6efbc30352dc63562781b7ee981ff402499855facb87ead35413e0ced05
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2012 Tallak Tveide
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to
|
|
7
|
+
deal in the Software without restriction, including without limitation the
|
|
8
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
9
|
+
sell copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
18
|
+
THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.markdown
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[](https://github.com/tallakt/spliner/actions/workflows/ci.yml)
|
|
2
2
|
|
|
3
3
|
Spliner
|
|
4
4
|
=======
|
|
@@ -12,7 +12,7 @@ values.
|
|
|
12
12
|
Installation
|
|
13
13
|
------------
|
|
14
14
|
|
|
15
|
-
Spliner requires Ruby
|
|
15
|
+
Spliner requires Ruby 3.0 or later. Install with rubygems:
|
|
16
16
|
|
|
17
17
|
gem install spliner
|
|
18
18
|
|
|
@@ -63,9 +63,9 @@ try to have each feature separated in commits.
|
|
|
63
63
|
Home page
|
|
64
64
|
---------
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
https://github.com/tallakt/spliner
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
https://rubygems.org/gems/spliner
|
|
69
69
|
|
|
70
70
|
License
|
|
71
71
|
-------
|
data/lib/spliner/spliner.rb
CHANGED
|
@@ -170,10 +170,10 @@ module Spliner
|
|
|
170
170
|
end
|
|
171
171
|
|
|
172
172
|
get_func = lambda do |v|
|
|
173
|
-
i = @sections.find_index {|section| section.range.
|
|
173
|
+
i = @sections.find_index {|section| section.range.cover? v }
|
|
174
174
|
if i
|
|
175
175
|
@sections[i].get v
|
|
176
|
-
elsif range.
|
|
176
|
+
elsif range.cover? v
|
|
177
177
|
extrapolate(v)
|
|
178
178
|
else
|
|
179
179
|
nil
|
|
@@ -24,10 +24,10 @@ module Spliner
|
|
|
24
24
|
|
|
25
25
|
def calculate_a_k
|
|
26
26
|
if @x.size > 1
|
|
27
|
-
inv_diff = @x.each_cons(2).map {|x1, x2| 1 / (x2 - x1) }
|
|
27
|
+
inv_diff = @x.each_cons(2).map {|x1, x2| 1.0 / (x2 - x1) }
|
|
28
28
|
a_diag = 2.0 * Matrix::diagonal(*vector_helper(inv_diff))
|
|
29
29
|
a_non_diag = Matrix::build(@x.size) do |row, col|
|
|
30
|
-
if row == col+ 1
|
|
30
|
+
if row == col + 1
|
|
31
31
|
inv_diff[col]
|
|
32
32
|
elsif col == row + 1
|
|
33
33
|
inv_diff[row]
|
|
@@ -41,11 +41,16 @@ module Spliner
|
|
|
41
41
|
tmp = @x.zip(@y).each_cons(2).map do |p1, p2|
|
|
42
42
|
x1, y1 = p1
|
|
43
43
|
x2, y2 = p2
|
|
44
|
-
|
|
44
|
+
delta_x = (x2 - x1)
|
|
45
|
+
3.0 * (y2 - y1) / (delta_x * delta_x)
|
|
45
46
|
end
|
|
46
47
|
b = vector_helper(tmp)
|
|
47
48
|
|
|
48
|
-
|
|
49
|
+
if RUBY_VERSION < "1.9.3"
|
|
50
|
+
@k = a.inv * b
|
|
51
|
+
else
|
|
52
|
+
@k = a.lup_decomposition.solve b
|
|
53
|
+
end
|
|
49
54
|
else
|
|
50
55
|
@k = Vector[0.0]
|
|
51
56
|
end
|
|
@@ -54,14 +59,19 @@ module Spliner
|
|
|
54
59
|
|
|
55
60
|
# returns an interpolated value
|
|
56
61
|
def get(v)
|
|
57
|
-
i = @x_pairs.find_index {|pair| pair.
|
|
62
|
+
i = @x_pairs.find_index {|pair| pair.cover? v }
|
|
58
63
|
if i
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
x_pair = @x_pairs[i]
|
|
65
|
+
x_min = x_pair.min
|
|
66
|
+
dx = x_pair.max - x_min
|
|
67
|
+
y_max = @y[i + 1]
|
|
68
|
+
y_min = @y[i]
|
|
69
|
+
dy = y_max - y_min
|
|
70
|
+
t = (v - x_min) / dx
|
|
71
|
+
a = @k[i] * dx - dy
|
|
72
|
+
b = -@k[i + 1] * dx + dy
|
|
73
|
+
one_minus_t = 1 - t
|
|
74
|
+
t * y_max + one_minus_t * ( y_min + t * ( a * one_minus_t + b * t ) )
|
|
65
75
|
elsif @x.size == 1 && @x.first == v
|
|
66
76
|
@y.first
|
|
67
77
|
else
|
data/lib/spliner.rb
CHANGED
metadata
CHANGED
|
@@ -1,48 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spliner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 1.1.0
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Tallak Tveide
|
|
9
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 2026-10-20 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
|
-
name:
|
|
14
|
+
name: matrix
|
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
16
|
requirements:
|
|
19
|
-
- -
|
|
17
|
+
- - ">="
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: '
|
|
22
|
-
type: :
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :runtime
|
|
23
21
|
prerelease: false
|
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
23
|
requirements:
|
|
27
|
-
- -
|
|
24
|
+
- - ">="
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: '
|
|
30
|
-
- !ruby/object:Gem::Dependency
|
|
31
|
-
name: rake
|
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
|
-
requirements:
|
|
35
|
-
- - ~>
|
|
36
|
-
- !ruby/object:Gem::Version
|
|
37
|
-
version: '0.9'
|
|
38
|
-
type: :development
|
|
39
|
-
prerelease: false
|
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
|
-
requirements:
|
|
43
|
-
- - ~>
|
|
44
|
-
- !ruby/object:Gem::Version
|
|
45
|
-
version: '0.9'
|
|
26
|
+
version: '0'
|
|
46
27
|
description: Simple library to perform cubic spline interpolation based on key X,Y
|
|
47
28
|
values
|
|
48
29
|
email:
|
|
@@ -51,39 +32,34 @@ executables: []
|
|
|
51
32
|
extensions: []
|
|
52
33
|
extra_rdoc_files: []
|
|
53
34
|
files:
|
|
54
|
-
- .
|
|
55
|
-
- .travis.yml
|
|
56
|
-
- Gemfile
|
|
35
|
+
- LICENSE.txt
|
|
57
36
|
- README.markdown
|
|
58
|
-
- Rakefile
|
|
59
37
|
- lib/spliner.rb
|
|
60
38
|
- lib/spliner/spliner.rb
|
|
61
39
|
- lib/spliner/spliner_section.rb
|
|
62
|
-
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
40
|
+
- lib/spliner/version.rb
|
|
41
|
+
homepage: https://github.com/tallakt/spliner
|
|
42
|
+
licenses:
|
|
43
|
+
- MIT
|
|
44
|
+
metadata:
|
|
45
|
+
rubygems_mfa_required: 'true'
|
|
46
|
+
post_install_message:
|
|
67
47
|
rdoc_options: []
|
|
68
48
|
require_paths:
|
|
69
49
|
- lib
|
|
70
50
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
71
|
-
none: false
|
|
72
51
|
requirements:
|
|
73
|
-
- -
|
|
52
|
+
- - ">="
|
|
74
53
|
- !ruby/object:Gem::Version
|
|
75
|
-
version:
|
|
54
|
+
version: '3.0'
|
|
76
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
|
-
none: false
|
|
78
56
|
requirements:
|
|
79
|
-
- -
|
|
57
|
+
- - ">="
|
|
80
58
|
- !ruby/object:Gem::Version
|
|
81
59
|
version: '0'
|
|
82
60
|
requirements: []
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
specification_version: 3
|
|
61
|
+
rubygems_version: 3.4.20
|
|
62
|
+
signing_key:
|
|
63
|
+
specification_version: 4
|
|
87
64
|
summary: Cubic spline interpolation library
|
|
88
65
|
test_files: []
|
|
89
|
-
has_rdoc:
|
data/.gitignore
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
data/spec/spliner_spec.rb
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
require 'spliner'
|
|
2
|
-
|
|
3
|
-
describe Spliner::Spliner do
|
|
4
|
-
DATASET = {0.0 => 0.0, 1.0 => 1.0, 2.0 => 0.5}
|
|
5
|
-
DATASET_X = [0.0, 1.0, 2.0]
|
|
6
|
-
DATASET_Y = [0.0, 1.0, 0.5]
|
|
7
|
-
KEYS_0_100 = {0.0 => 0.0, 100.0 => 100.0}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
it 'should not accept x values that are not increasing' do
|
|
11
|
-
expect(lambda { Spliner::Spliner.new [0.0, -1.0], [0.0, 1.0] }).to raise_exception
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
it 'should support key points with a single value' do
|
|
15
|
-
s1 = Spliner::Spliner.new Hash[0.0, 0.0]
|
|
16
|
-
expect(s1.get 0.0).to be_within(0.0001).of(0.0)
|
|
17
|
-
expect(s1.get 1.5).to be_nil
|
|
18
|
-
|
|
19
|
-
s2 = Spliner::Spliner.new Hash[0.0, 0.0], :extrapolate => -1..1
|
|
20
|
-
expect(s2.get 0.0).to be_within(0.0001).of(0.0)
|
|
21
|
-
expect(s2.get 0.5).to be_within(0.0001).of(0.0)
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
it 'supports the Hash initializer' do
|
|
25
|
-
s1 = Spliner::Spliner.new Hash[0.0, 0.0, 1.0, 1.0]
|
|
26
|
-
expect(s1[0.5]).to be_within(0.0001).of(0.5)
|
|
27
|
-
|
|
28
|
-
s2 = Spliner::Spliner.new Hash[0.0, 0.0, 1.0, 1.0], :extrapolate => '100%'
|
|
29
|
-
expect(s2[0.5]).to be_within(0.0001).of(0.5)
|
|
30
|
-
expect(s2.range.first).to be_within(0.0001).of(-1.0)
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
it 'supports the x-y array/vector initializer' do
|
|
34
|
-
s1 = Spliner::Spliner.new [0.0, 1.0], [0.0, 1.0]
|
|
35
|
-
expect(s1[0.5]).to be_within(0.0001).of(0.5)
|
|
36
|
-
|
|
37
|
-
s2= Spliner::Spliner.new [0.0, 1.0], [0.0, 1.0], :extrapolate => '100%'
|
|
38
|
-
expect(s2[0.5]).to be_within(0.0001).of(0.5)
|
|
39
|
-
expect(s2.range.first).to be_within(0.0001).of(-1.0)
|
|
40
|
-
|
|
41
|
-
s3 = Spliner::Spliner.new Vector[0.0, 1.0], Vector[0.0, 1.0]
|
|
42
|
-
expect(s3[0.5]).to be_within(0.0001).of(0.5)
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
it 'should return the data points themselves' do
|
|
46
|
-
s = Spliner::Spliner.new DATASET
|
|
47
|
-
DATASET.each do |k,v|
|
|
48
|
-
expect(s.get(k)).to be_within(0.00001).of(v)
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
it 'should return nil outside the data area' do
|
|
53
|
-
s = Spliner::Spliner.new DATASET
|
|
54
|
-
expect(s.get(-1.0)).to be_nil
|
|
55
|
-
expect(s.get(3.0)).to be_nil
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
it 'should generate a smooth curve (predefined points)' do
|
|
59
|
-
s = Spliner::Spliner.new DATASET
|
|
60
|
-
expect(s.get(0.4)).to be_within(0.0001).of(0.5260)
|
|
61
|
-
expect(s.get(0.8)).to be_within(0.0001).of(0.9080)
|
|
62
|
-
expect(s.get(1.2)).to be_within(0.0001).of(1.0080)
|
|
63
|
-
expect(s.get(1.6)).to be_within(0.0001).of(0.8260)
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
it 'should perform linear interpolation in the case of two data points' do
|
|
67
|
-
s = Spliner::Spliner.new({0 => 0, 10.0 => 100.0})
|
|
68
|
-
expect(s.get(3.0)).to be_within(0.0001).of(30.0)
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
it 'supports the [] operator (indexing like)' do
|
|
72
|
-
s = Spliner::Spliner.new DATASET
|
|
73
|
-
expect(s[-1]).to be_nil
|
|
74
|
-
expect(s[0]).to be_within(0.0001).of(0.0)
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
it 'performs :linear extrapolation outside the data range when such is given' do
|
|
78
|
-
s = Spliner::Spliner.new KEYS_0_100, :extrapolate => -200..200
|
|
79
|
-
expect(s.get -110).not_to be_nil
|
|
80
|
-
expect(s.get -150).to be_within(0.0001).of(-150)
|
|
81
|
-
expect(s.get 150).to be_within(0.0001).of(150)
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
it 'performs :hold extrapolation' do
|
|
85
|
-
s = Spliner::Spliner.new KEYS_0_100, :extrapolate => -200..200, :emethod => :hold
|
|
86
|
-
expect(s.get -150).to be_within(0.0001).of(0)
|
|
87
|
-
expect(s.get 150).to be_within(0.0001).of(100)
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
it 'supports data ranges given as a string like "10%"' do
|
|
91
|
-
s1 = Spliner::Spliner.new KEYS_0_100, :extrapolate => '10%'
|
|
92
|
-
expect(s1.range.first).to be_within(0.0001).of(-10.0)
|
|
93
|
-
expect(s1.range.last).to be_within(0.0001).of(110.0)
|
|
94
|
-
|
|
95
|
-
s2 = Spliner::Spliner.new KEYS_0_100, :extrapolate => '10.0%'
|
|
96
|
-
expect(s2.range.first).to be_within(0.0001).of(-10.0)
|
|
97
|
-
expect(s2.range.last).to be_within(0.0001).of(110.0)
|
|
98
|
-
|
|
99
|
-
s3 = Spliner::Spliner.new KEYS_0_100, :extrapolate => '10 %'
|
|
100
|
-
expect(s3.range.first).to be_within(0.0001).of(-10.0)
|
|
101
|
-
expect(s3.range.last).to be_within(0.0001).of(110.0)
|
|
102
|
-
|
|
103
|
-
s4 = Spliner::Spliner.new KEYS_0_100, :extrapolate => 0.1
|
|
104
|
-
expect(s3.range.first).to be_within(0.0001).of(-10.0)
|
|
105
|
-
expect(s3.range.last).to be_within(0.0001).of(110.0)
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
it 'splits data points with duplicate X values into separate sections' do
|
|
109
|
-
s = Spliner::Spliner.new [0.0, 1.0, 1.0, 2.0, 2.0, 3.0], [0.0, 0.0, 1.0, 1.0, 2.0, 2.0], :extrapolate => 3.0..4.0
|
|
110
|
-
expect(s.sections).to eq(3)
|
|
111
|
-
expect(s[-1.0]).to be_nil
|
|
112
|
-
expect(s[0.5]).to be_within(0.0001).of(0.0)
|
|
113
|
-
expect(s[1.5]).to be_within(0.0001).of(1.0)
|
|
114
|
-
expect(s[2.5]).to be_within(0.0001).of(2.0)
|
|
115
|
-
expect(s[3.5]).to be_within(0.0001).of(2.0)
|
|
116
|
-
expect(s[5.0]).to be_nil
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
it 'should accept an array or vector as index' do
|
|
120
|
-
s = Spliner::Spliner.new DATASET
|
|
121
|
-
expect(s[*DATASET.keys]).to eq(DATASET.values)
|
|
122
|
-
expect(s[DATASET.keys]).to eq(DATASET.values)
|
|
123
|
-
expect(s[Vector[*DATASET.keys]]).to eq(Vector[*DATASET.values])
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
it 'should accept an range/enumerator as index' do
|
|
127
|
-
s = Spliner::Spliner.new DATASET
|
|
128
|
-
expect(s[0..2]).to eq(DATASET.values)
|
|
129
|
-
expect(s[(0.0..2.0).step(1.0)]).to eq(DATASET.values)
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
it 'supports the class shortcut method' do
|
|
133
|
-
expect(Spliner::Spliner[DATASET_X, DATASET_Y, 0..2]).to eq(DATASET.values)
|
|
134
|
-
expect(Spliner::Spliner::interpolate(DATASET, 0..2, :extrapolate => '5%')).to eq(DATASET.values)
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
it 'has the option :fix_invalid_x to delete invalid x values (not increasing)' do
|
|
138
|
-
s = Spliner::Spliner.new [0.0, -1.0, -1.1, 0.5, 0.4, 1.0], [0.0, 1.0, 1.0, 0.5, 1.0, 1.0], :extrapolate => '100%', :fix_invalid_x => true
|
|
139
|
-
expect(s[0.5]).to be_within(0.001).of(0.5)
|
|
140
|
-
expect(s[-0.5]).to be_within(0.001).of(-0.5)
|
|
141
|
-
|
|
142
|
-
# not sure why this one is more difficult
|
|
143
|
-
x = [ -0.2006675899028778, -0.15321242064237595, -0.1328744888305664, -0.09355448558926582, -0.055590344592928886, -0.01355862058699131, 0.0, -0.008135172538459301, 0.0, -0.005423448514193296 ]
|
|
144
|
-
y = [ -60.06944274902344, -53.81944274902344, -51.46846008300781, -46.78096008300781, -41.30497741699219, -35.9664306640625, -33.99884033203125, -32.79803466796875, -31.980606079101562, -31.163192749023438 ]
|
|
145
|
-
s2 = Spliner::Spliner.new x, y, :fix_invalid_x => true
|
|
146
|
-
end
|
|
147
|
-
|
|
148
|
-
end
|
data/spliner.gemspec
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
|
2
|
-
$:.push File.expand_path("../lib", __FILE__)
|
|
3
|
-
require "spliner"
|
|
4
|
-
|
|
5
|
-
Gem::Specification.new do |s|
|
|
6
|
-
s.name = "spliner"
|
|
7
|
-
s.version = Spliner::VERSION
|
|
8
|
-
s.authors = ["Tallak Tveide"]
|
|
9
|
-
s.email = ["tallak@tveide.net"]
|
|
10
|
-
s.homepage = "http://www.github.com/tallakt/spliner"
|
|
11
|
-
s.summary = %q{Cubic spline interpolation library}
|
|
12
|
-
s.description = %q{Simple library to perform cubic spline interpolation based on key X,Y values}
|
|
13
|
-
s.required_ruby_version = '>= 1.9.1'
|
|
14
|
-
|
|
15
|
-
s.rubyforge_project = "spliner"
|
|
16
|
-
|
|
17
|
-
s.files = `git ls-files`.split("\n")
|
|
18
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
19
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
20
|
-
s.require_paths = ["lib"]
|
|
21
|
-
|
|
22
|
-
# s.add_runtime_dependency "clamp", '~> 0.3'
|
|
23
|
-
s.add_development_dependency "rspec", '~> 2.11'
|
|
24
|
-
s.add_development_dependency "rake", '~> 0.9'
|
|
25
|
-
end
|