xdg 2.2.2 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/.index ADDED
@@ -0,0 +1,54 @@
1
+ ---
2
+ type: ruby
3
+ revision: 2013
4
+ sources:
5
+ - Index.yml
6
+ authors:
7
+ - name: Trans
8
+ email: transfire@gmail.com
9
+ organizations:
10
+ - name: Rubyworks
11
+ requirements:
12
+ - groups:
13
+ - build
14
+ development: true
15
+ name: detroit
16
+ - groups:
17
+ - test
18
+ development: true
19
+ name: qed
20
+ - groups:
21
+ - test
22
+ development: true
23
+ name: ae
24
+ conflicts: []
25
+ alternatives: []
26
+ resources:
27
+ - type: home
28
+ uri: http://rubyworks.github.com/xdg
29
+ label: Homepage
30
+ - type: code
31
+ uri: http://github.com/rubyworks/xdg
32
+ label: Source Code
33
+ - type: mail
34
+ uri: http://groups.goole.com/rubyworks-mailinglist
35
+ label: Mailing List
36
+ repositories:
37
+ - name: upstream
38
+ scm: git
39
+ uri: git://github.com/rubyworks/xdg.git
40
+ categories: []
41
+ load_path:
42
+ - lib
43
+ copyrights:
44
+ - holder: Rubyworks
45
+ year: '2008'
46
+ license: BSD-2-Clause
47
+ name: xdg
48
+ title: XDG
49
+ version: 2.2.3
50
+ summary: XDG provides an interface for using XDG directory standard.
51
+ description: XDG provides a module for supporting the XDG Base Directory Standard.
52
+ See http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html
53
+ created: '2008-09-27'
54
+ date: '2012-12-12'
@@ -0,0 +1,7 @@
1
+ --title "YARD-Bird"
2
+ --readme README.md
3
+ --output-dir site/doc
4
+ --private
5
+ lib/**/*.rb -
6
+ *.md
7
+ *.txt
data/DEMO.md ADDED
@@ -0,0 +1,144 @@
1
+ # XDG Base Directory Standard
2
+
3
+ The 2.0 API is much a great deal more concise than the original
4
+ 0.0+ and 1.0+ APIs. It consists primarily of a single
5
+ interface method `XDG[]`. Yet all the functionality of the older
6
+ API remain and then some.
7
+
8
+ First we need to require the library.
9
+
10
+ require 'xdg'
11
+
12
+ In the applique we have setup a fake root directory with
13
+ coorepsonding environment settings to use as test fixtures.
14
+
15
+ ## Data Paths
16
+
17
+ ### Home
18
+
19
+ XDG['DATA_HOME'].environment.assert == ENV['XDG_DATA_HOME'].to_s
20
+ XDG['DATA_HOME'].environment_variables.assert == ['XDG_DATA_HOME']
21
+
22
+ Looking at the data home location by default it should be point to
23
+ our joe user's home directory under `.local/share`.
24
+
25
+ XDG['DATA_HOME'].to_a.assert == [$froot + 'home/joe/.local/share']
26
+
27
+ ### Dirs
28
+
29
+ XDG['DATA_DIRS'].environment.assert == ENV['XDG_DATA_DIRS'].to_s
30
+ XDG['DATA_DIRS'].environment_variables.assert == ['XDG_DATA_DIRS']
31
+
32
+ Looking at the system data locations
33
+
34
+ XDG['DATA_DIRS'].to_a.assert == [$froot + 'usr/share']
35
+
36
+ ### Combined
37
+
38
+ XDG['DATA'].environment_variables.assert == ['XDG_DATA_HOME', 'XDG_DATA_DIRS']
39
+
40
+ Lookking at both data location combined
41
+
42
+ XDG['DATA'].to_a.assert == [$froot + 'home/joe/.local/share', $froot + 'usr/share']
43
+
44
+
45
+ ## Config Paths
46
+
47
+ ### Home
48
+
49
+ XDG['CONFIG_HOME'].environment.assert == ENV['XDG_CONFIG_HOME'].to_s
50
+ XDG['CONFIG_HOME'].to_a.assert == [$froot + 'home/joe/.config']
51
+
52
+ ### Dirs
53
+
54
+ XDG['CONFIG_DIRS'].environment.assert == ENV['XDG_CONFIG_DIRS'].to_s
55
+ XDG['CONFIG_DIRS'].to_a.assert == [$froot + 'etc/xdg', $froot + 'etc']
56
+
57
+ ### Combined
58
+
59
+ XDG['CONFIG'].to_a.assert == [$froot + 'home/joe/.config', $froot + 'etc/xdg', $froot + 'etc']
60
+
61
+
62
+ ## Cache Paths
63
+
64
+ ### Home
65
+
66
+ XDG['CACHE_HOME'].environment.assert == ENV['XDG_CACHE_HOME'].to_s
67
+ XDG['CACHE_HOME'].to_a.assert == [$froot + 'home/joe/.cache']
68
+
69
+ ### Dirs
70
+
71
+ XDG['CACHE_DIRS'].environment.assert == ENV['XDG_CACHE_DIRS'].to_s
72
+ XDG['CACHE_DIRS'].to_a.assert == [$froot + 'tmp']
73
+
74
+ ### Combined
75
+
76
+ XDG['CACHE'].to_a.assert == [$froot + 'home/joe/.cache', $froot + 'tmp']
77
+
78
+
79
+ # Extended Base Directory Standard
80
+
81
+ The extended base directory standard provides additional locations
82
+ not apart the offical standard. These are somewhat experimental.
83
+
84
+ ## Resource
85
+
86
+ XDG['RESOURCE_HOME'].environment.assert == ENV['XDG_RESOURCE_HOME'].to_s
87
+
88
+ XDG['RESOURCE_HOME'].environment_variables.assert == ['XDG_RESOURCE_HOME']
89
+
90
+ Looking at the data home location by default it should be pointing to
91
+ our joe users home directory under `.local`.
92
+
93
+ XDG['RESOURCE_HOME'].list.assert == ['~/.local']
94
+
95
+ XDG['RESOURCE_HOME'].to_a.assert == [$froot + 'home/joe/.local']
96
+
97
+
98
+ ## Work
99
+
100
+ The working configuration directory
101
+
102
+ XDG['CONFIG_WORK'].environment.assert == ENV['XDG_CONFIG_WORK'].to_s
103
+
104
+ XDG['CONFIG_WORK'].environment_variables.assert == ['XDG_CONFIG_WORK']
105
+
106
+ Looking at the config work location, by default it should be pointing to
107
+ the current working directorys `.config` or `config` directory.
108
+
109
+ XDG['CONFIG_WORK'].list.assert == ['.config', 'config']
110
+
111
+ XDG['CONFIG_WORK'].to_a.assert == [Dir.pwd + '/.config', Dir.pwd + '/config']
112
+
113
+ The working cache directory
114
+
115
+ XDG['CACHE_WORK'].environment.assert == ENV['XDG_CACHE_WORK'].to_s
116
+
117
+ XDG['CACHE_WORK'].environment_variables.assert == ['XDG_CACHE_WORK']
118
+
119
+ Looking at the cache work location, by default it should be pointing to
120
+ the current working directorys `.tmp` or `tmp` directory.
121
+
122
+ XDG['CACHE_WORK'].list.assert == ['.tmp', 'tmp']
123
+
124
+ XDG['CACHE_WORK'].to_a.assert == [Dir.pwd + '/.tmp', Dir.pwd + '/tmp']
125
+
126
+
127
+ # Base Directory Mixin
128
+
129
+ The base directory mixin is used to easy augment a class for
130
+ access to a named subdirectory of the XDG directories.
131
+
132
+ class MyAppConfig
133
+ include XDG::BaseDir::Mixin
134
+
135
+ def subdirectory
136
+ 'myapp'
137
+ end
138
+ end
139
+
140
+ c = MyAppConfig.new
141
+
142
+ c.config.home.to_a #=> [$froot + 'home/joe/.config/myapp']
143
+
144
+
@@ -1,6 +1,16 @@
1
- = RELEASE HISTORY
1
+ # RELEASE HISTORY
2
2
 
3
- == 2.2.2 / 2011-10-30
3
+ ## 2.2.3 / 2012-12-13
4
+
5
+ This release switches to RbConfig instead of Config, which Ruby
6
+ is deprecating.
7
+
8
+ Changes:
9
+
10
+ * Switch Config to RbConfig.
11
+
12
+
13
+ ## 2.2.2 / 2011-10-30
4
14
 
5
15
  Just a maintenance release to bring the build configuration
6
16
  up to date. Also, change license to BSD-2-Clause.
@@ -11,7 +21,7 @@ Changes:
11
21
  * Switch to BSD-2-Clause license.
12
22
 
13
23
 
14
- == 2.2.1 / 2011-06-11
24
+ ## 2.2.1 / 2011-06-11
15
25
 
16
26
  This release changes BaseDir#to_s to return the first directory
17
27
  entry, and moves the old #to_s to #environment_with_defaults
@@ -24,7 +34,7 @@ Changes:
24
34
  * Modify #to_s to return first directory.
25
35
 
26
36
 
27
- == 2.1.0 / 2011-06-09
37
+ ## 2.1.0 / 2011-06-09
28
38
 
29
39
  This release changes the BaseDir#list method, where as it used
30
40
  to be an alias for #to_a, it now differs in that it does not
@@ -38,7 +48,7 @@ Changes:
38
48
  * Fix broken qed tests.
39
49
 
40
50
 
41
- == 2.0.0 / 2011-06-09
51
+ ## 2.0.0 / 2011-06-09
42
52
 
43
53
  Major new release is full rewrite of the API, with an eye out for
44
54
  support future XDG standards beyond the base directories. The
@@ -52,7 +62,7 @@ Changes:
52
62
  * Structure project for future support of more of XDG.
53
63
 
54
64
 
55
- == 1.0.0 / 2009-12-01
65
+ ## 1.0.0 / 2009-12-01
56
66
 
57
67
  This is major reimplementation of the XDG API to be more flexiable
58
68
  and object-oriented. Instead of a single module with every
@@ -67,7 +77,7 @@ Changes:
67
77
  * Provides xdg/compat.rb, for backward compatabilty (temporary).
68
78
 
69
79
 
70
- == 0.5.2 / 2009-05-30
80
+ ## 0.5.2 / 2009-05-30
71
81
 
72
82
  This release requires rbconfig.rb and uses system entries in place of
73
83
  some hardcoded FHS locations.
@@ -77,7 +87,7 @@ Changes:
77
87
  * Replaced hardcoded system directories with rbconfig entries.
78
88
 
79
89
 
80
- == 0.5.1 / 2008-11-17
90
+ ## 0.5.1 / 2008-11-17
81
91
 
82
92
  Changes:
83
93
 
@@ -85,14 +95,14 @@ Changes:
85
95
  * Deprecated #data_work
86
96
 
87
97
 
88
- == 0.5.0 / 2008-10-28
98
+ ## 0.5.0 / 2008-10-28
89
99
 
90
100
  Changes:
91
101
 
92
102
  * Changed _glob to _select
93
103
 
94
104
 
95
- == 0.4.0 / 2008-10-26
105
+ ## 0.4.0 / 2008-10-26
96
106
 
97
107
  This release removes the xdg_ prefix from the instance-level
98
108
  method names. Now module and instance levels are the same.
@@ -119,7 +129,7 @@ Changes:
119
129
  * Fixed plural in RELEASE file
120
130
 
121
131
 
122
- == 0.3.0 / 2008-10-11
132
+ ## 0.3.0 / 2008-10-11
123
133
 
124
134
  Changes:
125
135
 
@@ -130,7 +140,7 @@ Changes:
130
140
  * Fixed issue of xdg_ prefix still being used internally
131
141
 
132
142
 
133
- == 0.1.0 / 2008-09-27
143
+ ## 0.1.0 / 2008-09-27
134
144
 
135
145
  Changes:
136
146
 
@@ -0,0 +1,23 @@
1
+ BSD-2-Clause License
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are met:
5
+
6
+ 1. Redistributions of source code must retain the above copyright notice,
7
+ this list of conditions and the following disclaimer.
8
+
9
+ 2. Redistributions in binary form must reproduce the above copyright
10
+ notice, this list of conditions and the following disclaimer in the
11
+ documentation and/or other materials provided with the distribution.
12
+
13
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
14
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
15
+ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
16
+ COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
17
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
20
+ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
21
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
22
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
+
@@ -1,15 +1,15 @@
1
- = XDG Standards for Ruby
1
+ # XDG Standards for Ruby
2
2
 
3
- {Homepage}[http://rubyworks.github.com/xdg] |
4
- {Source Code}[http://github.com/rubyworks/xdg] |
5
- {Report Issue}[http://github.com/rubyworks/xdg/issues] |
6
- {Mailing List}[http://googlegroups.com/group.rubyworks-mailinglist] |
7
- <a href="irc://irc.freenode.net/rubyworks">Chat Room</a>
3
+ [Homepage](http://rubyworks.github.com/xdg) |
4
+ [Source Code](http://github.com/rubyworks/xdg) |
5
+ [Report Issue](http://github.com/rubyworks/xdg/issues) |
6
+ [Mailing List](http://googlegroups.com/group.rubyworks-mailinglist) |
7
+ [Chat Room](irc://irc.freenode.net/rubyworks)
8
8
 
9
- {<img src="http://travis-ci.org/rubyworks/xdg.png" />}[http://travis-ci.org/rubyworks/xdg]
9
+ [![Build Status](https://secure.travis-ci.org/rubyworks/xdg.png)](http://travis-ci.org/rubyworks/xdg)
10
10
 
11
11
 
12
- == Introduction
12
+ ## Introduction
13
13
 
14
14
  XDG provides an easy to use Ruby library for working with XDG standards.
15
15
 
@@ -23,7 +23,7 @@ You can learn more about the standard at:
23
23
  http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
24
24
 
25
25
 
26
- == How to Use
26
+ ## How to Use
27
27
 
28
28
  For working with XDG base directories, XDG provides a very simple
29
29
  yet flexible interface, `XDG[]`. Let's say you want to work
@@ -56,7 +56,7 @@ that ties into both the `HOME` and `DIRS` paths.
56
56
  If you know XDG these are pretty much self-explanatory.
57
57
  But see the YARD-based API documentation for further specifics.
58
58
 
59
- === Extended Functionality
59
+ ### Extended Functionality
60
60
 
61
61
  The Ruby XDG module also provides extended functionality
62
62
  not part of the standard specification. These extensions are
@@ -70,7 +70,7 @@ the standard.
70
70
  See the API documentation to learn more. Note that the extended modules
71
71
  are subject to greater potential for change as they are still being refined.
72
72
 
73
- === Base Directory Mixin
73
+ ### Base Directory Mixin
74
74
 
75
75
  XDG provides a convenient base directory mixin that can provide handy a
76
76
  interface to a classes.
@@ -88,7 +88,7 @@ interface to a classes.
88
88
  c.config.home.to_s #=> '~/.config/myapp'
89
89
 
90
90
 
91
- === Legacy API
91
+ ### Legacy API
92
92
 
93
93
  Version 2.0+ of library marks a major departure from the earlier
94
94
  "fluid" notation of previous releases. Where as one used to do:
@@ -114,7 +114,7 @@ if you need to keep some old code working and don't have time to update it at
114
114
  the moment. Sometime in the future the legacy API will be deprecated.
115
115
 
116
116
 
117
- == How to Install
117
+ ## How to Install
118
118
 
119
119
  Using RubyGems:
120
120
 
@@ -127,20 +127,20 @@ Installing the tarball requires Ruby Setup (see http://rubyworks.github.com/setu
127
127
  $ sudo setup.rb all
128
128
 
129
129
 
130
- == Development
130
+ ## Development
131
131
 
132
- GitHub[http://github.com] hosts our {source code}[http://github.com/rubyworks/xdg]
133
- and {issue ticket system}[http://github.com/rubyworks/xdg/issues].
132
+ [GitHub](http://github.com) hosts our [source code](http://github.com/rubyworks/xdg)
133
+ and [issue ticket system](http://github.com/rubyworks/xdg/issues).
134
134
 
135
135
  To contribute to the project please fork the repository, ideally, create a new
136
136
  topic branch for your work, and submit a pull request.
137
137
 
138
138
 
139
- == Copyright & License
139
+ ## Copyright & License
140
140
 
141
141
  Copyright (c) 2008 Rubyworks
142
142
 
143
143
  Distributed under the terms of the *FreeBSD* license.
144
144
 
145
- See COPYING.rdoc file for details.
145
+ See LICENSE.txt file for details.
146
146
 
@@ -1,4 +1,4 @@
1
- = XDG Base Directory Standard
1
+ # XDG Base Directory Standard
2
2
 
3
3
  The 2.0 API is much a great deal more concise than the original
4
4
  0.0+ and 1.0+ APIs. It consists primarily of a single
@@ -12,9 +12,9 @@ First we need to require the library.
12
12
  In the applique we have setup a fake root directory with
13
13
  coorepsonding environment settings to use as test fixtures.
14
14
 
15
- == Data Paths
15
+ ## Data Paths
16
16
 
17
- === Home
17
+ ### Home
18
18
 
19
19
  XDG['DATA_HOME'].environment.assert == ENV['XDG_DATA_HOME'].to_s
20
20
  XDG['DATA_HOME'].environment_variables.assert == ['XDG_DATA_HOME']
@@ -24,7 +24,7 @@ our joe user's home directory under `.local/share`.
24
24
 
25
25
  XDG['DATA_HOME'].to_a.assert == [$froot + 'home/joe/.local/share']
26
26
 
27
- === Dirs
27
+ ### Dirs
28
28
 
29
29
  XDG['DATA_DIRS'].environment.assert == ENV['XDG_DATA_DIRS'].to_s
30
30
  XDG['DATA_DIRS'].environment_variables.assert == ['XDG_DATA_DIRS']
@@ -33,7 +33,7 @@ Looking at the system data locations
33
33
 
34
34
  XDG['DATA_DIRS'].to_a.assert == [$froot + 'usr/share']
35
35
 
36
- === Combined
36
+ ### Combined
37
37
 
38
38
  XDG['DATA'].environment_variables.assert == ['XDG_DATA_HOME', 'XDG_DATA_DIRS']
39
39
 
@@ -42,36 +42,36 @@ Lookking at both data location combined
42
42
  XDG['DATA'].to_a.assert == [$froot + 'home/joe/.local/share', $froot + 'usr/share']
43
43
 
44
44
 
45
- == Config Paths
45
+ ## Config Paths
46
46
 
47
- === Home
47
+ ### Home
48
48
 
49
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
- === Dirs
52
+ ### Dirs
53
53
 
54
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
- === Combined
57
+ ### Combined
58
58
 
59
59
  XDG['CONFIG'].to_a.assert == [$froot + 'home/joe/.config', $froot + 'etc/xdg', $froot + 'etc']
60
60
 
61
61
 
62
- == Cache Paths
62
+ ## Cache Paths
63
63
 
64
- === Home
64
+ ### Home
65
65
 
66
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
- === Dirs
69
+ ### Dirs
70
70
 
71
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
- === Combined
74
+ ### Combined
75
75
 
76
76
  XDG['CACHE'].to_a.assert == [$froot + 'home/joe/.cache', $froot + 'tmp']
77
77
 
@@ -1,9 +1,9 @@
1
- = Extended Base Directory Standard
1
+ # Extended Base Directory Standard
2
2
 
3
3
  The extended base directory standard provides additional locations
4
4
  not apart the offical standard. These are somewhat experimental.
5
5
 
6
- == Resource
6
+ ## Resource
7
7
 
8
8
  XDG['RESOURCE_HOME'].environment.assert == ENV['XDG_RESOURCE_HOME'].to_s
9
9
 
@@ -17,7 +17,7 @@ our joe users home directory under `.local`.
17
17
  XDG['RESOURCE_HOME'].to_a.assert == [$froot + 'home/joe/.local']
18
18
 
19
19
 
20
- == Work
20
+ ## Work
21
21
 
22
22
  The working configuration directory
23
23
 
@@ -1,4 +1,4 @@
1
- = Base Directory Mixin
1
+ # Base Directory Mixin
2
2
 
3
3
  The base directory mixin is used to easy augment a class for
4
4
  access to a named subdirectory of the XDG directories.
@@ -1 +1,2 @@
1
+ require 'ae'
1
2
  AE.ansi = false
File without changes
@@ -0,0 +1 @@
1
+ require 'xdg'
@@ -0,0 +1 @@
1
+ Just here to provide a file for github to keep this directory.
data/lib/xdg.rb CHANGED
@@ -42,5 +42,4 @@ module XDG
42
42
  end
43
43
  end
44
44
 
45
- # Copyright (c) 2008,2011 Thomas Sawyer
46
- # Distributed under the terms of the APACHE 2.0 license.
45
+ # Copyright (c) 2008 Rubyworks
@@ -6,8 +6,8 @@ module XDG
6
6
  # Try to get information from Ruby's install configuration.
7
7
  require 'rbconfig'
8
8
 
9
- sysconfdir = ::Config::CONFIG['sysconfdir'] || '/etc'
10
- datadir = ::Config::CONFIG['datadir'] || '/usr/share'
9
+ sysconfdir = ::RbConfig::CONFIG['sysconfdir'] || '/etc'
10
+ datadir = ::RbConfig::CONFIG['datadir'] || '/usr/share'
11
11
 
12
12
  # Standard defaults for locations.
13
13
  DEFAULTS = {
@@ -252,5 +252,4 @@ module XDG
252
252
 
253
253
  end
254
254
 
255
- # Copyright (c) 2008,2011 Thomas Sawyer
256
- # Distributed under the terms of the APACHE 2.0 license.
255
+ # Copyright (c) 2008 Rubyworks
@@ -16,5 +16,4 @@ module XDG
16
16
 
17
17
  end
18
18
 
19
- # Copyright (c) 2008,2011 Thomas Sawyer
20
- # Distributed under the terms of the APACHE 2.0 license.
19
+ # Copyright (c) 2008 Rubyworks
@@ -16,3 +16,4 @@ $XDG_CACHE = XDG::BaseDir.new('CACHE')
16
16
  $XDG_CACHE_HOME = XDG::BaseDir.new('CACHE', 'HOME')
17
17
  $XDG_CACHE_DIRS = XDG::BaseDir.new('CACHE', 'DIRS')
18
18
 
19
+ # Copyright (c) 2008 Rubyworks
@@ -70,3 +70,5 @@ module XDG
70
70
 
71
71
  extend BaseDir::Legacy
72
72
  end
73
+
74
+ # Copyright (c) 2008 Rubyworks
@@ -82,3 +82,5 @@ module XDG
82
82
  end
83
83
  end
84
84
  end
85
+
86
+ # Copyright (c) 2008 Rubyworks
@@ -1,3 +1,3 @@
1
1
  module XDG
2
- VERSION = '2.2.1'
2
+ VERSION = '2.2.3'
3
3
  end
@@ -0,0 +1 @@
1
+ Just here to provide a file for github to keep this directory.
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: 2.2.2
4
+ version: 2.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-30 00:00:00.000000000 Z
12
+ date: 2012-12-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: detroit
16
- requirement: &25706280 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,31 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *25706280
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: qed
27
- requirement: &25705740 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: ae
48
+ requirement: !ruby/object:Gem::Requirement
28
49
  none: false
29
50
  requirements:
30
51
  - - ! '>='
@@ -32,19 +53,39 @@ dependencies:
32
53
  version: '0'
33
54
  type: :development
34
55
  prerelease: false
35
- version_requirements: *25705740
36
- description: ! 'XDG provides a module for supporting the XDG Base Directory Standard.
37
-
38
- See http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html'
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ description: XDG provides a module for supporting the XDG Base Directory Standard.
63
+ See http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html
39
64
  email:
40
65
  - transfire@gmail.com
41
66
  executables: []
42
67
  extensions: []
43
68
  extra_rdoc_files:
44
- - HISTORY.rdoc
45
- - README.rdoc
69
+ - LICENSE.txt
70
+ - HISTORY.md
71
+ - README.md
72
+ - DEMO.md
46
73
  files:
47
- - .ruby
74
+ - .index
75
+ - .yardopts
76
+ - demo/01_base_dir.md
77
+ - demo/02_base_dir_extended.md
78
+ - demo/03_base_dir_mixin.md
79
+ - demo/applique/ae.rb
80
+ - demo/applique/fakeroot.rb
81
+ - demo/applique/xdg.rb
82
+ - demo/fixtures/fakeroot/.cache/DUMMY.txt
83
+ - demo/fixtures/fakeroot/etc/xdg/bar.config
84
+ - demo/fixtures/fakeroot/home/.cache/foo.cache
85
+ - demo/fixtures/fakeroot/home/.config/foo.config
86
+ - demo/fixtures/fakeroot/home/.local/share/foo.dat
87
+ - demo/fixtures/fakeroot/home/joe/foo.txt
88
+ - demo/fixtures/fakeroot/usr/share/bar.dat
48
89
  - lib/xdg/base_dir/extended.rb
49
90
  - lib/xdg/base_dir/global_variables.rb
50
91
  - lib/xdg/base_dir/legacy.rb
@@ -52,25 +93,17 @@ files:
52
93
  - lib/xdg/base_dir.rb
53
94
  - lib/xdg/version.rb
54
95
  - lib/xdg.rb
55
- - qed/01_base_dir.rdoc
56
- - qed/02_base_dir_extended.rdoc
57
- - qed/03_base_dir_mixin.rdoc
58
- - qed/applique/ae.rb
59
- - qed/applique/fakeroot.rb
60
- - qed/fixtures/fakeroot/etc/xdg/bar.config
61
- - qed/fixtures/fakeroot/home/.cache/foo.cache
62
- - qed/fixtures/fakeroot/home/.config/foo.config
63
- - qed/fixtures/fakeroot/home/.local/share/foo.dat
64
- - qed/fixtures/fakeroot/home/joe/foo.txt
65
- - qed/fixtures/fakeroot/usr/share/bar.dat
96
+ - test/fakeroot/.cache/DUMMY.txt
66
97
  - test/fakeroot/etc/xdg/bar.config
67
98
  - test/fakeroot/home/.cache/foo.cache
68
99
  - test/fakeroot/home/.config/foo.config
69
100
  - test/fakeroot/home/.local/share/foo.dat
70
101
  - test/fakeroot/usr/share/bar.dat
71
102
  - test/test_xdg_legacy.rb
72
- - HISTORY.rdoc
73
- - README.rdoc
103
+ - LICENSE.txt
104
+ - HISTORY.md
105
+ - README.md
106
+ - DEMO.md
74
107
  homepage: http://rubyworks.github.com/xdg
75
108
  licenses:
76
109
  - BSD-2-Clause
@@ -92,8 +125,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
125
  version: '0'
93
126
  requirements: []
94
127
  rubyforge_project:
95
- rubygems_version: 1.8.10
128
+ rubygems_version: 1.8.23
96
129
  signing_key:
97
130
  specification_version: 3
98
131
  summary: XDG provides an interface for using XDG directory standard.
99
- test_files: []
132
+ test_files:
133
+ - test/test_xdg_legacy.rb
data/.ruby DELETED
@@ -1,45 +0,0 @@
1
- ---
2
- source:
3
- - meta
4
- authors:
5
- - name: Trans
6
- email: transfire@gmail.com
7
- copyrights:
8
- - holder: Rubyworks
9
- year: '2008'
10
- license: BSD-2-Clause
11
- replacements: []
12
- alternatives: []
13
- requirements:
14
- - name: detroit
15
- groups:
16
- - build
17
- development: true
18
- - name: qed
19
- groups:
20
- - test
21
- development: true
22
- dependencies: []
23
- conflicts: []
24
- repositories:
25
- - uri: git://github.com/proutils/xdg.git
26
- scm: git
27
- name: upstream
28
- resources:
29
- home: http://rubyworks.github.com/xdg
30
- code: http://github.com/rubyworks/xdg
31
- mail: http://groups.goole.com/rubyworks-mailinglist
32
- extra: {}
33
- load_path:
34
- - lib
35
- revision: 0
36
- created: '2008-09-27'
37
- summary: XDG provides an interface for using XDG directory standard.
38
- title: XDG
39
- version: 2.2.2
40
- name: xdg
41
- description: ! 'XDG provides a module for supporting the XDG Base Directory Standard.
42
-
43
- See http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html'
44
- organization: Rubyworks
45
- date: '2011-10-30'