xdg 3.1.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -2
- data.tar.gz.sig +0 -0
- data/README.md +1 -1
- data/lib/xdg.rb +1 -1
- data/lib/xdg/cache.rb +1 -1
- data/lib/xdg/config.rb +1 -1
- data/lib/xdg/data.rb +1 -1
- data/lib/xdg/environment.rb +1 -1
- data/lib/xdg/identity.rb +1 -1
- data/lib/xdg/paths/directory.rb +3 -3
- data/lib/xdg/paths/{standard.rb → home.rb} +3 -3
- metadata +19 -47
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba7e0f5588bda1898dfee94c2c91728ae85103de2a32e2cf2c78d7cb02b18686
|
4
|
+
data.tar.gz: cf5947fb643be6e37b0e8fe004896d6d90309a93e556f19aefc34d9396382b68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4382af9e6f4f6fdb188c0eee22471ddf2390a9a983364e23b59f4f9b9ce03edd5ee345deb445d35ae891f43883acbce9757e5acb36b26b78e1a25668ac8f1a20
|
7
|
+
data.tar.gz: bc8152d7471a4bc12f7627f5ff5ac51c0438baf15b55c7ae06d5fce82da051a5a1e7ae4d3c21d0a0b5e1c04d1dc176bb758b7f0262a092bdadedf1a0341f0845
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
�9���V��`6��A�ܷ���%j�w2|�c�����@l��DƝ"��&��1����#��p�9����"~��G�2S�o+�w���-KhG��3D�r)|��'9�
|
2
|
+
�4����o�WN v��P��AK�Kw�/y���uc��*��Q$Q��a�w�/>V�\�S��t%Y�\�^�A�b�_R$_Ϯ�%L& ���#)'�t��u������K� ��Vf0�l\W�p��uU�@P��;��$
|
3
|
+
s�FSc��'��{�*�T
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
[![Circle CI Status](https://circleci.com/gh/bkuhlmann/xdg.svg?style=svg)](https://circleci.com/gh/bkuhlmann/xdg)
|
11
11
|
|
12
12
|
Provides a Ruby implementation of the [XDG Base Directory
|
13
|
-
Specification](https://
|
13
|
+
Specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html).
|
14
14
|
|
15
15
|
:bulb: If you write a lot of Command Line Interfaces and would like additional syntactic
|
16
16
|
sugar that includes what is found in this gem, make sure to check out the
|
data/lib/xdg.rb
CHANGED
data/lib/xdg/cache.rb
CHANGED
@@ -10,7 +10,7 @@ module XDG
|
|
10
10
|
|
11
11
|
delegate %i[home directories all inspect] => :combined
|
12
12
|
|
13
|
-
def initialize home: Paths::
|
13
|
+
def initialize home: Paths::Home, directories: Paths::Directory, environment: ENV
|
14
14
|
@combined = Paths::Combined.new home.new(HOME_PAIR, environment),
|
15
15
|
directories.new(Pair.new, environment)
|
16
16
|
end
|
data/lib/xdg/config.rb
CHANGED
@@ -11,7 +11,7 @@ module XDG
|
|
11
11
|
|
12
12
|
delegate %i[home directories all inspect] => :combined
|
13
13
|
|
14
|
-
def initialize home: Paths::
|
14
|
+
def initialize home: Paths::Home, directories: Paths::Directory, environment: ENV
|
15
15
|
@combined = Paths::Combined.new home.new(HOME_PAIR, environment),
|
16
16
|
directories.new(DIRS_PAIR, environment)
|
17
17
|
end
|
data/lib/xdg/data.rb
CHANGED
@@ -11,7 +11,7 @@ module XDG
|
|
11
11
|
|
12
12
|
delegate %i[home directories all inspect] => :combined
|
13
13
|
|
14
|
-
def initialize home: Paths::
|
14
|
+
def initialize home: Paths::Home, directories: Paths::Directory, environment: ENV
|
15
15
|
@combined = Paths::Combined.new home.new(HOME_PAIR, environment),
|
16
16
|
directories.new(DIRS_PAIR, environment)
|
17
17
|
end
|
data/lib/xdg/environment.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module XDG
|
4
4
|
class Environment
|
5
|
-
def initialize home: Paths::
|
5
|
+
def initialize home: Paths::Home, directories: Paths::Directory, environment: ENV
|
6
6
|
@cache = Cache.new home: home, directories: directories, environment: environment
|
7
7
|
@config = Config.new home: home, directories: directories, environment: environment
|
8
8
|
@data = Data.new home: home, directories: directories, environment: environment
|
data/lib/xdg/identity.rb
CHANGED
data/lib/xdg/paths/directory.rb
CHANGED
@@ -14,11 +14,11 @@ module XDG
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def default
|
17
|
-
|
17
|
+
value.split(DELIMITER).map(&method(:expand))
|
18
18
|
end
|
19
19
|
|
20
20
|
def dynamic
|
21
|
-
String(environment[key]).then { |
|
21
|
+
String(environment[key]).then { |env_value| env_value.empty? ? value : env_value }
|
22
22
|
.split(DELIMITER)
|
23
23
|
.uniq
|
24
24
|
.map(&method(:expand))
|
@@ -36,7 +36,7 @@ module XDG
|
|
36
36
|
String pair.key
|
37
37
|
end
|
38
38
|
|
39
|
-
def
|
39
|
+
def value
|
40
40
|
String pair.value
|
41
41
|
end
|
42
42
|
|
@@ -6,10 +6,10 @@ require "pathname"
|
|
6
6
|
module XDG
|
7
7
|
module Paths
|
8
8
|
# A XDG home path.
|
9
|
-
class
|
9
|
+
class Home
|
10
10
|
extend Forwardable
|
11
11
|
|
12
|
-
|
12
|
+
KEY = "HOME"
|
13
13
|
|
14
14
|
delegate %i[key value] => :pair
|
15
15
|
|
@@ -39,7 +39,7 @@ module XDG
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def home
|
42
|
-
Pathname environment.fetch(
|
42
|
+
Pathname environment.fetch(KEY)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xdg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
dKvURM+1PwDCzC5tvRwjhUJIizau6+MtkFCvJHmaAj1aZL3odcPejHj5Hxt/0CUW
|
29
29
|
y84=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date:
|
31
|
+
date: 2020-01-01 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: bundler-audit
|
@@ -44,34 +44,6 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0.6'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: gemsmith
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '13.5'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '13.5'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: git-cop
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '3.5'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '3.5'
|
75
47
|
- !ruby/object:Gem::Dependency
|
76
48
|
name: guard-rspec
|
77
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,28 +64,28 @@ dependencies:
|
|
92
64
|
requirements:
|
93
65
|
- - "~>"
|
94
66
|
- !ruby/object:Gem::Version
|
95
|
-
version: '0.
|
67
|
+
version: '0.12'
|
96
68
|
type: :development
|
97
69
|
prerelease: false
|
98
70
|
version_requirements: !ruby/object:Gem::Requirement
|
99
71
|
requirements:
|
100
72
|
- - "~>"
|
101
73
|
- !ruby/object:Gem::Version
|
102
|
-
version: '0.
|
74
|
+
version: '0.12'
|
103
75
|
- !ruby/object:Gem::Dependency
|
104
76
|
name: pry-byebug
|
105
77
|
requirement: !ruby/object:Gem::Requirement
|
106
78
|
requirements:
|
107
79
|
- - "~>"
|
108
80
|
- !ruby/object:Gem::Version
|
109
|
-
version: '3.
|
81
|
+
version: '3.7'
|
110
82
|
type: :development
|
111
83
|
prerelease: false
|
112
84
|
version_requirements: !ruby/object:Gem::Requirement
|
113
85
|
requirements:
|
114
86
|
- - "~>"
|
115
87
|
- !ruby/object:Gem::Version
|
116
|
-
version: '3.
|
88
|
+
version: '3.7'
|
117
89
|
- !ruby/object:Gem::Dependency
|
118
90
|
name: rake
|
119
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -162,70 +134,70 @@ dependencies:
|
|
162
134
|
requirements:
|
163
135
|
- - "~>"
|
164
136
|
- !ruby/object:Gem::Version
|
165
|
-
version: '0.
|
137
|
+
version: '0.78'
|
166
138
|
type: :development
|
167
139
|
prerelease: false
|
168
140
|
version_requirements: !ruby/object:Gem::Requirement
|
169
141
|
requirements:
|
170
142
|
- - "~>"
|
171
143
|
- !ruby/object:Gem::Version
|
172
|
-
version: '0.
|
144
|
+
version: '0.78'
|
173
145
|
- !ruby/object:Gem::Dependency
|
174
146
|
name: rubocop-performance
|
175
147
|
requirement: !ruby/object:Gem::Requirement
|
176
148
|
requirements:
|
177
149
|
- - "~>"
|
178
150
|
- !ruby/object:Gem::Version
|
179
|
-
version: '1.
|
151
|
+
version: '1.5'
|
180
152
|
type: :development
|
181
153
|
prerelease: false
|
182
154
|
version_requirements: !ruby/object:Gem::Requirement
|
183
155
|
requirements:
|
184
156
|
- - "~>"
|
185
157
|
- !ruby/object:Gem::Version
|
186
|
-
version: '1.
|
158
|
+
version: '1.5'
|
187
159
|
- !ruby/object:Gem::Dependency
|
188
160
|
name: rubocop-rake
|
189
161
|
requirement: !ruby/object:Gem::Requirement
|
190
162
|
requirements:
|
191
163
|
- - "~>"
|
192
164
|
- !ruby/object:Gem::Version
|
193
|
-
version: '0.
|
165
|
+
version: '0.5'
|
194
166
|
type: :development
|
195
167
|
prerelease: false
|
196
168
|
version_requirements: !ruby/object:Gem::Requirement
|
197
169
|
requirements:
|
198
170
|
- - "~>"
|
199
171
|
- !ruby/object:Gem::Version
|
200
|
-
version: '0.
|
172
|
+
version: '0.5'
|
201
173
|
- !ruby/object:Gem::Dependency
|
202
174
|
name: rubocop-rspec
|
203
175
|
requirement: !ruby/object:Gem::Requirement
|
204
176
|
requirements:
|
205
177
|
- - "~>"
|
206
178
|
- !ruby/object:Gem::Version
|
207
|
-
version: '1.
|
179
|
+
version: '1.37'
|
208
180
|
type: :development
|
209
181
|
prerelease: false
|
210
182
|
version_requirements: !ruby/object:Gem::Requirement
|
211
183
|
requirements:
|
212
184
|
- - "~>"
|
213
185
|
- !ruby/object:Gem::Version
|
214
|
-
version: '1.
|
186
|
+
version: '1.37'
|
215
187
|
- !ruby/object:Gem::Dependency
|
216
188
|
name: simplecov
|
217
189
|
requirement: !ruby/object:Gem::Requirement
|
218
190
|
requirements:
|
219
191
|
- - "~>"
|
220
192
|
- !ruby/object:Gem::Version
|
221
|
-
version: '0.
|
193
|
+
version: '0.17'
|
222
194
|
type: :development
|
223
195
|
prerelease: false
|
224
196
|
version_requirements: !ruby/object:Gem::Requirement
|
225
197
|
requirements:
|
226
198
|
- - "~>"
|
227
199
|
- !ruby/object:Gem::Version
|
228
|
-
version: '0.
|
200
|
+
version: '0.17'
|
229
201
|
description:
|
230
202
|
email:
|
231
203
|
- brooke@alchemists.io
|
@@ -246,7 +218,7 @@ files:
|
|
246
218
|
- lib/xdg/pair.rb
|
247
219
|
- lib/xdg/paths/combined.rb
|
248
220
|
- lib/xdg/paths/directory.rb
|
249
|
-
- lib/xdg/paths/
|
221
|
+
- lib/xdg/paths/home.rb
|
250
222
|
homepage: https://github.com/bkuhlmann/xdg
|
251
223
|
licenses:
|
252
224
|
- Apache-2.0
|
@@ -262,14 +234,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
262
234
|
requirements:
|
263
235
|
- - "~>"
|
264
236
|
- !ruby/object:Gem::Version
|
265
|
-
version: '2.
|
237
|
+
version: '2.7'
|
266
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
267
239
|
requirements:
|
268
240
|
- - ">="
|
269
241
|
- !ruby/object:Gem::Version
|
270
242
|
version: '0'
|
271
243
|
requirements: []
|
272
|
-
rubygems_version: 3.
|
244
|
+
rubygems_version: 3.1.2
|
273
245
|
signing_key:
|
274
246
|
specification_version: 4
|
275
247
|
summary: Provides an implementation of the XDG Base Directory Specification.
|
metadata.gz.sig
CHANGED
Binary file
|