rpw 1.4.0 → 1.4.1

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: 83a9031c1e6053a268195bd32096243b33f75328cf27ca79ecd646b4de2b9ed3
4
- data.tar.gz: 221242a7821edbdbd66e42b6a56a1eb807789e82bc903a61421a6c5d27189b2b
3
+ metadata.gz: 85f7ecbb1ff145d56d6d27f243874ddbf53be414c548e7df75cd13b9c1db7b8a
4
+ data.tar.gz: 320b387e6ad20327f502a0aba06130edf84238e8f91d661c84a293bf12395bb5
5
5
  SHA512:
6
- metadata.gz: 57b5addc24163780426263bed53f08ee9bf71358d1509940d08e6e5d8a4d3b1b0e01010249318e7cd22fdabece0ed66fceea7ea98796d3db2fd1100aa28ff5ff
7
- data.tar.gz: 02f3b22fcaad4f7d4098b6a5ca49cc577dcab04639fae3fe1019fea073ff0c0b54c918bdc4630ea6429650eef89647d77c6be2aa0d7265414c21236888f61d99
6
+ metadata.gz: fd511967c1060335a16b0e1ce1b71ffe3eb1096967b536522fbe9b10dfcdb7923a2fef3cd9542fb02d32a04eb399616c26be553f40479c13c5b5db332e79cd84
7
+ data.tar.gz: 7acaf0763ed13cf8c2ab27ddf028394ecc27c2d39010ede0ce29c0e04340b0c6057bb3dc15d2dd6282dec17415e7d003db67a5085e0291d06878c2ba8b33872e
File without changes
data/.gitignore CHANGED
File without changes
data/.ruby_version CHANGED
File without changes
data/CODE_OF_CONDUCT.md CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rpw (1.4.0)
5
- cli-ui
4
+ rpw (1.4.1)
5
+ cli-ui (~> 2.1.0)
6
6
  excon
7
7
  thor
8
8
  thor-hollaback
@@ -10,41 +10,53 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- ast (2.4.1)
14
- cli-ui (1.5.1)
15
- excon (0.81.0)
16
- hollaback (0.1.0)
17
- minitest (5.14.2)
18
- parallel (1.20.0)
19
- parser (2.7.2.0)
13
+ ast (2.4.2)
14
+ cli-ui (2.1.0)
15
+ excon (0.99.0)
16
+ hollaback (0.1.1)
17
+ json (2.6.3)
18
+ language_server-protocol (3.17.0.3)
19
+ lint_roller (1.0.0)
20
+ minitest (5.18.0)
21
+ parallel (1.23.0)
22
+ parser (3.2.2.1)
20
23
  ast (~> 2.4.1)
21
- rainbow (3.0.0)
22
- rake (13.0.1)
23
- regexp_parser (1.8.2)
24
- rexml (3.2.4)
25
- rubocop (1.2.0)
24
+ rainbow (3.1.1)
25
+ rake (13.0.6)
26
+ regexp_parser (2.8.0)
27
+ rexml (3.2.5)
28
+ rubocop (1.50.2)
29
+ json (~> 2.3)
26
30
  parallel (~> 1.10)
27
- parser (>= 2.7.1.5)
31
+ parser (>= 3.2.0.0)
28
32
  rainbow (>= 2.2.2, < 4.0)
29
- regexp_parser (>= 1.8)
30
- rexml
31
- rubocop-ast (>= 1.0.1)
33
+ regexp_parser (>= 1.8, < 3.0)
34
+ rexml (>= 3.2.5, < 4.0)
35
+ rubocop-ast (>= 1.28.0, < 2.0)
32
36
  ruby-progressbar (~> 1.7)
33
- unicode-display_width (>= 1.4.0, < 2.0)
34
- rubocop-ast (1.1.1)
35
- parser (>= 2.7.1.5)
36
- rubocop-performance (1.8.1)
37
- rubocop (>= 0.87.0)
37
+ unicode-display_width (>= 2.4.0, < 3.0)
38
+ rubocop-ast (1.28.0)
39
+ parser (>= 3.2.1.0)
40
+ rubocop-performance (1.16.0)
41
+ rubocop (>= 1.7.0, < 2.0)
38
42
  rubocop-ast (>= 0.4.0)
39
- ruby-progressbar (1.10.1)
40
- standard (0.9.0)
41
- rubocop (= 1.2.0)
42
- rubocop-performance (= 1.8.1)
43
- thor (1.1.0)
44
- thor-hollaback (0.2.0)
45
- hollaback (~> 0.1.0)
43
+ ruby-progressbar (1.13.0)
44
+ standard (1.28.0)
45
+ language_server-protocol (~> 3.17.0.2)
46
+ lint_roller (~> 1.0)
47
+ rubocop (~> 1.50.2)
48
+ standard-custom (~> 1.0.0)
49
+ standard-performance (~> 1.0.1)
50
+ standard-custom (1.0.0)
51
+ lint_roller (~> 1.0)
52
+ standard-performance (1.0.1)
53
+ lint_roller (~> 1.0)
54
+ rubocop-performance (~> 1.16.0)
55
+ thor (1.2.1)
56
+ thor-hollaback (0.2.1)
57
+ hollaback (~> 0.1)
46
58
  thor (>= 0.19.1)
47
- unicode-display_width (1.7.0)
59
+ unicode-display_width (2.4.2)
48
60
 
49
61
  PLATFORMS
50
62
  ruby
@@ -56,4 +68,4 @@ DEPENDENCIES
56
68
  standard
57
69
 
58
70
  BUNDLED WITH
59
- 2.2.3
71
+ 2.2.33
data/HISTORY.md CHANGED
File without changes
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
data/lib/rpw/README.md CHANGED
File without changes
File without changes
data/lib/rpw/cli/key.rb CHANGED
@@ -9,7 +9,7 @@ module RPW
9
9
  if client.register_email(email)
10
10
  say "Key registered with #{email}. You should receive a Slack invite soon."
11
11
  else
12
- say "Key has already been registered. If you believe this is in error,"\
12
+ say "Key has already been registered. If you believe this is in error," \
13
13
  " please email support@speedshop.co"
14
14
  end
15
15
  end
data/lib/rpw/cli/quiz.rb CHANGED
File without changes
File without changes
data/lib/rpw/cli.rb CHANGED
@@ -255,7 +255,7 @@ module RPW
255
255
 
256
256
  def warn_if_already_started
257
257
  return unless client.setup?
258
- exit(0) unless ::CLI::UI.confirm "You have already started the workshop. Continuing "\
258
+ exit(0) unless ::CLI::UI.confirm "You have already started the workshop. Continuing " \
259
259
  "this command will wipe all of your current progress. Continue?", default: false
260
260
  end
261
261
 
data/lib/rpw/client.rb CHANGED
@@ -31,19 +31,17 @@ module RPW
31
31
  end
32
32
 
33
33
  def list
34
- @list ||= begin
35
- if client_data["content_cache_generated"] &&
36
- client_data["content_cache_generated"] >= Time.now - 60 * 60
34
+ @list ||= if client_data["content_cache_generated"] &&
35
+ client_data["content_cache_generated"] >= Time.now - 60 * 60
37
36
 
37
+ client_data["content_cache"]
38
+ else
39
+ begin
40
+ client_data["content_cache"] = gateway.list_content
41
+ client_data["content_cache_generated"] = Time.now
38
42
  client_data["content_cache"]
39
- else
40
- begin
41
- client_data["content_cache"] = gateway.list_content
42
- client_data["content_cache_generated"] = Time.now
43
- client_data["content_cache"]
44
- rescue
45
- client_data["content_cache"] || (raise Error.new("No internet connection"))
46
- end
43
+ rescue
44
+ client_data["content_cache"] || (raise Error.new("No internet connection"))
47
45
  end
48
46
  end
49
47
  end
@@ -18,7 +18,7 @@ module RPW
18
18
  data[key] = value
19
19
 
20
20
  begin
21
- File.open(filestore_location, "w") { |f| f.write(YAML.dump(data)) }
21
+ File.write(filestore_location, YAML.dump(data))
22
22
  rescue
23
23
  # raise Error, "The RPW data at #{filestore_location} is not writable. \
24
24
  # Check your file permissions."
@@ -62,11 +62,9 @@ module RPW
62
62
 
63
63
  def data
64
64
  @data ||= begin
65
- begin
66
- YAML.safe_load(File.read(filestore_location), permitted_classes: [Time]) || {}
67
- rescue Errno::ENOENT
68
- {}
69
- end
65
+ YAML.safe_load(File.read(filestore_location), permitted_classes: [Time]) || {}
66
+ rescue Errno::ENOENT
67
+ {}
70
68
  end
71
69
  end
72
70
  end
data/lib/rpw/gateway.rb CHANGED
File without changes
data/lib/rpw/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RPW
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
data/lib/rpw.rb CHANGED
File without changes
data/rpw.gemspec CHANGED
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_dependency "thor"
28
28
  spec.add_dependency "thor-hollaback"
29
29
  spec.add_dependency "excon"
30
- spec.add_dependency "cli-ui"
30
+ spec.add_dependency "cli-ui", "~> 2.1.0"
31
31
  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.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Berkopec
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-10 00:00:00.000000000 Z
11
+ date: 1980-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: cli-ui
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 2.1.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 2.1.0
69
69
  description:
70
70
  email:
71
71
  - nate@speedshop.co
@@ -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.2.3
122
+ rubygems_version: 3.3.20
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: A CLI for the Rails Performance Workshop.