commit-live-cli 0.0.17 → 0.0.18
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e377dd357db6206e0a5c0060e6b8274a36d095fd
|
4
|
+
data.tar.gz: 1075b218e7137b6de9cef52fc3436bba7c288a6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c2811914b0c82415acbcd257244c45426a61ac18f113e9bd30c490fdaa06c6d227860d6747bc220d609ad45244f6f7e3e427b8d7d37fa79ad89e52541ddc9f5
|
7
|
+
data.tar.gz: fe7d075258dcb6b39a2e8834ace30e836fa9e244ed5271826c5b77ff1bcc333d63614bfc7058ec1598dec0036d2e07c73926e2a1859b844ba27758fef9c67d64
|
@@ -34,11 +34,15 @@ module CommitLive
|
|
34
34
|
)
|
35
35
|
if response.status == 200
|
36
36
|
@lesson = JSON.parse(response.body)
|
37
|
+
elsif response.status == 404
|
38
|
+
puts "Oops you are trying to access a non-existent lesson."
|
39
|
+
exit
|
37
40
|
else
|
38
41
|
sentry.log_message("Get Lesson Failed",
|
39
42
|
{
|
40
43
|
'url' => url,
|
41
|
-
'response' => response.body
|
44
|
+
'response-body' => response.body,
|
45
|
+
'response-status' => response.status
|
42
46
|
}
|
43
47
|
)
|
44
48
|
end
|
@@ -126,6 +126,12 @@ module CommitLive
|
|
126
126
|
puts "Opening lesson..."
|
127
127
|
Dir.chdir("#{rootDir}/#{lesson_name}")
|
128
128
|
puts "Done."
|
129
|
+
if File.exists?("#{HOME_DIR}/.lastdirectory")
|
130
|
+
filename = "#{HOME_DIR}/.lastdirectory"
|
131
|
+
File.open(filename, 'w') do |out|
|
132
|
+
out << "#{rootDir}/#{lesson_name}"
|
133
|
+
end
|
134
|
+
end
|
129
135
|
exec("#{ENV['SHELL']} -l")
|
130
136
|
end
|
131
137
|
|
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.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- greyatom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|