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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c20f9f0402fc03b98cc39ed469aa864b20c9098c
4
- data.tar.gz: 23ed5adc70881d58fde061ae191fcc56a2196986
3
+ metadata.gz: 522d80592f2f4b77c7e6ffeada39972ce6158a22
4
+ data.tar.gz: 84c90c4b99bab33bc60f03a7fdebf2847ca59c4d
5
5
  SHA512:
6
- metadata.gz: b2a7bbe1e2093931f30cdab647ff11a9c3dba9a58c5f25906508135b3b4158c0a3df2834d8c1c682e964b88ccbb17b2698dacce6831747f121d4234486902d5f
7
- data.tar.gz: 8dfc2d6c79bd96de8945093d9db5e89edb8de4108b28bd93d1a203995fc3e5f7c3ccd00330101bad23c5146a53eb73fdce23d2c5eeee1e6e9587545af4c4c2ef
6
+ metadata.gz: 7b44ff292a99453a36e076c412c0d7dc5822e1b8b721fa3aa1f56038b95a9fbf1563d403daa5bb8da04d7a5b256b91f190852bf21a96865ea087bfaf5451ec83
7
+ data.tar.gz: 34cd501255cd85334186655b8c54062e06966ba8a678e288924baa8ea09cd56b72a561eea4f55d106e77523dca1280ceca4ba605feec73541835461efdef8d93
@@ -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
@@ -1,3 +1,3 @@
1
1
  module LearnOpen
2
- VERSION = '1.2.16'
2
+ VERSION = '1.2.17'
3
3
  end
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.16
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-06 00:00:00.000000000 Z
11
+ date: 2018-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler