jupyter_on_rails 0.5.6 → 0.6.0

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
2
  SHA256:
3
- metadata.gz: 0e9bb122b865f0be411380b179256dcaec81418fb45b208a973b75cc95138c62
4
- data.tar.gz: 060bb8671e299289e377c4119d3560265262356d859bb77de55e4c2714b201d6
3
+ metadata.gz: 5b770fb766b3166356d90236e096219f1813db9335fe51bdbe6fec4ec40a5f03
4
+ data.tar.gz: 4b87ac90a2fd6bea134c5b2a7a71e136280a3210d6602ef8407a03365fd8edab
5
5
  SHA512:
6
- metadata.gz: bac938faecc1a941d74e3aaf2217784767af6c7245c6d4612a2c679c1455b9927246ea4db6c1cda6b23895badbc8533e1c9359870f919e8a69c218d6ed4a67af
7
- data.tar.gz: da7b122b1abc9b90aa7f4f0c58ee803498fb61d426eec47b804eec2aef6f140c577f3ad67bcd59adf1051b8dedd8ea8766349f55f50d7d18e1c1f6445bf66ec7
6
+ metadata.gz: 277d7e526c9cbb7ef6b6baf2ac4171e714878fa3b2b2608c3bf1bce1aaa4ddf0b6fc52c94dd2715c7fabc244d1b52a4f483926e1a073a251c98125c2b1cfe00b
7
+ data.tar.gz: 789d5abb172385ee727f05d037be94377bf3bce09824831117ec6c1a1758632faeb5caa81e4a433f45a1d31fde122aea3df9982ab425426374e82d12e36dcac0
@@ -5,6 +5,7 @@ module JupyterOnRails
5
5
  module ActiveRecordExt
6
6
  extend ::ActiveSupport::Concern
7
7
 
8
+ # Rails 4.0 support
8
9
  unless respond_to?(:class_methods)
9
10
  def self.class_methods(&class_methods_module_definition)
10
11
  mod = const_defined?(:ClassMethods, false) ?
@@ -44,6 +45,10 @@ module JupyterOnRails
44
45
  ::Daru::DataFrame.new(datas)
45
46
  end
46
47
  end
48
+
49
+ def to_df
50
+ ::Daru::DataFrame.new([attributes])
51
+ end
47
52
  end
48
53
  end
49
54
  end
@@ -1,3 +1,3 @@
1
1
  module JupyterOnRails
2
- VERSION = '0.5.6'
2
+ VERSION = '0.6.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jupyter_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuki INOUE
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-15 00:00:00.000000000 Z
11
+ date: 2020-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake