share_some_love 0.0.5 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/LOVE_by_author.md +272 -0
  4. data/LOVE_by_gem.md +166 -0
  5. data/hearts/surfer.txt +5 -0
  6. data/lib/love/author.rb +22 -5
  7. data/lib/love/gem.rb +16 -4
  8. data/lib/love/share.rb +37 -20
  9. data/lib/love/version.rb +1 -1
  10. data/lib/love.rb +14 -13
  11. data/share_some_love.gemspec +2 -0
  12. data/spec/love/author_spec.rb +9 -0
  13. data/spec/love/basic_spec.rb +86 -0
  14. data/spec/spec_helper.rb +1 -1
  15. data/templates/html/_author.html.erb +24 -0
  16. data/templates/html/_gem.html.erb +22 -0
  17. data/templates/html/by_author.html.erb +21 -0
  18. data/templates/html/by_gem.html.erb +21 -0
  19. data/templates/md/_author.md.erb +14 -7
  20. data/templates/md/_gem.md.erb +13 -6
  21. data/templates/md/by_author.md.erb +9 -0
  22. data/templates/md/by_gem.md.erb +9 -0
  23. metadata +27 -23
  24. data/LOVE.md +0 -183
  25. data/_old_templates/html/footer.erb +0 -1
  26. data/_old_templates/html/head.erb +0 -12
  27. data/_old_templates/html/javascripts.erb +0 -2
  28. data/_old_templates/html/simple.erb +0 -17
  29. data/_old_templates/html/styles.erb +0 -2
  30. data/_old_templates/md/contributor.erb +0 -4
  31. data/_old_templates/md/footer.erb +0 -1
  32. data/_old_templates/md/gem.erb +0 -10
  33. data/_old_templates/md/head.erb +0 -2
  34. data/_old_templates/md/user.erb +0 -11
  35. data/tmp/lib/love/gem.rb +0 -53
  36. data/tmp/lib/love/html_renderer.rb +0 -23
  37. data/tmp/lib/love/person.rb +0 -60
  38. data/tmp/lib/love/render/overrides.rb +0 -29
  39. data/tmp/lib/love/render.rb +0 -35
  40. data/tmp/lib/love/site.rb +0 -21
  41. data/tmp/lib/love/thank_words.rb +0 -96
  42. data/tmp/lib/love/thanks.rb +0 -50
  43. data/tmp/lib/love/version.rb +0 -3
  44. data/tmp/lib/love.rb +0 -39
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb6d0171e4a369ab76a2cba4074efa45e500f6b6
4
- data.tar.gz: 857222b6be06d2eff9d7d4aad769c5b285d87916
3
+ metadata.gz: 31575b435cfd5586afbe0e070dd2f4db1ef2f686
4
+ data.tar.gz: fb60c1a3c84d4f3ab7b98dbf4a2108aae68ca22b
5
5
  SHA512:
6
- metadata.gz: ed5351903286ace5519c85f8751d26a33ce055b56b0c72e92cfbf8c38a81b4e93f83f35061299f8ee4a8831824f9904fe872b0f910f1a2c00f05b74699fefa09
7
- data.tar.gz: 83232a832385d8abcfdca6c20b723df6f9e8d5c5516fbb418c943cdc145144d3c7fa042cfc5c929b07819ff43727ae7f585c15ee265f81ae0926cf6170559e48
6
+ metadata.gz: 5077a11bc59535f11b9a229538d775ff69ac35215a30a1009555ffd420f883c1da5f9f81e8e66cbb78784976bfe49402e38da5889b10fd77cf577e2d54c6f56f
7
+ data.tar.gz: a388a95c7ed27bf4b1c203a2b95b516baa3fc1f7fdea91d4738b9083b3c3f63732f6b47ce5f68c5b769eef413f9d403d97d3e9f873b6ff87978a0d062db9146c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.1.1
4
+
5
+ * Some specs and refactorings
6
+
7
+ ## 0.1.0
8
+
9
+ * Finishing proof of concept with md files generated properly
10
+
3
11
  ## 0.0.5
4
12
 
5
13
  * Search for authors and their info without github restrictions for
data/LOVE_by_author.md ADDED
@@ -0,0 +1,272 @@
1
+ ```ascii
2
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3
+ < :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: >
4
+ < :::::::::::: :::::::::::: :::::::::::: >
5
+ < ::::::::: :::: ::::::::: >
6
+ < ::::::: ******** :: ******** ::::::: >
7
+ < ::::: **** **** **** **** ::::: >
8
+ < :::: **** **** **** :::: >
9
+ < ::: **** ** **** ::: >
10
+ < ::: **** **** ::: >
11
+ < :::: **** ***** :::: >
12
+ < ::::: **** Love u all guys and **** ::::: >
13
+ < ::::::: **** girls!!! **** ::::::: >
14
+ < ::::::::: **** **** ::::::::: >
15
+ < ::::::::::: **** **** ::::::::::: >
16
+ < :::::::::::::: **** **** :::::::::::::: >
17
+ < ::::::::::::::::: **** **** ::::::::::::::::: >
18
+ < :::::::::::::::::::: **** :::::::::::::::::::: >
19
+ < ::::::::::::::::::::::: ** ::::::::::::::::::::::: >
20
+ < ::::::::::::::::::::::::: ::::::::::::::::::::::::: >
21
+ < ::::::::::::::::::::::::::: ::::::::::::::::::::::::::: >
22
+ < ::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::: >
23
+ < :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: >
24
+ ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
25
+
26
+ ```
27
+
28
+ #### Love to these people! And bunch of hugs!
29
+
30
+
31
+
32
+ ![Bob Aman](https://secure.gravatar.com/avatar/56ee28134dd0776825445e3551979b14?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
33
+ Follow on github: [@sporkmonger](http://github.com/sporkmonger)
34
+
35
+
36
+ Thank you very much [**Bob Aman**](http://github.com/sporkmonger) for making my life easier by creating
37
+
38
+
39
+ [**addressable**](http://addressable.rubyforge.org/).
40
+
41
+ Enjoy what you did as I am!
42
+
43
+ --------
44
+
45
+
46
+ ![André Arko](https://secure.gravatar.com/avatar/4c3ed917e59156a36212d48155831482?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
47
+ Follow on github: [@indirect](http://github.com/indirect)
48
+
49
+
50
+ I'd like to thank [**André Arko**](http://github.com/indirect) for making my life easier by creating
51
+
52
+
53
+ [**bundler**](http://gembundler.com).
54
+
55
+ Enjoy what you did as I am!
56
+
57
+ --------
58
+
59
+
60
+ ![Terence Lee](https://secure.gravatar.com/avatar/efb7c66871043330ce1310a9bdd0aaf6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
61
+ Follow on github: [@hone](http://github.com/hone)
62
+
63
+
64
+ Thank you so much [**Terence Lee**](http://github.com/hone) for making my life easier by creating
65
+
66
+
67
+ [**bundler**](http://gembundler.com).
68
+
69
+ I wanna hug you someday and say in person what great job you done!
70
+
71
+ --------
72
+
73
+
74
+ ![Carl Lerche](https://secure.gravatar.com/avatar/da5274b27cc6c0f505495bf5d504575d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
75
+ Follow on github: [@carllerche](http://github.com/carllerche)
76
+
77
+
78
+ I appreciate time of [**Carl Lerche**](http://github.com/carllerche) for made this idea happened, I mean
79
+
80
+
81
+ [**bundler**](http://gembundler.com).
82
+
83
+ Just be so cool as you are and remember that your work never being useless!
84
+
85
+ --------
86
+
87
+
88
+ ![Yehuda Katz](https://secure.gravatar.com/avatar/428167a3ec72235ba971162924492609?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
89
+ Follow on github: [@wycats](http://github.com/wycats)
90
+
91
+
92
+ Thank you so much [**Yehuda Katz**](http://github.com/wycats) for making my life easier by creating
93
+
94
+
95
+ [**bundler**](http://gembundler.com).
96
+
97
+ Just be so cool as you are and remember that your work never being useless!
98
+
99
+ --------
100
+
101
+
102
+ ![Nick Sieger](https://secure.gravatar.com/avatar/526d60de6472502bb570a9df2842b33b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
103
+ Follow on github: [@nicksieger](http://github.com/nicksieger)
104
+
105
+
106
+ I appreciate time of [**Nick Sieger**](http://github.com/nicksieger) for creating and maintaining
107
+
108
+
109
+ [**multipart-post**](https://github.com/nicksieger/multipart-post).
110
+
111
+ I wanna shake your hand and say that wihtout your work on it I would spent much more time and power!
112
+
113
+ --------
114
+
115
+
116
+
117
+ My sincere thanks to **Rick Olson** for making my life easier by creating
118
+
119
+
120
+ [**faraday**](https://github.com/lostisland/faraday).
121
+
122
+ Enjoy what you did as I am!
123
+
124
+ --------
125
+
126
+
127
+ ![Erik Michaels-Ober](https://secure.gravatar.com/avatar/1f74b13f1e5c6c69cb5d7fbaabb1e2cb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
128
+ Follow on github: [@sferik](http://github.com/sferik)
129
+
130
+
131
+ My sincere thanks to [**Erik Michaels-Ober**](http://github.com/sferik) for made this idea happened, I mean
132
+
133
+
134
+ [**faraday_middleware**](https://github.com/pengwynn/faraday_middleware), [**multi_json**](http://github.com/intridea/multi_json), [**octokit**](https://github.com/pengwynn/octokit).
135
+
136
+ I wanna shake your hand and say that wihtout your work on it I would spent much more time and power!
137
+
138
+ --------
139
+
140
+
141
+ ![Wynn Netherland](https://secure.gravatar.com/avatar/7e19cd5486b5d6dc1ef90e671ba52ae0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
142
+ Follow on github: [@pengwynn](http://github.com/pengwynn)
143
+
144
+
145
+ I appreciate time of [**Wynn Netherland**](http://github.com/pengwynn) for creating and maintaining
146
+
147
+
148
+ [**faraday_middleware**](https://github.com/pengwynn/faraday_middleware), [**octokit**](https://github.com/pengwynn/octokit).
149
+
150
+ I wanna hug you someday and say in person what great job you done!
151
+
152
+ --------
153
+
154
+
155
+ ![Michael Bleigh](https://secure.gravatar.com/avatar/69dc78b59ef008c58e6e842f9f3e0624?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
156
+ Follow on github: [@mbleigh](http://github.com/mbleigh)
157
+
158
+
159
+ Thank you so much [**Michael Bleigh**](http://github.com/mbleigh) for spending time on
160
+
161
+
162
+ [**hashie**](https://github.com/intridea/hashie), [**multi_json**](http://github.com/intridea/multi_json).
163
+
164
+ Just be so cool as you are and remember that your work never being useless!
165
+
166
+ --------
167
+
168
+
169
+ ![Jerry Cheung](https://secure.gravatar.com/avatar/acd4b5803e806bf0ed70299f15cd6d18?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
170
+ Follow on github: [@jch](http://github.com/jch)
171
+
172
+
173
+ My sincere thanks to [**Jerry Cheung**](http://github.com/jch) for spending time on
174
+
175
+
176
+ [**hashie**](https://github.com/intridea/hashie).
177
+
178
+ Enjoy what you did as I am!
179
+
180
+ --------
181
+
182
+
183
+ ![Josh Kalderimis](https://secure.gravatar.com/avatar/21b21efe14359ec323f9a70464b91e39?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
184
+ Follow on github: [@joshk](http://github.com/joshk)
185
+
186
+
187
+ My sincere thanks to [**Josh Kalderimis**](http://github.com/joshk) for creating and maintaining
188
+
189
+
190
+ [**multi_json**](http://github.com/intridea/multi_json).
191
+
192
+ I wanna shake your hand and say that wihtout your work on it I would spent much more time and power!
193
+
194
+ --------
195
+
196
+
197
+ ![Pavel Pravosud](https://secure.gravatar.com/avatar/df08a0889bad0229c372f702976a3da6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
198
+ Follow on github: [@rwz](http://github.com/rwz)
199
+
200
+
201
+ I'd like to thank [**Pavel Pravosud**](http://github.com/rwz) for making my life easier by creating
202
+
203
+
204
+ [**multi_json**](http://github.com/intridea/multi_json).
205
+
206
+ I wanna shake your hand and say that wihtout your work on it I would spent much more time and power!
207
+
208
+ --------
209
+
210
+
211
+ ![Keith Rarick](https://secure.gravatar.com/avatar/b88d0f594813e7c5cd925043396738a7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
212
+ Follow on github: [@kr](http://github.com/kr)
213
+
214
+
215
+ I appreciate time of [**Keith Rarick**](http://github.com/kr) for spending time on
216
+
217
+
218
+ [**netrc**](https://github.com/geemus/netrc).
219
+
220
+ Just be so cool as you are and remember that your work never being useless!
221
+
222
+ --------
223
+
224
+
225
+ ![geemus (Wesley Beary)](https://secure.gravatar.com/avatar/e3191b55da8ada73c3e1ada98a63af6e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
226
+ Follow on github: [@geemus](http://github.com/geemus)
227
+
228
+
229
+ My sincere thanks to [**geemus (Wesley Beary)**](http://github.com/geemus) for being so nice to create
230
+
231
+
232
+ [**netrc**](https://github.com/geemus/netrc).
233
+
234
+ I wanna shake your hand and say that wihtout your work on it I would spent much more time and power!
235
+
236
+ --------
237
+
238
+
239
+
240
+ Thank you very much **Clint Shryock** for making my life easier by creating
241
+
242
+
243
+ [**octokit**](https://github.com/pengwynn/octokit).
244
+
245
+ Enjoy what you did as I am!
246
+
247
+ --------
248
+
249
+
250
+ ![gazay](https://secure.gravatar.com/avatar/d52cc558a29696bb722492259f3f52de?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
251
+ Follow on github: [@gazay](http://github.com/gazay)
252
+
253
+
254
+ I'd like to thank [**gazay**](http://github.com/gazay) for spending time on
255
+
256
+
257
+ [**share_some_love**](https://github.com/gazay/share_some_love).
258
+
259
+ I wanna shake your hand and say that wihtout your work on it I would spent much more time and power!
260
+
261
+ --------
262
+
263
+
264
+ This file was respectfully generated by gazay
265
+ ```ascii
266
+ . } ~ .__,~O ` ~ _ ~ ^ ~ -
267
+ `}` - = /#/`-' - ~ = ~ _ ~
268
+ ~ . } ~ - |^\ _ ~ _ - ~ -_ = _
269
+ }` _____ /_ /____ - ~ _ ~ _
270
+ jgs }` `~~~~~~~~~~~~~~~`_ = _ ~ -
271
+
272
+ ```
data/LOVE_by_gem.md ADDED
@@ -0,0 +1,166 @@
1
+ ```ascii
2
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3
+ < :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: >
4
+ < :::::::::::: :::::::::::: :::::::::::: >
5
+ < ::::::::: :::: ::::::::: >
6
+ < ::::::: ******** :: ******** ::::::: >
7
+ < ::::: **** **** **** **** ::::: >
8
+ < :::: **** **** **** :::: >
9
+ < ::: **** ** **** ::: >
10
+ < ::: **** **** ::: >
11
+ < :::: **** ***** :::: >
12
+ < ::::: **** Love u all guys and **** ::::: >
13
+ < ::::::: **** girls!!! **** ::::::: >
14
+ < ::::::::: **** **** ::::::::: >
15
+ < ::::::::::: **** **** ::::::::::: >
16
+ < :::::::::::::: **** **** :::::::::::::: >
17
+ < ::::::::::::::::: **** **** ::::::::::::::::: >
18
+ < :::::::::::::::::::: **** :::::::::::::::::::: >
19
+ < ::::::::::::::::::::::: ** ::::::::::::::::::::::: >
20
+ < ::::::::::::::::::::::::: ::::::::::::::::::::::::: >
21
+ < ::::::::::::::::::::::::::: ::::::::::::::::::::::::::: >
22
+ < ::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::: >
23
+ < :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: >
24
+ ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
25
+
26
+ ```
27
+
28
+ #### Thank you all, guys and girls who made my life easier and help me to enjoy make my project more and more!
29
+
30
+
31
+
32
+ ![Bob Aman](https://secure.gravatar.com/avatar/56ee28134dd0776825445e3551979b14?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
33
+
34
+
35
+
36
+ Thank you so much [**Bob Aman**](http://github.com/sporkmonger)
37
+
38
+ for creating and maintaining [**addressable**](http://addressable.rubyforge.org/).
39
+
40
+ Enjoy what you did as I am!
41
+
42
+ ------------
43
+
44
+
45
+ ![André Arko](https://secure.gravatar.com/avatar/4c3ed917e59156a36212d48155831482?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png) ![Terence Lee](https://secure.gravatar.com/avatar/efb7c66871043330ce1310a9bdd0aaf6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png) ![Carl Lerche](https://secure.gravatar.com/avatar/da5274b27cc6c0f505495bf5d504575d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png) ![Yehuda Katz](https://secure.gravatar.com/avatar/428167a3ec72235ba971162924492609?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
46
+
47
+
48
+
49
+ Thank you very much [**André Arko**](http://github.com/indirect), [**Terence Lee**](http://github.com/hone), [**Carl Lerche**](http://github.com/carllerche), [**Yehuda Katz**](http://github.com/wycats)
50
+
51
+ for made this idea happened, I mean [**bundler**](http://gembundler.com).
52
+
53
+ I wanna shake your hand and say that wihtout your work on it I would spent much more time and power!
54
+
55
+ ------------
56
+
57
+
58
+ ![Nick Sieger](https://secure.gravatar.com/avatar/526d60de6472502bb570a9df2842b33b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
59
+
60
+
61
+
62
+ I'd like to thank [**Nick Sieger**](http://github.com/nicksieger)
63
+
64
+ for making my life easier by creating [**multipart-post**](https://github.com/nicksieger/multipart-post).
65
+
66
+ Enjoy what you did as I am!
67
+
68
+ ------------
69
+
70
+
71
+
72
+
73
+ My sincere thanks to **Rick Olson**
74
+
75
+ for spending time on [**faraday**](https://github.com/lostisland/faraday).
76
+
77
+ I wanna hug you someday and say in person what great job you done!
78
+
79
+ ------------
80
+
81
+
82
+ ![Erik Michaels-Ober](https://secure.gravatar.com/avatar/1f74b13f1e5c6c69cb5d7fbaabb1e2cb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png) ![Wynn Netherland](https://secure.gravatar.com/avatar/7e19cd5486b5d6dc1ef90e671ba52ae0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
83
+
84
+
85
+
86
+ Thank you very much [**Erik Michaels-Ober**](http://github.com/sferik), [**Wynn Netherland**](http://github.com/pengwynn)
87
+
88
+ for making my life easier by creating [**faraday_middleware**](https://github.com/pengwynn/faraday_middleware).
89
+
90
+ I wanna shake your hand and say that wihtout your work on it I would spent much more time and power!
91
+
92
+ ------------
93
+
94
+
95
+ ![Michael Bleigh](https://secure.gravatar.com/avatar/69dc78b59ef008c58e6e842f9f3e0624?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png) ![Jerry Cheung](https://secure.gravatar.com/avatar/acd4b5803e806bf0ed70299f15cd6d18?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
96
+
97
+
98
+
99
+ Thank you so much [**Michael Bleigh**](http://github.com/mbleigh), [**Jerry Cheung**](http://github.com/jch)
100
+
101
+ for made this idea happened, I mean [**hashie**](https://github.com/intridea/hashie).
102
+
103
+ Just be so cool as you are and remember that your work never being useless!
104
+
105
+ ------------
106
+
107
+
108
+ ![Michael Bleigh](https://secure.gravatar.com/avatar/69dc78b59ef008c58e6e842f9f3e0624?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png) ![Josh Kalderimis](https://secure.gravatar.com/avatar/21b21efe14359ec323f9a70464b91e39?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png) ![Erik Michaels-Ober](https://secure.gravatar.com/avatar/1f74b13f1e5c6c69cb5d7fbaabb1e2cb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png) ![Pavel Pravosud](https://secure.gravatar.com/avatar/df08a0889bad0229c372f702976a3da6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
109
+
110
+
111
+
112
+ I'd like to thank [**Michael Bleigh**](http://github.com/mbleigh), [**Josh Kalderimis**](http://github.com/joshk), [**Erik Michaels-Ober**](http://github.com/sferik), [**Pavel Pravosud**](http://github.com/rwz)
113
+
114
+ for being so nice to create [**multi_json**](http://github.com/intridea/multi_json).
115
+
116
+ Enjoy what you did as I am!
117
+
118
+ ------------
119
+
120
+
121
+ ![Keith Rarick](https://secure.gravatar.com/avatar/b88d0f594813e7c5cd925043396738a7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png) ![geemus (Wesley Beary)](https://secure.gravatar.com/avatar/e3191b55da8ada73c3e1ada98a63af6e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
122
+
123
+
124
+
125
+ Thank you very much [**Keith Rarick**](http://github.com/kr), [**geemus (Wesley Beary)**](http://github.com/geemus)
126
+
127
+ for making my life easier by creating [**netrc**](https://github.com/geemus/netrc).
128
+
129
+ Just be so cool as you are and remember that your work never being useless!
130
+
131
+ ------------
132
+
133
+
134
+
135
+
136
+ I appreciate time of **Wynn Netherland**, **Erik Michaels-Ober**, **Clint Shryock**
137
+
138
+ for being so nice to create [**octokit**](https://github.com/pengwynn/octokit).
139
+
140
+ Just be so cool as you are and remember that your work never being useless!
141
+
142
+ ------------
143
+
144
+
145
+ ![gazay](https://secure.gravatar.com/avatar/d52cc558a29696bb722492259f3f52de?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png)
146
+
147
+
148
+
149
+ My sincere thanks to [**gazay**](http://github.com/gazay)
150
+
151
+ for spending time on [**share_some_love**](https://github.com/gazay/share_some_love).
152
+
153
+ Enjoy what you did as I am!
154
+
155
+ ------------
156
+
157
+
158
+ This file was respectfully generated by gazay
159
+ ```ascii
160
+ . } ~ .__,~O ` ~ _ ~ ^ ~ -
161
+ `}` - = /#/`-' - ~ = ~ _ ~
162
+ ~ . } ~ - |^\ _ ~ _ - ~ -_ = _
163
+ }` _____ /_ /____ - ~ _ ~ _
164
+ jgs }` `~~~~~~~~~~~~~~~`_ = _ ~ -
165
+
166
+ ```
data/hearts/surfer.txt ADDED
@@ -0,0 +1,5 @@
1
+ . } ~ .__,~O ` ~ _ ~ ^ ~ -
2
+ `}` - = /#/`-' - ~ = ~ _ ~
3
+ ~ . } ~ - |^\ _ ~ _ - ~ -_ = _
4
+ }` _____ /_ /____ - ~ _ ~ _
5
+ jgs }` `~~~~~~~~~~~~~~~`_ = _ ~ -
data/lib/love/author.rb CHANGED
@@ -17,12 +17,8 @@ module Love
17
17
  @info = \
18
18
  if search_person.count > 1
19
19
  puts '!!! THERE ARE SEVERAL PERSONS WITH THIS NAME IN GITHUB !!!'
20
- puts "Please check right man with his number and we'll continue"
21
- search_person.each_with_index do |person, index|
22
- puts "#{index} - name: #{person.name}; login: #{person.login}; username: #{person.username}"
23
- end
20
+ user_num = pick_user(search_person)
24
21
 
25
- user_num = $stdin.gets.chomp.to_i
26
22
  Love.octokit.user search_person[user_num].login
27
23
  else
28
24
  Love.octokit.user search_person.first.login
@@ -39,5 +35,26 @@ module Love
39
35
  @gems << gem
40
36
  end
41
37
 
38
+ private
39
+
40
+ def pick_user(users)
41
+ if Love.check_author
42
+ puts "Please check right man with his number and we'll continue"
43
+ else
44
+ puts "To check author manually please restart with option -v"
45
+ end
46
+
47
+ users.each_with_index do |person, index|
48
+ puts "#{index} - name: #{person.name}; login: #{person.login}; username: #{person.username}"
49
+ end
50
+
51
+ if Love.check_author
52
+ $stdin.gets.chomp.to_i
53
+ else
54
+ puts "Taken first"
55
+ 0
56
+ end
57
+ end
58
+
42
59
  end
43
60
  end
data/lib/love/gem.rb CHANGED
@@ -1,21 +1,33 @@
1
1
  module Love
2
2
  class Gem
3
3
 
4
- attr_reader :name, :authors, :plain_authors, :spec
4
+ attr_reader :name, :authors, :plain_authors, :spec, :url
5
5
 
6
6
  def initialize(spec, fetch = true)
7
7
  @spec = spec
8
8
  @name = spec.name
9
9
  @plain_authors = spec.authors
10
+ if spec.homepage.nil? or spec.homepage.empty?
11
+ @url = "http://rubygems.org/gems/#{name}"
12
+ else
13
+ @url = spec.homepage
14
+ end
10
15
  @authors = []
11
16
  fetch_authors if fetch
12
17
  end
13
18
 
14
19
  def fetch_authors
15
20
  plain_authors.each do |name|
16
- person = Love::Author.new(name)
17
- person.add_gem self
18
- add_author person
21
+ author = Love.authors.select { |a| a.name == name }.first
22
+ if author
23
+ add_author author
24
+ author.add_gem self
25
+ else
26
+ person = Love::Author.new(name)
27
+ person.add_gem self
28
+ add_author person
29
+ Love.authors << person
30
+ end
19
31
  end
20
32
  end
21
33
 
data/lib/love/share.rb CHANGED
@@ -4,35 +4,52 @@ module Love
4
4
 
5
5
  def md(by_gemname = false)
6
6
  if by_gemname
7
- render_by_gem Love.gems
7
+ render_by 'gem', 'md', Love.gems
8
8
  else
9
- render_by_author Love.authors
9
+ render_by 'author', 'md', Love.authors
10
10
  end
11
11
  end
12
12
 
13
- private
14
-
15
- def render_by_author(authors)
16
- template = File.read(Love.root.join '../templates/md/by_author.md.erb')
17
- author_template = File.read(Love.root.join '../templates/md/_author.md.erb')
18
- content = ''
19
- authors.each do |author|
20
- content << ERB.new(author_template).result(binding)
21
- end
22
- File.open('./LOVE.md', 'w+') do |f|
23
- f.write ERB.new(template).result(binding)
13
+ def html(by_gemname = false)
14
+ if by_gemname
15
+ render_by 'gem', 'html', Love.gems
16
+ else
17
+ render_by 'author', 'html', Love.authors
24
18
  end
25
19
  end
26
20
 
27
- def render_by_gem(gems)
28
- template = File.read(Love.root.join '../templates/md/by_gem.md.erb')
29
- gem_template = File.read(Love.root.join '../templates/md/_gem.md.erb')
21
+ private
22
+
23
+ def render_by(type_name, template_type, collection)
24
+ template = \
25
+ File.
26
+ read(
27
+ Love.root.join "../templates/#{template_type}/by_#{type_name}.#{template_type}.erb"
28
+ )
29
+ member_template = \
30
+ File.
31
+ read(
32
+ Love.root.join "../templates/#{template_type}/_#{type_name}.#{template_type}.erb"
33
+ )
34
+
35
+ style_content = 'h1 { color: red; }'
36
+ script_content = 'alert(1)'
37
+ begin_content = File.read(Love.root.join "../hearts/ascii1.txt")
38
+ generated_by_content = "This file was respectfully generated by #{Love.octokit.login}"
39
+ end_content = File.read(Love.root.join "../hearts/surfer.txt")
40
+
30
41
  content = ''
31
- gems.each do |gem|
32
- content << ERB.new(gem_template).result(binding)
42
+ collection.each do |member|
43
+ content << ERB.new(member_template).result(binding)
33
44
  end
34
- File.open('./LOVE.md', 'w+') do |f|
35
- f.write ERB.new(template).result(binding)
45
+ if template_type == 'html'
46
+ File.open('./public/love.html', 'w+') do |f|
47
+ f.write ERB.new(template).result(binding)
48
+ end
49
+ else
50
+ File.open('./LOVE.md', 'w+') do |f|
51
+ f.write ERB.new(template).result(binding)
52
+ end
36
53
  end
37
54
  end
38
55
 
data/lib/love/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Love
2
- VERSION = '0.0.5'
2
+ VERSION = '0.1.1'
3
3
  end