Skip to content

Commit 2112a44

Browse files
committed
Updated the humans.txt to include a little more detail
1 parent 4ce1a1f commit 2112a44

File tree

3 files changed

+140
-24
lines changed

3 files changed

+140
-24
lines changed

lib/tasks/humans.rake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
desc 'Generate the humans.txt file to publicly acknowledge contributors'
12
task :humans do
23
begin
34
erb = ERB.new(File.read(Rails.root.join('lib', 'templates', 'erb', 'humans.txt.erb')), nil, '-')
@@ -8,4 +9,4 @@ task :humans do
89
rescue => e
910
puts "Rake task humans failed: #{e}"
1011
end
11-
end
12+
end

lib/templates/erb/humans.txt.erb

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,48 @@
77
repo_name = 'assemblymade/coderwall'
88

99
# TODO: Do in native ruby so that errors may be handled
10-
contributors = JSON.parse(`curl https://api.github.com/repos/#{repo_name}/contributors`)
10+
curl_cmd = "curl https://api.github.com/repos/#{repo_name}/contributors"
11+
contributors = JSON.parse(`#{curl_cmd}`).map do |contributor|
12+
JSON.parse(`curl #{contributor['url']}`)
13+
end.reject do |contributor|
14+
%w{just3ws mdeiters whatupdave}.include?(contributor['login'])
15+
end
1116
-%>
1217

1318
/* TEAM */
14-
<% contributors.each do |contributor| -%>
15-
<%= JSON.parse(`curl #{contributor['url']}`)['name'] %>
16-
<% end -%>
19+
Founder: Matt Deiters
20+
Contact: mdeiters [at] assembly.com
21+
GitHub: @mdeiters
22+
From: San Francisco, CA, United States
23+
24+
Core Team/Assembly: Dave Newman
25+
Contact: dave [at] assembly.com
26+
GitHub: @whatupdave
27+
From: San Francisco, CA, United States
28+
29+
Core Team: Mike Hall
30+
Contact: mike [at] just3ws.com
31+
GitHub: @just3ws
32+
From: Crystal Lake, IL, United States
33+
34+
<% contributors.each do |contributor|
35+
output = ''
36+
output << "Contributor: #{contributor['name']}\n"
37+
output << "Email: #{contributor['email'].gsub(/@/, ' [at] ')}\n" if contributor['email'].present?
38+
output << "GitHub: @#{contributor['login']}\n"
39+
output << "Location: #{contributor['location']}\n" if contributor['location'].present?
40+
-%>
41+
<%= output %>
42+
<% end -%>
43+
44+
/* SITE */
45+
Last update: <%= Date.today.strftime('%Y/%m/%d') %>
46+
Standards: HTML5, CSS3
47+
Components: Ruby on Rails, jQuery, Sass, Backbone.js, Ember.js, PostgreSQL, ElasticSearch, MongoDB, Redis, etc.
48+
Software: Vim, Tmux, Vagrant, Git, etc.
49+
50+
Coderwall is a professional network for software engineers.
51+
52+
We're an open-source company on Assembly. Contribute to Coderwall to earn a stake in the company.
53+
54+
Join our chat room at https://assembly.com/coderwall.

public/humans.txt

Lines changed: 96 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,98 @@
11

22
/* TEAM */
3-
Mike Hall
4-
Abdelkader Boudih
5-
Britt Mileshosky
6-
Zane Wolfgang Pickett
7-
Rex Morgan
8-
Wesley Lancel
9-
Nícolas Iensen
10-
Dave Newman
11-
Justin Raines
12-
Anthony Kosednar
13-
Aaron Raimist
14-
Drew Blas
15-
Hector Yee
16-
Matej Kramny
17-
Greg Molnar
18-
Daniel Fone
19-
Matthew Deiters
20-
Sachin Mohan
21-
Silas Sao
3+
Founder: Matt Deiters
4+
Contact: mdeiters [at] assembly.com
5+
GitHub: @mdeiters
6+
From: San Francisco, CA, United States
7+
8+
Core Team/Assembly: Dave Newman
9+
Contact: dave [at] assembly.com
10+
GitHub: @whatupdave
11+
From: San Francisco, CA, United States
12+
13+
Core Team: Mike Hall
14+
Contact: mike [at] just3ws.com
15+
GitHub: @just3ws
16+
From: Crystal Lake, IL, United States
17+
18+
Contributor: Abdelkader Boudih
19+
Email: terminale [at] googlemail.com
20+
GitHub: @seuros
21+
Location: Morocco
22+
23+
Contributor: Zane Wolfgang Pickett
24+
GitHub: @sirwolfgang
25+
26+
Contributor: Rex Morgan
27+
GitHub: @RexMorgan
28+
Location: Austin, Texas
29+
30+
Contributor: Britt Mileshosky
31+
GitHub: @Mileshosky
32+
33+
Contributor: Wesley Lancel
34+
GitHub: @wesleylancel
35+
Location: Belgium / The Netherlands
36+
37+
Contributor: Nícolas Iensen
38+
Email: nicolas [at] iensen.me
39+
GitHub: @nicolasiensen
40+
Location: Rio de Janeiro
41+
42+
Contributor: Justin Raines
43+
Email: justraines [at] gmail.com
44+
GitHub: @dvito
45+
Location: Washington, DC
46+
47+
Contributor: Anthony Kosednar
48+
Email: anthony.kosednar [at] gmail.com
49+
GitHub: @akosednar
50+
Location: USA
51+
52+
Contributor: Aaron Raimist
53+
Email: aaron [at] aaronraimist.com
54+
GitHub: @aaronraimist
55+
Location: St. Louis
56+
57+
Contributor: Drew Blas
58+
GitHub: @drewblas
59+
60+
Contributor: Hector Yee
61+
Email: hector.yee [at] gmail.com
62+
GitHub: @hectorgon
63+
Location: San Francisco, CA
64+
65+
Contributor: Matej Kramny
66+
Email: github [at] matej.me
67+
GitHub: @matejkramny
68+
Location: Didcot
69+
70+
Contributor: Greg Molnar
71+
GitHub: @gregmolnar
72+
73+
Contributor: Daniel Fone
74+
Email: daniel [at] fone.net.nz
75+
GitHub: @danielfone
76+
77+
Contributor: Sachin Mohan
78+
Email: send.sachin [at] yahoo.com
79+
GitHub: @sachinm
80+
Location: Atlanta, GA
81+
82+
Contributor: Silas Sao
83+
Email: silassao [at] gmail.com
84+
GitHub: @sao
85+
Location: California
86+
87+
88+
/* SITE */
89+
Last update: 2014/07/26
90+
Standards: HTML5, CSS3
91+
Components: Ruby on Rails, jQuery, Sass, Backbone.js, Ember.js, PostgreSQL, ElasticSearch, MongoDB, Redis, etc.
92+
Software: Vim, Tmux, Vagrant, Git, etc.
93+
94+
Coderwall is a professional network for software engineers.
95+
96+
We're an open-source company on Assembly. Contribute to Coderwall to earn a stake in the company.
97+
98+
Join our chat room at https://assembly.com/coderwall.

0 commit comments

Comments
 (0)