skp 0.0.2 → 1.0.0

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
  SHA256:
3
- metadata.gz: d2bd97ef44aae61798d4299c7ae1d718b252735b08f62de8b21ad4d339bb778c
4
- data.tar.gz: b38bd12f8b5d647f0c45822951d1ecb1fd987ff1694d0b658824db08495643c4
3
+ metadata.gz: 7d44afe64d8c5f5d293a774165b9b074630d0c2f6e3bc038555f8021fd69e536
4
+ data.tar.gz: 15fb0856802f26b770335525fa177c9ea79e74363d2468294df2a6c5c0aab8a0
5
5
  SHA512:
6
- metadata.gz: d331d59d1fcb7c38eb3868c6d385592378d9ced638a74de0483f64a551ebccc6073a4da164a6937d858df3f8e4634c5064d0320384d11fd8c73c9b57ecfc152b
7
- data.tar.gz: cc3ba540bbfbac1adba633af3b3b1ad3f1befcbb73feada38a1644777778809db657b453f9ddfc59dcd6a2bf32c9b11a30175c45664e63d7df61751f0d23f6d8
6
+ metadata.gz: eda534dda4f487e7c035e87ab7ccf1559dc99f148ee7224b18373a4afac9de560c4957423dce3b556c877bfed2fcaee21c1faafc13363d2b0b348f803a1a2f13
7
+ data.tar.gz: f6c5de67929e38beeb8a7964573bbf32822e8f9a6d189c60d185087f720b23ffae840f99f83f856b50b1dac9405c6fc45e1121325c6f8547621a980a766a20b1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- skp (0.0.2)
4
+ skp (1.0.0)
5
5
  cli-ui
6
6
  excon
7
7
  thor
data/lib/skp/cli.rb CHANGED
@@ -228,10 +228,15 @@ module SKP
228
228
  when "text"
229
229
  location = "text/#{content["s3_key"]}"
230
230
  openable = true
231
- when "cgrp"
232
- say "The Complete Guide to Rails Performance has been downloaded and extracted to the ./cgrp directory."
233
- say "All source code for the CGRP is in the src directory, PDF and other compiled formats are in the release directory."
231
+ when "compiled"
232
+ say "Sidekiq in Practice is primarily designed to be experienced via this CLI."
233
+ say "However, PDF and other compiled formats are in your ./compiled directory."
234
234
  say "You can check it out now, or to continue: $ skp next "
235
+ when "prof_gray"
236
+ say "Sidekiq in Practice has several hands-on labs to help you to understand the workshop."
237
+ say "We've downlaoded some supporting files in ./prof_gray"
238
+ say "You will need to read these files to work on the labs, but don't modify them."
239
+ say "You can check them out now, or to continue: $ skp next "
235
240
  end
236
241
  if location
237
242
  if openable && !open_after
data/lib/skp/client.rb CHANGED
@@ -53,7 +53,7 @@ module SKP
53
53
  end
54
54
 
55
55
  def directory_setup(home_dir_ok = true)
56
- ["video", "quiz", "lab", "text", "cgrp"].each do |path|
56
+ ["video", "quiz", "lab", "text", "compiled", "prof_gray"].each do |path|
57
57
  FileUtils.mkdir_p(path) unless File.directory?(path)
58
58
  end
59
59
 
@@ -71,7 +71,8 @@ module SKP
71
71
  f.puts "quiz\n"
72
72
  f.puts "lab\n"
73
73
  f.puts "text\n"
74
- f.puts "cgrp\n"
74
+ f.puts "compiled\n"
75
+ f.puts "prof_gray\n"
75
76
  end
76
77
  end
77
78
 
@@ -117,7 +118,7 @@ module SKP
117
118
  end
118
119
 
119
120
  def directories_ready?
120
- ["video", "quiz", "lab", "text", "cgrp"].all? do |path|
121
+ ["video", "quiz", "lab", "text", "compiled"].all? do |path|
121
122
  File.directory?(path)
122
123
  end
123
124
  end
@@ -152,7 +153,8 @@ module SKP
152
153
 
153
154
  def extract_content(content)
154
155
  folder = content["style"]
155
- `tar -C #{folder} -xzf #{folder}/#{content["s3_key"]}`
156
+ `tar -C #{folder} -xzf #{File.join(folder, content["s3_key"])}`
157
+ File.delete(File.join(folder, content["s3_key"]))
156
158
  end
157
159
  end
158
160
  end
data/lib/skp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module SKP
2
- VERSION = "0.0.2"
2
+ VERSION = "1.0.0"
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.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Berkopec