xdg 2.2.0 → 2.2.1

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.
@@ -64,7 +64,7 @@ module XDG
64
64
  end
65
65
 
66
66
  # Shortcut for #environment_with_defaults.
67
- alias :env, :environment_with_defaults
67
+ alias_method :env, :environment_with_defaults
68
68
 
69
69
  # Returns a complete list of expanded directories.
70
70
  #
@@ -1,3 +1,3 @@
1
1
  module XDG
2
- VERSION = '2.2.0'
2
+ VERSION = '2.2.1'
3
3
  end
@@ -16,7 +16,7 @@ coorepsonding environment settings to use as test fixtures.
16
16
 
17
17
  === Home
18
18
 
19
- XDG['DATA_HOME'].env.assert == ENV['XDG_DATA_HOME'].to_s
19
+ XDG['DATA_HOME'].environment.assert == ENV['XDG_DATA_HOME'].to_s
20
20
  XDG['DATA_HOME'].environment_variables.assert == ['XDG_DATA_HOME']
21
21
 
22
22
  Looking at the data home location by default it should be point to
@@ -26,7 +26,7 @@ our joe user's home directory under `.local/share`.
26
26
 
27
27
  === Dirs
28
28
 
29
- XDG['DATA_DIRS'].env.assert == ENV['XDG_DATA_DIRS'].to_s
29
+ XDG['DATA_DIRS'].environment.assert == ENV['XDG_DATA_DIRS'].to_s
30
30
  XDG['DATA_DIRS'].environment_variables.assert == ['XDG_DATA_DIRS']
31
31
 
32
32
  Looking at the system data locations
@@ -46,12 +46,12 @@ Lookking at both data location combined
46
46
 
47
47
  === Home
48
48
 
49
- XDG['CONFIG_HOME'].env.assert == ENV['XDG_CONFIG_HOME'].to_s
49
+ XDG['CONFIG_HOME'].environment.assert == ENV['XDG_CONFIG_HOME'].to_s
50
50
  XDG['CONFIG_HOME'].to_a.assert == [$froot + 'home/joe/.config']
51
51
 
52
52
  === Dirs
53
53
 
54
- XDG['CONFIG_DIRS'].env.assert == ENV['XDG_CONFIG_DIRS'].to_s
54
+ XDG['CONFIG_DIRS'].environment.assert == ENV['XDG_CONFIG_DIRS'].to_s
55
55
  XDG['CONFIG_DIRS'].to_a.assert == [$froot + 'etc/xdg', $froot + 'etc']
56
56
 
57
57
  === Combined
@@ -63,12 +63,12 @@ Lookking at both data location combined
63
63
 
64
64
  === Home
65
65
 
66
- XDG['CACHE_HOME'].env.assert == ENV['XDG_CACHE_HOME'].to_s
66
+ XDG['CACHE_HOME'].environment.assert == ENV['XDG_CACHE_HOME'].to_s
67
67
  XDG['CACHE_HOME'].to_a.assert == [$froot + 'home/joe/.cache']
68
68
 
69
69
  === Dirs
70
70
 
71
- XDG['CACHE_DIRS'].env.assert == ENV['XDG_CACHE_DIRS'].to_s
71
+ XDG['CACHE_DIRS'].environment.assert == ENV['XDG_CACHE_DIRS'].to_s
72
72
  XDG['CACHE_DIRS'].to_a.assert == [$froot + 'tmp']
73
73
 
74
74
  === Combined
@@ -6,7 +6,7 @@ The extended base directory standard provides
6
6
 
7
7
  == Resource
8
8
 
9
- XDG['RESOURCE_HOME'].env.assert == ENV['XDG_RESOURCE_HOME'].to_s
9
+ XDG['RESOURCE_HOME'].environment.assert == ENV['XDG_RESOURCE_HOME'].to_s
10
10
 
11
11
  XDG['RESOURCE_HOME'].environment_variables.assert == ['XDG_RESOURCE_HOME']
12
12
 
@@ -22,7 +22,7 @@ our joe user's home directory under `.local`.
22
22
 
23
23
  The working configuration directory
24
24
 
25
- XDG['CONFIG_WORK'].env.assert == ENV['XDG_CONFIG_WORK'].to_s
25
+ XDG['CONFIG_WORK'].environment.assert == ENV['XDG_CONFIG_WORK'].to_s
26
26
 
27
27
  XDG['CONFIG_WORK'].environment_variables.assert == ['XDG_CONFIG_WORK']
28
28
 
@@ -35,7 +35,7 @@ the current working directory's `.config` or `config` directory.
35
35
 
36
36
  The working cache directory
37
37
 
38
- XDG['CACHE_WORK'].env.assert == ENV['XDG_CACHE_WORK'].to_s
38
+ XDG['CACHE_WORK'].environment.assert == ENV['XDG_CACHE_WORK'].to_s
39
39
 
40
40
  XDG['CACHE_WORK'].environment_variables.assert == ['XDG_CACHE_WORK']
41
41
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xdg
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 0
10
- version: 2.2.0
9
+ - 1
10
+ version: 2.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Thomas Sawyer