[devdocsgjs: 1/2] Update xdg gem
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs: 1/2] Update xdg gem
- Date: Thu, 10 Sep 2020 21:53:26 +0000 (UTC)
commit f21b5c3d2d8680c92f98d56a4e7a19f5951355d1
Author: Senya <senya riseup net>
Date: Mon Aug 31 14:37:16 2020 +0300
Update xdg gem
Gemfile.lock | 2 +-
lib/tasks/gir.thor | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Gemfile.lock b/Gemfile.lock
index 3033306d..f2b6710b 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -123,7 +123,7 @@ GEM
unicode-display_width (1.4.1)
unicode_utils (1.4.0)
unix_utils (0.0.15)
- xdg (2.2.3)
+ xdg (4.2.0)
yajl-ruby (1.4.1)
PLATFORMS
diff --git a/lib/tasks/gir.thor b/lib/tasks/gir.thor
index 0954343d..32881e25 100644
--- a/lib/tasks/gir.thor
+++ b/lib/tasks/gir.thor
@@ -17,7 +17,7 @@ class GirCLI < Thor
if gir_dir
glob = Dir.glob(gir_dir + '/*.gir')
else
- glob = XDG['DATA_DIRS'].glob('gir-1.0/*.gir')
+ glob = XDG::Data.new.directories.map {|dir| dir.glob('gir-1.0/*.gir') }.flatten
end
glob.each do |path|
puts 'Generating scraper for ' + File.basename(path) + '...'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]