ppl 1.2.0 → 1.3.0
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/README.md +0 -3
- data/lib/ppl/application/configuration.rb +13 -0
- data/lib/ppl/command/post.rb +1 -1
- data/lib/ppl.rb +1 -1
- data/ppl.gemspec +1 -1
- metadata +7 -7
data/README.md
CHANGED
@@ -12,9 +12,6 @@ ppl if:
|
|
12
12
|
* You want ownership of your address book data back from the cloud
|
13
13
|
* You prefer to keep your data stored in an open format
|
14
14
|
|
15
|
-
ppl is in an incomplete state right now, and is in active development. Stay
|
16
|
-
tuned.
|
17
|
-
|
18
15
|
[](http://travis-ci.org/h2s/ppl)
|
19
16
|
|
20
17
|
Installation
|
@@ -38,6 +38,8 @@ class Ppl::Application::Configuration
|
|
38
38
|
config = {}
|
39
39
|
if File.exists?(filename)
|
40
40
|
config = IniFile::load(filename).to_h
|
41
|
+
elsif File.exists?(xdg_path)
|
42
|
+
config = IniFile::load(xdg_path).to_h
|
41
43
|
end
|
42
44
|
return config
|
43
45
|
end
|
@@ -46,5 +48,16 @@ class Ppl::Application::Configuration
|
|
46
48
|
{}
|
47
49
|
end
|
48
50
|
|
51
|
+
def xdg_path
|
52
|
+
default = "~/.config"
|
53
|
+
custom = ENV["XDG_CONFIG_HOME"]
|
54
|
+
if custom.nil?
|
55
|
+
path = File.expand_path(default)
|
56
|
+
else
|
57
|
+
path = File.expand_path(custom)
|
58
|
+
end
|
59
|
+
File.join(path, "ppl", "config")
|
60
|
+
end
|
61
|
+
|
49
62
|
end
|
50
63
|
|
data/lib/ppl/command/post.rb
CHANGED
@@ -6,7 +6,7 @@ class Ppl::Command::Post < Ppl::Application::Command
|
|
6
6
|
|
7
7
|
def initialize
|
8
8
|
@name = "post"
|
9
|
-
@description = "
|
9
|
+
@description = "List, show or change postal addresses"
|
10
10
|
@show_format = Ppl::Format::Contact::PostalAddress.new
|
11
11
|
@list_format = Ppl::Format::AddressBook::PostalAddresses.new
|
12
12
|
end
|
data/lib/ppl.rb
CHANGED
data/ppl.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ppl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-12-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: inifile
|
16
|
-
requirement: &
|
16
|
+
requirement: &16554540 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - =
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 2.0.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *16554540
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rugged
|
27
|
-
requirement: &
|
27
|
+
requirement: &16542760 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - =
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.17.0.b6
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *16542760
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: vpim
|
38
|
-
requirement: &
|
38
|
+
requirement: &16542000 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - =
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0.695'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *16542000
|
47
47
|
description: CLI Address Book
|
48
48
|
email: henry@henrysmith.org
|
49
49
|
executables:
|