skp 0.0.1 → 0.0.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: 8b4c8a28621419fa7ae28ab7b5853e9e3a2dac021cec70f26f299c3a911e8a38
4
- data.tar.gz: 4562f1eae6d022ad7dc7002b42d9c6c65587744f948f3fa5a4ebb24bada6d28b
3
+ metadata.gz: d2bd97ef44aae61798d4299c7ae1d718b252735b08f62de8b21ad4d339bb778c
4
+ data.tar.gz: b38bd12f8b5d647f0c45822951d1ecb1fd987ff1694d0b658824db08495643c4
5
5
  SHA512:
6
- metadata.gz: fd9a6b98c42d7b0022e1064d82c915a4f538ca071d0dba5123663f49be355165429d6320860bb4e4adba8c3af159c45905333c8b0dcbd3425d16d14076d6c2a5
7
- data.tar.gz: e110772fdc6582cc12267a194b260a7f6af3f5456a9819ddb6843e0a01e8555600c1f826cdef4cf755ec3c2c5f8f797abf6c1501e259e62c27c51547c458f648
6
+ metadata.gz: d331d59d1fcb7c38eb3868c6d385592378d9ced638a74de0483f64a551ebccc6073a4da164a6937d858df3f8e4634c5064d0320384d11fd8c73c9b57ecfc152b
7
+ data.tar.gz: cc3ba540bbfbac1adba633af3b3b1ad3f1befcbb73feada38a1644777778809db657b453f9ddfc59dcd6a2bf32c9b11a30175c45664e63d7df61751f0d23f6d8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- skp (0.0.1)
4
+ skp (0.0.2)
5
5
  cli-ui
6
6
  excon
7
7
  thor
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.2
2
+
3
+ * Should list correctly for production
4
+
1
5
  ## 0.0.1
2
6
 
3
7
  * Mostly namespace sitting
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?("Section")
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:#{" " + lesson["title"]}}}")
135
+ puts str + ::CLI::UI.fmt("#{indent}{{yellow:#{lesson["title"]}}}")
134
136
  when "text"
135
- puts str + ::CLI::UI.fmt("{{magenta:#{" " + lesson["title"]}}}")
137
+ puts str + ::CLI::UI.fmt("#{indent}{{magenta:#{lesson["title"]}}}")
136
138
  else
137
- puts str + ::CLI::UI.fmt("{{magenta:#{" " + lesson["title"]}}}")
139
+ puts str + ::CLI::UI.fmt("#{indent}{{magenta:#{lesson["title"]}}}")
138
140
  end
139
141
  end
140
142
 
data/lib/skp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module SKP
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Berkopec