gnuplotrb 0.3.3 → 0.3.4

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: 9e7620d4bd300d9b6af04cfe66558b9105e659bb
4
- data.tar.gz: 4423b56b5572359e1d2c1e5fc3867410fc421bde
3
+ metadata.gz: 0565bcecdb956b436309936bcd581b1cdef790ac
4
+ data.tar.gz: 0ab14013f3cec9a7ec3301b34410911606ee75fe
5
5
  SHA512:
6
- metadata.gz: f7073194b248b622d74f9c8a399b509e160969746dca5f9bad162c7ebad35c1f30f3998dd013d6bee9388dc31399a8b3ee9c8aefe5b85137ccb25aaabf3a7a68
7
- data.tar.gz: 215a258fe6636fe495b7b849ead8c8c234a15f4226a49b5564f2c7cec0cc5c62429a92f92e9c9fb23bac7d407e9c9cee5c7c52cab11e050fbac5bdf3ae464957
6
+ metadata.gz: 7ff911f83b5aabfb25f6fbe91d22b0790156b7dc7a723ec1364de82d8fe99f1ca2110ff55d5e21f9f9f0c9dc0463fea515581b8b8bcd99579231080234a2434d
7
+ data.tar.gz: 948be58c06f703c9a8a9e63ce9e4deba014be815ada8c93c2015d5ad681b371313c877c86c3a1825a1a4a90b28858867802b7e41b4c34fab3cebe8fb4c90552f
@@ -9,7 +9,9 @@ This software has been developed as a product in Google Summer of Code 2015 (GSo
9
9
  {<img src="https://gemnasium.com/dilcom/gnuplotrb.svg" alt="Dependency Status" />}[https://gemnasium.com/dilcom/gnuplotrb]
10
10
 
11
11
  {<img src="https://travis-ci.org/SciRuby/gnuplotrb.svg" alt="Build Status" />}[https://travis-ci.org/SciRuby/gnuplotrb]
12
+
12
13
  {<img src="https://codeclimate.com/github/sciruby/gnuplotrb/badges/gpa.svg" alt="Code quality" />}[https://codeclimate.com/github/sciruby/gnuplotrb]
14
+
13
15
  {<img src="https://codeclimate.com/github/sciruby/gnuplotrb/badges/coverage.svg" alt="Test coverage" />}[https://codeclimate.com/github/sciruby/gnuplotrb]
14
16
 
15
17
  == Table of contents
@@ -249,7 +249,9 @@ module GnuplotRB
249
249
  # Create new value for 'using' option based on column count
250
250
  def get_daru_columns(data, cnt)
251
251
  new_opt = (2..cnt).to_a.join(':')
252
- if data.index.key(0).is_a?(DateTime) || data.index.key(0).is_a?(Numeric)
252
+ # check if DateTimeIndex. If not, assume it is Daru::Index and check for
253
+ # numeric value in the index.
254
+ if data.index.instance_of?(Daru::DateTimeIndex) || data.index.first[0].is_a?(Numeric)
253
255
  "1:#{new_opt}"
254
256
  else
255
257
  "#{new_opt}:xtic(1)"
@@ -4,5 +4,5 @@
4
4
  module GnuplotRB
5
5
  ##
6
6
  # Gem version
7
- VERSION = '0.3.3'
7
+ VERSION = '0.3.4'
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.3
4
+ version: 0.3.4
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-16 00:00:00.000000000 Z
11
+ date: 2016-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hamster