octokitted 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c54b0659d33d70b47ff7a61ab2773b855fda3a4822db6c83b2fb2779bf3a78e1
4
- data.tar.gz: 534c02cc7b445bacb2ee8159761e77b115c727791a49508e3f3e21f2c159daca
3
+ metadata.gz: 3b64ea62cc0c77e74950c8919bca43c4a267324662672cdbdc9bbab41830748e
4
+ data.tar.gz: 5e6441a7d8920353bb4e355c7acedcf3991f67044f9900f0d414e9d8ab529239
5
5
  SHA512:
6
- metadata.gz: 53ae33434a78beddd8b6388ca5dd525610f13a02ae0d7c157d3d79b7276f5e04f5074e30f3f7be3f92c111f46776ad742500f0377741dfe72ccb383cac7f07a2
7
- data.tar.gz: 4b1a8f04e7d01978d50928116e3fdc67f1e1f57141c41c2801e0c7915f80a5afdb316afc71687bb162888550de8d550ec4345cebf41c21785e083cc2ec58fc5a
6
+ metadata.gz: cde7b483042184c494e72d75ff979931a54f8494e1fc2200de8989a330002bdf216ac57eb5d853946212e56ae46e670d5f28f97e4d162b69f35eeb822a6b58c9
7
+ data.tar.gz: 3cbb193639559007507bc3ddc0408b93d4ffc5e665e01f3e17241dcf4761a0bf90d86bd0a2b6455c7909c4ca907a5f0a99aea4d832913117168761674bfd0060
@@ -52,7 +52,7 @@ class GitPlugin
52
52
  "https://#{@token}@github.com/#{org}/#{repo}.git",
53
53
  repo,
54
54
  path:,
55
- log: Logger.new(nil),
55
+ log: @log,
56
56
  **options
57
57
  )
58
58
 
data/lib/octokitted.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "octokit"
4
- require "logger"
4
+ require "redacting_logger"
5
5
  require "contracts"
6
6
 
7
7
  require_relative "octokitted/git_plugin"
@@ -141,7 +141,11 @@ class Octokitted
141
141
  # construct a logger for the class
142
142
  def setup_logger
143
143
  $stdout.sync = true # don't buffer - flush immediately
144
- Logger.new($stdout, level: ENV.fetch("LOG_LEVEL", "INFO").upcase)
144
+ RedactingLogger.new(
145
+ $stdout,
146
+ level: ENV.fetch("LOG_LEVEL", "INFO").upcase,
147
+ redact_patterns: [] # just using the defaults for now
148
+ )
145
149
  end
146
150
 
147
151
  # Fetch the org and repo from the environment
data/lib/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Octokitted
4
4
  module Version
5
- VERSION = "1.1.0"
5
+ VERSION = "1.2.0"
6
6
  end
7
7
  end
data/octokitted.gemspec CHANGED
@@ -24,7 +24,8 @@ Gem::Specification.new do |spec|
24
24
  spec.add_dependency "contracts", "~> 0.17"
25
25
  spec.add_dependency "faraday-retry", "~> 2.2"
26
26
  spec.add_dependency "git", "~> 1.18"
27
- spec.add_dependency "octokit", "~> 7.1"
27
+ spec.add_dependency "octokit", ">= 7.1", "< 9.0"
28
+ spec.add_dependency "redacting-logger", "~> 1.0"
28
29
 
29
30
  spec.required_ruby_version = Gem::Requirement.new(">= 3.0.0")
30
31
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octokitted
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Birkinbine
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-13 00:00:00.000000000 Z
11
+ date: 2023-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: contracts
@@ -56,16 +56,36 @@ dependencies:
56
56
  name: octokit
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '7.1'
62
+ - - "<"
63
+ - !ruby/object:Gem::Version
64
+ version: '9.0'
62
65
  type: :runtime
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
66
- - - "~>"
69
+ - - ">="
67
70
  - !ruby/object:Gem::Version
68
71
  version: '7.1'
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: '9.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: redacting-logger
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '1.0'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '1.0'
69
89
  description: 'A self-hydrating version of Octokit for usage in CI systems - like GitHub
70
90
  Actions!
71
91