Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-xdg for openSUSE:Factory checked in at 2022-10-12 18:25:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-xdg (Old) and /work/SRC/openSUSE:Factory/.rubygem-xdg.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-xdg" Wed Oct 12 18:25:10 2022 rev:8 rq:1010059 version:6.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-xdg/rubygem-xdg.changes 2022-08-05 19:52:22.829669396 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-xdg.new.2275/rubygem-xdg.changes 2022-10-12 18:26:57.401989042 +0200 @@ -1,0 +2,6 @@ +Mon Oct 10 13:27:12 UTC 2022 - Stephan Kulow <[email protected]> + +updated to version 6.6.0 + no changelog found + +------------------------------------------------------------------- Old: ---- xdg-6.5.0.gem New: ---- xdg-6.6.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-xdg.spec ++++++ --- /var/tmp/diff_new_pack.98otsm/_old 2022-10-12 18:26:57.833989993 +0200 +++ /var/tmp/diff_new_pack.98otsm/_new 2022-10-12 18:26:57.837990002 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-xdg -Version: 6.5.0 +Version: 6.6.0 Release: 0 %define mod_name xdg %define mod_full_name %{mod_name}-%{version} ++++++ xdg-6.5.0.gem -> xdg-6.6.0.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.adoc new/README.adoc --- old/README.adoc 2022-07-17 23:21:54.000000000 +0200 +++ new/README.adoc 2022-09-10 03:30:36.000000000 +0200 @@ -25,6 +25,7 @@ ** `$XDG_CONFIG_DIRS` ** `$XDG_DATA_HOME` ** `$XDG_DATA_DIRS` +** `$XDG_STATE_HOME` == Requirements @@ -48,20 +49,21 @@ == Usage -The following describes how to use this XDG implementation. +The following describes how to use this implementation. -=== Overview +=== Objects To get up and running quickly, use `+XDG::Environment+` as follows: [source,ruby] ---- xdg = XDG::Environment.new -xdg.cache_home # <= Answers computed `$XDG_CACHE_HOME` value. -xdg.config_home # <= Answers computed `$XDG_CONFIG_HOME` value. -xdg.config_dirs # <= Answers computed `$XDG_CONFIG_DIRS` value. -xdg.data_home # <= Answers computed `$XDG_DATA_HOME` value. -xdg.data_dirs # <= Answers computed `$XDG_DATA_DIRS` value. +xdg.cache_home # Answers computed `$XDG_CACHE_HOME` value. +xdg.config_home # Answers computed `$XDG_CONFIG_HOME` value. +xdg.config_dirs # Answers computed `$XDG_CONFIG_DIRS` value. +xdg.data_home # Answers computed `$XDG_DATA_HOME` value. +xdg.data_dirs # Answers computed `$XDG_DATA_DIRS` value. +xdg.state_home # Answers computed `$XDG_STATE_HOME` value. ---- The _computed_ value, in this case, is either the user-defined value of the key or the default @@ -76,9 +78,10 @@ cache = XDG::Cache.new config = XDG::Config.new data = XDG::Data.new +state = XDG::State.new ---- -The `cache`, `config`, and `data` objects share the same API which means you can ask each the +The `cache`, `config`, `data`, and `state` objects share the same API which means you can ask each the following messages: * `#home` - Answers the home directory as computed via the `$XDG_*_HOME` key. @@ -100,31 +103,38 @@ cache = XDG::Cache.new config = XDG::Config.new data = XDG::Data.new +state = XDG::State.new # Inspection -environment.inspect # => XDG_CACHE_HOME=/Users/bkuhlmann/.cache XDG_CONFIG_HOME=/Users/bkuhlmann/.config XDG_CONFIG_DIRS=/etc/xdg XDG_DATA_HOME=/Users/bkuhlmann/.local/share XDG_DATA_DIRS=/usr/local/share:/usr/share -cache.inspect # => "XDG_CACHE_HOME=/Users/bkuhlmann/.cache" -config.inspect # => "XDG_CONFIG_HOME=/Users/bkuhlmann/.config XDG_CONFIG_DIRS=/etc/xdg" -data.inspect # => "XDG_DATA_HOME=/Users/bkuhlmann/.local/share XDG_DATA_DIRS=/usr/local/share:/usr/share" +environment.inspect # "XDG_CACHE_HOME=/Users/bkuhlmann/.cache XDG_CONFIG_HOME=/Users/bkuhlmann/.config XDG_CONFIG_DIRS=/etc/xdg XDG_DATA_HOME=/Users/bkuhlmann/.local/share XDG_DATA_DIRS=/usr/local/share:/usr/share XDG_STATE_HOME=/Users/bkuhlmann/.local/state" +cache.inspect # "XDG_CACHE_HOME=/Users/bkuhlmann/.cache" +config.inspect # "XDG_CONFIG_HOME=/Users/bkuhlmann/.config XDG_CONFIG_DIRS=/etc/xdg" +data.inspect # "XDG_DATA_HOME=/Users/bkuhlmann/.local/share XDG_DATA_DIRS=/usr/local/share:/usr/share" +state.inspect # "XDG_STATE_HOME=/Users/bkuhlmann/.local/state" # Paths -environment.cache_home # => #<Pathname:/Users/bkuhlmann/.cache> -environment.config_home # => #<Pathname:/Users/bkuhlmann/.config> -environment.config_dirs # => [#<Pathname:/etc/xdg>] -environment.data_home # => #<Pathname:/Users/bkuhlmann/.local/share> -environment.data_dirs # => [#<Pathname:/usr/local/share>, #<Pathname:/usr/share>] - -cache.home # => #<Pathname:/Users/bkuhlmann/.cache> -cache.directories # => [] -cache.all # => [#<Pathname:/Users/bkuhlmann/.cache>] - -config.home # => #<Pathname:/Users/bkuhlmann/.config> -config.directories # => [#<Pathname:/etc/xdg>] -config.all # => [#<Pathname:/Users/bkuhlmann/.config>, #<Pathname:/etc/xdg>] - -data.home # => #<Pathname:/Users/bkuhlmann/.local/share> -data.directories # => [#<Pathname:/usr/local/share>, #<Pathname:/usr/share>] -data.all # => [#<Pathname:/Users/bkuhlmann/.local/share>, #<Pathname:/usr/local/share>, #<Pathname:/usr/share>] +environment.cache_home # #<Pathname:/Users/bkuhlmann/.cache> +environment.config_home # #<Pathname:/Users/bkuhlmann/.config> +environment.config_dirs # [#<Pathname:/etc/xdg>] +environment.data_home # #<Pathname:/Users/bkuhlmann/.local/share> +environment.data_dirs # [#<Pathname:/usr/local/share>, #<Pathname:/usr/share>] +environment.state_home # #<Pathname:/Users/bkuhlmann/.local/state> + +cache.home # #<Pathname:/Users/bkuhlmann/.cache> +cache.directories # [] +cache.all # [#<Pathname:/Users/bkuhlmann/.cache>] + +config.home # #<Pathname:/Users/bkuhlmann/.config> +config.directories # [#<Pathname:/etc/xdg>] +config.all # [#<Pathname:/Users/bkuhlmann/.config>, #<Pathname:/etc/xdg>] + +data.home # #<Pathname:/Users/bkuhlmann/.local/share> +data.directories # [#<Pathname:/usr/local/share>, #<Pathname:/usr/share>] +data.all # [#<Pathname:/Users/bkuhlmann/.local/share>, #<Pathname:/usr/local/share>, #<Pathname:/usr/share>] + +state.home # #<Pathname:/Users/bkuhlmann/.local/state> +state.directories # [] +state.all # [#<Pathname:/Users/bkuhlmann/.local/state>] ---- As you can see from above, each XDG object answers back a `Pathname` which means you have the full @@ -142,6 +152,7 @@ * `$XDG_DATA_HOME="$HOME/.local/share"` * `$XDG_DATA_DIRS="/usr/local/share/:/usr/share/"` * `$XDG_RUNTIME_DIR` +* `$XDG_STATE_HOME="$HOME/.local/state"` The `$XDG_RUNTIME_DIR` deserves special mention as it???s not, _currently_, implemented as part of this gem because it is more user/environment specific. Here is how the `$XDG_RUNTIME_DIR` is meant @@ -173,12 +184,12 @@ The behavior of most XDG environment variables can be lumped into two categories: -* `$XDG_*_HOME` * `$XDG_*_DIRS` +* `$XDG_*_HOME` Each is described in detail below. -==== `$XDG_*_DIRS` +==== Directories These variables are used to define a colon (`:`) delimited list of directories. Order is important as the first directory defined will take precedent over the following directory and so forth. For @@ -203,7 +214,7 @@ In the above example, the `"/example/one/.config"` path takes _highest_ priority since it was defined first. -==== `$XDG_*_HOME` +==== Homes These variables take precedence over the corresponding `$XDG_*_DIRS` environment variables. Using a modified version of the `$XDG_*_DIRS` example, shown above, we could have the following setup: Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ Binary files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/data.tar.gz.sig new/data.tar.gz.sig --- old/data.tar.gz.sig 2022-07-17 23:21:54.000000000 +0200 +++ new/data.tar.gz.sig 2022-09-10 03:30:36.000000000 +0200 @@ -1,2 +1,4 @@ -H?oY??\???l?9???!O???t??/??u&W~??:2/9?M??f?:??^??6eD? ?????"1v?$??S~R?V??N?O????m2???N?}s2??A,?o??DT -?+?DsEZ?E???z??R?????????P&?.rf???`??bSr6?&??or?K??Cl0?jz??????n?????7?????:D(J?Y,????[_#Mr3?]????F#|zqb????3??%??t???wv?^ p??F?G \ No newline at end of file +?:?p??? ???g??????!???Wc?B???J +b+?=?Z??6O?1??8?a6$?a??'?QG??_?E?g?,?gF????M?P?x?0?JV?t??H???t??z??2??;???7?%?(*???I????Xws V4?w$//??p???-m?63??k?[?ieu??p???$ +?~???Oh2F"???????]r?Ol +e??E??(~}w?v?Q??????2?3b??4??2Fb???a????wj?w?? \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/xdg/cache.rb new/lib/xdg/cache.rb --- old/lib/xdg/cache.rb 2022-07-17 23:21:54.000000000 +0200 +++ new/lib/xdg/cache.rb 2022-09-10 03:30:36.000000000 +0200 @@ -3,6 +3,7 @@ require "forwardable" module XDG + # Provides cache support. class Cache extend Forwardable diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/xdg/config.rb new/lib/xdg/config.rb --- old/lib/xdg/config.rb 2022-07-17 23:21:54.000000000 +0200 +++ new/lib/xdg/config.rb 2022-09-10 03:30:36.000000000 +0200 @@ -3,6 +3,7 @@ require "forwardable" module XDG + # Provides configuration support. class Config extend Forwardable diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/xdg/data.rb new/lib/xdg/data.rb --- old/lib/xdg/data.rb 2022-07-17 23:21:54.000000000 +0200 +++ new/lib/xdg/data.rb 2022-09-10 03:30:36.000000000 +0200 @@ -3,6 +3,7 @@ require "forwardable" module XDG + # Provides data support. class Data extend Forwardable diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/xdg/environment.rb new/lib/xdg/environment.rb --- old/lib/xdg/environment.rb 2022-07-17 23:21:54.000000000 +0200 +++ new/lib/xdg/environment.rb 2022-09-10 03:30:36.000000000 +0200 @@ -1,11 +1,13 @@ # frozen_string_literal: true module XDG + # A convenience wrapper to all XDG functionality. class Environment def initialize home: Paths::Home, directories: Paths::Directory, environment: ENV @cache = Cache.new(home:, directories:, environment:) @config = Config.new(home:, directories:, environment:) - @data = Data.new home:, directories:, environment: + @data = Data.new(home:, directories:, environment:) + @state = State.new home:, directories:, environment: end def cache_home = cache.home @@ -18,10 +20,12 @@ def data_dirs = data.directories - def inspect = "#{cache.inspect} #{config.inspect} #{data.inspect}" + def state_home = state.home + + def inspect = "#{cache.inspect} #{config.inspect} #{data.inspect} #{state.inspect}" private - attr_reader :cache, :config, :data + attr_reader :cache, :config, :data, :state end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/xdg/state.rb new/lib/xdg/state.rb --- old/lib/xdg/state.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/xdg/state.rb 2022-09-10 03:30:36.000000000 +0200 @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +require "forwardable" + +module XDG + # Provides state support. + class State + extend Forwardable + + HOME_PAIR = Pair["XDG_STATE_HOME", ".local/state"].freeze + + delegate %i[home directories all inspect] => :combined + + def initialize home: Paths::Home, directories: Paths::Directory, environment: ENV + @combined = Paths::Combined.new home.new(HOME_PAIR, environment), + directories.new(Pair.new, environment) + end + + private + + attr_reader :combined + end +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/xdg.rb new/lib/xdg.rb --- old/lib/xdg.rb 2022-07-17 23:21:54.000000000 +0200 +++ new/lib/xdg.rb 2022-09-10 03:30:36.000000000 +0200 @@ -7,4 +7,5 @@ require "xdg/config" require "xdg/data" require "xdg/cache" +require "xdg/state" require "xdg/environment" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2022-07-17 23:21:54.000000000 +0200 +++ new/metadata 2022-09-10 03:30:36.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: xdg version: !ruby/object:Gem::Version - version: 6.5.0 + version: 6.6.0 platform: ruby authors: - Brooke Kuhlmann @@ -28,7 +28,7 @@ CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp RFE= -----END CERTIFICATE----- -date: 2022-07-17 00:00:00.000000000 Z +date: 2022-09-10 00:00:00.000000000 Z dependencies: [] description: email: @@ -50,6 +50,7 @@ - lib/xdg/paths/combined.rb - lib/xdg/paths/directory.rb - lib/xdg/paths/home.rb +- lib/xdg/state.rb - xdg.gemspec homepage: https://www.alchemists.io/projects/xdg licenses: @@ -77,7 +78,7 @@ - !ruby/object:Gem::Version version: '0' requirements: [] -rubygems_version: 3.3.18 +rubygems_version: 3.3.22 signing_key: specification_version: 4 summary: Provides an implementation of the XDG Base Directory Specification. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata.gz.sig new/metadata.gz.sig --- old/metadata.gz.sig 2022-07-17 23:21:54.000000000 +0200 +++ new/metadata.gz.sig 2022-09-10 03:30:36.000000000 +0200 @@ -1,2 +1,2 @@ -??A?7?}???00^?=???K?? ???al+??u?""??a7/10 ???:U?Ep??? ?J*?0,?@??U?)?1?????:???)? -&5?8??t+?? ?a??'TV?a???Z>?????????@?I???J+Em???r???#n@i??{? ?/?%k5~^`?E?=s??4????.???.?? ?g???0$?IV??u?)????^T-?k?^??f??6?^??U?%??dg?b??{???}?s; \ No newline at end of file +t\3?X????/m???o??R4dsI???#?.pd??#.+i?9pL?.???/(z??bG$u| P???r????GF?????q0 I5?)???5a'\?Ep0?c?e?oJ??T?ux|"+J?L??????usVD??<J? +',(????!O????? KX???S?_?[? .G7?S?????x???S??\E`??xh???2Nw\??F$??????i&F?fa??+s?\????? ??????W1?q????Y?p;( \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xdg.gemspec new/xdg.gemspec --- old/xdg.gemspec 2022-07-17 23:21:54.000000000 +0200 +++ new/xdg.gemspec 2022-09-10 03:30:36.000000000 +0200 @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "xdg" - spec.version = "6.5.0" + spec.version = "6.6.0" spec.authors = ["Brooke Kuhlmann"] spec.email = ["[email protected]"] spec.homepage = "https://www.alchemists.io/projects/xdg"
