aerial 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data/.gitignore +4 -1
  2. data/README.md +23 -28
  3. data/Rakefile +27 -52
  4. data/VERSION +1 -1
  5. data/aerial.gemspec +134 -0
  6. data/articles/congratulations/congratulations-aerial-is-configured-correctly.article +6 -0
  7. data/bin/aerial +5 -0
  8. data/config/config.sample.ru +19 -0
  9. data/config/config.sample.yml +29 -0
  10. data/config/config.test.yml +49 -0
  11. data/config/config.yml +3 -3
  12. data/config/thin.sample.yml +13 -0
  13. data/examples/articles/congratulations/congratulations-aerial-is-configured-correctly.article +6 -0
  14. data/{lib/spec/fixtures → examples}/public/javascripts/application.js +0 -0
  15. data/{lib/spec/fixtures → examples}/public/javascripts/jquery-1.3.1.min.js +0 -0
  16. data/{lib/spec/fixtures → examples}/public/javascripts/jquery.template.js +0 -0
  17. data/{lib/spec/fixtures → examples}/views/article.haml +1 -1
  18. data/{lib/spec/fixtures → examples}/views/articles.haml +0 -0
  19. data/{lib/spec/fixtures → examples}/views/comment.haml +1 -1
  20. data/{lib/spec/fixtures → examples}/views/home.haml +0 -0
  21. data/{lib/spec/fixtures → examples}/views/layout.haml +1 -1
  22. data/examples/views/not_found.haml +1 -0
  23. data/{lib/spec/fixtures → examples}/views/post.haml +0 -0
  24. data/{lib/spec/fixtures → examples}/views/rss.haml +2 -2
  25. data/{lib/spec/fixtures → examples}/views/sidebar.haml +8 -0
  26. data/{lib/spec/fixtures → examples}/views/style.sass +0 -0
  27. data/{lib/features → features}/article.feature +0 -0
  28. data/features/home.feature +16 -0
  29. data/{lib/features → features}/step_definitions/article_steps.rb +0 -0
  30. data/{lib/features → features}/step_definitions/home_steps.rb +0 -0
  31. data/{lib/features → features}/support/env.rb +0 -0
  32. data/{lib/features → features}/support/pages/article.rb +0 -0
  33. data/{lib/features → features}/support/pages/homepage.rb +0 -0
  34. data/index.html +164 -0
  35. data/lib/aerial.rb +38 -87
  36. data/lib/aerial/app.rb +93 -0
  37. data/lib/aerial/article.rb +28 -30
  38. data/lib/aerial/base.rb +24 -32
  39. data/lib/aerial/comment.rb +10 -19
  40. data/lib/aerial/content.rb +12 -21
  41. data/lib/aerial/installer.rb +119 -0
  42. data/public/javascripts/application.js +109 -0
  43. data/public/javascripts/jquery-1.3.1.min.js +19 -0
  44. data/public/javascripts/jquery.template.js +255 -0
  45. data/spec/aerial_spec.rb +19 -0
  46. data/{lib/spec/aerial_spec.rb → spec/app_spec.rb} +32 -40
  47. data/{lib/spec → spec}/article_spec.rb +21 -21
  48. data/{lib/spec → spec}/base_spec.rb +1 -5
  49. data/{lib/spec → spec}/comment_spec.rb +8 -8
  50. data/{lib/spec → spec}/config_spec.rb +0 -0
  51. data/spec/fixtures/articles/congratulations-aerial-is-configured-correctly/congratulations-aerial-is-configured-correctly.article +6 -0
  52. data/spec/fixtures/articles/sample-article/sample-article.article +6 -0
  53. data/spec/fixtures/articles/test-article-one/test-article.article +7 -0
  54. data/spec/fixtures/articles/test-article-three/test-article.article +7 -0
  55. data/spec/fixtures/articles/test-article-two/comment-missing-fields.comment +8 -0
  56. data/spec/fixtures/articles/test-article-two/test-article.article +7 -0
  57. data/spec/fixtures/articles/test-article-two/test-comment.comment +10 -0
  58. data/{lib/spec → spec}/fixtures/config.yml +0 -0
  59. data/spec/fixtures/public/javascripts/application.js +109 -0
  60. data/spec/fixtures/public/javascripts/jquery-1.3.1.min.js +19 -0
  61. data/spec/fixtures/public/javascripts/jquery.template.js +255 -0
  62. data/spec/fixtures/views/article.haml +19 -0
  63. data/spec/fixtures/views/articles.haml +2 -0
  64. data/spec/fixtures/views/comment.haml +8 -0
  65. data/spec/fixtures/views/home.haml +2 -0
  66. data/spec/fixtures/views/layout.haml +22 -0
  67. data/spec/fixtures/views/not_found.haml +1 -0
  68. data/spec/fixtures/views/post.haml +27 -0
  69. data/spec/fixtures/views/rss.haml +15 -0
  70. data/spec/fixtures/views/sidebar.haml +29 -0
  71. data/spec/fixtures/views/style.sass +163 -0
  72. data/{lib/spec → spec}/spec_helper.rb +15 -3
  73. data/views/article.haml +19 -0
  74. data/views/articles.haml +2 -0
  75. data/views/comment.haml +8 -0
  76. data/views/home.haml +2 -0
  77. data/views/layout.haml +22 -0
  78. data/views/not_found.haml +1 -0
  79. data/views/post.haml +27 -0
  80. data/views/rss.haml +15 -0
  81. data/views/sidebar.haml +29 -0
  82. data/views/style.sass +163 -0
  83. metadata +86 -40
  84. data/lib/features/home.feature +0 -16
  85. data/lib/spec/fixtures/articles/sample-article/sample-article.article +0 -6
  86. data/lib/spec/fixtures/articles/test-article-one/test-article.article +0 -7
  87. data/lib/spec/fixtures/articles/test-article-three/test-article.article +0 -7
  88. data/lib/spec/fixtures/articles/test-article-two/comment-missing-fields.comment +0 -8
  89. data/lib/spec/fixtures/articles/test-article-two/test-article.article +0 -7
  90. data/lib/spec/fixtures/articles/test-article-two/test-comment.comment +0 -10
@@ -1,16 +0,0 @@
1
- Feature: Homepage
2
- In order to view recent Articles
3
- As anonymous
4
- wants to view the most recent articles
5
-
6
- Scenario: Opening the home page
7
- Given there are articles
8
- When I view the Homepage
9
- Then the title should be "Aerial | A Microblog by Matt Sears"
10
- Then I should see "Congratulations! Aerial is configured correctly"
11
- Then I should see a link to "Home":http://localhost:4567/home
12
- Then I should see a link to "About":http://localhost:4567/about
13
- Then I should see a link to "ruby":http://localhost:4567/tags/ruby
14
- Then I should see a link to "sinatra":http://localhost:4567/tags/sinatra
15
- Then I should see a link to "git":http://localhost:4567/tags/git
16
- Then I should see a link to "aerial":http://localhost:4567/tags/aerial
@@ -1,6 +0,0 @@
1
- Title : Sample article
2
- Tags : ruby, sinatra, git
3
- Published : 01/31/2009
4
- Author : Aerial
5
-
6
- Congratulations! Aerial appears to be up and running. This is a sample article created during the bootstrap process. You may over this article or created a new one.
@@ -1,7 +0,0 @@
1
- Title : This is the first article
2
- Tags : ruby, sinatra, git
3
- Published : 01/31/2009
4
- Author : Matt Sears
5
-
6
- Lorem ipsum dolor sit amet, adipisicing **elit**, sed do eiusmod
7
- tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
@@ -1,7 +0,0 @@
1
- Title : This is the third test article
2
- Tags : ruby, sinatra, git
3
- Published : 12/25/2009
4
- Author : Matt Sears
5
-
6
- Lorem ipsum dolor sit amet, adipisicing **elit**, sed do eiusmod
7
- tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
@@ -1,8 +0,0 @@
1
- Author : Anonymous Coward
2
- Email : anonymous@coward.com
3
- Homepage :
4
- Referrer : http://mattsears.com
5
- Published : 10/26/2009
6
- IP : 127.0.0.1
7
-
8
- This is a comment with a few fields missing above
@@ -1,7 +0,0 @@
1
- Title : This is the second article
2
- Tags : ruby, git
3
- Published : 12/15/2009
4
- Author : Matt Sears
5
-
6
- Lorem ipsum dolor sit amet, adipisicing **elit**, sed do eiusmod
7
- tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim venia
@@ -1,10 +0,0 @@
1
- Author : Anonymous Coward
2
- Email : anonymous@coward.com
3
- Homepage : http://littlelines.com
4
- Referrer : http://mattsears.com
5
- User-Agent : CERN-LineMode/2.15 libwww/2.17b3
6
- Published : 10/26/2009
7
- IP : 127.0.0.1
8
-
9
- Lorem ipsum dolor sit amet, adipisicing **comment**, sed do eiusmod
10
- tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim venia