skp 0.0.1 → 0.0.2
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/Gemfile.lock +1 -1
- data/HISTORY.md +4 -0
- data/lib/skp/cli.rb +7 -5
- data/lib/skp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2bd97ef44aae61798d4299c7ae1d718b252735b08f62de8b21ad4d339bb778c
|
4
|
+
data.tar.gz: b38bd12f8b5d647f0c45822951d1ecb1fd987ff1694d0b658824db08495643c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d331d59d1fcb7c38eb3868c6d385592378d9ced638a74de0483f64a551ebccc6073a4da164a6937d858df3f8e4634c5064d0320384d11fd8c73c9b57ecfc152b
|
7
|
+
data.tar.gz: cc3ba540bbfbac1adba633af3b3b1ad3f1befcbb73feada38a1644777778809db657b453f9ddfc59dcd6a2bf32c9b11a30175c45664e63d7df61751f0d23f6d8
|
data/Gemfile.lock
CHANGED
data/HISTORY.md
CHANGED
data/lib/skp/cli.rb
CHANGED
@@ -106,7 +106,7 @@ module SKP
|
|
106
106
|
|
107
107
|
frame_open = false
|
108
108
|
client.list.each do |lesson|
|
109
|
-
if lesson["title"].start_with?("
|
109
|
+
if lesson["title"].start_with?("Sidekiq in Practice")
|
110
110
|
::CLI::UI::Frame.close(nil) if frame_open
|
111
111
|
::CLI::UI::Frame.open(lesson["title"])
|
112
112
|
frame_open = true
|
@@ -124,17 +124,19 @@ module SKP
|
|
124
124
|
"\u{274C} "
|
125
125
|
end
|
126
126
|
|
127
|
+
indent = lesson["indent"].to_i || 0
|
128
|
+
indent = " " * indent
|
127
129
|
case lesson["style"]
|
128
130
|
when "video"
|
129
|
-
puts str + ::CLI::UI.fmt("{{red:#{lesson["title"]}}}")
|
131
|
+
puts str + ::CLI::UI.fmt("#{indent}{{red:#{lesson["title"]}}}")
|
130
132
|
when "quiz"
|
131
133
|
# puts ::CLI::UI.fmt "{{green:#{" " + lesson["title"]}}}"
|
132
134
|
when "lab"
|
133
|
-
puts str + ::CLI::UI.fmt("{{yellow:#{
|
135
|
+
puts str + ::CLI::UI.fmt("#{indent}{{yellow:#{lesson["title"]}}}")
|
134
136
|
when "text"
|
135
|
-
puts str + ::CLI::UI.fmt("{{magenta:#{
|
137
|
+
puts str + ::CLI::UI.fmt("#{indent}{{magenta:#{lesson["title"]}}}")
|
136
138
|
else
|
137
|
-
puts str + ::CLI::UI.fmt("{{magenta:#{
|
139
|
+
puts str + ::CLI::UI.fmt("#{indent}{{magenta:#{lesson["title"]}}}")
|
138
140
|
end
|
139
141
|
end
|
140
142
|
|
data/lib/skp/version.rb
CHANGED