commit-live-cli 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/commit-live/lesson/open.rb +7 -0
- data/lib/commit-live/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76f8617f84423b4c64126be14e2aeca1e124e930
|
4
|
+
data.tar.gz: 8c4b4949aad04cbdd8724cc1e55a7147ff2347b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c943c8eae4980504dd4eb4716ee19cc0ad7927a5316a9ae7d74967ccc01a89bfdc35bf5b580593584a3bb58f9e8128d47053a5faae33f92459ffcd941718d9ff
|
7
|
+
data.tar.gz: 511257c92df794e97893ee0aa04e95090189709dffca74a6565384b82acc96ee5291ff18fa33ced003aa89f41c7b7245fd09525fcf943d51d9b84dc289169ab9
|
@@ -25,10 +25,17 @@ module CommitLive
|
|
25
25
|
puts "Getting current lesson..."
|
26
26
|
lesson.getCurrentLesson(puzzle_name)
|
27
27
|
lessonData = lesson.getAttr('data')
|
28
|
+
isAssignment = false;
|
28
29
|
if !lessonData['current_track'].nil?
|
29
30
|
@lessonName = lessonData['current_track']['track_slug']
|
31
|
+
isAssignment = lessonData['current_track']['assignment_flag']
|
30
32
|
else
|
31
33
|
@lessonName = lessonData['track_slug']
|
34
|
+
isAssignment = lessonData['assignment_flag']
|
35
|
+
end
|
36
|
+
if !isAssignment
|
37
|
+
puts "This is a read only lesson!"
|
38
|
+
exit
|
32
39
|
end
|
33
40
|
if !File.exists?("#{rootDir}/#{lessonName}")
|
34
41
|
# fork lesson repo via github api
|
data/lib/commit-live/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commit-live-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- greyatom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|