fripa 0.1.1 → 0.1.2

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: d50f7498dd0bbd51cdedde2bdd30db19e23d50062bcc013bc4ff560888f8a830
4
- data.tar.gz: b677039839af7e04549d7277976798953f48c551df25c7c3f97fb432cf176c71
3
+ metadata.gz: 60749fcd7e07c8fa7d130e5a1b93933efc6e4d8b245fb9901f8f28c882b9a413
4
+ data.tar.gz: 1016bdc948602416a33524777e3707902b386a1bdbe2953c8d14fd4def294c5f
5
5
  SHA512:
6
- metadata.gz: c491390606580cfecdf5a77551a00d42e661249f2cc2975a28de5bbe3ad5963a116c069d282effddd59ef6dba975f6b0185b872fd5af5b7c01058cc0e5567f83
7
- data.tar.gz: 4fc759c7aa47dae2ede657e79873fc721a1fcb41480240ca695a352a9ea64cb306247623b32340047709fbb951bb848dcb4840db8990b661fed14aa18020799d
6
+ metadata.gz: 94be9bf349433e13e1063c17f73431c929fdd9c61e44552d4f1542b53f97ba8b5c8ab898ebcbf07914fd50303e9cf2d69dfc1cea2fd8c5cfa4aaf3b4b3a3f13e
7
+ data.tar.gz: 6b751211e984596207e58872a2745d6ab12a22bac7ad5e64d0dfdb6538ff170938f3e2d5523db678ffe5e686ae014ab258e168fb9a2502fd01100bd3fe2a8d64
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.2] - 2025-11-14
4
+
5
+ ### Fixed
6
+ - Fixed `Fripa.configure` block syntax not working due to missing required `host` parameter in Configuration initializer
7
+ - Configuration validation now happens at usage time instead of initialization time
8
+
3
9
  ## [0.1.0] - 2025-10-07
4
10
 
5
11
  Initial release of Fripa - A Ruby client for the FreeIPA JSON-RPC API.
@@ -8,7 +8,7 @@ module Fripa
8
8
  class Configuration
9
9
  attr_accessor :host, :port, :scheme, :verify_ssl
10
10
 
11
- def initialize(host:, port: nil, scheme: "https", verify_ssl: true)
11
+ def initialize(host: nil, port: nil, scheme: "https", verify_ssl: true)
12
12
  @host = host
13
13
  @port = port
14
14
  @scheme = scheme
@@ -30,6 +30,8 @@ module Fripa
30
30
  private
31
31
 
32
32
  def build_uri(path: nil)
33
+ raise ArgumentError, "host is required" if host.nil? || host.empty?
34
+
33
35
  uri_class = scheme == "https" ? URI::HTTPS : URI::HTTP
34
36
  uri_class.build(host: host, port: port, path: path)
35
37
  end
data/lib/fripa/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fripa
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fripa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Costanzo