ppds-libs 0.0.1 → 0.0.2
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.
- data/Changelog +3 -0
- data/VERSION +1 -0
- data/lib/ppds/config.rb +7 -6
- data/ppds-libs.gemspec +16 -0
- metadata +42 -13
- data/Rakefile +0 -46
data/Changelog
ADDED
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.2
|
data/lib/ppds/config.rb
CHANGED
@@ -22,7 +22,10 @@ module Ppds
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def set(name, value)
|
25
|
-
|
25
|
+
key = key_from_name(name)
|
26
|
+
gconf[key] = value
|
27
|
+
rescue
|
28
|
+
"Cannot set #{key} to #{value}"
|
26
29
|
end
|
27
30
|
|
28
31
|
def drop(name)
|
@@ -34,20 +37,18 @@ module Ppds
|
|
34
37
|
end
|
35
38
|
|
36
39
|
def destroy
|
37
|
-
|
38
|
-
gconf.unset(one.key)
|
39
|
-
end
|
40
|
+
all.each { |one| gconf.unset(one.key) }
|
40
41
|
save
|
41
42
|
end
|
42
43
|
|
43
|
-
|
44
|
+
private
|
44
45
|
|
45
46
|
def name_from_key(key)
|
46
47
|
key.split('/').last
|
47
48
|
end
|
48
49
|
|
49
50
|
def key_from_name(name)
|
50
|
-
[ @root, name ].join(
|
51
|
+
[ @root, name ].join('/')
|
51
52
|
end
|
52
53
|
|
53
54
|
end
|
data/ppds-libs.gemspec
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = 'ppds-libs'
|
3
|
+
s.version = File.open('VERSION') { |f| f.read }
|
4
|
+
s.author = 'Paul Philippov'
|
5
|
+
s.description = "A collection of ruby code shared between different projects of PPDS."
|
6
|
+
s.email = 'themactep@gmail.com'
|
7
|
+
s.extra_rdoc_files = ['README', 'LICENSE', 'VERSION', 'Changelog']
|
8
|
+
s.files = Dir.glob("{lib,spec}/**/*") + \
|
9
|
+
%w(LICENSE README VERSION Changelog ppds-libs.gemspec)
|
10
|
+
s.homepage = 'http://themactep.com/'
|
11
|
+
s.require_path = "lib"
|
12
|
+
s.rubyforge_project = 'ppds-libs'
|
13
|
+
s.summary = "A collection of ruby code shared between different projects of PPDS."
|
14
|
+
s.has_rdoc = false
|
15
|
+
s.add_dependency "ppds-libs"
|
16
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ppds-libs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Paul Philippov
|
@@ -9,11 +15,24 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2011-01-26 00:00:00 +06:00
|
13
19
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
16
|
-
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: ppds-libs
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
description: A collection of ruby code shared between different projects of PPDS.
|
17
36
|
email: themactep@gmail.com
|
18
37
|
executables: []
|
19
38
|
|
@@ -22,14 +41,18 @@ extensions: []
|
|
22
41
|
extra_rdoc_files:
|
23
42
|
- README
|
24
43
|
- LICENSE
|
44
|
+
- VERSION
|
45
|
+
- Changelog
|
25
46
|
files:
|
47
|
+
- lib/ppds/class_factory.rb
|
48
|
+
- lib/ppds/config.rb
|
26
49
|
- LICENSE
|
27
50
|
- README
|
28
|
-
-
|
29
|
-
-
|
30
|
-
-
|
51
|
+
- VERSION
|
52
|
+
- Changelog
|
53
|
+
- ppds-libs.gemspec
|
31
54
|
has_rdoc: true
|
32
|
-
homepage: http://themactep.com/
|
55
|
+
homepage: http://themactep.com/
|
33
56
|
licenses: []
|
34
57
|
|
35
58
|
post_install_message:
|
@@ -38,23 +61,29 @@ rdoc_options: []
|
|
38
61
|
require_paths:
|
39
62
|
- lib
|
40
63
|
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
41
65
|
requirements:
|
42
66
|
- - ">="
|
43
67
|
- !ruby/object:Gem::Version
|
68
|
+
hash: 3
|
69
|
+
segments:
|
70
|
+
- 0
|
44
71
|
version: "0"
|
45
|
-
version:
|
46
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
47
74
|
requirements:
|
48
75
|
- - ">="
|
49
76
|
- !ruby/object:Gem::Version
|
77
|
+
hash: 3
|
78
|
+
segments:
|
79
|
+
- 0
|
50
80
|
version: "0"
|
51
|
-
version:
|
52
81
|
requirements: []
|
53
82
|
|
54
83
|
rubyforge_project: ppds-libs
|
55
|
-
rubygems_version: 1.
|
84
|
+
rubygems_version: 1.4.2
|
56
85
|
signing_key:
|
57
86
|
specification_version: 3
|
58
|
-
summary:
|
87
|
+
summary: A collection of ruby code shared between different projects of PPDS.
|
59
88
|
test_files: []
|
60
89
|
|
data/Rakefile
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'rake'
|
3
|
-
require 'rake/clean'
|
4
|
-
require 'rake/gempackagetask'
|
5
|
-
require 'rake/rdoctask'
|
6
|
-
require 'rake/testtask'
|
7
|
-
require 'spec/rake/spectask'
|
8
|
-
|
9
|
-
spec = Gem::Specification.new do |s|
|
10
|
-
s.name = 'ppds-libs'
|
11
|
-
s.version = '0.0.1'
|
12
|
-
s.has_rdoc = true
|
13
|
-
s.extra_rdoc_files = ['README', 'LICENSE']
|
14
|
-
s.summary = 'PPDS shared libraries'
|
15
|
-
s.description = 'A collection of ruby code shared between projects of PPDS'
|
16
|
-
s.author = 'Paul Philippov'
|
17
|
-
s.email = 'themactep@gmail.com'
|
18
|
-
s.homepage = 'http://themactep.com/ppds-libs'
|
19
|
-
s.rubyforge_project = 'ppds-libs'
|
20
|
-
s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
|
21
|
-
s.require_path = "lib"
|
22
|
-
s.bindir = "bin"
|
23
|
-
end
|
24
|
-
|
25
|
-
Rake::GemPackageTask.new(spec) do |p|
|
26
|
-
p.gem_spec = spec
|
27
|
-
p.need_tar = true
|
28
|
-
p.need_zip = true
|
29
|
-
end
|
30
|
-
|
31
|
-
Rake::RDocTask.new do |rdoc|
|
32
|
-
files =['README', 'LICENSE', 'lib/**/*.rb']
|
33
|
-
rdoc.rdoc_files.add(files)
|
34
|
-
rdoc.main = "README" # page to start on
|
35
|
-
rdoc.title = "ppds-libs Docs"
|
36
|
-
rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
|
37
|
-
rdoc.options << '--line-numbers'
|
38
|
-
end
|
39
|
-
|
40
|
-
Rake::TestTask.new do |t|
|
41
|
-
t.test_files = FileList['test/**/*.rb']
|
42
|
-
end
|
43
|
-
|
44
|
-
Spec::Rake::SpecTask.new do |t|
|
45
|
-
t.spec_files = FileList['spec/**/*.rb']
|
46
|
-
end
|