stiki 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/LICENSE +176 -0
  2. data/README.rdoc +65 -0
  3. data/Rakefile +40 -0
  4. data/app/assets/javascripts/project_monster_wiki/application.js +15 -0
  5. data/app/assets/javascripts/project_monster_wiki/authors.js +2 -0
  6. data/app/assets/javascripts/project_monster_wiki/pages.js +2 -0
  7. data/app/assets/javascripts/project_monster_wiki/spaces.js +2 -0
  8. data/app/assets/stylesheets/stiki/application.css.scss +17 -0
  9. data/app/assets/stylesheets/stiki/authors.css +4 -0
  10. data/app/assets/stylesheets/stiki/pages.css +54 -0
  11. data/app/assets/stylesheets/stiki/spaces.css +4 -0
  12. data/app/controllers/stiki/application_controller.rb +6 -0
  13. data/app/controllers/stiki/authors_controller.rb +6 -0
  14. data/app/controllers/stiki/pages_controller.rb +94 -0
  15. data/app/controllers/stiki/spaces_controller.rb +42 -0
  16. data/app/helpers/stiki/application_helper.rb +17 -0
  17. data/app/helpers/stiki/authors_helper.rb +4 -0
  18. data/app/helpers/stiki/pages_helper.rb +4 -0
  19. data/app/helpers/stiki/spaces_helper.rb +4 -0
  20. data/app/models/stiki/author.rb +9 -0
  21. data/app/models/stiki/page.rb +33 -0
  22. data/app/models/stiki/space.rb +16 -0
  23. data/app/views/stiki/pages/_form.html.erb +35 -0
  24. data/app/views/stiki/pages/edit.html.erb +13 -0
  25. data/app/views/stiki/pages/index.html.erb +51 -0
  26. data/app/views/stiki/pages/new.html.erb +13 -0
  27. data/app/views/stiki/pages/show.html.erb +86 -0
  28. data/app/views/stiki/spaces/index.html.erb +52 -0
  29. data/config/routes.rb +13 -0
  30. data/db/migrate/20120731063610_create_stiki_spaces.rb +10 -0
  31. data/db/migrate/20120731063657_create_stiki_pages.rb +13 -0
  32. data/db/migrate/20120731063721_create_stiki_authors.rb +14 -0
  33. data/lib/stiki/authenticate/devise.rb +19 -0
  34. data/lib/stiki/authenticate.rb +7 -0
  35. data/lib/stiki/authorize/cancan.rb +9 -0
  36. data/lib/stiki/authorize.rb +7 -0
  37. data/lib/stiki/engine.rb +6 -0
  38. data/lib/stiki/model/map_author.rb +10 -0
  39. data/lib/stiki/model.rb +7 -0
  40. data/lib/stiki/version.rb +3 -0
  41. data/lib/stiki.rb +70 -0
  42. data/lib/tasks/stiki_tasks.rake +4 -0
  43. data/spec/controllers/stiki/pages_controller_spec.rb +82 -0
  44. data/spec/controllers/stiki/spaces_controller_spec.rb +43 -0
  45. data/spec/factories/pages.rb +7 -0
  46. data/spec/factories/spaces.rb +5 -0
  47. data/spec/lib/authenticate/devise_spec.rb +26 -0
  48. data/spec/lib/stiki_spec.rb +47 -0
  49. data/spec/models/stiki/author_spec.rb +6 -0
  50. data/spec/models/stiki/page_spec.rb +8 -0
  51. data/spec/models/stiki/space_spec.rb +7 -0
  52. data/spec/spec_helper.rb +77 -0
  53. data/test/dummy/README.rdoc +261 -0
  54. data/test/dummy/Rakefile +7 -0
  55. data/test/dummy/app/assets/javascripts/application.js +15 -0
  56. data/test/dummy/app/assets/stylesheets/application.css +18 -0
  57. data/test/dummy/app/controllers/application_controller.rb +3 -0
  58. data/test/dummy/app/helpers/application_helper.rb +2 -0
  59. data/test/dummy/app/views/layouts/application.html.erb +22 -0
  60. data/test/dummy/config/application.rb +59 -0
  61. data/test/dummy/config/boot.rb +10 -0
  62. data/test/dummy/config/database.yml +25 -0
  63. data/test/dummy/config/environment.rb +5 -0
  64. data/test/dummy/config/environments/development.rb +37 -0
  65. data/test/dummy/config/environments/production.rb +67 -0
  66. data/test/dummy/config/environments/test.rb +37 -0
  67. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  68. data/test/dummy/config/initializers/inflections.rb +15 -0
  69. data/test/dummy/config/initializers/mime_types.rb +5 -0
  70. data/test/dummy/config/initializers/secret_token.rb +7 -0
  71. data/test/dummy/config/initializers/session_store.rb +8 -0
  72. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  73. data/test/dummy/config/locales/en.yml +5 -0
  74. data/test/dummy/config/routes.rb +4 -0
  75. data/test/dummy/config.ru +4 -0
  76. data/test/dummy/db/development.sqlite3 +0 -0
  77. data/test/dummy/db/schema.rb +46 -0
  78. data/test/dummy/db/test.sqlite3 +0 -0
  79. data/test/dummy/log/development.log +69 -0
  80. data/test/dummy/log/test.log +59362 -0
  81. data/test/dummy/public/404.html +26 -0
  82. data/test/dummy/public/422.html +26 -0
  83. data/test/dummy/public/500.html +25 -0
  84. data/test/dummy/public/favicon.ico +0 -0
  85. data/test/dummy/script/rails +6 -0
  86. data/test/test_helper.rb +15 -0
  87. metadata +319 -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,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
metadata ADDED
@@ -0,0 +1,319 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: stiki
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Michael Guymon
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-08-06 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.1
30
+ - !ruby/object:Gem::Dependency
31
+ name: friendly_id
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 4.0.1
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 4.0.1
46
+ - !ruby/object:Gem::Dependency
47
+ name: redcarpet
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 2.1.1
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 2.1.1
62
+ - !ruby/object:Gem::Dependency
63
+ name: devise
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 2.0.1
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 2.0.1
78
+ - !ruby/object:Gem::Dependency
79
+ name: cancan
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 1.6.1
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 1.6.1
94
+ - !ruby/object:Gem::Dependency
95
+ name: sqlite3
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: rspec-rails
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: 2.11.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: 2.11.0
126
+ - !ruby/object:Gem::Dependency
127
+ name: factory_girl_rails
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ~>
132
+ - !ruby/object:Gem::Version
133
+ version: 3.6.0
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: 3.6.0
142
+ - !ruby/object:Gem::Dependency
143
+ name: shoulda-matchers
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: 1.2.0
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: 1.2.0
158
+ description: A simple wiki Rails engine
159
+ email:
160
+ - michael.guymon@gmail.com
161
+ executables: []
162
+ extensions: []
163
+ extra_rdoc_files: []
164
+ files:
165
+ - app/assets/javascripts/project_monster_wiki/authors.js
166
+ - app/assets/javascripts/project_monster_wiki/spaces.js
167
+ - app/assets/javascripts/project_monster_wiki/pages.js
168
+ - app/assets/javascripts/project_monster_wiki/application.js
169
+ - app/assets/stylesheets/stiki/application.css.scss
170
+ - app/assets/stylesheets/stiki/spaces.css
171
+ - app/assets/stylesheets/stiki/pages.css
172
+ - app/assets/stylesheets/stiki/authors.css
173
+ - app/helpers/stiki/pages_helper.rb
174
+ - app/helpers/stiki/authors_helper.rb
175
+ - app/helpers/stiki/application_helper.rb
176
+ - app/helpers/stiki/spaces_helper.rb
177
+ - app/models/stiki/author.rb
178
+ - app/models/stiki/page.rb
179
+ - app/models/stiki/space.rb
180
+ - app/views/stiki/spaces/index.html.erb
181
+ - app/views/stiki/pages/new.html.erb
182
+ - app/views/stiki/pages/index.html.erb
183
+ - app/views/stiki/pages/_form.html.erb
184
+ - app/views/stiki/pages/edit.html.erb
185
+ - app/views/stiki/pages/show.html.erb
186
+ - app/controllers/stiki/application_controller.rb
187
+ - app/controllers/stiki/spaces_controller.rb
188
+ - app/controllers/stiki/pages_controller.rb
189
+ - app/controllers/stiki/authors_controller.rb
190
+ - config/routes.rb
191
+ - db/migrate/20120731063721_create_stiki_authors.rb
192
+ - db/migrate/20120731063610_create_stiki_spaces.rb
193
+ - db/migrate/20120731063657_create_stiki_pages.rb
194
+ - lib/stiki.rb
195
+ - lib/tasks/stiki_tasks.rake
196
+ - lib/stiki/authorize.rb
197
+ - lib/stiki/engine.rb
198
+ - lib/stiki/authenticate/devise.rb
199
+ - lib/stiki/model.rb
200
+ - lib/stiki/model/map_author.rb
201
+ - lib/stiki/version.rb
202
+ - lib/stiki/authorize/cancan.rb
203
+ - lib/stiki/authenticate.rb
204
+ - LICENSE
205
+ - Rakefile
206
+ - README.rdoc
207
+ - test/test_helper.rb
208
+ - test/dummy/script/rails
209
+ - test/dummy/README.rdoc
210
+ - test/dummy/config.ru
211
+ - test/dummy/config/application.rb
212
+ - test/dummy/config/database.yml
213
+ - test/dummy/config/environment.rb
214
+ - test/dummy/config/boot.rb
215
+ - test/dummy/config/locales/en.yml
216
+ - test/dummy/config/routes.rb
217
+ - test/dummy/config/initializers/secret_token.rb
218
+ - test/dummy/config/initializers/session_store.rb
219
+ - test/dummy/config/initializers/backtrace_silencers.rb
220
+ - test/dummy/config/initializers/mime_types.rb
221
+ - test/dummy/config/initializers/inflections.rb
222
+ - test/dummy/config/initializers/wrap_parameters.rb
223
+ - test/dummy/config/environments/test.rb
224
+ - test/dummy/config/environments/production.rb
225
+ - test/dummy/config/environments/development.rb
226
+ - test/dummy/db/development.sqlite3
227
+ - test/dummy/db/test.sqlite3
228
+ - test/dummy/db/schema.rb
229
+ - test/dummy/Rakefile
230
+ - test/dummy/public/404.html
231
+ - test/dummy/public/422.html
232
+ - test/dummy/public/500.html
233
+ - test/dummy/public/favicon.ico
234
+ - test/dummy/log/test.log
235
+ - test/dummy/log/development.log
236
+ - test/dummy/app/assets/javascripts/application.js
237
+ - test/dummy/app/assets/stylesheets/application.css
238
+ - test/dummy/app/helpers/application_helper.rb
239
+ - test/dummy/app/views/layouts/application.html.erb
240
+ - test/dummy/app/controllers/application_controller.rb
241
+ - spec/spec_helper.rb
242
+ - spec/factories/pages.rb
243
+ - spec/factories/spaces.rb
244
+ - spec/models/stiki/page_spec.rb
245
+ - spec/models/stiki/author_spec.rb
246
+ - spec/models/stiki/space_spec.rb
247
+ - spec/lib/authenticate/devise_spec.rb
248
+ - spec/lib/stiki_spec.rb
249
+ - spec/controllers/stiki/pages_controller_spec.rb
250
+ - spec/controllers/stiki/spaces_controller_spec.rb
251
+ homepage: https://github.com/mguymon/stiki
252
+ licenses: []
253
+ post_install_message:
254
+ rdoc_options: []
255
+ require_paths:
256
+ - lib
257
+ required_ruby_version: !ruby/object:Gem::Requirement
258
+ none: false
259
+ requirements:
260
+ - - ! '>='
261
+ - !ruby/object:Gem::Version
262
+ version: '0'
263
+ required_rubygems_version: !ruby/object:Gem::Requirement
264
+ none: false
265
+ requirements:
266
+ - - ! '>='
267
+ - !ruby/object:Gem::Version
268
+ version: '0'
269
+ requirements: []
270
+ rubyforge_project:
271
+ rubygems_version: 1.8.24
272
+ signing_key:
273
+ specification_version: 3
274
+ summary: The Icky Stiki Wiki
275
+ test_files:
276
+ - test/test_helper.rb
277
+ - test/dummy/script/rails
278
+ - test/dummy/README.rdoc
279
+ - test/dummy/config.ru
280
+ - test/dummy/config/application.rb
281
+ - test/dummy/config/database.yml
282
+ - test/dummy/config/environment.rb
283
+ - test/dummy/config/boot.rb
284
+ - test/dummy/config/locales/en.yml
285
+ - test/dummy/config/routes.rb
286
+ - test/dummy/config/initializers/secret_token.rb
287
+ - test/dummy/config/initializers/session_store.rb
288
+ - test/dummy/config/initializers/backtrace_silencers.rb
289
+ - test/dummy/config/initializers/mime_types.rb
290
+ - test/dummy/config/initializers/inflections.rb
291
+ - test/dummy/config/initializers/wrap_parameters.rb
292
+ - test/dummy/config/environments/test.rb
293
+ - test/dummy/config/environments/production.rb
294
+ - test/dummy/config/environments/development.rb
295
+ - test/dummy/db/development.sqlite3
296
+ - test/dummy/db/test.sqlite3
297
+ - test/dummy/db/schema.rb
298
+ - test/dummy/Rakefile
299
+ - test/dummy/public/404.html
300
+ - test/dummy/public/422.html
301
+ - test/dummy/public/500.html
302
+ - test/dummy/public/favicon.ico
303
+ - test/dummy/log/test.log
304
+ - test/dummy/log/development.log
305
+ - test/dummy/app/assets/javascripts/application.js
306
+ - test/dummy/app/assets/stylesheets/application.css
307
+ - test/dummy/app/helpers/application_helper.rb
308
+ - test/dummy/app/views/layouts/application.html.erb
309
+ - test/dummy/app/controllers/application_controller.rb
310
+ - spec/spec_helper.rb
311
+ - spec/factories/pages.rb
312
+ - spec/factories/spaces.rb
313
+ - spec/models/stiki/page_spec.rb
314
+ - spec/models/stiki/author_spec.rb
315
+ - spec/models/stiki/space_spec.rb
316
+ - spec/lib/authenticate/devise_spec.rb
317
+ - spec/lib/stiki_spec.rb
318
+ - spec/controllers/stiki/pages_controller_spec.rb
319
+ - spec/controllers/stiki/spaces_controller_spec.rb