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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5ba1c8cf4021a06c945bb2fee832d3767865301
4
- data.tar.gz: 1dfed3060fa300afd18cc6d44f3f4e37df86c534
3
+ metadata.gz: b905fb5b63cd3300320ce1bfe26ee55d41e0e1f5
4
+ data.tar.gz: ce5f7440a90510f44c42390b71a1dc63790508e5
5
5
  SHA512:
6
- metadata.gz: 171ac0be601a18067177eedf1c87e6dc73be08ab86648e93d82c45bf2c3e6331509878cd37992838c098b5c4e0783a0547de501f3daf142375db24165e15dda2
7
- data.tar.gz: 100a6cccff94bf5d6b36368622b85934c4498c12651a10dad5ab9ffd843f7c890de9021afef6e0ed2b589b4dc757e2fc30c935a9d514f7d4552374cd6d7d0855
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
@@ -1,3 +1,3 @@
1
1
  module LearnOpen
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: learn-open
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flatiron School