ppl 2.3.3 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b8cf7a49d86910e1f9ae9d0715173ddfd90c172
4
- data.tar.gz: b936dfdaa46dd5f3a494d74e2caaf369c65c7dea
3
+ metadata.gz: b49a2cceb54b4ee3b05d5d4c27ee3cbda36ebfbc
4
+ data.tar.gz: 6f0aa6699ffa9da4890b9526e8f166158e78d77a
5
5
  SHA512:
6
- metadata.gz: adb3738b5599011b369a186cce6a9133b0d2e2fcfc8e7206989cc3c6d63624e0c96fd99bd596d84106b4695c51d50a23fa18820f32a75ca1ee6a43f5876dedfb
7
- data.tar.gz: e5999fc187d6e5ce979cd14809f8c7f5e78138ebd963c3011831171a3234c79da6d89b45fa1980b227111e670b591901a9035914de38ace5bba21b1f36fa001f
6
+ metadata.gz: dea1764de2c16aa7630309ecbde9ef05c46d0ff0914a11beb9a29031e5013694c848bf9f8efd460ff4defa39eb261b6912caa157bdc4c3ce1a95fbceb64ca94d
7
+ data.tar.gz: db473dff006d114dee4b99ca9bd20f9c9c3b748e29beb0eeef940c22ae3df14fadabf5359b37850396d7582147b2c1cd1275b3dc9e837c639623cac433fef28f
data/README.md CHANGED
@@ -12,9 +12,8 @@ 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
- [![Build Status](https://secure.travis-ci.org/hnrysmth/ppl.png)](http://travis-ci.org/hnrysmth/ppl)
16
- [![Code Climate](https://codeclimate.com/github/hnrysmth/ppl.png)](https://codeclimate.com/github/hnrysmth/ppl)
17
- [![Coverage Status](https://coveralls.io/repos/hnrysmth/ppl/badge.png?branch=master)](https://coveralls.io/r/hnrysmth/ppl?branch=master)
15
+ [![Build Status](https://travis-ci.org/ppladdressbook/ppl.svg?branch=2.3.3)](https://travis-ci.org/ppladdressbook/ppl)
16
+ [![Code Climate](https://codeclimate.com/github/ppladdressbook/ppl/badges/gpa.svg)](https://codeclimate.com/github/ppladdressbook/ppl)
18
17
 
19
18
  Installation
20
19
  ------------
@@ -84,13 +84,16 @@ class Ppl::Adapter::Storage::Git < Ppl::Adapter::Storage
84
84
  update_ref = "HEAD"
85
85
  end
86
86
 
87
- name = ENV['USER']
88
- host = Socket.gethostname
87
+ begin
88
+ git_config = Rugged::Config.open_global.to_hash
89
+ rescue Rugged::OSError
90
+ git_config = {}
91
+ end
89
92
 
90
93
  author = {
91
- :email => name + "@" + host,
94
+ :email => git_config.fetch('user.email', "#{ENV['USER']}@#{Socket.gethostname}"),
92
95
  :time => Time.now,
93
- :name => name,
96
+ :name => git_config.fetch('user.name', ENV['USER']),
94
97
  }
95
98
 
96
99
  data = {
data/lib/ppl.rb CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  module Ppl
3
3
 
4
- Version = "2.3.3"
4
+ Version = "2.4.0"
5
5
 
6
6
  module Adapter
7
7
  end
data/ppl.gemspec CHANGED
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |spec|
2
2
 
3
3
  spec.name = "ppl"
4
- spec.version = "2.3.3"
5
- spec.date = "2015-12-05"
4
+ spec.version = "2.4.0"
5
+ spec.date = "2016-01-12"
6
6
 
7
7
  spec.required_ruby_version = ">= 1.9.3"
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ppl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-05 00:00:00.000000000 Z
11
+ date: 2016-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored