learn-open 1.2.19 → 1.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/learn_open/opener.rb +9 -2
- data/lib/learn_open/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f1f69010fe0e78ce9ea308799cc36239e7d77603
|
|
4
|
+
data.tar.gz: eee935ee7c0a6f6db0d7efbcc76ed290568ac493
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ded2346040ba1f197e1803afa95d7ddfc405c3f7894c50fde7193e0f42cdb07ece60c747480d359f193048b86d87ae65adf96d18f3f5b592eac1d5a299dec8aa
|
|
7
|
+
data.tar.gz: 9cd45be0f1435ac08a9fa4a52a38e3c5ee03f8c9fe3a2e0dbc26ae2756f293695930350494420be5126b600c34f097e081f764e990bf05a7b5b39428bbcfba2f
|
data/lib/learn_open/opener.rb
CHANGED
|
@@ -41,7 +41,7 @@ module LearnOpen
|
|
|
41
41
|
file_tasks
|
|
42
42
|
restore_files
|
|
43
43
|
watch_for_changes
|
|
44
|
-
|
|
44
|
+
jupyter_pip_install
|
|
45
45
|
completion_tasks
|
|
46
46
|
else
|
|
47
47
|
warn_if_necessary
|
|
@@ -351,7 +351,14 @@ module LearnOpen
|
|
|
351
351
|
def pip_install
|
|
352
352
|
if !ios_lesson? && File.exists?("#{lessons_dir}/#{repo_dir}/requirements.txt")
|
|
353
353
|
puts "Installing pip dependencies..."
|
|
354
|
-
system("pip install -r requirements.txt")
|
|
354
|
+
system("python -m pip install -r requirements.txt")
|
|
355
|
+
end
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
def jupyter_pip_install
|
|
359
|
+
if !ios_lesson? && File.exists?("#{lessons_dir}/#{repo_dir}/requirements.txt")
|
|
360
|
+
puts "Installing pip dependencies..."
|
|
361
|
+
system("/opt/conda/bin/python -m pip install -r requirements.txt")
|
|
355
362
|
end
|
|
356
363
|
end
|
|
357
364
|
|
data/lib/learn_open/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: learn-open
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.20
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Flatiron School
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-03-
|
|
11
|
+
date: 2018-03-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
123
123
|
version: '0'
|
|
124
124
|
requirements: []
|
|
125
125
|
rubyforge_project:
|
|
126
|
-
rubygems_version: 2.6.
|
|
126
|
+
rubygems_version: 2.6.14
|
|
127
127
|
signing_key:
|
|
128
128
|
specification_version: 4
|
|
129
129
|
summary: Open Learn lessons locally
|