gnuplotrb 0.3.2 → 0.3.3
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 +4 -4
- data/gnuplotrb.gemspec +1 -1
- data/lib/gnuplotrb/multiplot.rb +1 -1
- data/lib/gnuplotrb/plot.rb +2 -2
- data/lib/gnuplotrb/staff/dataset.rb +3 -3
- data/lib/gnuplotrb/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e7620d4bd300d9b6af04cfe66558b9105e659bb
|
|
4
|
+
data.tar.gz: 4423b56b5572359e1d2c1e5fc3867410fc421bde
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f7073194b248b622d74f9c8a399b509e160969746dca5f9bad162c7ebad35c1f30f3998dd013d6bee9388dc31399a8b3ee9c8aefe5b85137ccb25aaabf3a7a68
|
|
7
|
+
data.tar.gz: 215a258fe6636fe495b7b849ead8c8c234a15f4226a49b5564f2c7cec0cc5c62429a92f92e9c9fb23bac7d407e9c9cee5c7c52cab11e050fbac5bdf3ae464957
|
data/gnuplotrb.gemspec
CHANGED
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(/^(test|spec|unimplemented_features|examples|future_work|notebooks|\..+)/) }
|
|
19
19
|
spec.require_paths = ['lib']
|
|
20
20
|
|
|
21
|
-
spec.add_runtime_dependency 'hamster', '~>
|
|
21
|
+
spec.add_runtime_dependency 'hamster', '~> 3.0'
|
|
22
22
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
|
23
23
|
spec.add_development_dependency 'rake', '~> 10.0'
|
|
24
24
|
spec.add_development_dependency 'rspec', '~> 3.2'
|
data/lib/gnuplotrb/multiplot.rb
CHANGED
|
@@ -26,7 +26,7 @@ module GnuplotRB
|
|
|
26
26
|
# @param options [Hash] see options in top class docs
|
|
27
27
|
def initialize(*plots, **options)
|
|
28
28
|
@plots = plots[0].is_a?(Hamster::Vector) ? plots[0] : Hamster::Vector.new(plots)
|
|
29
|
-
@options = Hamster
|
|
29
|
+
@options = Hamster::Hash[options]
|
|
30
30
|
OptionHandling.validate_terminal_options(@options)
|
|
31
31
|
yield(self) if block_given?
|
|
32
32
|
end
|
data/lib/gnuplotrb/plot.rb
CHANGED
|
@@ -49,9 +49,9 @@ module GnuplotRB
|
|
|
49
49
|
# had to relace **options arg with this because in some cases
|
|
50
50
|
# Daru::DataFrame was mentioned as hash and added to options
|
|
51
51
|
# instead of plots
|
|
52
|
-
@options = Hamster.
|
|
52
|
+
@options = Hamster::Hash.empty
|
|
53
53
|
if datasets[-1].is_a?(Hamster::Hash) || datasets[-1].is_a?(Hash)
|
|
54
|
-
@options = Hamster
|
|
54
|
+
@options = Hamster::Hash[datasets[-1]]
|
|
55
55
|
datasets = datasets[0..-2]
|
|
56
56
|
end
|
|
57
57
|
@datasets = parse_datasets_array(datasets)
|
|
@@ -234,7 +234,7 @@ module GnuplotRB
|
|
|
234
234
|
# Initialize Dataset from given String
|
|
235
235
|
def init_string(data, options)
|
|
236
236
|
@type, @data = File.exist?(data) ? [:datafile, "'#{data}'"] : [:math_function, data.clone]
|
|
237
|
-
@options = Hamster
|
|
237
|
+
@options = Hamster::Hash[options]
|
|
238
238
|
end
|
|
239
239
|
|
|
240
240
|
##
|
|
@@ -242,7 +242,7 @@ module GnuplotRB
|
|
|
242
242
|
def init_dblock(data, options)
|
|
243
243
|
@type = :datablock
|
|
244
244
|
@data = data.clone
|
|
245
|
-
@options = Hamster
|
|
245
|
+
@options = Hamster::Hash[options]
|
|
246
246
|
end
|
|
247
247
|
|
|
248
248
|
##
|
|
@@ -288,7 +288,7 @@ module GnuplotRB
|
|
|
288
288
|
def init_default(data, file: false, **options)
|
|
289
289
|
@type = :datablock
|
|
290
290
|
@data = Datablock.new(data, file)
|
|
291
|
-
@options = Hamster
|
|
291
|
+
@options = Hamster::Hash[options]
|
|
292
292
|
end
|
|
293
293
|
end
|
|
294
294
|
end
|
data/lib/gnuplotrb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gnuplotrb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Evgrafov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-03-
|
|
11
|
+
date: 2016-03-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: hamster
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '3.0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '3.0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: bundler
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -190,3 +190,4 @@ signing_key:
|
|
|
190
190
|
specification_version: 4
|
|
191
191
|
summary: Ruby bindings for gnuplot
|
|
192
192
|
test_files: []
|
|
193
|
+
has_rdoc:
|