rpw 1.3.0 → 1.4.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: 4e52497c6e3760c9aa301c8eeae51459c46458625a809847f83a0d660d104754
4
- data.tar.gz: 01aac30eece6c29a294baa6e6859ff3de5afe52cd33c5113527351430169d4b0
3
+ metadata.gz: 83a9031c1e6053a268195bd32096243b33f75328cf27ca79ecd646b4de2b9ed3
4
+ data.tar.gz: 221242a7821edbdbd66e42b6a56a1eb807789e82bc903a61421a6c5d27189b2b
5
5
  SHA512:
6
- metadata.gz: c86fdd2626b6d1e49a9c67c51e5476453799ae1a42013056f20064b59cf151e2779a28f5c6ebc7d0ee700f8cf3a1085f64370fa2282290e9eb80aa359433aa29
7
- data.tar.gz: 74368f4f9e457c67ea43358c0e5fcb253bd38fa8487f5cd3fdd6b683a396b765ca0125d29366318536076fdd553020cc2d9349ca0548b15eeb772974de459bf5
6
+ metadata.gz: 57b5addc24163780426263bed53f08ee9bf71358d1509940d08e6e5d8a4d3b1b0e01010249318e7cd22fdabece0ed66fceea7ea98796d3db2fd1100aa28ff5ff
7
+ data.tar.gz: 02f3b22fcaad4f7d4098b6a5ca49cc577dcab04639fae3fe1019fea073ff0c0b54c918bdc4630ea6429650eef89647d77c6be2aa0d7265414c21236888f61d99
data/.gitignore CHANGED
@@ -3,4 +3,5 @@ bundle
3
3
  .rpw_key
4
4
  .rpw_info
5
5
  smoketest
6
- scripts
6
+ scripts
7
+ .DS_Store
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rpw (1.3.0)
4
+ rpw (1.4.0)
5
5
  cli-ui
6
6
  excon
7
7
  thor
@@ -11,8 +11,8 @@ GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
13
  ast (2.4.1)
14
- cli-ui (1.4.0)
15
- excon (0.78.0)
14
+ cli-ui (1.5.1)
15
+ excon (0.81.0)
16
16
  hollaback (0.1.0)
17
17
  minitest (5.14.2)
18
18
  parallel (1.20.0)
@@ -40,7 +40,7 @@ GEM
40
40
  standard (0.9.0)
41
41
  rubocop (= 1.2.0)
42
42
  rubocop-performance (= 1.8.1)
43
- thor (1.0.1)
43
+ thor (1.1.0)
44
44
  thor-hollaback (0.2.0)
45
45
  hollaback (~> 0.1.0)
46
46
  thor (>= 0.19.1)
@@ -56,4 +56,4 @@ DEPENDENCIES
56
56
  standard
57
57
 
58
58
  BUNDLED WITH
59
- 2.1.4
59
+ 2.2.3
data/HISTORY.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 1.4.0
2
+
3
+ * Add `--quizzes` option to `rpw show`, to see quizzes
4
+
5
+ ## 1.3.1
6
+
7
+ * Removed tar verbose mode
8
+
1
9
  ## 1.3.0
2
10
 
3
11
  * Added suggested schedules to README
@@ -7,11 +15,11 @@
7
15
  * Actual release version!
8
16
  * Greatly streamlined commands
9
17
 
10
- ## 1.1.0
18
+ ## 1.1.0
11
19
 
12
20
  * sick colors
13
21
 
14
- ## 1.0.1
22
+ ## 1.0.1
15
23
 
16
24
  * Pre-launch bugfix
17
25
 
data/lib/rpw/cli.rb CHANGED
@@ -155,11 +155,12 @@ module RPW
155
155
 
156
156
  desc "show", "Show any individal workshop lesson"
157
157
  option :"no-open", type: :boolean
158
+ option :quizzes, type: :boolean
158
159
  def show
159
160
  exit_with_no_key
160
161
  title = ::CLI::UI::Prompt.ask(
161
162
  "Which lesson would you like to view?",
162
- options: client.list.reject { |l| l["title"] == "Quiz" }.map { |l| " " * l["indent"] + l["title"] }
163
+ options: client.list.reject { |l| !options[:quizzes] && l["title"] == "Quiz" }.map { |l| " " * l["indent"] + l["title"] }
163
164
  )
164
165
  title.strip!
165
166
  content_order = client.list.find { |l| l["title"] == title }["position"]
data/lib/rpw/client.rb CHANGED
@@ -152,7 +152,7 @@ module RPW
152
152
 
153
153
  def extract_content(content)
154
154
  folder = content["style"]
155
- `tar -C #{folder} -xvzf #{folder}/#{content["s3_key"]}`
155
+ `tar -C #{folder} -xzf #{folder}/#{content["s3_key"]}`
156
156
  end
157
157
  end
158
158
  end
data/lib/rpw/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RPW
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpw
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Berkopec
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-23 00:00:00.000000000 Z
11
+ date: 2021-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
- rubygems_version: 3.1.4
122
+ rubygems_version: 3.2.3
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: A CLI for the Rails Performance Workshop.