octokitted 1.0.1 → 1.1.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: 9e2273f42d15b208e1c3044e0357230b800cfc9e9868c0921df2c77b054ea9b9
4
- data.tar.gz: c4ab08a959a98b1bce866644b7b8dcbbb7b3e40ac09fb6b5cc80a65d10803c12
3
+ metadata.gz: c54b0659d33d70b47ff7a61ab2773b855fda3a4822db6c83b2fb2779bf3a78e1
4
+ data.tar.gz: 534c02cc7b445bacb2ee8159761e77b115c727791a49508e3f3e21f2c159daca
5
5
  SHA512:
6
- metadata.gz: 4687eb29d75b078b0e5f2b15ef4391a1a518aac3a64fb1a04c36c421b6e435967929df8287f71e159a80193a3404a38a0df49435d4ab49f4020c5b9acdeea87a
7
- data.tar.gz: 24b3c9d44929a10a6ea7c0aea947b40f84c4694827a1f5d0901c919e0497c68195da963bf7e45b3d76996d499d55feed545905b91f45faeac0bef262ae11bcd0
6
+ metadata.gz: 53ae33434a78beddd8b6388ca5dd525610f13a02ae0d7c157d3d79b7276f5e04f5074e30f3f7be3f92c111f46776ad742500f0377741dfe72ccb383cac7f07a2
7
+ data.tar.gz: 4b1a8f04e7d01978d50928116e3fdc67f1e1f57141c41c2801e0c7915f80a5afdb316afc71687bb162888550de8d550ec4345cebf41c21785e083cc2ec58fc5a
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "git"
4
4
  require "contracts"
5
+ require "logger"
5
6
 
6
7
  class GitPlugin
7
8
  attr_reader :login
@@ -47,7 +48,13 @@ class GitPlugin
47
48
  Contract KeywordArgs[org: String, repo: String, path: Maybe[String], options: Maybe[Hash]] => Hash
48
49
  def clone(org:, repo:, path: ".", options: {})
49
50
  @log.debug("cloning #{org}/#{repo}")
50
- git_object = Git.clone("https://#{@token}@github.com/#{org}/#{repo}.git", repo, path:, log: @log, **options)
51
+ git_object = Git.clone(
52
+ "https://#{@token}@github.com/#{org}/#{repo}.git",
53
+ repo,
54
+ path:,
55
+ log: Logger.new(nil),
56
+ **options
57
+ )
51
58
 
52
59
  # configure the git environment
53
60
  git_object.config("user.name", @login)
data/lib/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Octokitted
4
4
  module Version
5
- VERSION = "1.0.1"
5
+ VERSION = "1.1.0"
6
6
  end
7
7
  end
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.0.1
4
+ version: 1.1.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-10-02 00:00:00.000000000 Z
11
+ date: 2023-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: contracts