learn-open 1.0.4 → 1.0.5
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/argument_parser.rb +4 -0
- data/lib/learn_open/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b905fb5b63cd3300320ce1bfe26ee55d41e0e1f5
|
4
|
+
data.tar.gz: ce5f7440a90510f44c42390b71a1dc63790508e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65f9eae1a2f1c6c72d6ec80687175492ee0d4c23feb4f69f0eeed5c9162e092f214bf95c208b50462db59d8e1b65f7b7539849a318de3ed8b55b18fd5d2bdad6
|
7
|
+
data.tar.gz: e13ce0aef3e66eb2fef830311f834cb20f621838f018c8e48e73c9be303588d957b191c6e91ab5f6fbb833ea23de67cf94087a4dc7a583b5c7d5dcc63102685d
|
@@ -9,6 +9,10 @@ module LearnOpen
|
|
9
9
|
def execute
|
10
10
|
config_path = File.expand_path('~/.learn-config')
|
11
11
|
editor_data = YAML.load(File.read(config_path))[:editor]
|
12
|
+
if editor_data.match(/ /)
|
13
|
+
editor_data = editor_data.split(' ').first
|
14
|
+
end
|
15
|
+
|
12
16
|
lesson = nil
|
13
17
|
|
14
18
|
configured_editor = !(editor_data.empty? || editor_data.nil?) ? editor_data : nil
|
data/lib/learn_open/version.rb
CHANGED