jupyter_on_rails 0.5.5 → 0.5.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e9bb122b865f0be411380b179256dcaec81418fb45b208a973b75cc95138c62
|
4
|
+
data.tar.gz: 060bb8671e299289e377c4119d3560265262356d859bb77de55e4c2714b201d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bac938faecc1a941d74e3aaf2217784767af6c7245c6d4612a2c679c1455b9927246ea4db6c1cda6b23895badbc8533e1c9359870f919e8a69c218d6ed4a67af
|
7
|
+
data.tar.gz: da7b122b1abc9b90aa7f4f0c58ee803498fb61d426eec47b804eec2aef6f140c577f3ad67bcd59adf1051b8dedd8ea8766349f55f50d7d18e1c1f6445bf66ec7
|
@@ -5,6 +5,16 @@ module JupyterOnRails
|
|
5
5
|
module ActiveRecordExt
|
6
6
|
extend ::ActiveSupport::Concern
|
7
7
|
|
8
|
+
unless respond_to?(:class_methods)
|
9
|
+
def self.class_methods(&class_methods_module_definition)
|
10
|
+
mod = const_defined?(:ClassMethods, false) ?
|
11
|
+
const_get(:ClassMethods) :
|
12
|
+
const_set(:ClassMethods, Module.new)
|
13
|
+
|
14
|
+
mod.module_eval(&class_methods_module_definition)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
8
18
|
class_methods do
|
9
19
|
def to_df
|
10
20
|
relation = all
|
@@ -8,7 +8,7 @@ module JupyterOnRails
|
|
8
8
|
original = Dir.pwd
|
9
9
|
root = IRubyKernelExtention.root
|
10
10
|
Dir.chdir root
|
11
|
-
app_file = File.expand_path('config/
|
11
|
+
app_file = File.expand_path('config/environment.rb', root)
|
12
12
|
require app_file
|
13
13
|
Rails.application.require_environment!
|
14
14
|
Dir.chdir original
|
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.
|
4
|
+
version: 0.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuki INOUE
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
rubygems_version: 3.
|
142
|
+
rubygems_version: 3.1.2
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Integrate jupyter into rails
|