tvd-git 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.
@@ -1,4 +1,9 @@
1
- node[:secrets] = YAML.load(File.open("#{ENV['HOME']}/.secrets/passwords.yml"))
1
+ node[:secrets] =
2
+ if File.exists? "#{ENV['HOME']}/.secrets/passwords.yml"
3
+ YAML.load(File.open("#{ENV['HOME']}/.secrets/passwords.yml"))
4
+ else
5
+ { }
6
+ end
2
7
 
3
8
  template "#{ENV['HOME']}/.gitconfig" do
4
9
  source "gitconfig.erb"
@@ -34,8 +34,8 @@
34
34
  untracked = cyan
35
35
 
36
36
  [user]
37
- name = <%= node[:secrets][:name] %>
38
- email = <%= node[:secrets][:email] %>
37
+ name = <%= node[:user][:name] %>
38
+ email = <%= node[:user][:email] %>
39
39
 
40
40
  <% if node[:secrets][:github] %>
41
41
  [github]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tvd-git
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tom Bombadil
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-30 00:00:00 Z
18
+ date: 2011-12-02 00:00:00 +00:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: microwave
@@ -40,8 +41,9 @@ extensions: []
40
41
  extra_rdoc_files: []
41
42
 
42
43
  files:
43
- - cookbooks/git/recipes/default.rb
44
44
  - cookbooks/git/templates/default/gitconfig.erb
45
+ - cookbooks/git/recipes/default.rb
46
+ has_rdoc: true
45
47
  homepage: https://github.com/HeSYINUvSBZfxqA/tvd-git
46
48
  licenses: []
47
49
 
@@ -71,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
73
  requirements: []
72
74
 
73
75
  rubyforge_project:
74
- rubygems_version: 1.8.11
76
+ rubygems_version: 1.5.3
75
77
  signing_key:
76
78
  specification_version: 3
77
79
  summary: git tv-dinner