jupyter_on_rails 0.8.0 → 0.8.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
2
  SHA256:
3
- metadata.gz: f2e9d74610e71debbdc6c91f031fa391a2b8e0f3172674cfa73e9cba0cc2742c
4
- data.tar.gz: '08ecc7606a5c011eca37e649838dfc98d3d66c76592aea490ec451e44947d382'
3
+ metadata.gz: 9711a06562424b6dcf2542d0469e883c0b0e0bbd00466a0e924f3f9e5906d786
4
+ data.tar.gz: 95af53e3de6c917318e7fe46b395cbbb82acb06c19504403ae1597269c7827f8
5
5
  SHA512:
6
- metadata.gz: 4d2fc76e92884c5b85dd4feff960665385b460cc8a1f6d9d9fada4b8edd2362eb8f90e702d68c43fb5f3c42168eef37d1705d2e65d1c116986eca61d3515f2a8
7
- data.tar.gz: 04d22ff64f23ac0c95045949489d5dce4bec3f6fc278ccebcc824b8ebf96e3163bc4bbc1201e497f7d6ce6a3b444d34b1d33c660aef0e4e2c29afe7be889fccb
6
+ metadata.gz: fce6869b2b66ad33be239e6a80688023cf2491d4eb8a3779b8cd10f2bc2f0d84e36bbf2f82cdd5e3eca84de7dc40d07f67a741e95b1f87adad0d7f68e7f26be5
7
+ data.tar.gz: d5bad91c4e293a8e2b88f645735cbe1a22061cf23dab010c091561ff57008b2bc9376a3c0cc3e6e33a5b7b9271a58b8fc3c07fd8358acefa70e3d4c5563dd613
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jupyter_on_rails (0.8.0)
4
+ jupyter_on_rails (0.8.1)
5
5
  daru
6
6
  iruby
7
7
  railties
@@ -9,33 +9,33 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionpack (6.0.3.3)
13
- actionview (= 6.0.3.3)
14
- activesupport (= 6.0.3.3)
15
- rack (~> 2.0, >= 2.0.8)
12
+ actionpack (6.1.3.2)
13
+ actionview (= 6.1.3.2)
14
+ activesupport (= 6.1.3.2)
15
+ rack (~> 2.0, >= 2.0.9)
16
16
  rack-test (>= 0.6.3)
17
17
  rails-dom-testing (~> 2.0)
18
18
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
19
- actionview (6.0.3.3)
20
- activesupport (= 6.0.3.3)
19
+ actionview (6.1.3.2)
20
+ activesupport (= 6.1.3.2)
21
21
  builder (~> 3.1)
22
22
  erubi (~> 1.4)
23
23
  rails-dom-testing (~> 2.0)
24
24
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
25
- activesupport (6.0.3.3)
25
+ activesupport (6.1.3.2)
26
26
  concurrent-ruby (~> 1.0, >= 1.0.2)
27
- i18n (>= 0.7, < 2)
28
- minitest (~> 5.1)
29
- tzinfo (~> 1.1)
30
- zeitwerk (~> 2.2, >= 2.2.2)
27
+ i18n (>= 1.6, < 2)
28
+ minitest (>= 5.1)
29
+ tzinfo (~> 2.0)
30
+ zeitwerk (~> 2.3)
31
31
  addressable (2.7.0)
32
32
  public_suffix (>= 2.0.2, < 5.0)
33
33
  ast (2.4.1)
34
- backports (3.20.1)
34
+ backports (3.21.0)
35
35
  bond (0.5.1)
36
36
  builder (3.2.4)
37
37
  bump (0.9.0)
38
- concurrent-ruby (1.1.7)
38
+ concurrent-ruby (1.1.8)
39
39
  crass (1.0.6)
40
40
  daru (0.3)
41
41
  packable (~> 1.3.13)
@@ -45,6 +45,11 @@ GEM
45
45
  multipart-post (>= 1.2, < 3)
46
46
  faraday-http-cache (2.2.0)
47
47
  faraday (>= 0.8)
48
+ ffi (1.15.0)
49
+ ffi-rzmq (2.0.7)
50
+ ffi-rzmq-core (>= 1.0.7)
51
+ ffi-rzmq-core (1.0.7)
52
+ ffi
48
53
  github_changelog_generator (1.15.2)
49
54
  activesupport
50
55
  faraday-http-cache
@@ -53,23 +58,26 @@ GEM
53
58
  rainbow (>= 2.2.1)
54
59
  rake (>= 10.0)
55
60
  retriable (~> 3.0)
56
- i18n (1.8.5)
61
+ i18n (1.8.10)
57
62
  concurrent-ruby (~> 1.0)
58
- iruby (0.4.0)
63
+ iruby (0.5.0)
59
64
  bond (~> 0.5)
60
65
  data_uri (~> 0.1)
61
- mimemagic (~> 0.3)
66
+ ffi-rzmq
67
+ mime-types (>= 3.3.1)
62
68
  multi_json (~> 1.11)
63
- loofah (2.8.0)
69
+ loofah (2.9.1)
64
70
  crass (~> 1.0.2)
65
71
  nokogiri (>= 1.5.9)
66
72
  method_source (1.0.0)
67
- mimemagic (0.3.5)
68
- mini_portile2 (2.5.0)
69
- minitest (5.14.2)
73
+ mime-types (3.3.1)
74
+ mime-types-data (~> 3.2015)
75
+ mime-types-data (3.2021.0225)
76
+ mini_portile2 (2.5.1)
77
+ minitest (5.14.4)
70
78
  multi_json (1.14.1)
71
79
  multipart-post (2.1.1)
72
- nokogiri (1.11.1)
80
+ nokogiri (1.11.3)
73
81
  mini_portile2 (~> 2.5.0)
74
82
  racc (~> 1.4)
75
83
  octokit (4.18.0)
@@ -90,17 +98,17 @@ GEM
90
98
  nokogiri (>= 1.6)
91
99
  rails-html-sanitizer (1.3.0)
92
100
  loofah (~> 2.3)
93
- railties (6.0.3.3)
94
- actionpack (= 6.0.3.3)
95
- activesupport (= 6.0.3.3)
101
+ railties (6.1.3.2)
102
+ actionpack (= 6.1.3.2)
103
+ activesupport (= 6.1.3.2)
96
104
  method_source
97
105
  rake (>= 0.8.7)
98
- thor (>= 0.20.3, < 2.0)
106
+ thor (~> 1.0)
99
107
  rainbow (3.0.0)
100
108
  rake (13.0.1)
101
109
  regexp_parser (2.0.3)
102
110
  retriable (3.1.2)
103
- rexml (3.2.4)
111
+ rexml (3.2.5)
104
112
  rubocop (1.8.0)
105
113
  parallel (~> 1.10)
106
114
  parser (>= 3.0.0.0)
@@ -116,12 +124,11 @@ GEM
116
124
  sawyer (0.8.2)
117
125
  addressable (>= 2.3.5)
118
126
  faraday (> 0.8, < 2.0)
119
- thor (1.0.1)
120
- thread_safe (0.3.6)
121
- tzinfo (1.2.7)
122
- thread_safe (~> 0.1)
127
+ thor (1.1.0)
128
+ tzinfo (2.0.4)
129
+ concurrent-ruby (~> 1.0)
123
130
  unicode-display_width (2.0.0)
124
- zeitwerk (2.4.0)
131
+ zeitwerk (2.4.2)
125
132
 
126
133
  PLATFORMS
127
134
  ruby
@@ -31,8 +31,8 @@ Gem::Specification.new do |spec|
31
31
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
32
32
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
33
33
  `git ls-files -z`.split("\x0")
34
- .reject { |f| f.match(%r{^(test|spec|features)/}) }
35
- .reject { |f| f.match(/\.png$/) }
34
+ .reject { |f| f.match(%r{^(test|spec|features|\.github)/}) }
35
+ .reject { |f| f.match(/(\.gitignore|\.png)$/) }
36
36
  end
37
37
  spec.bindir = 'exe'
38
38
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -21,6 +21,12 @@ namespace :jupyter do
21
21
  root = Rails.root
22
22
  ipython_dir = ENV['JUPYTER_DATA_DIR'] || ENV['IPYTHONDIR'] || root / '.ipython'
23
23
  ipython_dir = File.absolute_path(ipython_dir.to_s)
24
+ application_module =
25
+ if Rails::VERSION::MAJOR >= 6
26
+ Rails.application.class.module_parent
27
+ else
28
+ Rails.application.class.parent
29
+ end
24
30
 
25
31
  sh "JUPYTER_DATA_DIR=#{Shellwords.shellescape(ipython_dir.to_s)} bundle exec iruby register --force"
26
32
 
@@ -35,7 +41,7 @@ namespace :jupyter do
35
41
  kernel_file = File.expand_path("kernels/#{cfg.kernel_name}/kernel.json", ipython_dir.to_s)
36
42
  kernel_h = JSON.parse(File.read(kernel_file))
37
43
  kernel_h['argv'] << File.expand_path(cfg.boot_file, __dir__)
38
- kernel_h['display_name'] = "#{Rails.application.class.parent} (rails #{Rails.version}#{cfg.name_ext})"
44
+ kernel_h['display_name'] = "#{application_module} (rails #{Rails.version}#{cfg.name_ext})"
39
45
  kernel_h['env'] ||= {}
40
46
  kernel_h['env']['RAILS_ROOT'] = root.to_s
41
47
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JupyterOnRails
4
- VERSION = '0.8.0'
4
+ VERSION = '0.8.1'
5
5
  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.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuki INOUE
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-10 00:00:00.000000000 Z
11
+ date: 2021-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bump
@@ -115,9 +115,6 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
- - ".github/FUNDING.yml"
119
- - ".github/workflows/ruby.yml"
120
- - ".gitignore"
121
118
  - ".rubocop.yml"
122
119
  - CHANGELOG.md
123
120
  - Gemfile
@@ -159,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
156
  - !ruby/object:Gem::Version
160
157
  version: '0'
161
158
  requirements: []
162
- rubygems_version: 3.0.3
159
+ rubygems_version: 3.1.4
163
160
  signing_key:
164
161
  specification_version: 4
165
162
  summary: Integrate jupyter into rails
data/.github/FUNDING.yml DELETED
@@ -1,2 +0,0 @@
1
-
2
- issuehunt: yuki-inoue
@@ -1,29 +0,0 @@
1
- name: Ruby
2
-
3
- on:
4
- push:
5
- branches: [ master ]
6
- pull_request:
7
- branches: [ master ]
8
-
9
- jobs:
10
- build:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - uses: actions/checkout@v2
14
- - name: Set up Ruby
15
- uses: actions/setup-ruby@v1
16
- with:
17
- ruby-version: 2.7.2
18
- # https://github.com/actions/cache/blob/master/examples.md#ruby---bundler
19
- - uses: actions/cache@v1
20
- with:
21
- path: vendor/bundle
22
- key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
23
- restore-keys: |
24
- ${{ runner.os }}-gems-
25
- - name: Build and test with Rake
26
- run: |
27
- gem install bundler
28
- bundle install --jobs 4 --retry 3 --path vendor/bundle
29
- bundle exec rubocop
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- /vendor