learn-open 1.1.57 → 1.1.58

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: 9bf065df8624e78cc8719eb490875aa9aa37f454
4
- data.tar.gz: e391cf5d3afe82ba6e0235ef328d9ca5258bdd1c
3
+ metadata.gz: ce2ee526e0dd5790781fcc9d6abd4460c5c94f3e
4
+ data.tar.gz: f89659b285891b32ddfe5c6bbb8d9d322a673162
5
5
  SHA512:
6
- metadata.gz: 369602ed4a34d85ea275a58e8d693a317dcebdeecf0d6f6331de115eb43ef0bb83fb71de31f79b1b0cebb6d96653431010abeda223ededec3b56a5f26faa2483
7
- data.tar.gz: fcd08902cff1fa8b6d604145ecbd0aef6a5fa0491b85900a22a0cac8f7c9a23f78d43b3e9f19434d8654b7431c723f4ae713d4dea3abbda57f745894d4144cbf
6
+ metadata.gz: 53f1cf9f6f23374b165cbb7cf641f63139ed4350522ccee70f5a28818a041ebd1e162bc34788c4613faf99b0396611d192f9116d6498f83e50c5ceb83704123a
7
+ data.tar.gz: efadf59ca00524198128eb63c0a0b1dc9b897df02e544db79461fcb5279d7d6e9e24537ff3be96967a87704dbb899268805f1854e6157092a54108b3fc4280c0
@@ -31,6 +31,7 @@ module LearnOpen
31
31
  fork_repo
32
32
  clone_repo
33
33
  bundle_install
34
+ npm_install
34
35
  open_with_editor
35
36
  cd_to_lesson
36
37
  end
@@ -299,6 +300,13 @@ module LearnOpen
299
300
  end
300
301
  end
301
302
 
303
+ def npm_install
304
+ if !ios_lesson? && File.exists?("#{lessons_dir}/#{repo_dir}/package.json")
305
+ puts "Running npm install..."
306
+ system("cd #{lessons_dir}/#{repo_dir} && npm install &>/dev/null")
307
+ end
308
+ end
309
+
302
310
  def lesson_is_readme?
303
311
  !lesson_is_lab
304
312
  end
@@ -1,3 +1,3 @@
1
1
  module LearnOpen
2
- VERSION = '1.1.57'
2
+ VERSION = '1.1.58'
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.1.57
4
+ version: 1.1.58
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flatiron School
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-04 00:00:00.000000000 Z
11
+ date: 2016-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler