learn-open 1.2.12 → 1.2.13
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 +2 -3
- data/lib/learn_open/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09c7a59b07714fca681875bd28551d961c8462b2'
|
4
|
+
data.tar.gz: f1d9855e74f517a604d28519bed71d9f5f42fdce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c946ec777f744074504aa60c0e6f941ac84ce89aa45abd16b94649d8c7a1746b35eed3053fd2a57d443f1b27517c48e95e85b69492703f899a025a4163f1951
|
7
|
+
data.tar.gz: a69de8ad9762fa0923196e405d89eabb3e06b0374811b497ac878cc2c144041d888e1df392149f4c7938bc7501532bae964f382928a5ee75c53d938f5885da11
|
data/lib/learn_open/opener.rb
CHANGED
@@ -34,6 +34,7 @@ module LearnOpen
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
+
puts "Looking for lesson..."
|
37
38
|
warn_if_necessary
|
38
39
|
|
39
40
|
if lesson_is_readme?
|
@@ -122,21 +123,18 @@ module LearnOpen
|
|
122
123
|
File.write(file_path, 'Getting lesson...')
|
123
124
|
|
124
125
|
if !lesson && !get_next_lesson
|
125
|
-
puts "Getting current lesson..."
|
126
126
|
self.lesson = get_current_lesson_forked_repo
|
127
127
|
self.lesson_is_lab = current_lesson.lab
|
128
128
|
self.lesson_id = current_lesson.id
|
129
129
|
self.later_lesson = false
|
130
130
|
self.dot_learn = current_lesson.dot_learn
|
131
131
|
elsif !lesson && get_next_lesson
|
132
|
-
puts "Getting next lesson..."
|
133
132
|
self.lesson = get_next_lesson_forked_repo
|
134
133
|
self.lesson_is_lab = next_lesson.lab
|
135
134
|
self.lesson_id = next_lesson.id
|
136
135
|
self.later_lesson = false
|
137
136
|
self.dot_learn = next_lesson.dot_learn
|
138
137
|
else
|
139
|
-
puts "Looking for lesson..."
|
140
138
|
self.lesson = ensure_correct_lesson.clone_repo
|
141
139
|
self.lesson_is_lab = correct_lesson.lab
|
142
140
|
self.lesson_id = correct_lesson.lesson_id
|
@@ -365,6 +363,7 @@ module LearnOpen
|
|
365
363
|
|
366
364
|
def open_readme
|
367
365
|
if ide_environment?
|
366
|
+
puts "Opening readme..."
|
368
367
|
File.open(".custom_commands.log", "w+") do |f|
|
369
368
|
f.puts %Q{{"command": "browser_open", "url": "https://learn.co/lessons/#{lesson_id}"}}
|
370
369
|
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.2.
|
4
|
+
version: 1.2.13
|
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-
|
11
|
+
date: 2017-08-01 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.
|
126
|
+
rubygems_version: 2.6.11
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: Open Learn lessons locally
|