cased-ruby 0.5.2 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rubocop.yml +2 -2
- data/.github/workflows/ruby.yml +13 -3
- data/.rubocop.yml +2 -0
- data/Gemfile.lock +6 -8
- data/README.md +12 -0
- data/cased-ruby.gemspec +3 -2
- data/gemfile-locks/Gemfile-activesupport-7.lock +143 -0
- data/gemfile-locks/Gemfile.lock +145 -0
- data/lib/cased/cli/asciinema/file.rb +2 -12
- data/lib/cased/cli/asciinema/writer.rb +2 -6
- data/lib/cased/cli/authentication.rb +1 -2
- data/lib/cased/cli/log.rb +2 -2
- data/lib/cased/cli/recorder.rb +2 -7
- data/lib/cased/cli/session.rb +1 -1
- data/lib/cased/http/error.rb +1 -2
- data/lib/cased/policy.rb +1 -2
- data/lib/cased/publishers/active_support_publisher.rb +6 -0
- data/lib/cased/publishers/test_publisher.rb +1 -0
- data/lib/cased/response.rb +1 -2
- data/lib/cased/sensitive/processor.rb +1 -2
- data/lib/cased/sensitive/range.rb +1 -1
- data/lib/cased/sensitive/string.rb +1 -2
- data/lib/cased/version.rb +1 -1
- data/lib/cased.rb +1 -1
- data/vendor/cache/activesupport-7.0.2.3.gem +0 -0
- data/vendor/cache/i18n-1.10.0.gem +0 -0
- metadata +17 -10
- data/vendor/cache/activesupport-6.1.4.4.gem +0 -0
- data/vendor/cache/i18n-1.8.11.gem +0 -0
- data/vendor/cache/zeitwerk-2.5.3.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: 7e1687240f65a868cd2c9cb05498145767be84b55058b317fc23def5757de30a
|
4
|
+
data.tar.gz: 6a8b6b63d78e6ee191eab3f003fde9157b82a30d99aa452d24b08edac4c4a925
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 902185bfd9804ae46834a667b52c23fc9c0b6073bd9a5f80d3c1be6190897ef1116a0ea08d7afd5e29f69de88c8de08cb975f194b4ad91cb3b702b7ca28bc38b
|
7
|
+
data.tar.gz: a2be930088267fc55f252c03dcce91f44d6183d92469f55bc397699f448d2ceb3feca621c84369c7c0e1808284d8fd7672a0494146cb71e6670d1886945e8fda
|
data/.github/workflows/ruby.yml
CHANGED
@@ -9,11 +9,18 @@ jobs:
|
|
9
9
|
strategy:
|
10
10
|
matrix:
|
11
11
|
ruby:
|
12
|
-
- "2.5"
|
13
|
-
- "2.6"
|
14
12
|
- "2.7"
|
15
13
|
- "3.0"
|
16
|
-
|
14
|
+
lockfile:
|
15
|
+
- "Gemfile.lock"
|
16
|
+
- "Gemfile-activesupport-7.lock"
|
17
|
+
exclude:
|
18
|
+
- ruby: "2.5"
|
19
|
+
lockfile: "Gemfile-activesupport-7.lock"
|
20
|
+
- ruby: "2.6"
|
21
|
+
lockfile: "Gemfile-activesupport-7.lock"
|
22
|
+
|
23
|
+
name: Ruby ${{ matrix.ruby }} Gem lockfile ${{ matrix.lockfile }} test
|
17
24
|
steps:
|
18
25
|
- uses: actions/checkout@v2
|
19
26
|
|
@@ -21,6 +28,9 @@ jobs:
|
|
21
28
|
with:
|
22
29
|
ruby-version: ${{ matrix.ruby }}
|
23
30
|
|
31
|
+
- name: Override Gemfile.lock to test multiple gem dependencies
|
32
|
+
run: cp -f gemfile-locks/${{ matrix.lockfile }} Gemfile.lock
|
33
|
+
|
24
34
|
- name: Install dependencies
|
25
35
|
run: |
|
26
36
|
gem install bundler
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cased-ruby (0.
|
5
|
-
activesupport (
|
4
|
+
cased-ruby (0.6.0)
|
5
|
+
activesupport (>= 6.1, < 7.1)
|
6
6
|
dotpath (~> 0.1.0)
|
7
7
|
faraday (~> 1.7.1)
|
8
8
|
faraday_middleware (~> 1.1.0)
|
@@ -15,12 +15,11 @@ PATH
|
|
15
15
|
GEM
|
16
16
|
remote: https://rubygems.org/
|
17
17
|
specs:
|
18
|
-
activesupport (
|
18
|
+
activesupport (7.0.2.3)
|
19
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
20
20
|
i18n (>= 1.6, < 2)
|
21
21
|
minitest (>= 5.1)
|
22
22
|
tzinfo (~> 2.0)
|
23
|
-
zeitwerk (~> 2.3)
|
24
23
|
addressable (2.8.0)
|
25
24
|
public_suffix (>= 2.0.2, < 5.0)
|
26
25
|
ast (2.4.2)
|
@@ -53,7 +52,7 @@ GEM
|
|
53
52
|
faraday_middleware (1.1.0)
|
54
53
|
faraday (~> 1.0)
|
55
54
|
hashdiff (1.0.1)
|
56
|
-
i18n (1.
|
55
|
+
i18n (1.10.0)
|
57
56
|
concurrent-ruby (~> 1.0)
|
58
57
|
json (2.5.1)
|
59
58
|
jwt (2.2.3)
|
@@ -121,13 +120,12 @@ GEM
|
|
121
120
|
hashdiff (>= 0.4.0, < 2.0.0)
|
122
121
|
wisper (2.0.1)
|
123
122
|
yard (0.9.26)
|
124
|
-
zeitwerk (2.5.3)
|
125
123
|
|
126
124
|
PLATFORMS
|
127
125
|
ruby
|
128
126
|
|
129
127
|
DEPENDENCIES
|
130
|
-
bundler (= 2.
|
128
|
+
bundler (= 2.3.9)
|
131
129
|
byebug (~> 11.1.3)
|
132
130
|
cased-ruby!
|
133
131
|
minitest (~> 5.14.4)
|
@@ -142,4 +140,4 @@ DEPENDENCIES
|
|
142
140
|
yard (~> 0.9.26)
|
143
141
|
|
144
142
|
BUNDLED WITH
|
145
|
-
2.
|
143
|
+
2.3.9
|
data/README.md
CHANGED
@@ -766,6 +766,18 @@ Results in:
|
|
766
766
|
}
|
767
767
|
```
|
768
768
|
|
769
|
+
## Managing multiple dependency versions
|
770
|
+
|
771
|
+
Github Actions is configured to test this gem against multiple versions of dependencies.
|
772
|
+
|
773
|
+
This is managed by specifying a lockfile with the correct set of dependencies. To add a new set of dependencies, copy the existing file at `gemfile-locks/Gemfile.lock` and then update the dependency in that new lockfile with something like:
|
774
|
+
|
775
|
+
```
|
776
|
+
bundle lock --lockfile=gemfile-locks/Gemfile-activesupport-7.lock --update activesupport
|
777
|
+
```
|
778
|
+
|
779
|
+
The new lockfile can be added to the matrix at `.github/workflows/ruby.yml`.
|
780
|
+
|
769
781
|
## Contributing
|
770
782
|
|
771
783
|
1. Fork it ( https://github.com/cased/cased-ruby/fork )
|
data/cased-ruby.gemspec
CHANGED
@@ -27,8 +27,9 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.bindir = 'exe'
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ['lib']
|
30
|
+
spec.required_ruby_version = '>= 2.7.0'
|
30
31
|
|
31
|
-
spec.add_dependency 'activesupport', '
|
32
|
+
spec.add_dependency 'activesupport', '>= 6.1', '< 7.1'
|
32
33
|
spec.add_dependency 'dotpath', '~> 0.1.0'
|
33
34
|
spec.add_dependency 'faraday', '~> 1.7.1'
|
34
35
|
spec.add_dependency 'faraday_middleware', '~> 1.1.0'
|
@@ -37,7 +38,7 @@ Gem::Specification.new do |spec|
|
|
37
38
|
spec.add_dependency 'net-http-persistent', '~> 4.0.1'
|
38
39
|
spec.add_dependency 'subprocess', '~> 1.5.5'
|
39
40
|
spec.add_dependency 'tty-prompt', '~> 0.23.1'
|
40
|
-
spec.add_development_dependency 'bundler', '2.
|
41
|
+
spec.add_development_dependency 'bundler', '2.3.9'
|
41
42
|
spec.add_development_dependency 'byebug', '~> 11.1.3'
|
42
43
|
spec.add_development_dependency 'minitest', '~> 5.14.4'
|
43
44
|
spec.add_development_dependency 'mocha', '~> 1.13.0'
|
@@ -0,0 +1,143 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
cased-ruby (0.5.2)
|
5
|
+
activesupport (>= 6.1, < 7.1)
|
6
|
+
dotpath (~> 0.1.0)
|
7
|
+
faraday (~> 1.7.1)
|
8
|
+
faraday_middleware (~> 1.1.0)
|
9
|
+
json (~> 2.5.1)
|
10
|
+
jwt (~> 2.2.3)
|
11
|
+
net-http-persistent (~> 4.0.1)
|
12
|
+
subprocess (~> 1.5.5)
|
13
|
+
tty-prompt (~> 0.23.1)
|
14
|
+
|
15
|
+
GEM
|
16
|
+
remote: https://rubygems.org/
|
17
|
+
specs:
|
18
|
+
activesupport (7.0.2.3)
|
19
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
20
|
+
i18n (>= 1.6, < 2)
|
21
|
+
minitest (>= 5.1)
|
22
|
+
tzinfo (~> 2.0)
|
23
|
+
addressable (2.8.0)
|
24
|
+
public_suffix (>= 2.0.2, < 5.0)
|
25
|
+
ast (2.4.2)
|
26
|
+
byebug (11.1.3)
|
27
|
+
concurrent-ruby (1.1.9)
|
28
|
+
connection_pool (2.2.5)
|
29
|
+
crack (0.4.5)
|
30
|
+
rexml
|
31
|
+
docile (1.4.0)
|
32
|
+
dotpath (0.1.0)
|
33
|
+
faraday (1.7.2)
|
34
|
+
faraday-em_http (~> 1.0)
|
35
|
+
faraday-em_synchrony (~> 1.0)
|
36
|
+
faraday-excon (~> 1.1)
|
37
|
+
faraday-httpclient (~> 1.0.1)
|
38
|
+
faraday-net_http (~> 1.0)
|
39
|
+
faraday-net_http_persistent (~> 1.1)
|
40
|
+
faraday-patron (~> 1.0)
|
41
|
+
faraday-rack (~> 1.0)
|
42
|
+
multipart-post (>= 1.2, < 3)
|
43
|
+
ruby2_keywords (>= 0.0.4)
|
44
|
+
faraday-em_http (1.0.0)
|
45
|
+
faraday-em_synchrony (1.0.0)
|
46
|
+
faraday-excon (1.1.0)
|
47
|
+
faraday-httpclient (1.0.1)
|
48
|
+
faraday-net_http (1.0.1)
|
49
|
+
faraday-net_http_persistent (1.2.0)
|
50
|
+
faraday-patron (1.0.0)
|
51
|
+
faraday-rack (1.0.0)
|
52
|
+
faraday_middleware (1.1.0)
|
53
|
+
faraday (~> 1.0)
|
54
|
+
hashdiff (1.0.1)
|
55
|
+
i18n (1.10.0)
|
56
|
+
concurrent-ruby (~> 1.0)
|
57
|
+
json (2.5.1)
|
58
|
+
jwt (2.2.3)
|
59
|
+
minitest (5.14.4)
|
60
|
+
mocha (1.13.0)
|
61
|
+
multipart-post (2.1.1)
|
62
|
+
net-http-persistent (4.0.1)
|
63
|
+
connection_pool (~> 2.2)
|
64
|
+
parallel (1.20.1)
|
65
|
+
parser (3.0.2.0)
|
66
|
+
ast (~> 2.4.1)
|
67
|
+
pastel (0.8.0)
|
68
|
+
tty-color (~> 0.5)
|
69
|
+
public_suffix (4.0.6)
|
70
|
+
rack (2.2.3)
|
71
|
+
rack-protection (2.1.0)
|
72
|
+
rack
|
73
|
+
rainbow (3.0.0)
|
74
|
+
rake (13.0.6)
|
75
|
+
redis (4.4.0)
|
76
|
+
regexp_parser (2.1.1)
|
77
|
+
rexml (3.2.5)
|
78
|
+
rubocop (1.20.0)
|
79
|
+
parallel (~> 1.10)
|
80
|
+
parser (>= 3.0.0.0)
|
81
|
+
rainbow (>= 2.2.2, < 4.0)
|
82
|
+
regexp_parser (>= 1.8, < 3.0)
|
83
|
+
rexml
|
84
|
+
rubocop-ast (>= 1.9.1, < 2.0)
|
85
|
+
ruby-progressbar (~> 1.7)
|
86
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
87
|
+
rubocop-ast (1.11.0)
|
88
|
+
parser (>= 3.0.1.1)
|
89
|
+
rubocop-performance (1.11.5)
|
90
|
+
rubocop (>= 1.7.0, < 2.0)
|
91
|
+
rubocop-ast (>= 0.4.0)
|
92
|
+
ruby-progressbar (1.11.0)
|
93
|
+
ruby2_keywords (0.0.5)
|
94
|
+
sidekiq (6.0.7)
|
95
|
+
connection_pool (>= 2.2.2)
|
96
|
+
rack (~> 2.0)
|
97
|
+
rack-protection (>= 2.0.0)
|
98
|
+
redis (>= 4.1.0)
|
99
|
+
simplecov (0.18.5)
|
100
|
+
docile (~> 1.1)
|
101
|
+
simplecov-html (~> 0.11)
|
102
|
+
simplecov-html (0.12.3)
|
103
|
+
subprocess (1.5.5)
|
104
|
+
tty-color (0.6.0)
|
105
|
+
tty-cursor (0.7.1)
|
106
|
+
tty-prompt (0.23.1)
|
107
|
+
pastel (~> 0.8)
|
108
|
+
tty-reader (~> 0.8)
|
109
|
+
tty-reader (0.9.0)
|
110
|
+
tty-cursor (~> 0.7)
|
111
|
+
tty-screen (~> 0.8)
|
112
|
+
wisper (~> 2.0)
|
113
|
+
tty-screen (0.8.1)
|
114
|
+
tzinfo (2.0.4)
|
115
|
+
concurrent-ruby (~> 1.0)
|
116
|
+
unicode-display_width (2.0.0)
|
117
|
+
webmock (3.14.0)
|
118
|
+
addressable (>= 2.8.0)
|
119
|
+
crack (>= 0.3.2)
|
120
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
121
|
+
wisper (2.0.1)
|
122
|
+
yard (0.9.26)
|
123
|
+
|
124
|
+
PLATFORMS
|
125
|
+
ruby
|
126
|
+
|
127
|
+
DEPENDENCIES
|
128
|
+
bundler (= 2.2.27)
|
129
|
+
byebug (~> 11.1.3)
|
130
|
+
cased-ruby!
|
131
|
+
minitest (~> 5.14.4)
|
132
|
+
mocha (~> 1.13.0)
|
133
|
+
rack (~> 2.2.3)
|
134
|
+
rake (~> 13.0.6)
|
135
|
+
rubocop (~> 1.20.0)
|
136
|
+
rubocop-performance (~> 1.11.5)
|
137
|
+
sidekiq (= 6.0.7)
|
138
|
+
simplecov (= 0.18.5)
|
139
|
+
webmock (~> 3.14.0)
|
140
|
+
yard (~> 0.9.26)
|
141
|
+
|
142
|
+
BUNDLED WITH
|
143
|
+
2.2.27
|
@@ -0,0 +1,145 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
cased-ruby (0.5.2)
|
5
|
+
activesupport (>= 6.1, < 7.1)
|
6
|
+
dotpath (~> 0.1.0)
|
7
|
+
faraday (~> 1.7.1)
|
8
|
+
faraday_middleware (~> 1.1.0)
|
9
|
+
json (~> 2.5.1)
|
10
|
+
jwt (~> 2.2.3)
|
11
|
+
net-http-persistent (~> 4.0.1)
|
12
|
+
subprocess (~> 1.5.5)
|
13
|
+
tty-prompt (~> 0.23.1)
|
14
|
+
|
15
|
+
GEM
|
16
|
+
remote: https://rubygems.org/
|
17
|
+
specs:
|
18
|
+
activesupport (6.1.4.4)
|
19
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
20
|
+
i18n (>= 1.6, < 2)
|
21
|
+
minitest (>= 5.1)
|
22
|
+
tzinfo (~> 2.0)
|
23
|
+
zeitwerk (~> 2.3)
|
24
|
+
addressable (2.8.0)
|
25
|
+
public_suffix (>= 2.0.2, < 5.0)
|
26
|
+
ast (2.4.2)
|
27
|
+
byebug (11.1.3)
|
28
|
+
concurrent-ruby (1.1.9)
|
29
|
+
connection_pool (2.2.5)
|
30
|
+
crack (0.4.5)
|
31
|
+
rexml
|
32
|
+
docile (1.4.0)
|
33
|
+
dotpath (0.1.0)
|
34
|
+
faraday (1.7.2)
|
35
|
+
faraday-em_http (~> 1.0)
|
36
|
+
faraday-em_synchrony (~> 1.0)
|
37
|
+
faraday-excon (~> 1.1)
|
38
|
+
faraday-httpclient (~> 1.0.1)
|
39
|
+
faraday-net_http (~> 1.0)
|
40
|
+
faraday-net_http_persistent (~> 1.1)
|
41
|
+
faraday-patron (~> 1.0)
|
42
|
+
faraday-rack (~> 1.0)
|
43
|
+
multipart-post (>= 1.2, < 3)
|
44
|
+
ruby2_keywords (>= 0.0.4)
|
45
|
+
faraday-em_http (1.0.0)
|
46
|
+
faraday-em_synchrony (1.0.0)
|
47
|
+
faraday-excon (1.1.0)
|
48
|
+
faraday-httpclient (1.0.1)
|
49
|
+
faraday-net_http (1.0.1)
|
50
|
+
faraday-net_http_persistent (1.2.0)
|
51
|
+
faraday-patron (1.0.0)
|
52
|
+
faraday-rack (1.0.0)
|
53
|
+
faraday_middleware (1.1.0)
|
54
|
+
faraday (~> 1.0)
|
55
|
+
hashdiff (1.0.1)
|
56
|
+
i18n (1.8.11)
|
57
|
+
concurrent-ruby (~> 1.0)
|
58
|
+
json (2.5.1)
|
59
|
+
jwt (2.2.3)
|
60
|
+
minitest (5.14.4)
|
61
|
+
mocha (1.13.0)
|
62
|
+
multipart-post (2.1.1)
|
63
|
+
net-http-persistent (4.0.1)
|
64
|
+
connection_pool (~> 2.2)
|
65
|
+
parallel (1.20.1)
|
66
|
+
parser (3.0.2.0)
|
67
|
+
ast (~> 2.4.1)
|
68
|
+
pastel (0.8.0)
|
69
|
+
tty-color (~> 0.5)
|
70
|
+
public_suffix (4.0.6)
|
71
|
+
rack (2.2.3)
|
72
|
+
rack-protection (2.1.0)
|
73
|
+
rack
|
74
|
+
rainbow (3.0.0)
|
75
|
+
rake (13.0.6)
|
76
|
+
redis (4.4.0)
|
77
|
+
regexp_parser (2.1.1)
|
78
|
+
rexml (3.2.5)
|
79
|
+
rubocop (1.20.0)
|
80
|
+
parallel (~> 1.10)
|
81
|
+
parser (>= 3.0.0.0)
|
82
|
+
rainbow (>= 2.2.2, < 4.0)
|
83
|
+
regexp_parser (>= 1.8, < 3.0)
|
84
|
+
rexml
|
85
|
+
rubocop-ast (>= 1.9.1, < 2.0)
|
86
|
+
ruby-progressbar (~> 1.7)
|
87
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
88
|
+
rubocop-ast (1.11.0)
|
89
|
+
parser (>= 3.0.1.1)
|
90
|
+
rubocop-performance (1.11.5)
|
91
|
+
rubocop (>= 1.7.0, < 2.0)
|
92
|
+
rubocop-ast (>= 0.4.0)
|
93
|
+
ruby-progressbar (1.11.0)
|
94
|
+
ruby2_keywords (0.0.5)
|
95
|
+
sidekiq (6.0.7)
|
96
|
+
connection_pool (>= 2.2.2)
|
97
|
+
rack (~> 2.0)
|
98
|
+
rack-protection (>= 2.0.0)
|
99
|
+
redis (>= 4.1.0)
|
100
|
+
simplecov (0.18.5)
|
101
|
+
docile (~> 1.1)
|
102
|
+
simplecov-html (~> 0.11)
|
103
|
+
simplecov-html (0.12.3)
|
104
|
+
subprocess (1.5.5)
|
105
|
+
tty-color (0.6.0)
|
106
|
+
tty-cursor (0.7.1)
|
107
|
+
tty-prompt (0.23.1)
|
108
|
+
pastel (~> 0.8)
|
109
|
+
tty-reader (~> 0.8)
|
110
|
+
tty-reader (0.9.0)
|
111
|
+
tty-cursor (~> 0.7)
|
112
|
+
tty-screen (~> 0.8)
|
113
|
+
wisper (~> 2.0)
|
114
|
+
tty-screen (0.8.1)
|
115
|
+
tzinfo (2.0.4)
|
116
|
+
concurrent-ruby (~> 1.0)
|
117
|
+
unicode-display_width (2.0.0)
|
118
|
+
webmock (3.14.0)
|
119
|
+
addressable (>= 2.8.0)
|
120
|
+
crack (>= 0.3.2)
|
121
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
122
|
+
wisper (2.0.1)
|
123
|
+
yard (0.9.26)
|
124
|
+
zeitwerk (2.5.3)
|
125
|
+
|
126
|
+
PLATFORMS
|
127
|
+
ruby
|
128
|
+
|
129
|
+
DEPENDENCIES
|
130
|
+
bundler (= 2.2.27)
|
131
|
+
byebug (~> 11.1.3)
|
132
|
+
cased-ruby!
|
133
|
+
minitest (~> 5.14.4)
|
134
|
+
mocha (~> 1.13.0)
|
135
|
+
rack (~> 2.2.3)
|
136
|
+
rake (~> 13.0.6)
|
137
|
+
rubocop (~> 1.20.0)
|
138
|
+
rubocop-performance (~> 1.11.5)
|
139
|
+
sidekiq (= 6.0.7)
|
140
|
+
simplecov (= 0.18.5)
|
141
|
+
webmock (~> 3.14.0)
|
142
|
+
yard (~> 0.9.26)
|
143
|
+
|
144
|
+
BUNDLED WITH
|
145
|
+
2.2.27
|
@@ -29,20 +29,10 @@ module Cased
|
|
29
29
|
end
|
30
30
|
|
31
31
|
# Required
|
32
|
-
attr_reader :header
|
33
|
-
attr_reader :version
|
34
|
-
attr_reader :width
|
35
|
-
attr_reader :height
|
36
|
-
attr_reader :stream
|
32
|
+
attr_reader :header, :version, :width, :height, :stream
|
37
33
|
|
38
34
|
# Optional
|
39
|
-
attr_reader :timestamp
|
40
|
-
attr_reader :duration
|
41
|
-
attr_reader :idle_time_limit
|
42
|
-
attr_reader :command
|
43
|
-
attr_reader :title
|
44
|
-
attr_reader :env
|
45
|
-
attr_reader :theme
|
35
|
+
attr_reader :timestamp, :duration, :idle_time_limit, :command, :title, :env, :theme
|
46
36
|
|
47
37
|
def initialize(header, stream)
|
48
38
|
@header = header
|
@@ -9,12 +9,8 @@ module Cased
|
|
9
9
|
class Writer
|
10
10
|
VERSION = 2
|
11
11
|
|
12
|
-
attr_accessor :width
|
13
|
-
|
14
|
-
attr_reader :command
|
15
|
-
attr_reader :stream
|
16
|
-
attr_reader :started_at
|
17
|
-
attr_reader :finished_at
|
12
|
+
attr_accessor :width, :height
|
13
|
+
attr_reader :command, :stream, :started_at, :finished_at
|
18
14
|
|
19
15
|
def initialize(command: [], width: 80, height: 24)
|
20
16
|
@command = command
|
data/lib/cased/cli/log.rb
CHANGED
@@ -14,10 +14,10 @@ module Cased
|
|
14
14
|
def self.log(text)
|
15
15
|
puts string(text)
|
16
16
|
ensure
|
17
|
-
|
17
|
+
$stdout.flush
|
18
18
|
end
|
19
19
|
|
20
|
-
def self.color(text, color, bold = false)
|
20
|
+
def self.color(text, color, bold = false) # rubocop:disable Style/OptionalBooleanParameter
|
21
21
|
color = self.class.const_get(color.upcase) if color.is_a?(Symbol)
|
22
22
|
bold = bold ? BOLD : ''
|
23
23
|
"#{bold}#{color}#{text}#{CLEAR}"
|
data/lib/cased/cli/recorder.rb
CHANGED
@@ -8,12 +8,7 @@ module Cased
|
|
8
8
|
KEY = 'CASED_CLI_RECORDING'
|
9
9
|
TRUE = '1'
|
10
10
|
|
11
|
-
attr_reader :command
|
12
|
-
attr_reader :events
|
13
|
-
attr_reader :started_at
|
14
|
-
attr_reader :width
|
15
|
-
attr_reader :height
|
16
|
-
attr_reader :options
|
11
|
+
attr_reader :command, :events, :started_at, :width, :height, :options
|
17
12
|
attr_accessor :writer
|
18
13
|
|
19
14
|
# @return [Boolean] if CLI session is being recorded.
|
@@ -46,7 +41,7 @@ module Cased
|
|
46
41
|
writer.time do
|
47
42
|
Subprocess.check_call(command, options) do |t|
|
48
43
|
t.communicate do |stdout, _stderr|
|
49
|
-
|
44
|
+
$stdout.write(stdout)
|
50
45
|
|
51
46
|
writer << stdout.gsub("\n", "\r\n")
|
52
47
|
end
|
data/lib/cased/cli/session.rb
CHANGED
data/lib/cased/http/error.rb
CHANGED
data/lib/cased/policy.rb
CHANGED
@@ -5,6 +5,12 @@ require 'concurrent'
|
|
5
5
|
require 'active_support/notifications'
|
6
6
|
require 'cased/publishers/base'
|
7
7
|
|
8
|
+
begin
|
9
|
+
require 'active_support/isolated_execution_state'
|
10
|
+
rescue LoadError
|
11
|
+
# This is required for ActiveSupport 7.0 but not present in 6.1
|
12
|
+
end
|
13
|
+
|
8
14
|
module Cased
|
9
15
|
module Publishers
|
10
16
|
class ActiveSupportPublisher < Base
|
data/lib/cased/response.rb
CHANGED
@@ -20,7 +20,7 @@ module Cased
|
|
20
20
|
# Public: The end offset of the sensitive value in the original value.
|
21
21
|
attr_reader :end_offset
|
22
22
|
|
23
|
-
def initialize(
|
23
|
+
def initialize(key:, begin_offset:, end_offset:, label: nil, identifier: nil)
|
24
24
|
raise ArgumentError, 'missing key' if key.nil?
|
25
25
|
raise ArgumentError, 'missing begin_offset' if begin_offset.nil?
|
26
26
|
raise ArgumentError, 'missing end_offset' if end_offset.nil?
|
data/lib/cased/version.rb
CHANGED
data/lib/cased.rb
CHANGED
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cased-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garrett Bjerkhoel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '6.1'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '7.1'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '6.1'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '7.1'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: dotpath
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +148,14 @@ dependencies:
|
|
142
148
|
requirements:
|
143
149
|
- - '='
|
144
150
|
- !ruby/object:Gem::Version
|
145
|
-
version: 2.
|
151
|
+
version: 2.3.9
|
146
152
|
type: :development
|
147
153
|
prerelease: false
|
148
154
|
version_requirements: !ruby/object:Gem::Requirement
|
149
155
|
requirements:
|
150
156
|
- - '='
|
151
157
|
- !ruby/object:Gem::Version
|
152
|
-
version: 2.
|
158
|
+
version: 2.3.9
|
153
159
|
- !ruby/object:Gem::Dependency
|
154
160
|
name: byebug
|
155
161
|
requirement: !ruby/object:Gem::Requirement
|
@@ -313,6 +319,8 @@ files:
|
|
313
319
|
- bin/console
|
314
320
|
- bin/rubocop
|
315
321
|
- cased-ruby.gemspec
|
322
|
+
- gemfile-locks/Gemfile-activesupport-7.lock
|
323
|
+
- gemfile-locks/Gemfile.lock
|
316
324
|
- lib/cased-ruby.rb
|
317
325
|
- lib/cased.rb
|
318
326
|
- lib/cased/cli.rb
|
@@ -358,7 +366,7 @@ files:
|
|
358
366
|
- lib/cased/sensitive/string.rb
|
359
367
|
- lib/cased/test_helper.rb
|
360
368
|
- lib/cased/version.rb
|
361
|
-
- vendor/cache/activesupport-
|
369
|
+
- vendor/cache/activesupport-7.0.2.3.gem
|
362
370
|
- vendor/cache/addressable-2.8.0.gem
|
363
371
|
- vendor/cache/ast-2.4.2.gem
|
364
372
|
- vendor/cache/byebug-11.1.3.gem
|
@@ -378,7 +386,7 @@ files:
|
|
378
386
|
- vendor/cache/faraday-rack-1.0.0.gem
|
379
387
|
- vendor/cache/faraday_middleware-1.1.0.gem
|
380
388
|
- vendor/cache/hashdiff-1.0.1.gem
|
381
|
-
- vendor/cache/i18n-1.
|
389
|
+
- vendor/cache/i18n-1.10.0.gem
|
382
390
|
- vendor/cache/json-2.5.1.gem
|
383
391
|
- vendor/cache/jwt-2.2.3.gem
|
384
392
|
- vendor/cache/minitest-5.14.4.gem
|
@@ -415,7 +423,6 @@ files:
|
|
415
423
|
- vendor/cache/webmock-3.14.0.gem
|
416
424
|
- vendor/cache/wisper-2.0.1.gem
|
417
425
|
- vendor/cache/yard-0.9.26.gem
|
418
|
-
- vendor/cache/zeitwerk-2.5.3.gem
|
419
426
|
homepage: https://github.com/cased/cased-ruby
|
420
427
|
licenses:
|
421
428
|
- MIT
|
@@ -431,7 +438,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
431
438
|
requirements:
|
432
439
|
- - ">="
|
433
440
|
- !ruby/object:Gem::Version
|
434
|
-
version:
|
441
|
+
version: 2.7.0
|
435
442
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
436
443
|
requirements:
|
437
444
|
- - ">="
|
Binary file
|
Binary file
|
Binary file
|