cline-rb 1.1.1 → 1.1.3

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: b9ffcd701050dde2cc6c08b8b9f221e68bf7d7f5f160ad61cead26e3804e8ff4
4
- data.tar.gz: 7f41f36985a52c31e0cb7da7d50a7bbd4962a164bdfcc7b397ebf9a9b9eea1f5
3
+ metadata.gz: b53418df62615e2bef17ca89987ee327820cacaac21fb06c76c70ce465edd9d1
4
+ data.tar.gz: 31082e00dacb07c2491df3dd73558ea846d4ccde0843f27afb3df36cd11cdc3b
5
5
  SHA512:
6
- metadata.gz: 2817ccba453c3b396108efc6276ce1e8e3a1693ef8befd052c72f2273a63478126f9ad60b540be2995e4082b599e9903de1f90ebc52be14165cd5f910618f84a
7
- data.tar.gz: 67f07326c44c48f907937e5d57628fd4cb4132bf8a8f7bd96aa6e295c7e499026ebba9ea5879c13db1ffdebbdb049abc9da2311c9974f3ef983722914fa770aa
6
+ metadata.gz: 58183c443e1bd679c6ca5622f39e12359d64b4c6eb342d4e1cdec50c65a6b5c7bfdf5664b7b41cef415a55bf5e8c16ee83b2fd95c6f5f7ac5eb9d5c040cf9d56
7
+ data.tar.gz: 33317d33bbb1f2d0ca61071dbdb4ed59ab16403885d5c7db9796696a8042fa61695850a4e9d87a63d20c87b56137b79bdb930d2cbb60db52afee43c144297fe7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # [v1.1.3](https://github.com/Muriel-Salvan/cline-rb/compare/v1.1.2...v1.1.3) (2026-10-14 15:38:46)
2
+
3
+ ### Patches
4
+
5
+ * [ci: Configure RubyGems credentials via trusted publishing](https://github.com/Muriel-Salvan/cline-rb/commit/7194a95dec2200166dcba19f2e210377f6d7ad1d)
6
+
7
+ # [v1.1.2](https://github.com/Muriel-Salvan/cline-rb/compare/v1.1.1...v1.1.2) (2026-10-14 15:29:12)
8
+
9
+ ### Patches
10
+
11
+ * [fix: make config data getters nil-safe](https://github.com/Muriel-Salvan/cline-rb/commit/25f72bac6c624f73ed89025c15b143b8e121da60)
12
+
1
13
  # [v1.1.1](https://github.com/Muriel-Salvan/cline-rb/compare/v1.1.0...v1.1.1) (2026-07-01 15:14:42)
2
14
 
3
15
  ### Patches
data/lib/cline/config.rb CHANGED
@@ -1,5 +1,3 @@
1
- require 'forwardable'
2
-
3
1
  module Cline
4
2
  # Accesses all configuration of a Cline directory.
5
3
  # Wraps for example the content of ~/.cline.
@@ -7,8 +5,6 @@ module Cline
7
5
  # - include_project_config [Boolean] Do we include the project-specific objects as well in this
8
6
  # configuration? Defaults to `true`.
9
7
  class Config
10
- extend Forwardable
11
-
12
8
  # @!group Public API
13
9
 
14
10
  # Get the main Cline config.
@@ -35,8 +31,14 @@ module Cline
35
31
 
36
32
  include Serializable::Dir
37
33
 
38
- # Give access to the data getters
39
- def_delegators :data, *%i[global_settings global_state logs mcp_settings providers sessions tasks workspaces]
34
+ # Give access to the data getters.
35
+ # Getters are nil-safe: they return nil when the data directory does not exist yet (instead of raising),
36
+ # so that callers can wait for the data directory to appear (see the session monitor thread in Cline::Cli#task).
37
+ %i[global_settings global_state logs mcp_settings providers sessions tasks workspaces].each do |data_getter|
38
+ define_method(data_getter) do |*args, **kwargs, &block|
39
+ data&.public_send(data_getter, *args, **kwargs, &block)
40
+ end
41
+ end
40
42
 
41
43
  # Get skills from this config
42
44
  #
@@ -1,3 +1,4 @@
1
+ require 'forwardable'
1
2
  require 'secret_string'
2
3
 
3
4
  module Cline
data/lib/cline/version.rb CHANGED
@@ -2,5 +2,5 @@ module Cline
2
2
  # @!group Public API
3
3
 
4
4
  # Gem version
5
- VERSION = '1.1.1'
5
+ VERSION = '1.1.3'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cline-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muriel Salvan