cased-ruby 0.4.8 → 0.5.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 +4 -4
- data/Gemfile.lock +17 -3
- data/cased-ruby.gemspec +1 -0
- data/lib/cased/cli/interactive_session.rb +8 -2
- data/lib/cased/config.rb +1 -1
- data/lib/cased/version.rb +1 -1
- data/vendor/cache/activesupport-6.1.3.2.gem +0 -0
- data/vendor/cache/jwt-2.2.3.gem +0 -0
- data/vendor/cache/pastel-0.8.0.gem +0 -0
- data/vendor/cache/tty-color-0.6.0.gem +0 -0
- data/vendor/cache/tty-cursor-0.7.1.gem +0 -0
- data/vendor/cache/tty-prompt-0.23.1.gem +0 -0
- data/vendor/cache/tty-reader-0.9.0.gem +0 -0
- data/vendor/cache/tty-screen-0.8.1.gem +0 -0
- data/vendor/cache/wisper-2.0.1.gem +0 -0
- metadata +25 -4
- data/vendor/cache/activesupport-6.1.3.1.gem +0 -0
- data/vendor/cache/jwt-2.2.2.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc3d9c43168af4bfb222f063557726b6579ee497059ee14343e422b49f16c879
|
|
4
|
+
data.tar.gz: bfdb95c9831fd38d4ad86a25772aac3a1740c5de33ad3441c4b7edb0a6f173e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1849cbc38766aa621046ba7db1d66e841714a3c8b6005cfc9beda6e606270f83c8429627f3797ce327415f67c55a3db8b3d799c738d446342a283cdb07d3098c
|
|
7
|
+
data.tar.gz: 3bccd4a530a8f5f4384c793570d7cd245fb6a339b5fa5c1df7874bdfcec28f63c21ad90dc3f109a2c9739968c02b69e899ab1f14bfcbf5624b2b6a7620aa2fac
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
cased-ruby (0.
|
|
4
|
+
cased-ruby (0.5.0)
|
|
5
5
|
activesupport (~> 6)
|
|
6
6
|
dotpath (= 0.1.0)
|
|
7
7
|
faraday (~> 1.0)
|
|
@@ -10,11 +10,12 @@ PATH
|
|
|
10
10
|
jwt (~> 2)
|
|
11
11
|
net-http-persistent (~> 3.0)
|
|
12
12
|
subprocess (~> 1.5.0)
|
|
13
|
+
tty-prompt (~> 0.23.0)
|
|
13
14
|
|
|
14
15
|
GEM
|
|
15
16
|
remote: https://rubygems.org/
|
|
16
17
|
specs:
|
|
17
|
-
activesupport (6.1.3.
|
|
18
|
+
activesupport (6.1.3.2)
|
|
18
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
19
20
|
i18n (>= 1.6, < 2)
|
|
20
21
|
minitest (>= 5.1)
|
|
@@ -46,7 +47,7 @@ GEM
|
|
|
46
47
|
concurrent-ruby (~> 1.0)
|
|
47
48
|
jaro_winkler (1.5.4)
|
|
48
49
|
json (2.5.1)
|
|
49
|
-
jwt (2.2.
|
|
50
|
+
jwt (2.2.3)
|
|
50
51
|
minitest (5.13.0)
|
|
51
52
|
mocha (1.11.2)
|
|
52
53
|
multipart-post (2.1.1)
|
|
@@ -55,6 +56,8 @@ GEM
|
|
|
55
56
|
parallel (1.19.1)
|
|
56
57
|
parser (2.7.1.3)
|
|
57
58
|
ast (~> 2.4.0)
|
|
59
|
+
pastel (0.8.0)
|
|
60
|
+
tty-color (~> 0.5)
|
|
58
61
|
public_suffix (4.0.5)
|
|
59
62
|
rack (2.2.2)
|
|
60
63
|
rack-protection (2.0.8.1)
|
|
@@ -84,6 +87,16 @@ GEM
|
|
|
84
87
|
simplecov-html (~> 0.11)
|
|
85
88
|
simplecov-html (0.12.2)
|
|
86
89
|
subprocess (1.5.4)
|
|
90
|
+
tty-color (0.6.0)
|
|
91
|
+
tty-cursor (0.7.1)
|
|
92
|
+
tty-prompt (0.23.1)
|
|
93
|
+
pastel (~> 0.8)
|
|
94
|
+
tty-reader (~> 0.8)
|
|
95
|
+
tty-reader (0.9.0)
|
|
96
|
+
tty-cursor (~> 0.7)
|
|
97
|
+
tty-screen (~> 0.8)
|
|
98
|
+
wisper (~> 2.0)
|
|
99
|
+
tty-screen (0.8.1)
|
|
87
100
|
tzinfo (2.0.4)
|
|
88
101
|
concurrent-ruby (~> 1.0)
|
|
89
102
|
unicode-display_width (1.6.1)
|
|
@@ -91,6 +104,7 @@ GEM
|
|
|
91
104
|
addressable (>= 2.3.6)
|
|
92
105
|
crack (>= 0.3.2)
|
|
93
106
|
hashdiff (>= 0.4.0, < 2.0.0)
|
|
107
|
+
wisper (2.0.1)
|
|
94
108
|
yard (0.9.24)
|
|
95
109
|
zeitwerk (2.4.2)
|
|
96
110
|
|
data/cased-ruby.gemspec
CHANGED
|
@@ -36,6 +36,7 @@ Gem::Specification.new do |spec|
|
|
|
36
36
|
spec.add_dependency 'jwt', '~> 2'
|
|
37
37
|
spec.add_dependency 'net-http-persistent', '~> 3.0'
|
|
38
38
|
spec.add_dependency 'subprocess', '~> 1.5.0'
|
|
39
|
+
spec.add_dependency 'tty-prompt', '~> 0.23.0'
|
|
39
40
|
spec.add_development_dependency 'bundler', '2.1.4'
|
|
40
41
|
spec.add_development_dependency 'byebug', '11.0.1'
|
|
41
42
|
spec.add_development_dependency 'minitest', '5.13.0'
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require 'cased/cli/session'
|
|
4
|
+
require 'tty/prompt'
|
|
4
5
|
|
|
5
6
|
module Cased
|
|
6
7
|
module CLI
|
|
@@ -27,6 +28,8 @@ module Cased
|
|
|
27
28
|
command: command,
|
|
28
29
|
metadata: metadata,
|
|
29
30
|
)
|
|
31
|
+
|
|
32
|
+
@prompt = TTY::Prompt.new
|
|
30
33
|
end
|
|
31
34
|
|
|
32
35
|
def create
|
|
@@ -81,8 +84,11 @@ module Cased
|
|
|
81
84
|
private
|
|
82
85
|
|
|
83
86
|
def reason_prompt
|
|
84
|
-
|
|
85
|
-
session.reason =
|
|
87
|
+
reason = @prompt.multiline(Cased::CLI::Log.string('Please enter a reason for access:'), help: '(Press Ctrl+D or Ctrl+Z to submit)')
|
|
88
|
+
session.reason = reason.join("\n")
|
|
89
|
+
rescue TTY::Reader::InputInterrupt
|
|
90
|
+
Cased::CLI::Log.log 'Exiting and canceling request…'
|
|
91
|
+
exit 0
|
|
86
92
|
end
|
|
87
93
|
|
|
88
94
|
def wait_for_approval
|
data/lib/cased/config.rb
CHANGED
data/lib/cased/version.rb
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cased-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Garrett Bjerkhoel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-05-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -122,6 +122,20 @@ dependencies:
|
|
|
122
122
|
- - "~>"
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
124
|
version: 1.5.0
|
|
125
|
+
- !ruby/object:Gem::Dependency
|
|
126
|
+
name: tty-prompt
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - "~>"
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: 0.23.0
|
|
132
|
+
type: :runtime
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - "~>"
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: 0.23.0
|
|
125
139
|
- !ruby/object:Gem::Dependency
|
|
126
140
|
name: bundler
|
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -344,7 +358,7 @@ files:
|
|
|
344
358
|
- lib/cased/sensitive/string.rb
|
|
345
359
|
- lib/cased/test_helper.rb
|
|
346
360
|
- lib/cased/version.rb
|
|
347
|
-
- vendor/cache/activesupport-6.1.3.
|
|
361
|
+
- vendor/cache/activesupport-6.1.3.2.gem
|
|
348
362
|
- vendor/cache/addressable-2.7.0.gem
|
|
349
363
|
- vendor/cache/ast-2.4.0.gem
|
|
350
364
|
- vendor/cache/byebug-11.0.1.gem
|
|
@@ -362,13 +376,14 @@ files:
|
|
|
362
376
|
- vendor/cache/i18n-1.8.10.gem
|
|
363
377
|
- vendor/cache/jaro_winkler-1.5.4.gem
|
|
364
378
|
- vendor/cache/json-2.5.1.gem
|
|
365
|
-
- vendor/cache/jwt-2.2.
|
|
379
|
+
- vendor/cache/jwt-2.2.3.gem
|
|
366
380
|
- vendor/cache/minitest-5.13.0.gem
|
|
367
381
|
- vendor/cache/mocha-1.11.2.gem
|
|
368
382
|
- vendor/cache/multipart-post-2.1.1.gem
|
|
369
383
|
- vendor/cache/net-http-persistent-3.1.0.gem
|
|
370
384
|
- vendor/cache/parallel-1.19.1.gem
|
|
371
385
|
- vendor/cache/parser-2.7.1.3.gem
|
|
386
|
+
- vendor/cache/pastel-0.8.0.gem
|
|
372
387
|
- vendor/cache/public_suffix-4.0.5.gem
|
|
373
388
|
- vendor/cache/rack-2.2.2.gem
|
|
374
389
|
- vendor/cache/rack-protection-2.0.8.1.gem
|
|
@@ -384,9 +399,15 @@ files:
|
|
|
384
399
|
- vendor/cache/simplecov-0.18.5.gem
|
|
385
400
|
- vendor/cache/simplecov-html-0.12.2.gem
|
|
386
401
|
- vendor/cache/subprocess-1.5.4.gem
|
|
402
|
+
- vendor/cache/tty-color-0.6.0.gem
|
|
403
|
+
- vendor/cache/tty-cursor-0.7.1.gem
|
|
404
|
+
- vendor/cache/tty-prompt-0.23.1.gem
|
|
405
|
+
- vendor/cache/tty-reader-0.9.0.gem
|
|
406
|
+
- vendor/cache/tty-screen-0.8.1.gem
|
|
387
407
|
- vendor/cache/tzinfo-2.0.4.gem
|
|
388
408
|
- vendor/cache/unicode-display_width-1.6.1.gem
|
|
389
409
|
- vendor/cache/webmock-3.8.3.gem
|
|
410
|
+
- vendor/cache/wisper-2.0.1.gem
|
|
390
411
|
- vendor/cache/yard-0.9.24.gem
|
|
391
412
|
- vendor/cache/zeitwerk-2.4.2.gem
|
|
392
413
|
homepage: https://github.com/cased/cased-ruby
|
|
Binary file
|
data/vendor/cache/jwt-2.2.2.gem
DELETED
|
Binary file
|