learn-open 1.0.1 → 1.0.2
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 +3 -4
- 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: 1f5a874ff2c2471e447b4f965fb68d13d9bf3120
|
4
|
+
data.tar.gz: c77eb3aed8490dc3e878782be60ad5b91d5ccde3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d02bb3169a8a353f02390d1275d006086c366afdae377d7b110165983e922dc495a6357a924526d066b123d4b7025711852aa5621cbbd9a09ee492fbb2408eb5
|
7
|
+
data.tar.gz: 71470436b4c147d26aaac06fc56cca79bbe4f7beea3c39af70ba1ad4129f67495417aa8eba3dd57774c0a5dda19eba0e8cd7878bc2c8e3310bc745876e0a94a8
|
data/lib/learn_open/opener.rb
CHANGED
@@ -24,6 +24,7 @@ module LearnOpen
|
|
24
24
|
else
|
25
25
|
fork_repo
|
26
26
|
clone_repo
|
27
|
+
bundle_install
|
27
28
|
open_with_editor
|
28
29
|
cd_to_lesson
|
29
30
|
end
|
@@ -176,16 +177,14 @@ module LearnOpen
|
|
176
177
|
def cd_to_lesson
|
177
178
|
puts "Opening lesson..."
|
178
179
|
Dir.chdir("#{lessons_dir}/#{repo_dir}")
|
179
|
-
bundle_install
|
180
180
|
puts "Done."
|
181
181
|
exec("#{ENV['SHELL']} -l")
|
182
182
|
end
|
183
183
|
|
184
184
|
def bundle_install
|
185
|
-
|
186
|
-
if !ios_lesson?
|
185
|
+
if !ios_lesson? && File.exists?("#{lessons_dir}/#{repo_dir}/Gemfile")
|
187
186
|
puts "Bundling..."
|
188
|
-
system("bundle install &>/dev/null")
|
187
|
+
system("cd #{lessons_dir}/#{repo_dir} && bundle install &>/dev/null")
|
189
188
|
end
|
190
189
|
end
|
191
190
|
|
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.0.
|
4
|
+
version: 1.0.2
|
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-05-
|
11
|
+
date: 2015-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|