learn-open 1.2.16 → 1.2.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/learn_open/opener.rb +9 -1
- data/lib/learn_open/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 522d80592f2f4b77c7e6ffeada39972ce6158a22
|
4
|
+
data.tar.gz: 84c90c4b99bab33bc60f03a7fdebf2847ca59c4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b44ff292a99453a36e076c412c0d7dc5822e1b8b721fa3aa1f56038b95a9fbf1563d403daa5bb8da04d7a5b256b91f190852bf21a96865ea087bfaf5451ec83
|
7
|
+
data.tar.gz: 34cd501255cd85334186655b8c54062e06966ba8a678e288924baa8ea09cd56b72a561eea4f55d106e77523dca1280ceca4ba605feec73541835461efdef8d93
|
data/lib/learn_open/opener.rb
CHANGED
@@ -346,6 +346,13 @@ module LearnOpen
|
|
346
346
|
Dir.chdir("#{lessons_dir}/#{repo_dir}")
|
347
347
|
end
|
348
348
|
|
349
|
+
def pip_install
|
350
|
+
if !ios_lesson? && File.exists?("#{lessons_dir}/#{repo_dir}/requirements.txt")
|
351
|
+
puts "Installing pip dependencies..."
|
352
|
+
system("pip install -r requirements.txt")
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
349
356
|
def bundle_install
|
350
357
|
if !ios_lesson? && File.exists?("#{lessons_dir}/#{repo_dir}/Gemfile")
|
351
358
|
puts "Bundling..."
|
@@ -355,7 +362,7 @@ module LearnOpen
|
|
355
362
|
|
356
363
|
def npm_install
|
357
364
|
if !ios_lesson? && File.exists?("#{lessons_dir}/#{repo_dir}/package.json")
|
358
|
-
puts 'Installing dependencies...'
|
365
|
+
puts 'Installing npm dependencies...'
|
359
366
|
|
360
367
|
if ide_environment?
|
361
368
|
system("yarn install --no-lockfile")
|
@@ -447,6 +454,7 @@ module LearnOpen
|
|
447
454
|
def dependency_tasks
|
448
455
|
bundle_install
|
449
456
|
npm_install
|
457
|
+
pip_install
|
450
458
|
end
|
451
459
|
|
452
460
|
def restore_files
|
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.17
|
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-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|