ppl 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
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
  [![Build Status](https://secure.travis-ci.org/h2s/ppl.png)](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
 
@@ -6,7 +6,7 @@ class Ppl::Command::Post < Ppl::Application::Command
6
6
 
7
7
  def initialize
8
8
  @name = "post"
9
- @description = "Show or change a contact's postal address"
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
@@ -1,7 +1,7 @@
1
1
 
2
2
  module Ppl
3
3
 
4
- Version = "1.2.0"
4
+ Version = "1.3.0"
5
5
 
6
6
  module Adapter
7
7
  end
data/ppl.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |spec|
3
3
 
4
4
  spec.name = "ppl"
5
- spec.version = "1.2.0"
5
+ spec.version = "1.3.0"
6
6
  spec.date = "2012-12-20"
7
7
 
8
8
  spec.required_ruby_version = ">= 1.9.3"
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.2.0
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: &16562220 !ruby/object:Gem::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: *16562220
24
+ version_requirements: *16554540
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rugged
27
- requirement: &16560900 !ruby/object:Gem::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: *16560900
35
+ version_requirements: *16542760
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: vpim
38
- requirement: &16560140 !ruby/object:Gem::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: *16560140
46
+ version_requirements: *16542000
47
47
  description: CLI Address Book
48
48
  email: henry@henrysmith.org
49
49
  executables: