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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a11967424a768d934b06d8dfbf5d2566cd64c6de
4
- data.tar.gz: 3431a5548027a08e34c493e6d6902dd31a4c183f
3
+ metadata.gz: 9e7620d4bd300d9b6af04cfe66558b9105e659bb
4
+ data.tar.gz: 4423b56b5572359e1d2c1e5fc3867410fc421bde
5
5
  SHA512:
6
- metadata.gz: 0159809835bc50598a811ea1e0959da7f9a6829c376b8c41aece0d5b7df543a30dc27fdfdd097e8b663d89a6e54ee74dd156dbd28b2ae5907c4fbb8d61d3b1fc
7
- data.tar.gz: 754af035c5a5ae9e861b2a72f41b25e4ccec476b169cb683fd2614074903a2a5874bef1ced500129a7f73869f267686567b7fe97c9f20dee02e34636906ac256
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', '~> 1.0'
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'
@@ -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.hash(options)
29
+ @options = Hamster::Hash[options]
30
30
  OptionHandling.validate_terminal_options(@options)
31
31
  yield(self) if block_given?
32
32
  end
@@ -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.hash
52
+ @options = Hamster::Hash.empty
53
53
  if datasets[-1].is_a?(Hamster::Hash) || datasets[-1].is_a?(Hash)
54
- @options = Hamster.hash(datasets[-1])
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.hash(options)
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.hash(options)
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.hash(options)
291
+ @options = Hamster::Hash[options]
292
292
  end
293
293
  end
294
294
  end
@@ -4,5 +4,5 @@
4
4
  module GnuplotRB
5
5
  ##
6
6
  # Gem version
7
- VERSION = '0.3.2'
7
+ VERSION = '0.3.3'
8
8
  end
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.2
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-10 00:00:00.000000000 Z
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: '1.0'
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: '1.0'
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: