pandas 0.3.0 → 0.3.1

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
- SHA1:
3
- metadata.gz: eca4c00765b7d95dbfc98d051507dfb3d65e459d
4
- data.tar.gz: e8dd5363b7a711aa3284120834cec25ecf04ff17
2
+ SHA256:
3
+ metadata.gz: 5cec5d04429e07f8534ddf83dc6f9c936ae0b4506028832a7fee98f85152279e
4
+ data.tar.gz: bc753819f9c50e38c5ea354388046586ef85e6b2d11c99613219cdc5eb7b48b9
5
5
  SHA512:
6
- metadata.gz: c7be111f377beb778b0a6ca2ef4418f2b91a116cfd19e598d8d54c889aa6561fdbc296086f9fa0836bdc3177db615b919ecfb2c95edbfdb838c671d0b31e693d
7
- data.tar.gz: e381e982b8e8ff1c490809fea1d6fc97cd67a92186f3e1966b3784e8c43795dff735f9225593389e136c473ee0c357ac0ea54368aa6912dda9a82a84724347a7
6
+ metadata.gz: 18ebe0cca22e7ce90b3bd604be6c4e325e05cd957f631573d7cc58eaa31353e75a2d6d1b86a176aac9e458c5457a86f188df8d84fbb7a5f75a25699d27982418
7
+ data.tar.gz: 822e9a25ba3b591dc9d74b6875baec180a4e1d89e893f0fe612bc5e2f2c0290c0b64ab1564fe80fc2eb0ee59adbaa396e79429bc3a93037f6e8fe66027838cf7
@@ -3,31 +3,23 @@ language: ruby
3
3
 
4
4
  rvm:
5
5
  - ruby-head
6
- - 2.4.0
7
- - 2.3.1
8
- - 2.2.5
9
- - 2.1.10
10
-
11
- addons:
12
- apt:
13
- packages:
14
- - python3
15
- - python3-dev
16
- - python3-all
17
- - python3-all-dev
6
+ - 2.5.1
7
+ - 2.4.4
8
+ - 2.3.7
9
+ - 2.2.10
18
10
 
19
11
  env:
20
12
  matrix:
21
13
  - PYTHON=python
22
- - LIBPYTHON=/opt/python/3.5.3/lib/libpython3.5m.so
14
+ - PYENV_VERSION=3.6 PYTHON=python
23
15
 
24
16
  before_install:
25
17
  - gem update --system
26
18
  - gem update bundler
27
19
 
28
20
  before_script:
29
- - pip install pandas
30
- - pip3 install numpy
21
+ - pip install --user -r requirements.txt
22
+ - PYENV_VERSION=3.6 pip3 install --user -r requirements.txt
31
23
 
32
24
  matrix:
33
25
  allow_failures:
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # The chenge history of Pandas wrapper for Ruby
2
2
 
3
+ ## 0.3.1
4
+
5
+ * Fix `Pandas.read_sql_table` for passing optional parameters such as `index_col`
6
+
3
7
  ## 0.3.0
4
8
 
5
9
  * Fix the module path of `DatetimeIndex` to support pandas < 0.20
@@ -42,7 +42,7 @@ module Pandas
42
42
 
43
43
  IO = self.io
44
44
 
45
- def self.read_sql_table(table_name, conn=nil, *args)
45
+ def self.read_sql_table(table_name, conn=nil, *args, **kwargs)
46
46
  if conn.nil? && IO.is_activerecord_model?(table_name)
47
47
  unless table_name.table_name
48
48
  raise ArgumentError, "The given model does not have its table_name"
@@ -56,15 +56,15 @@ module Pandas
56
56
 
57
57
  if IO.is_activerecord_datasource?(conn)
58
58
  require 'pandas/io/active_record'
59
- return IO::Helpers.read_sql_table_from_active_record(table_name, conn, *args)
59
+ return IO::Helpers.read_sql_table_from_active_record(table_name, conn, *args, **kwargs)
60
60
  end
61
61
  super
62
62
  end
63
63
 
64
- def self.read_sql_query(query, conn, *args)
64
+ def self.read_sql_query(query, conn, *args, **kwargs)
65
65
  if IO.is_activerecord_datasource?(conn)
66
66
  require 'pandas/io/active_record'
67
- return IO::Helpers.read_sql_query_from_active_record(query, conn, *args)
67
+ return IO::Helpers.read_sql_query_from_active_record(query, conn, *args, **kwargs)
68
68
  end
69
69
  super
70
70
  end
@@ -1 +1 @@
1
- PANDAS_VERSION = "0.3.0"
1
+ PANDAS_VERSION = "0.3.1"
@@ -0,0 +1,2 @@
1
+ pandas==0.22.*
2
+ sqlalchemy==1.2.*
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Murata
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-19 00:00:00.000000000 Z
11
+ date: 2018-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pycall
@@ -119,6 +119,7 @@ files:
119
119
  - lib/pandas/options.rb
120
120
  - lib/pandas/version.rb
121
121
  - pandas.gemspec
122
+ - requirements.txt
122
123
  homepage: https://github.com/mrkn/pandas.rb
123
124
  licenses:
124
125
  - MIT
@@ -139,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
140
  version: '0'
140
141
  requirements: []
141
142
  rubyforge_project:
142
- rubygems_version: 2.6.13
143
+ rubygems_version: 2.7.6
143
144
  signing_key:
144
145
  specification_version: 4
145
146
  summary: Pandas wrapper for Ruby