fluentd-server 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/.env +5 -0
  3. data/.gitignore +17 -0
  4. data/.travis.yml +5 -0
  5. data/API.md +21 -0
  6. data/CHANGELOG.md +3 -0
  7. data/Gemfile +9 -0
  8. data/Procfile +1 -0
  9. data/README.md +127 -0
  10. data/Rakefile +26 -0
  11. data/bench/bench.rb +83 -0
  12. data/bench/result.md +17 -0
  13. data/bin/fluentd-server +7 -0
  14. data/config.ru +15 -0
  15. data/config/unicorn.conf +20 -0
  16. data/db/migrate/20140512203133_create_posts.rb +14 -0
  17. data/db/schema.rb +25 -0
  18. data/fluentd-server.gemspec +43 -0
  19. data/lib/fluentd_server.rb +1 -0
  20. data/lib/fluentd_server/cli.rb +64 -0
  21. data/lib/fluentd_server/config.rb +27 -0
  22. data/lib/fluentd_server/decorator.rb +21 -0
  23. data/lib/fluentd_server/environments.rb +34 -0
  24. data/lib/fluentd_server/logger.rb +90 -0
  25. data/lib/fluentd_server/model.rb +10 -0
  26. data/lib/fluentd_server/version.rb +3 -0
  27. data/lib/fluentd_server/web.rb +101 -0
  28. data/lib/fluentd_server/web_helper.rb +91 -0
  29. data/public/css/bootstrap.min.css +7 -0
  30. data/public/fonts/glyphicons-halflings-regular.eot +0 -0
  31. data/public/fonts/glyphicons-halflings-regular.svg +229 -0
  32. data/public/fonts/glyphicons-halflings-regular.ttf +0 -0
  33. data/public/fonts/glyphicons-halflings-regular.woff +0 -0
  34. data/public/js/bootstrap.min.js +7 -0
  35. data/public/js/jquery-1.10.2.min.js +6 -0
  36. data/public/js/jquery-1.10.2.min.map +0 -0
  37. data/public/js/jquery.storageapi.min.js +2 -0
  38. data/spec/api_spec.rb +42 -0
  39. data/spec/spec_helper.rb +14 -0
  40. data/spec/web_helper_spec.rb +27 -0
  41. data/spec/web_spec.rb +55 -0
  42. data/views/_navbar.slim +15 -0
  43. data/views/layout.slim +22 -0
  44. data/views/posts/create.slim +19 -0
  45. data/views/posts/edit.slim +23 -0
  46. data/views/posts/index.slim +9 -0
  47. metadata +363 -0
@@ -0,0 +1,19 @@
1
+ h2
2
+ | Create
3
+ br
4
+ form[action=url_for("/posts") method="post" role="form"]
5
+ .form-group
6
+ label[for="post_name"]
7
+ | Name:
8
+ br
9
+ input id="post_name" class="form-control" name="post[name]" type="text" value=@post.name style="width=90%"
10
+ .form-group
11
+ label[for="post_body"]
12
+ | Body:
13
+ br
14
+ textarea#post_body.form-control[name="post[body]" rows="10"]
15
+ = @post.body
16
+ br
17
+ button.btn.btn-success[type="submit"]
18
+ | Submit
19
+ br
@@ -0,0 +1,23 @@
1
+ h2
2
+ | Edit
3
+ br
4
+ form action=url_for("/posts/#{@post.id}") method="post"
5
+ .form-group
6
+ label[for="post_name"]
7
+ | Name:
8
+ br
9
+ input id="post_name" class="form-control" name="post[name]" type="text" value=@post.name
10
+ .form-group
11
+ label[for="post_body"]
12
+ | Body:
13
+ br
14
+ textarea#post_body.form-control[name="post[body]" rows="10"]
15
+ = @post.body
16
+ br
17
+ a href=url_for("/api/#{@post.name}")
18
+ | Render
19
+ button.btn.btn-success[type="submit"]
20
+ | Submit
21
+ |  
22
+ a.btn.btn-danger href=url_for("/posts/#{@post.name}/delete")
23
+ | Delete
@@ -0,0 +1,9 @@
1
+ ul
2
+ - @posts.each do |post|
3
+ li
4
+ h4
5
+ a href=url_for("/posts/#{post.id}/edit")
6
+ = post.name
7
+ p
8
+ | Created:
9
+ = post.created_at
metadata ADDED
@@ -0,0 +1,363 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fluentd-server
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Naotoshi Seo
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-05-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: capybara
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry-nav
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: dotenv
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: foreman
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: thor
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: sinatra
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: activerecord
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: sinatra-contrib
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - '>='
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: sinatra-activerecord
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - '>='
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - '>='
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: sinatra-flash
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - '>='
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - '>='
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: sinatra-redirect-with-flash
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - '>='
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - '>='
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: sinatra-decorator
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - '>='
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :runtime
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - '>='
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: slim
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - '>='
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :runtime
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - '>='
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: unicorn
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - '>='
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ type: :runtime
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - '>='
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
265
+ - !ruby/object:Gem::Dependency
266
+ name: unicorn-worker-killer
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - '>='
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ type: :runtime
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - '>='
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
279
+ description: Fluentd config distribution server
280
+ email:
281
+ - sonots@gmail.com
282
+ executables:
283
+ - fluentd-server
284
+ extensions: []
285
+ extra_rdoc_files: []
286
+ files:
287
+ - .env
288
+ - .gitignore
289
+ - .travis.yml
290
+ - API.md
291
+ - CHANGELOG.md
292
+ - Gemfile
293
+ - Procfile
294
+ - README.md
295
+ - Rakefile
296
+ - bench/bench.rb
297
+ - bench/result.md
298
+ - bin/fluentd-server
299
+ - config.ru
300
+ - config/unicorn.conf
301
+ - data/.gitignore
302
+ - data/.gitkeep
303
+ - db/migrate/20140512203133_create_posts.rb
304
+ - db/schema.rb
305
+ - fluentd-server.gemspec
306
+ - lib/fluentd_server.rb
307
+ - lib/fluentd_server/cli.rb
308
+ - lib/fluentd_server/config.rb
309
+ - lib/fluentd_server/decorator.rb
310
+ - lib/fluentd_server/environments.rb
311
+ - lib/fluentd_server/logger.rb
312
+ - lib/fluentd_server/model.rb
313
+ - lib/fluentd_server/version.rb
314
+ - lib/fluentd_server/web.rb
315
+ - lib/fluentd_server/web_helper.rb
316
+ - log/.gitkeep
317
+ - public/css/bootstrap.min.css
318
+ - public/fonts/glyphicons-halflings-regular.eot
319
+ - public/fonts/glyphicons-halflings-regular.svg
320
+ - public/fonts/glyphicons-halflings-regular.ttf
321
+ - public/fonts/glyphicons-halflings-regular.woff
322
+ - public/js/bootstrap.min.js
323
+ - public/js/jquery-1.10.2.min.js
324
+ - public/js/jquery-1.10.2.min.map
325
+ - public/js/jquery.storageapi.min.js
326
+ - spec/api_spec.rb
327
+ - spec/spec_helper.rb
328
+ - spec/web_helper_spec.rb
329
+ - spec/web_spec.rb
330
+ - views/_navbar.slim
331
+ - views/layout.slim
332
+ - views/posts/create.slim
333
+ - views/posts/edit.slim
334
+ - views/posts/index.slim
335
+ homepage: https://github.com/sonots/fluentd-server
336
+ licenses:
337
+ - MIT
338
+ metadata: {}
339
+ post_install_message:
340
+ rdoc_options: []
341
+ require_paths:
342
+ - lib
343
+ required_ruby_version: !ruby/object:Gem::Requirement
344
+ requirements:
345
+ - - '>='
346
+ - !ruby/object:Gem::Version
347
+ version: '0'
348
+ required_rubygems_version: !ruby/object:Gem::Requirement
349
+ requirements:
350
+ - - '>='
351
+ - !ruby/object:Gem::Version
352
+ version: '0'
353
+ requirements: []
354
+ rubyforge_project:
355
+ rubygems_version: 2.0.3
356
+ signing_key:
357
+ specification_version: 4
358
+ summary: Fluentd config distribution server
359
+ test_files:
360
+ - spec/api_spec.rb
361
+ - spec/spec_helper.rb
362
+ - spec/web_helper_spec.rb
363
+ - spec/web_spec.rb