learn-open 1.2.14 → 1.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e86d9b89a76b46ea3163969735b907a57cdfeda
4
- data.tar.gz: dc3d72c1baf07d79a84229dbb59de273541913af
3
+ metadata.gz: 6b04c2629427f775f2021dea073bab466e558bea
4
+ data.tar.gz: a9ab94b1a192d9dfd6afa7130dc1bbe84b8f4e16
5
5
  SHA512:
6
- metadata.gz: 32717503ac3d94ba6ee74af3c36f00ae7a29b591fc850c9ef7fca4965895993cf2108027ae9a75d4a37f18b5c63ec43ee6d681d4988ca30f1067d6d841c94b42
7
- data.tar.gz: 66150d631520c67228e995f8333a54f588db680f1c0a5ebac7232b4848b249196226039b87d8a07defe6f155b3672e68cdb930e698c468961fc5947e392b6207
6
+ metadata.gz: 1afef7cf166546a12772c1763a2380f00829d2a5d59212118ee8ef66fe0c7e0625db3726320d184308f1bfd71ab31449ce6064396871b8767c73a7d57f6d3aad
7
+ data.tar.gz: c6f7b9b40fdeeb7df45ff269de71ee1ce8a3735ba547528d077a27bb7b2f5d664b83f1b3d107a71d1476b8a48167109eb4a35997fcd5108e30538f8ab69d91a5
@@ -213,7 +213,7 @@ module LearnOpen
213
213
  File.write(file_path, 'Forking repository...')
214
214
  puts "Forking lesson..."
215
215
 
216
- if !dot_learn || dot_learn[:github] != false
216
+ if !github_disabled?
217
217
  begin
218
218
  Timeout::timeout(15) do
219
219
  client.fork_repo(repo_name: repo_dir)
@@ -262,7 +262,7 @@ module LearnOpen
262
262
  end
263
263
  end
264
264
 
265
- if dot_learn && dot_learn[:github] == false
265
+ if github_disabled?
266
266
  ping_fork_completion
267
267
  end
268
268
  end
@@ -404,11 +404,17 @@ module LearnOpen
404
404
  !!RUBY_PLATFORM.match(/darwin/)
405
405
  end
406
406
 
407
+ def github_disabled?
408
+ !dot_learn.nil? && dot_learn[:github] == false
409
+ end
410
+
407
411
  def ide_environment?
408
412
  ENV['IDE_CONTAINER'] == "true"
409
413
  end
410
414
 
411
415
  def ide_git_wip_enabled?
416
+ return false if github_disabled?
417
+
412
418
  ENV['IDE_GIT_WIP'] == "true"
413
419
  end
414
420
 
@@ -1,3 +1,3 @@
1
1
  module LearnOpen
2
- VERSION = '1.2.14'
2
+ VERSION = '1.2.15'
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.14
4
+ version: 1.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flatiron School
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-01 00:00:00.000000000 Z
11
+ date: 2017-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.6.11
126
+ rubygems_version: 2.4.8
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Open Learn lessons locally