jupyter_on_rails 0.3.3 → 0.3.4

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: ba335a09d5aecedd15abc42f2e1fe424b114d0c83e30ef0c7465cddffacfad6f
4
- data.tar.gz: 7384504fd09f29e01d5be8db0e569de835fb051f4b85f02f74d494ad042550cf
3
+ metadata.gz: 6500d132489c7b40c8502a6d4d95f0cd4e314bccb33b26d3693206a27046c988
4
+ data.tar.gz: 6d928c989159b0bddd3dc2df4489e190863217bc8fe5e6c2d9baeb3446678852
5
5
  SHA512:
6
- metadata.gz: c1fd9f6b7c6bc050a2660e2da583f410b54db6532ac291506cf3eb59593992e20b19a422d200dfad16ff8500115d77dba714f1e33e0be2432813ae9596099ded
7
- data.tar.gz: 9aa00bec7182613fd0866f5e9fb0b8ea8b5786fe47689d45ac3d2a5e22bd5cab368948430bab5431c21dfa671944b3778b4768f0f88a5e48c45db67377f19321
6
+ metadata.gz: 271038f2cf2635d8fad00f9ed23edee77a6a0743201f7fe590a1c834492cb6e87d04681c92ae53f1824f4133d41b37729fdd8d3a47d2e9f82e6a08b35a9b1b04
7
+ data.tar.gz: 2488dff0517374702c01e6ebf36d5a8c8a170741aef8a9948a2632edc666d7e2443c609b0ccfd1ccef037b44ff42d3879368cd1b6b0db1210afbd156eb0d4a41
data/README.md CHANGED
@@ -58,6 +58,12 @@ rake jupyter:notebook
58
58
  Eventually, you'll have jupyter opened, and the kernel being available.
59
59
 
60
60
 
61
+ ### ApplicationRecord#to_df
62
+
63
+ ```ruby
64
+ User.to_df # => Daru::DataFrame is returned
65
+ ```
66
+
61
67
  ## Development
62
68
 
63
69
  This is a railtie gem, so you'd probably want to do something like:
@@ -1,9 +1,17 @@
1
- # require_relative 'daru/active_record_ext'
1
+ require_relative 'daru/active_record_ext'
2
2
 
3
3
  module JupyterOnRails
4
4
  class Railtie < ::Rails::Railtie
5
5
  rake_tasks do
6
6
  load 'jupyter_on_rails/railtie/jupyter.rake'
7
7
  end
8
+
9
+ config.before_configuration do
10
+ if defined?(::Daru) && defined?(::ActiveRecord)
11
+ class ::ActiveRecord::Base
12
+ include ::JupyterOnRails::Daru::ActiveRecordExt
13
+ end
14
+ end
15
+ end
8
16
  end
9
17
  end
@@ -1,3 +1,3 @@
1
1
  module JupyterOnRails
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jupyter_on_rails
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
  - Yuki INOUE