thuban 0.4.0 → 0.4.1

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: 7115dc5cf395114ca07172c0746db9d0efb228092455b2a0fc7ec069a01b7e7a
4
- data.tar.gz: 5ed48fad9aab26581024ca4c96100e53f2072fdab5727acb37cad4ce5b34872c
3
+ metadata.gz: 2fd4f8874fc442816b49cd9d29963c6c318a733771f50466350cb84040a0242d
4
+ data.tar.gz: 67a2e2496b0f3775f9619c181771ce8ae92a6e57063b5cd0dd383f4e7571e439
5
5
  SHA512:
6
- metadata.gz: ab9dd86e88c0cf633d21a6489879415ca329146a7aa6aace8eac91b11280e6fe759ce7c11a453a96f8e409b35d0ddb2530b05f6dc8fa8225c7ce5c3f71a6dfab
7
- data.tar.gz: e99576b1552149f56fe50b6730743d5afe6efa475b6879e2146ffef81cc106eaa94eb1d907ab3fac53248bbc92c3e32a1aab46783073b6307e2888d68acebf4a
6
+ metadata.gz: 7ae73ad1b5ff6a95e5c221b3382316bc3860d25aff5e5272170468c4f65288fbd0055bff324485bca4c7c3fd896843815d540cb6536a3d50aa9ef29b0e87841f
7
+ data.tar.gz: aa7b91df7056ee82de5bec2d27eff57ca38bf51bd393d3505034ebe2639d9a8aee76d3047b80d4aef5a3caa1c8432e7a79cfb4da98a62ecf695cfd020c7ded28
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.4.1 - 2026-09-17
6
+
7
+ - Load remote transport providers only when remote operations are used
8
+
5
9
  ## 0.4.0 - 2026-09-15
6
10
 
7
11
  - Add pkt-line parsing and smart HTTP protocol v2/v0 reference discovery
@@ -231,3 +231,6 @@ module Thuban
231
231
  end
232
232
  end
233
233
  end
234
+
235
+ require_relative "fetch"
236
+ require_relative "push"
data/lib/thuban/remote.rb CHANGED
@@ -9,6 +9,12 @@ module Thuban
9
9
  Progress = Struct.new(:phase, :current, :total, :bytes, keyword_init: true)
10
10
 
11
11
  module Remote
12
+ autoload :Credentials, File.expand_path("remote/credentials", __dir__)
13
+ autoload :Protocol, File.expand_path("remote/protocol", __dir__)
14
+ autoload :Connection, File.expand_path("remote/http", __dir__)
15
+ autoload :SSHConnection, File.expand_path("remote/ssh", __dir__)
16
+ autoload :LocalConnection, File.expand_path("remote/local", __dir__)
17
+
12
18
  def self.open(url, credentials: nil, ssh: nil, timeout: 30)
13
19
  local_drive = url.is_a?(String) && url.match?(/\A[A-Za-z]:[\\\/]/)
14
20
  local_path = local_drive || (url.is_a?(String) && url.start_with?("/", "./", "../", "~"))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Thuban
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
data/lib/thuban.rb CHANGED
@@ -27,11 +27,4 @@ require_relative "thuban/stash"
27
27
  require_relative "thuban/pack_writer"
28
28
  require_relative "thuban/pack_reader"
29
29
  require_relative "thuban/remote"
30
- require_relative "thuban/remote/credentials"
31
- require_relative "thuban/remote/protocol"
32
- require_relative "thuban/remote/http"
33
- require_relative "thuban/remote/fetch"
34
- require_relative "thuban/remote/push"
35
- require_relative "thuban/remote/ssh"
36
- require_relative "thuban/remote/local"
37
30
  require_relative "thuban/remote/repository"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thuban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yudai Takada