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 +4 -4
- data/lib/learn_open/opener.rb +8 -0
- 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: ce2ee526e0dd5790781fcc9d6abd4460c5c94f3e
|
4
|
+
data.tar.gz: f89659b285891b32ddfe5c6bbb8d9d322a673162
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53f1cf9f6f23374b165cbb7cf641f63139ed4350522ccee70f5a28818a041ebd1e162bc34788c4613faf99b0396611d192f9116d6498f83e50c5ceb83704123a
|
7
|
+
data.tar.gz: efadf59ca00524198128eb63c0a0b1dc9b897df02e544db79461fcb5279d7d6e9e24537ff3be96967a87704dbb899268805f1854e6157092a54108b3fc4280c0
|
data/lib/learn_open/opener.rb
CHANGED
@@ -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
|
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.1.
|
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:
|
11
|
+
date: 2016-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|