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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8359c877ac261afb15f1b0528ce86a724b754683
4
- data.tar.gz: 50df9f3226ba90e44a18d24f4c266cc7d3fbd44d
3
+ metadata.gz: 1f5a874ff2c2471e447b4f965fb68d13d9bf3120
4
+ data.tar.gz: c77eb3aed8490dc3e878782be60ad5b91d5ccde3
5
5
  SHA512:
6
- metadata.gz: 277251e25bb9b1a1b572a6feec9572cafdc2ad282730c78f7a4af2ae9fdbaf89068d867ada13c66e56418b2fe28fdba85bebbfc60a82277d2d36a66c544427aa
7
- data.tar.gz: 8da87bc9e3130d56ef409ffaf4955647696542f64aefbb6222808f02bad40f5f48f40b7f3183e5fa367787338ba909238f7719ab6d4c3c5e261234be67133050
6
+ metadata.gz: d02bb3169a8a353f02390d1275d006086c366afdae377d7b110165983e922dc495a6357a924526d066b123d4b7025711852aa5621cbbd9a09ee492fbb2408eb5
7
+ data.tar.gz: 71470436b4c147d26aaac06fc56cca79bbe4f7beea3c39af70ba1ad4129f67495417aa8eba3dd57774c0a5dda19eba0e8cd7878bc2c8e3310bc745876e0a94a8
@@ -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
- # TODO: Don't bundle for other types of labs either
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
 
@@ -1,3 +1,3 @@
1
1
  module LearnOpen
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
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.0.1
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-28 00:00:00.000000000 Z
11
+ date: 2015-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler