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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5327edfc8e1ca5a73cbb463ee74ad9cc8f749841c7951f8eab284519e88fd718
4
- data.tar.gz: 8514af2a055cbb25007bb2eb8bdd3afe47badcac9a51ec98981a74f512d7eebc
3
+ metadata.gz: 8863104bf9a408e5cc4781f2de5af4e92b55356cdea9cf7afe43728b6f6610ed
4
+ data.tar.gz: 8f9fb44ca5daebe018c2732a592bbb0b935aec9f050698c7ee386e14f39dc794
5
5
  SHA512:
6
- metadata.gz: 418fd652b92c745e48bb29d974cbc4c0c7a3f9986c792e62fddeccea26a45d1df63bc15349df0bc023b49e4028cc29819c5eafbf144298600221e65be2921780
7
- data.tar.gz: 5cdbe9a089f6a2872e1babb7ddc45dbc159c25a9b93f398a7a14d6aea8572b4ca0730b170fabbd4f8bee8336768baa4c01d9cc06d9114955263cf980be774258
6
+ metadata.gz: 414a9750cae7f4cc07bc120443f3d5720b019cf6481ae8e4a19392deffdd686985121703e1874ca6bd82b1342db3d1853ba2d97ae4b5f309844a80532182deef
7
+ data.tar.gz: fd8041b35c72d0d770f51048361e43c08e808befa0f9114d0e4ebec8e029bb686fe3cdb35cf699a08e140ea1a837311b0d4aa84322a60f0c9c073a99aecff098
@@ -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.22"
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"
@@ -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
- exec("learn-open #{lab_name} --editor=#{editor}")
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("learn-open --next --editor=#{editor}")
81
+ exec(command)
72
82
  end
73
83
 
74
84
  desc 'whoami', 'Display your Learn gem configuration information'
@@ -1,3 +1,3 @@
1
1
  module Learn
2
- VERSION = '3.9.1'
2
+ VERSION = '3.9.2'
3
3
  end
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.1
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.22
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.22
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.8
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.