slack-utils 0.6.2 → 0.7

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.
@@ -1,4 +1,4 @@
1
- # Copyright 2010,2011 Vincent Batts, Vienna, VA
1
+ # Copyright 2010,2011,2012 Vincent Batts, Vienna, VA
2
2
  # All rights reserved.
3
3
  #
4
4
  # Redistribution and use of this source, with or without modification, is
@@ -18,14 +18,17 @@
18
18
  # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
19
19
  # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
20
20
 
21
+ require 'slackware/paths'
22
+
21
23
  module Slackware
22
- SLACKWARE_VERSION = begin
23
- data = File.read("/etc/slackware-version")
24
- data =~ /Slackware\s(.*)/
25
- $1
26
- rescue
27
- nil
28
- end
29
- UTILS_VERSION = "0.6.2"
24
+ SLACKWARE_VERSION = begin
25
+ data = File.read(Paths::slackware_version())
26
+ data =~ /Slackware\s(.*)/
27
+ $1
28
+ rescue
29
+ nil
30
+ end
31
+ UTILS_VERSION = "0.7"
30
32
  end
31
33
 
34
+ # vim : set sw=2 sts=2 et :
data/lib/slackware.rb CHANGED
@@ -1,7 +1,31 @@
1
+ # encoding: UTF-8
1
2
 
3
+ # Copyright 2010,2011,2012 Vincent Batts, Vienna, VA
4
+ # All rights reserved.
5
+ #
6
+ # Redistribution and use of this source, with or without modification, is
7
+ # permitted provided that the following conditions are met:
8
+ #
9
+ # 1. Redistributions of this source must retain the above copyright
10
+ # notice, this list of conditions and the following disclaimer.
11
+ #
12
+ # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
13
+ # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
14
+ # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
15
+ # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
16
+ # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
17
+ # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
18
+ # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
19
+ # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
20
+ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
21
+ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22
+
23
+ require 'slackware/log'
2
24
  require 'slackware/version'
3
25
  require 'slackware/package'
4
26
  require 'slackware/system'
5
27
  require 'slackware/changelog'
6
28
  require 'slackware/repo'
7
29
  require 'slackware/package_bundle'
30
+
31
+ # vim : set sw=2 sts=2 et :
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: '0.7'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire: slack-utils
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-19 00:00:00.000000000 Z
12
+ date: 2012-01-31 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! " slack-utils is a means by which to access \npackage information on
15
15
  the Slackware Linux OS. \nSee the examples/ for more information.\n "
@@ -43,8 +43,10 @@ files:
43
43
  - lib/slackware/args.rb
44
44
  - lib/slackware/changelog.rb
45
45
  - lib/slackware/changelog/rss.rb
46
+ - lib/slackware/log.rb
46
47
  - lib/slackware/package.rb
47
48
  - lib/slackware/package_bundle.rb
49
+ - lib/slackware/paths.rb
48
50
  - lib/slackware/repo.rb
49
51
  - lib/slackware/version.rb
50
52
  - lib/slackware/system.rb
@@ -55,7 +57,7 @@ rdoc_options:
55
57
  - --main=README.rdoc
56
58
  - --line-numbers
57
59
  - --inline-source
58
- - --title=Slackware utils (slack-utils) 0.6.2 Documentation
60
+ - --title=Slackware utils (slack-utils) 0.7 Documentation
59
61
  require_paths:
60
62
  - lib
61
63
  required_ruby_version: !ruby/object:Gem::Requirement