engrave 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.
Files changed (78) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +3 -0
  3. data/Rakefile +40 -0
  4. data/app/assets/javascripts/authors.js +2 -0
  5. data/app/assets/javascripts/pages.js +2 -0
  6. data/app/assets/javascripts/posts.js +2 -0
  7. data/app/assets/stylesheets/authors.css +4 -0
  8. data/app/assets/stylesheets/pages.css +4 -0
  9. data/app/assets/stylesheets/posts.css +4 -0
  10. data/app/controllers/authors_controller.rb +9 -0
  11. data/app/controllers/pages_controller.rb +9 -0
  12. data/app/controllers/posts_controller.rb +13 -0
  13. data/app/helpers/application_helper.rb +5 -0
  14. data/app/helpers/authors_helper.rb +2 -0
  15. data/app/helpers/pages_helper.rb +2 -0
  16. data/app/helpers/posts_helper.rb +2 -0
  17. data/app/models/author.rb +3 -0
  18. data/app/models/page.rb +6 -0
  19. data/app/models/post.rb +10 -0
  20. data/app/views/authors/_author.html.erb +0 -0
  21. data/app/views/authors/show.html.erb +0 -0
  22. data/app/views/pages/_page.html.erb +7 -0
  23. data/app/views/pages/show.html.erb +1 -0
  24. data/app/views/posts/_post.html.erb +15 -0
  25. data/app/views/posts/index.html.erb +3 -0
  26. data/app/views/posts/show.html.erb +1 -0
  27. data/config/routes.rb +5 -0
  28. data/db/migrate/20120524024050_create_posts.rb +19 -0
  29. data/db/migrate/20120524024058_create_authors.rb +10 -0
  30. data/db/migrate/20120524024104_create_pages.rb +13 -0
  31. data/lib/engrave.rb +4 -0
  32. data/lib/engrave/engine.rb +7 -0
  33. data/lib/engrave/version.rb +3 -0
  34. data/lib/tasks/engrave_tasks.rake +4 -0
  35. data/test/dummy/README.rdoc +261 -0
  36. data/test/dummy/Rakefile +7 -0
  37. data/test/dummy/app/assets/javascripts/application.js +15 -0
  38. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  39. data/test/dummy/app/controllers/application_controller.rb +3 -0
  40. data/test/dummy/app/helpers/application_helper.rb +2 -0
  41. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  42. data/test/dummy/config.ru +4 -0
  43. data/test/dummy/config/application.rb +56 -0
  44. data/test/dummy/config/boot.rb +10 -0
  45. data/test/dummy/config/database.yml +25 -0
  46. data/test/dummy/config/environment.rb +5 -0
  47. data/test/dummy/config/environments/development.rb +37 -0
  48. data/test/dummy/config/environments/production.rb +67 -0
  49. data/test/dummy/config/environments/test.rb +37 -0
  50. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  51. data/test/dummy/config/initializers/inflections.rb +15 -0
  52. data/test/dummy/config/initializers/mime_types.rb +5 -0
  53. data/test/dummy/config/initializers/secret_token.rb +7 -0
  54. data/test/dummy/config/initializers/session_store.rb +8 -0
  55. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  56. data/test/dummy/config/locales/en.yml +5 -0
  57. data/test/dummy/config/routes.rb +58 -0
  58. data/test/dummy/public/404.html +26 -0
  59. data/test/dummy/public/422.html +26 -0
  60. data/test/dummy/public/500.html +25 -0
  61. data/test/dummy/public/favicon.ico +0 -0
  62. data/test/dummy/script/rails +6 -0
  63. data/test/engrave_test.rb +7 -0
  64. data/test/fixtures/authors.yml +11 -0
  65. data/test/fixtures/pages.yml +11 -0
  66. data/test/fixtures/posts.yml +11 -0
  67. data/test/functional/authors_controller_test.rb +7 -0
  68. data/test/functional/pages_controller_test.rb +7 -0
  69. data/test/functional/posts_controller_test.rb +7 -0
  70. data/test/integration/navigation_test.rb +10 -0
  71. data/test/test_helper.rb +15 -0
  72. data/test/unit/author_test.rb +7 -0
  73. data/test/unit/helpers/authors_helper_test.rb +4 -0
  74. data/test/unit/helpers/pages_helper_test.rb +4 -0
  75. data/test/unit/helpers/posts_helper_test.rb +4 -0
  76. data/test/unit/page_test.rb +7 -0
  77. data/test/unit/post_test.rb +7 -0
  78. metadata +209 -0
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class EngraveTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, Engrave
6
+ end
7
+ end
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class AuthorsControllerTest < ActionController::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class PagesControllerTest < ActionController::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class PostsControllerTest < ActionController::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class AuthorTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class AuthorsHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class PagesHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class PostsHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class PageTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class PostTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
metadata ADDED
@@ -0,0 +1,209 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: engrave
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jeff McFadden
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-05-24 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &70252822862820 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.3
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70252822862820
25
+ - !ruby/object:Gem::Dependency
26
+ name: devise
27
+ requirement: &70252822862160 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70252822862160
36
+ - !ruby/object:Gem::Dependency
37
+ name: kramdown
38
+ requirement: &70252822861480 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *70252822861480
47
+ - !ruby/object:Gem::Dependency
48
+ name: friendly_id
49
+ requirement: &70252822860760 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 4.0.1
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *70252822860760
58
+ description: Yet another Ruby blog engine.
59
+ email:
60
+ - jeff.mcfadden@gmail.com
61
+ executables: []
62
+ extensions: []
63
+ extra_rdoc_files: []
64
+ files:
65
+ - app/assets/javascripts/authors.js
66
+ - app/assets/javascripts/pages.js
67
+ - app/assets/javascripts/posts.js
68
+ - app/assets/stylesheets/authors.css
69
+ - app/assets/stylesheets/pages.css
70
+ - app/assets/stylesheets/posts.css
71
+ - app/controllers/authors_controller.rb
72
+ - app/controllers/pages_controller.rb
73
+ - app/controllers/posts_controller.rb
74
+ - app/helpers/application_helper.rb
75
+ - app/helpers/authors_helper.rb
76
+ - app/helpers/pages_helper.rb
77
+ - app/helpers/posts_helper.rb
78
+ - app/models/author.rb
79
+ - app/models/page.rb
80
+ - app/models/post.rb
81
+ - app/views/authors/_author.html.erb
82
+ - app/views/authors/show.html.erb
83
+ - app/views/pages/_page.html.erb
84
+ - app/views/pages/show.html.erb
85
+ - app/views/posts/_post.html.erb
86
+ - app/views/posts/index.html.erb
87
+ - app/views/posts/show.html.erb
88
+ - config/routes.rb
89
+ - db/migrate/20120524024050_create_posts.rb
90
+ - db/migrate/20120524024058_create_authors.rb
91
+ - db/migrate/20120524024104_create_pages.rb
92
+ - lib/engrave/engine.rb
93
+ - lib/engrave/version.rb
94
+ - lib/engrave.rb
95
+ - lib/tasks/engrave_tasks.rake
96
+ - MIT-LICENSE
97
+ - Rakefile
98
+ - README.md
99
+ - test/dummy/app/assets/javascripts/application.js
100
+ - test/dummy/app/assets/stylesheets/application.css
101
+ - test/dummy/app/controllers/application_controller.rb
102
+ - test/dummy/app/helpers/application_helper.rb
103
+ - test/dummy/app/views/layouts/application.html.erb
104
+ - test/dummy/config/application.rb
105
+ - test/dummy/config/boot.rb
106
+ - test/dummy/config/database.yml
107
+ - test/dummy/config/environment.rb
108
+ - test/dummy/config/environments/development.rb
109
+ - test/dummy/config/environments/production.rb
110
+ - test/dummy/config/environments/test.rb
111
+ - test/dummy/config/initializers/backtrace_silencers.rb
112
+ - test/dummy/config/initializers/inflections.rb
113
+ - test/dummy/config/initializers/mime_types.rb
114
+ - test/dummy/config/initializers/secret_token.rb
115
+ - test/dummy/config/initializers/session_store.rb
116
+ - test/dummy/config/initializers/wrap_parameters.rb
117
+ - test/dummy/config/locales/en.yml
118
+ - test/dummy/config/routes.rb
119
+ - test/dummy/config.ru
120
+ - test/dummy/public/404.html
121
+ - test/dummy/public/422.html
122
+ - test/dummy/public/500.html
123
+ - test/dummy/public/favicon.ico
124
+ - test/dummy/Rakefile
125
+ - test/dummy/README.rdoc
126
+ - test/dummy/script/rails
127
+ - test/engrave_test.rb
128
+ - test/fixtures/authors.yml
129
+ - test/fixtures/pages.yml
130
+ - test/fixtures/posts.yml
131
+ - test/functional/authors_controller_test.rb
132
+ - test/functional/pages_controller_test.rb
133
+ - test/functional/posts_controller_test.rb
134
+ - test/integration/navigation_test.rb
135
+ - test/test_helper.rb
136
+ - test/unit/author_test.rb
137
+ - test/unit/helpers/authors_helper_test.rb
138
+ - test/unit/helpers/pages_helper_test.rb
139
+ - test/unit/helpers/posts_helper_test.rb
140
+ - test/unit/page_test.rb
141
+ - test/unit/post_test.rb
142
+ homepage: https://www.github.com/jeffmcfadden/engrave
143
+ licenses: []
144
+ post_install_message:
145
+ rdoc_options: []
146
+ require_paths:
147
+ - lib
148
+ required_ruby_version: !ruby/object:Gem::Requirement
149
+ none: false
150
+ requirements:
151
+ - - ! '>='
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ required_rubygems_version: !ruby/object:Gem::Requirement
155
+ none: false
156
+ requirements:
157
+ - - ! '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ requirements: []
161
+ rubyforge_project:
162
+ rubygems_version: 1.8.10
163
+ signing_key:
164
+ specification_version: 3
165
+ summary: Yet another Ruby blog engine.
166
+ test_files:
167
+ - test/dummy/app/assets/javascripts/application.js
168
+ - test/dummy/app/assets/stylesheets/application.css
169
+ - test/dummy/app/controllers/application_controller.rb
170
+ - test/dummy/app/helpers/application_helper.rb
171
+ - test/dummy/app/views/layouts/application.html.erb
172
+ - test/dummy/config/application.rb
173
+ - test/dummy/config/boot.rb
174
+ - test/dummy/config/database.yml
175
+ - test/dummy/config/environment.rb
176
+ - test/dummy/config/environments/development.rb
177
+ - test/dummy/config/environments/production.rb
178
+ - test/dummy/config/environments/test.rb
179
+ - test/dummy/config/initializers/backtrace_silencers.rb
180
+ - test/dummy/config/initializers/inflections.rb
181
+ - test/dummy/config/initializers/mime_types.rb
182
+ - test/dummy/config/initializers/secret_token.rb
183
+ - test/dummy/config/initializers/session_store.rb
184
+ - test/dummy/config/initializers/wrap_parameters.rb
185
+ - test/dummy/config/locales/en.yml
186
+ - test/dummy/config/routes.rb
187
+ - test/dummy/config.ru
188
+ - test/dummy/public/404.html
189
+ - test/dummy/public/422.html
190
+ - test/dummy/public/500.html
191
+ - test/dummy/public/favicon.ico
192
+ - test/dummy/Rakefile
193
+ - test/dummy/README.rdoc
194
+ - test/dummy/script/rails
195
+ - test/engrave_test.rb
196
+ - test/fixtures/authors.yml
197
+ - test/fixtures/pages.yml
198
+ - test/fixtures/posts.yml
199
+ - test/functional/authors_controller_test.rb
200
+ - test/functional/pages_controller_test.rb
201
+ - test/functional/posts_controller_test.rb
202
+ - test/integration/navigation_test.rb
203
+ - test/test_helper.rb
204
+ - test/unit/author_test.rb
205
+ - test/unit/helpers/authors_helper_test.rb
206
+ - test/unit/helpers/pages_helper_test.rb
207
+ - test/unit/helpers/posts_helper_test.rb
208
+ - test/unit/page_test.rb
209
+ - test/unit/post_test.rb