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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9fcb231d1885ab3ec30f7d9ee07cff012a6f9ca9e78064a10eb92ab32231527
4
- data.tar.gz: 77bda62d924c4e534bf27caadb9fa90b901eb2cbf35ecdf69c4835c6bbec09ac
3
+ metadata.gz: ba7e0f5588bda1898dfee94c2c91728ae85103de2a32e2cf2c78d7cb02b18686
4
+ data.tar.gz: cf5947fb643be6e37b0e8fe004896d6d90309a93e556f19aefc34d9396382b68
5
5
  SHA512:
6
- metadata.gz: 620e7182b6e70a304b1e694f87df1cf3584f96d4ffd694a0ba4a37ef782e3070cbbe6848bdd5d6d112b530ebda00632900eef61b39d06b9e9774739040879fc3
7
- data.tar.gz: c927fbbd8f73410a71b350348c2649f9a131c9a0e9fa8660e7a4d58ea8eeeddb17dc446be28f03509264c495f4a36f7c253cdef275de44d0f25ee356bd5b6fa1
6
+ metadata.gz: 4382af9e6f4f6fdb188c0eee22471ddf2390a9a983364e23b59f4f9b9ce03edd5ee345deb445d35ae891f43883acbce9757e5acb36b26b78e1a25668ac8f1a20
7
+ data.tar.gz: bc8152d7471a4bc12f7627f5ff5ac51c0438baf15b55c7ae06d5fce82da051a5a1e7ae4d3c21d0a0b5e1c04d1dc176bb758b7f0262a092bdadedf1a0341f0845
@@ -1,2 +1,3 @@
1
- g�&�O�Ҁ�@TƱQ6h������88$>��kXR^ȟ����9�1hS��,ɶt���Z�<ۂdw�
2
- ��!�&�!��� eDoʞ�_rP5H�����Sd�b��<ie7���&�}Lg9
1
+ �9���V��`6��A�ܷ���%jw2|�c�����@l��DƝ"��&��1����#��p�9����"~��G�2S�o+�w���-KhG��3 Dr)|��'9�
2
+ 4����oWN 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://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html).
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "xdg/identity"
4
4
  require "xdg/pair"
5
- require "xdg/paths/standard"
5
+ require "xdg/paths/home"
6
6
  require "xdg/paths/directory"
7
7
  require "xdg/paths/combined"
8
8
  require "xdg/config"
@@ -10,7 +10,7 @@ module XDG
10
10
 
11
11
  delegate %i[home directories all inspect] => :combined
12
12
 
13
- def initialize home: Paths::Standard, directories: Paths::Directory, environment: ENV
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
@@ -11,7 +11,7 @@ module XDG
11
11
 
12
12
  delegate %i[home directories all inspect] => :combined
13
13
 
14
- def initialize home: Paths::Standard, directories: Paths::Directory, environment: ENV
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
@@ -11,7 +11,7 @@ module XDG
11
11
 
12
12
  delegate %i[home directories all inspect] => :combined
13
13
 
14
- def initialize home: Paths::Standard, directories: Paths::Directory, environment: ENV
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  module XDG
4
4
  class Environment
5
- def initialize home: Paths::Standard, directories: Paths::Directory, environment: ENV
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
@@ -12,7 +12,7 @@ module XDG
12
12
  end
13
13
 
14
14
  def self.version
15
- "3.1.1"
15
+ "4.0.0"
16
16
  end
17
17
 
18
18
  def self.version_label
@@ -14,11 +14,11 @@ module XDG
14
14
  end
15
15
 
16
16
  def default
17
- paths.split(DELIMITER).map(&method(:expand))
17
+ value.split(DELIMITER).map(&method(:expand))
18
18
  end
19
19
 
20
20
  def dynamic
21
- String(environment[key]).then { |env_paths| env_paths.empty? ? paths : env_paths }
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 paths
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 Standard
9
+ class Home
10
10
  extend Forwardable
11
11
 
12
- HOME_KEY = "HOME"
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(HOME_KEY)
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: 3.1.1
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: 2019-11-01 00:00:00.000000000 Z
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.10'
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.10'
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.5'
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.5'
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.76'
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.76'
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.4'
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.4'
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.3'
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.3'
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.33'
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.33'
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.13'
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.13'
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/standard.rb
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.6'
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.0.6
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