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: 769af5be4c72d1dce0739d209f0db7002fa8816f9bd471acd0bed6b3904d8669
4
- data.tar.gz: ad10d114debe205827a83f766363ef4221b4b15c2556593f70ac3000a6dcac52
3
+ metadata.gz: 0e9bb122b865f0be411380b179256dcaec81418fb45b208a973b75cc95138c62
4
+ data.tar.gz: 060bb8671e299289e377c4119d3560265262356d859bb77de55e4c2714b201d6
5
5
  SHA512:
6
- metadata.gz: 1938f2c92fdd5f4c0465b06a16e71c2648e2fac680e6a0b6ccf6fed7cbd68d21b8f0d7731a177b577bb38b99e3fc7206f6794fd1fd1629c4532b25cecc9646b6
7
- data.tar.gz: c4fec94fd82d5a61776f2b707872718de2baf45165d0c5785037300aa21295417dd5f8d9a88f8b4b16d369c940300124b1036ec650cc9ce3fd3b961d4efb33a1
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/application.rb', root)
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
@@ -1,3 +1,3 @@
1
1
  module JupyterOnRails
2
- VERSION = '0.5.5'
2
+ VERSION = '0.5.6'
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.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: 2019-12-28 00:00:00.000000000 Z
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.0.3
142
+ rubygems_version: 3.1.2
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: Integrate jupyter into rails