cased-ruby 0.4.7 → 0.4.8

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: 4592facfed9641c5f262e1c82905e77b8ba687cf3a32e056688a7521573ea3ca
4
- data.tar.gz: bb5c406b6423b618a0ad9c6356fcfe4e67cfce24c80fc97951aea1cbb846f138
3
+ metadata.gz: 5d2e582beb818f03f7211310ca694248b25aaf28a1ed625c0fa82afafbb4af71
4
+ data.tar.gz: 85dfd3af819d73e055401b8461d156e990021362b7b3acfa67ea0c690a359a4c
5
5
  SHA512:
6
- metadata.gz: 86d308c4698823a52959e7fcd32f62c4d023539162fea109d4c893f524e43bb57a845140a21a8177c2e2c1c0fbde5e58832ec8637383b4ea76db0e6f49605ad5
7
- data.tar.gz: fe135b92df5a2987e01f2b8272af7b45479bc59ea9a73c35c246602c4ffe7b0e42bd766049b4867d574c14113b5fb83ff515f9e1ad62027a4a1aa347e0a1eb87
6
+ metadata.gz: 15d5ef3b76f2187d030928d448488560784beb0fad6a462dcd6339e5697874c822bfd1efcd2fca6c7307b95f10d2465761693a1d422baea4e789f84d77bae6a8
7
+ data.tar.gz: 9969f4cf476784ac3e4747d0053035fd61fd329a425bb5e67f04a64125792c7842f3ddb9fe966920f118825960af1477c1843d8779600c706bea5c3a6a364e2d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cased-ruby (0.4.7)
4
+ cased-ruby (0.4.8)
5
5
  activesupport (~> 6)
6
6
  dotpath (= 0.1.0)
7
7
  faraday (~> 1.0)
@@ -30,11 +30,15 @@ GEM
30
30
  safe_yaml (~> 1.0.0)
31
31
  docile (1.3.2)
32
32
  dotpath (0.1.0)
33
- faraday (1.3.0)
33
+ faraday (1.4.1)
34
+ faraday-excon (~> 1.1)
34
35
  faraday-net_http (~> 1.0)
36
+ faraday-net_http_persistent (~> 1.1)
35
37
  multipart-post (>= 1.2, < 3)
36
- ruby2_keywords
38
+ ruby2_keywords (>= 0.0.4)
39
+ faraday-excon (1.1.0)
37
40
  faraday-net_http (1.0.1)
41
+ faraday-net_http_persistent (1.1.0)
38
42
  faraday_middleware (1.0.0)
39
43
  faraday (~> 1.0)
40
44
  hashdiff (1.0.1)
@@ -124,10 +124,17 @@ module Cased
124
124
  # @return [Hash, nil]
125
125
  attr_reader :guard_application
126
126
 
127
+ # Public: Cased may filter out sensitive data in the command, we shouldn't
128
+ # execute what is returned from the server.
129
+ #
130
+ # @return [String, nil]
131
+ attr_reader :original_command
132
+
127
133
  def initialize(reason: nil, command: nil, metadata: {}, authentication: nil)
128
134
  @authentication = authentication || Cased::CLI::Authentication.new
129
135
  @reason = reason
130
- @command = command || [$PROGRAM_NAME, *ARGV].join(' ')
136
+ @original_command = command || [$PROGRAM_NAME, *ARGV].join(' ')
137
+ @command = @original_command
131
138
  @metadata = Cased.config.cli.metadata.merge(metadata)
132
139
  @requester = {}
133
140
  @responder = {}
@@ -216,7 +223,7 @@ module Cased
216
223
 
217
224
  Cased::CLI::Log.log 'CLI session is now recording'
218
225
 
219
- recorder = Cased::CLI::Recorder.new(command.split(' '), env: {
226
+ recorder = Cased::CLI::Recorder.new(original_command.split(' '), env: {
220
227
  'GUARD_SESSION_ID' => id,
221
228
  'GUARD_APPLICATION_ID' => guard_application.fetch('id'),
222
229
  'GUARD_USER_TOKEN' => requester.fetch('id'),
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.4.7'
4
+ VERSION = '0.4.8'
5
5
  end
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.7
4
+ version: 0.4.8
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-04-14 00:00:00.000000000 Z
11
+ date: 2021-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -353,8 +353,10 @@ files:
353
353
  - vendor/cache/crack-0.4.3.gem
354
354
  - vendor/cache/docile-1.3.2.gem
355
355
  - vendor/cache/dotpath-0.1.0.gem
356
- - vendor/cache/faraday-1.3.0.gem
356
+ - vendor/cache/faraday-1.4.1.gem
357
+ - vendor/cache/faraday-excon-1.1.0.gem
357
358
  - vendor/cache/faraday-net_http-1.0.1.gem
359
+ - vendor/cache/faraday-net_http_persistent-1.1.0.gem
358
360
  - vendor/cache/faraday_middleware-1.0.0.gem
359
361
  - vendor/cache/hashdiff-1.0.1.gem
360
362
  - vendor/cache/i18n-1.8.10.gem
Binary file