learn-co 3.9.1 → 3.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/learn-co.gemspec +1 -1
- data/lib/learn/cli.rb +12 -2
- data/lib/learn/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8863104bf9a408e5cc4781f2de5af4e92b55356cdea9cf7afe43728b6f6610ed
|
4
|
+
data.tar.gz: 8f9fb44ca5daebe018c2732a592bbb0b935aec9f050698c7ee386e14f39dc794
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 414a9750cae7f4cc07bc120443f3d5720b019cf6481ae8e4a19392deffdd686985121703e1874ca6bd82b1342db3d1853ba2d97ae4b5f309844a80532182deef
|
7
|
+
data.tar.gz: fd8041b35c72d0d770f51048361e43c08e808befa0f9114d0e4ebec8e029bb686fe3cdb35cf699a08e140ea1a837311b0d4aa84322a60f0c9c073a99aecff098
|
data/learn-co.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_runtime_dependency "learn-config", ">= 1.0.77"
|
26
26
|
spec.add_runtime_dependency "learn-generate", ">= 1.0.16"
|
27
27
|
spec.add_runtime_dependency "learn-hello", ">= 1.0.1"
|
28
|
-
spec.add_runtime_dependency "learn-open", "1.2.
|
28
|
+
spec.add_runtime_dependency "learn-open", "1.2.23"
|
29
29
|
spec.add_runtime_dependency "learn-status", ">= 1.0.1"
|
30
30
|
spec.add_runtime_dependency "learn-submit", "1.3.1"
|
31
31
|
spec.add_runtime_dependency "learn-test", "2.6.1"
|
data/lib/learn/cli.rb
CHANGED
@@ -56,19 +56,29 @@ module Learn
|
|
56
56
|
in your browser.
|
57
57
|
LONGDESC
|
58
58
|
option :editor, required: false, type: :string, aliases: ['e']
|
59
|
+
option :"clone-only", required: false, type: :boolean
|
59
60
|
def open(*lab_name)
|
60
61
|
lab_name = Learn::Lab::Parser.new(lab_name.join(' ')).parse!
|
61
62
|
editor = options[:editor]
|
63
|
+
clone_only = options[:"clone-only"]
|
62
64
|
|
63
|
-
|
65
|
+
command = "learn-open #{lab_name} --editor=#{editor}"
|
66
|
+
command << " --clone-only" if clone_only
|
67
|
+
|
68
|
+
exec(command)
|
64
69
|
end
|
65
70
|
|
66
71
|
desc "next [--editor=editor-binary]", "Open your next lesson [with your editor]"
|
67
72
|
option :editor, required: false, type: :string, aliases: ['e']
|
73
|
+
option :"clone-only", required: false, type: :string
|
68
74
|
def next
|
69
75
|
editor = options[:editor]
|
76
|
+
clone_only = options[:"clone-only"]
|
77
|
+
|
78
|
+
command = "learn-open --next --editor=#{editor}"
|
79
|
+
command << " --clone-only" if clone_only
|
70
80
|
|
71
|
-
exec(
|
81
|
+
exec(command)
|
72
82
|
end
|
73
83
|
|
74
84
|
desc 'whoami', 'Display your Learn gem configuration information'
|
data/lib/learn/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: learn-co
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.9.
|
4
|
+
version: 3.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flatiron School
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.2.
|
103
|
+
version: 1.2.23
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - '='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.2.
|
110
|
+
version: 1.2.23
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: learn-status
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -236,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
236
236
|
version: '0'
|
237
237
|
requirements: []
|
238
238
|
rubyforge_project:
|
239
|
-
rubygems_version: 2.7.
|
239
|
+
rubygems_version: 2.7.7
|
240
240
|
signing_key:
|
241
241
|
specification_version: 4
|
242
242
|
summary: The command line interface to Learn.co.
|