cased-ruby 0.5.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rubocop.yml +2 -2
  3. data/.github/workflows/ruby.yml +13 -3
  4. data/.rubocop.yml +2 -0
  5. data/Gemfile.lock +11 -32
  6. data/README.md +12 -0
  7. data/cased-ruby.gemspec +4 -4
  8. data/gemfile-locks/Gemfile-activesupport-7.lock +143 -0
  9. data/gemfile-locks/Gemfile.lock +145 -0
  10. data/lib/cased/cli/asciinema/file.rb +2 -12
  11. data/lib/cased/cli/asciinema/writer.rb +2 -6
  12. data/lib/cased/cli/authentication.rb +1 -2
  13. data/lib/cased/cli/log.rb +2 -2
  14. data/lib/cased/cli/recorder.rb +2 -7
  15. data/lib/cased/cli/session.rb +1 -1
  16. data/lib/cased/http/client.rb +0 -1
  17. data/lib/cased/http/error.rb +1 -2
  18. data/lib/cased/policy.rb +1 -2
  19. data/lib/cased/publishers/active_support_publisher.rb +6 -0
  20. data/lib/cased/publishers/test_publisher.rb +1 -0
  21. data/lib/cased/response.rb +1 -2
  22. data/lib/cased/sensitive/processor.rb +1 -2
  23. data/lib/cased/sensitive/range.rb +1 -1
  24. data/lib/cased/sensitive/string.rb +1 -2
  25. data/lib/cased/version.rb +1 -1
  26. data/lib/cased.rb +1 -1
  27. data/vendor/cache/activesupport-7.0.2.3.gem +0 -0
  28. data/vendor/cache/concurrent-ruby-1.1.10.gem +0 -0
  29. data/vendor/cache/faraday-2.3.0.gem +0 -0
  30. data/vendor/cache/faraday-net_http-2.0.3.gem +0 -0
  31. data/vendor/cache/i18n-1.10.0.gem +0 -0
  32. metadata +24 -40
  33. data/vendor/cache/activesupport-6.1.4.1.gem +0 -0
  34. data/vendor/cache/concurrent-ruby-1.1.9.gem +0 -0
  35. data/vendor/cache/faraday-1.7.2.gem +0 -0
  36. data/vendor/cache/faraday-em_http-1.0.0.gem +0 -0
  37. data/vendor/cache/faraday-em_synchrony-1.0.0.gem +0 -0
  38. data/vendor/cache/faraday-excon-1.1.0.gem +0 -0
  39. data/vendor/cache/faraday-httpclient-1.0.1.gem +0 -0
  40. data/vendor/cache/faraday-net_http-1.0.1.gem +0 -0
  41. data/vendor/cache/faraday-net_http_persistent-1.2.0.gem +0 -0
  42. data/vendor/cache/faraday-patron-1.0.0.gem +0 -0
  43. data/vendor/cache/faraday-rack-1.0.0.gem +0 -0
  44. data/vendor/cache/faraday_middleware-1.1.0.gem +0 -0
  45. data/vendor/cache/i18n-1.8.10.gem +0 -0
  46. data/vendor/cache/multipart-post-2.1.1.gem +0 -0
  47. data/vendor/cache/zeitwerk-2.4.2.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94cc2eb74f420fcb94af7c10c3d369950823bf3933610290ac2c6f40cc0ef5a5
4
- data.tar.gz: 3a9cdc5b491190bc57685372a779fe3bdede5457c798911b2ca6ef1ef76a9973
3
+ metadata.gz: 9678ea47c0dd71a44940dcfca17907bcbcc268cd10761e01aa37dce68ccc99c3
4
+ data.tar.gz: 69d2b1e2424d7fafa499bc57c87660189a66c9b47e0000fae45e5d22cc9b824c
5
5
  SHA512:
6
- metadata.gz: 3c5290ba855ea1800fe674176300d2dfd264fd42f6328675da00f10c956308cd4014e759acc399b1c3f955289956ee260126f074a50f70c8996bb330f59c7ccb
7
- data.tar.gz: 5fdaa9d982a42eb0c18deb2417d6f1ae8d89310f212f0193fc7cf75a8bfd53c5e776161cb7ff4921dec2aa671a87e19c02877f7ddd6c59f84e656ee14add57fb
6
+ metadata.gz: 762e3193c8b2d1775c708f273099f349c23fadbf71cc8dc5bd4159efbb8d80b6deaa57f263a7478c1caa7323de3347459489b40bd85aa04e0ba83a8704de0a7f
7
+ data.tar.gz: daa218b7566e37791aebf4fe6895060c9e5955be96f7956aa8b851553f1ce3068e8cf491f7890bd84a313d562352cbf1dd7913ddff4d9d6b7fc342c9be6e12be
@@ -12,10 +12,10 @@ jobs:
12
12
 
13
13
  - uses: actions/setup-ruby@v1
14
14
  with:
15
- ruby-version: 2.6
15
+ ruby-version: 2.7
16
16
 
17
17
  - name: Install dependencies
18
18
  run: |
19
- gem install bundler
19
+ gem install bundler -v 2.3.16
20
20
  bundle install --local
21
21
  - run: bin/rubocop
@@ -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
- name: Ruby ${{ matrix.ruby }} test
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
@@ -6,6 +6,8 @@ AllCops:
6
6
  - "bin/{rails,rake,bundle}"
7
7
  - "node_modules/**/*"
8
8
  - "app/views/**/*"
9
+ TargetRubyVersion: 2.7
10
+
9
11
 
10
12
  Style/Documentation:
11
13
  Enabled: false
data/Gemfile.lock CHANGED
@@ -1,11 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cased-ruby (0.5.1)
5
- activesupport (~> 6.1)
4
+ cased-ruby (0.6.1)
5
+ activesupport (>= 6.1, < 7.1)
6
6
  dotpath (~> 0.1.0)
7
- faraday (~> 1.7.1)
8
- faraday_middleware (~> 1.1.0)
7
+ faraday (~> 2.0)
9
8
  json (~> 2.5.1)
10
9
  jwt (~> 2.2.3)
11
10
  net-http-persistent (~> 4.0.1)
@@ -15,51 +14,32 @@ PATH
15
14
  GEM
16
15
  remote: https://rubygems.org/
17
16
  specs:
18
- activesupport (6.1.4.1)
17
+ activesupport (7.0.2.3)
19
18
  concurrent-ruby (~> 1.0, >= 1.0.2)
20
19
  i18n (>= 1.6, < 2)
21
20
  minitest (>= 5.1)
22
21
  tzinfo (~> 2.0)
23
- zeitwerk (~> 2.3)
24
22
  addressable (2.8.0)
25
23
  public_suffix (>= 2.0.2, < 5.0)
26
24
  ast (2.4.2)
27
25
  byebug (11.1.3)
28
- concurrent-ruby (1.1.9)
26
+ concurrent-ruby (1.1.10)
29
27
  connection_pool (2.2.5)
30
28
  crack (0.4.5)
31
29
  rexml
32
30
  docile (1.4.0)
33
31
  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)
32
+ faraday (2.3.0)
33
+ faraday-net_http (~> 2.0)
44
34
  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)
35
+ faraday-net_http (2.0.3)
55
36
  hashdiff (1.0.1)
56
- i18n (1.8.10)
37
+ i18n (1.10.0)
57
38
  concurrent-ruby (~> 1.0)
58
39
  json (2.5.1)
59
40
  jwt (2.2.3)
60
41
  minitest (5.14.4)
61
42
  mocha (1.13.0)
62
- multipart-post (2.1.1)
63
43
  net-http-persistent (4.0.1)
64
44
  connection_pool (~> 2.2)
65
45
  parallel (1.20.1)
@@ -121,13 +101,12 @@ GEM
121
101
  hashdiff (>= 0.4.0, < 2.0.0)
122
102
  wisper (2.0.1)
123
103
  yard (0.9.26)
124
- zeitwerk (2.4.2)
125
104
 
126
105
  PLATFORMS
127
106
  ruby
128
107
 
129
108
  DEPENDENCIES
130
- bundler (= 2.2.27)
109
+ bundler (~> 2.3.16)
131
110
  byebug (~> 11.1.3)
132
111
  cased-ruby!
133
112
  minitest (~> 5.14.4)
@@ -142,4 +121,4 @@ DEPENDENCIES
142
121
  yard (~> 0.9.26)
143
122
 
144
123
  BUNDLED WITH
145
- 2.2.27
124
+ 2.3.16
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,17 +27,17 @@ 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', '~> 6.1'
32
+ spec.add_dependency 'activesupport', '>= 6.1', '< 7.1'
32
33
  spec.add_dependency 'dotpath', '~> 0.1.0'
33
- spec.add_dependency 'faraday', '~> 1.7.1'
34
- spec.add_dependency 'faraday_middleware', '~> 1.1.0'
34
+ spec.add_dependency 'faraday', '~> 2.0'
35
35
  spec.add_dependency 'json', '~> 2.5.1'
36
36
  spec.add_dependency 'jwt', '~> 2.2.3'
37
37
  spec.add_dependency 'net-http-persistent', '~> 4.0.1'
38
38
  spec.add_dependency 'subprocess', '~> 1.5.5'
39
39
  spec.add_dependency 'tty-prompt', '~> 0.23.1'
40
- spec.add_development_dependency 'bundler', '2.2.27'
40
+ spec.add_development_dependency 'bundler', '~> 2.3.16'
41
41
  spec.add_development_dependency 'byebug', '~> 11.1.3'
42
42
  spec.add_development_dependency 'minitest', '~> 5.14.4'
43
43
  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
- attr_accessor :height
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
@@ -5,8 +5,7 @@ require 'pathname'
5
5
  module Cased
6
6
  module CLI
7
7
  class Authentication
8
- attr_reader :directory
9
- attr_reader :credentials_path
8
+ attr_reader :directory, :credentials_path
10
9
  attr_writer :token
11
10
 
12
11
  def initialize(token: nil)
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
- STDOUT.flush
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}"
@@ -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
- STDOUT.write(stdout)
44
+ $stdout.write(stdout)
50
45
 
51
46
  writer << stdout.gsub("\n", "\r\n")
52
47
  end
@@ -288,7 +288,7 @@ module Cased
288
288
  end
289
289
 
290
290
  def recordable?
291
- STDOUT.isatty
291
+ $stdout.isatty
292
292
  end
293
293
 
294
294
  private
@@ -2,7 +2,6 @@
2
2
 
3
3
  require 'cased/http/error'
4
4
  require 'faraday'
5
- require 'faraday_middleware'
6
5
 
7
6
  module Cased
8
7
  module HTTP
@@ -6,8 +6,7 @@ require 'json'
6
6
  module Cased
7
7
  module HTTP
8
8
  class Error < Cased::Error
9
- attr_reader :code
10
- attr_reader :json
9
+ attr_reader :code, :json
11
10
 
12
11
  def initialize(json = {}, code = nil)
13
12
  @json = json
data/lib/cased/policy.rb CHANGED
@@ -4,8 +4,7 @@ require 'cased/query'
4
4
 
5
5
  module Cased
6
6
  class Policy
7
- attr_reader :api_key
8
- attr_reader :client
7
+ attr_reader :api_key, :client
9
8
 
10
9
  def initialize(api_key:)
11
10
  @api_key = api_key
@@ -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
@@ -8,6 +8,7 @@ module Cased
8
8
  attr_reader :events
9
9
 
10
10
  def initialize
11
+ super
11
12
  @events = []
12
13
  end
13
14
 
@@ -2,8 +2,7 @@
2
2
 
3
3
  module Cased
4
4
  class Response
5
- attr_reader :body
6
- attr_reader :exception
5
+ attr_reader :body, :exception
7
6
 
8
7
  def initialize(response: nil, exception: nil)
9
8
  @response = response
@@ -21,8 +21,7 @@ module Cased
21
21
  }
22
22
  end
23
23
 
24
- attr_reader :audit_event
25
- attr_reader :handlers
24
+ attr_reader :audit_event, :handlers
26
25
 
27
26
  def initialize(audit_event, handlers)
28
27
  @audit_event = audit_event.dup.freeze
@@ -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(label: nil, key:, begin_offset:, end_offset:, identifier: nil)
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?
@@ -5,8 +5,7 @@ require 'cased/sensitive/range'
5
5
  module Cased
6
6
  module Sensitive
7
7
  class String < String
8
- attr_reader :label
9
- attr_reader :string
8
+ attr_reader :label, :string
10
9
 
11
10
  def initialize(string, label: nil)
12
11
  super(string)
data/lib/cased/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cased
4
- VERSION = '0.5.1'
4
+ VERSION = '0.7.0'
5
5
  end
data/lib/cased.rb CHANGED
@@ -20,7 +20,7 @@ require 'cased/cli'
20
20
  # Integrations
21
21
  begin
22
22
  require 'cased/integrations/sidekiq'
23
- rescue LoadError # rubocop:disable Lint/SuppressedException
23
+ rescue LoadError
24
24
  # Sidekiq is not installed in host application
25
25
  end
26
26
 
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.5.1
4
+ version: 0.7.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-09-16 00:00:00.000000000 Z
11
+ date: 2022-07-20 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
@@ -44,28 +50,14 @@ dependencies:
44
50
  requirements:
45
51
  - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: 1.7.1
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: 1.7.1
55
- - !ruby/object:Gem::Dependency
56
- name: faraday_middleware
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 1.1.0
53
+ version: '2.0'
62
54
  type: :runtime
63
55
  prerelease: false
64
56
  version_requirements: !ruby/object:Gem::Requirement
65
57
  requirements:
66
58
  - - "~>"
67
59
  - !ruby/object:Gem::Version
68
- version: 1.1.0
60
+ version: '2.0'
69
61
  - !ruby/object:Gem::Dependency
70
62
  name: json
71
63
  requirement: !ruby/object:Gem::Requirement
@@ -140,16 +132,16 @@ dependencies:
140
132
  name: bundler
141
133
  requirement: !ruby/object:Gem::Requirement
142
134
  requirements:
143
- - - '='
135
+ - - "~>"
144
136
  - !ruby/object:Gem::Version
145
- version: 2.2.27
137
+ version: 2.3.16
146
138
  type: :development
147
139
  prerelease: false
148
140
  version_requirements: !ruby/object:Gem::Requirement
149
141
  requirements:
150
- - - '='
142
+ - - "~>"
151
143
  - !ruby/object:Gem::Version
152
- version: 2.2.27
144
+ version: 2.3.16
153
145
  - !ruby/object:Gem::Dependency
154
146
  name: byebug
155
147
  requirement: !ruby/object:Gem::Requirement
@@ -313,6 +305,8 @@ files:
313
305
  - bin/console
314
306
  - bin/rubocop
315
307
  - cased-ruby.gemspec
308
+ - gemfile-locks/Gemfile-activesupport-7.lock
309
+ - gemfile-locks/Gemfile.lock
316
310
  - lib/cased-ruby.rb
317
311
  - lib/cased.rb
318
312
  - lib/cased/cli.rb
@@ -358,32 +352,23 @@ files:
358
352
  - lib/cased/sensitive/string.rb
359
353
  - lib/cased/test_helper.rb
360
354
  - lib/cased/version.rb
361
- - vendor/cache/activesupport-6.1.4.1.gem
355
+ - vendor/cache/activesupport-7.0.2.3.gem
362
356
  - vendor/cache/addressable-2.8.0.gem
363
357
  - vendor/cache/ast-2.4.2.gem
364
358
  - vendor/cache/byebug-11.1.3.gem
365
- - vendor/cache/concurrent-ruby-1.1.9.gem
359
+ - vendor/cache/concurrent-ruby-1.1.10.gem
366
360
  - vendor/cache/connection_pool-2.2.5.gem
367
361
  - vendor/cache/crack-0.4.5.gem
368
362
  - vendor/cache/docile-1.4.0.gem
369
363
  - vendor/cache/dotpath-0.1.0.gem
370
- - vendor/cache/faraday-1.7.2.gem
371
- - vendor/cache/faraday-em_http-1.0.0.gem
372
- - vendor/cache/faraday-em_synchrony-1.0.0.gem
373
- - vendor/cache/faraday-excon-1.1.0.gem
374
- - vendor/cache/faraday-httpclient-1.0.1.gem
375
- - vendor/cache/faraday-net_http-1.0.1.gem
376
- - vendor/cache/faraday-net_http_persistent-1.2.0.gem
377
- - vendor/cache/faraday-patron-1.0.0.gem
378
- - vendor/cache/faraday-rack-1.0.0.gem
379
- - vendor/cache/faraday_middleware-1.1.0.gem
364
+ - vendor/cache/faraday-2.3.0.gem
365
+ - vendor/cache/faraday-net_http-2.0.3.gem
380
366
  - vendor/cache/hashdiff-1.0.1.gem
381
- - vendor/cache/i18n-1.8.10.gem
367
+ - vendor/cache/i18n-1.10.0.gem
382
368
  - vendor/cache/json-2.5.1.gem
383
369
  - vendor/cache/jwt-2.2.3.gem
384
370
  - vendor/cache/minitest-5.14.4.gem
385
371
  - vendor/cache/mocha-1.13.0.gem
386
- - vendor/cache/multipart-post-2.1.1.gem
387
372
  - vendor/cache/net-http-persistent-4.0.1.gem
388
373
  - vendor/cache/parallel-1.20.1.gem
389
374
  - vendor/cache/parser-3.0.2.0.gem
@@ -415,7 +400,6 @@ files:
415
400
  - vendor/cache/webmock-3.14.0.gem
416
401
  - vendor/cache/wisper-2.0.1.gem
417
402
  - vendor/cache/yard-0.9.26.gem
418
- - vendor/cache/zeitwerk-2.4.2.gem
419
403
  homepage: https://github.com/cased/cased-ruby
420
404
  licenses:
421
405
  - MIT
@@ -431,7 +415,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
431
415
  requirements:
432
416
  - - ">="
433
417
  - !ruby/object:Gem::Version
434
- version: '0'
418
+ version: 2.7.0
435
419
  required_rubygems_version: !ruby/object:Gem::Requirement
436
420
  requirements:
437
421
  - - ">="
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file