cdamian-admin 0.0.0 → 0.0.1

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 (60) hide show
  1. data/README.rdoc +1 -1
  2. data/Rakefile +3 -2
  3. data/VERSION +1 -1
  4. data/app/controllers/admin/base_controller.rb +59 -0
  5. data/app/controllers/admin/dashboard_controller.rb +4 -0
  6. data/app/controllers/admin/moderator_sessions_controller.rb +26 -0
  7. data/app/controllers/admin/moderators_controller.rb +67 -0
  8. data/app/helpers/admin/base_helper.rb +24 -0
  9. data/app/helpers/admin/dashboard_helper.rb +2 -0
  10. data/app/helpers/admin/moderator_sessions_helper.rb +2 -0
  11. data/app/helpers/admin/moderators_helper.rb +2 -0
  12. data/app/models/moderator.rb +6 -0
  13. data/app/models/moderator_session.rb +3 -0
  14. data/app/views/admin/dashboard/index.html.erb +3 -0
  15. data/app/views/admin/moderator_sessions/new.html.erb +57 -0
  16. data/app/views/admin/moderators/_form.erb +42 -0
  17. data/app/views/admin/moderators/edit.html.erb +25 -0
  18. data/app/views/admin/moderators/index.html.erb +35 -0
  19. data/app/views/admin/moderators/new.html.erb +25 -0
  20. data/app/views/layouts/admin.html.erb +45 -0
  21. data/config/routes.rb +9 -0
  22. data/db/migrate/20090810030104_create_moderators.rb +39 -0
  23. data/lib/admin.rb +29 -0
  24. data/public/images/admin/background.png +0 -0
  25. data/public/images/admin/button_back.png +0 -0
  26. data/public/images/admin/button_backup.png +0 -0
  27. data/public/images/admin/button_cancel.png +0 -0
  28. data/public/images/admin/button_delete.png +0 -0
  29. data/public/images/admin/button_insert.png +0 -0
  30. data/public/images/admin/button_login.png +0 -0
  31. data/public/images/admin/button_middle.png +0 -0
  32. data/public/images/admin/button_print.png +0 -0
  33. data/public/images/admin/button_restore.png +0 -0
  34. data/public/images/admin/button_right.png +0 -0
  35. data/public/images/admin/button_save.png +0 -0
  36. data/public/images/admin/button_send.png +0 -0
  37. data/public/images/admin/column_left.png +0 -0
  38. data/public/images/admin/column_right.png +0 -0
  39. data/public/images/admin/footer.png +0 -0
  40. data/public/images/admin/header.png +0 -0
  41. data/public/images/admin/login.png +0 -0
  42. data/public/images/admin/login_bottom.png +0 -0
  43. data/public/images/admin/login_top.png +0 -0
  44. data/public/images/admin/tab_1.png +0 -0
  45. data/public/images/admin/tab_2.png +0 -0
  46. data/public/images/admin/tab_3.png +0 -0
  47. data/public/images/admin/top_1.png +0 -0
  48. data/public/stylesheets/admin/application.css +430 -0
  49. data/tasks/admin_tasks.rake +7 -0
  50. data/test/fixtures/moderators.yml +7 -0
  51. data/test/functional/admin/base_controller_test.rb +8 -0
  52. data/test/functional/admin/dashboard_controller_test.rb +8 -0
  53. data/test/functional/admin/moderator_sessions_controller_test.rb +8 -0
  54. data/test/functional/admin/moderators_controller_test.rb +8 -0
  55. data/test/unit/helpers/admin/base_helper_test.rb +4 -0
  56. data/test/unit/helpers/admin/dashboard_helper_test.rb +4 -0
  57. data/test/unit/helpers/admin/moderator_sessions_helper_test.rb +4 -0
  58. data/test/unit/helpers/admin/moderators_helper_test.rb +4 -0
  59. data/test/unit/moderator_test.rb +8 -0
  60. metadata +68 -4
@@ -0,0 +1,7 @@
1
+ namespace :admin do
2
+ desc "Sync extra files from admin"
3
+ task :sync do
4
+ system "rsync -ruv #{File.dirname(__FILE__)}/../db/migrate db"
5
+ system "rsync -ruv #{File.dirname(__FILE__)}/../public ."
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
+
3
+ # one:
4
+ # column: value
5
+ #
6
+ # two:
7
+ # column: value
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class Admin::BaseControllerTest < ActionController::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class Admin::DashboardControllerTest < ActionController::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class Admin::ModeratorSessionsControllerTest < ActionController::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class Admin::ModeratorsControllerTest < ActionController::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class Admin::BaseHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class Admin::DashboardHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class Admin::ModeratorSessionsHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class Admin::ModeratorsHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class ModeratorTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cdamian-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damian Caruso
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-09 00:00:00 -07:00
12
+ date: 2009-08-14 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -22,7 +22,7 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: 2.1.1
24
24
  version:
25
- description:
25
+ description: A drop-in admin interface for existing rails applications
26
26
  email: damian.caruso@gmail.com
27
27
  executables: []
28
28
 
@@ -36,9 +36,64 @@ files:
36
36
  - README.rdoc
37
37
  - Rakefile
38
38
  - VERSION
39
+ - app/controllers/admin/base_controller.rb
40
+ - app/controllers/admin/dashboard_controller.rb
41
+ - app/controllers/admin/moderator_sessions_controller.rb
42
+ - app/controllers/admin/moderators_controller.rb
43
+ - app/helpers/admin/base_helper.rb
44
+ - app/helpers/admin/dashboard_helper.rb
45
+ - app/helpers/admin/moderator_sessions_helper.rb
46
+ - app/helpers/admin/moderators_helper.rb
47
+ - app/models/moderator.rb
48
+ - app/models/moderator_session.rb
49
+ - app/views/admin/dashboard/index.html.erb
50
+ - app/views/admin/moderator_sessions/new.html.erb
51
+ - app/views/admin/moderators/_form.erb
52
+ - app/views/admin/moderators/edit.html.erb
53
+ - app/views/admin/moderators/index.html.erb
54
+ - app/views/admin/moderators/new.html.erb
55
+ - app/views/layouts/admin.html.erb
56
+ - config/routes.rb
57
+ - db/migrate/20090810030104_create_moderators.rb
39
58
  - lib/admin.rb
59
+ - public/images/admin/background.png
60
+ - public/images/admin/button_back.png
61
+ - public/images/admin/button_backup.png
62
+ - public/images/admin/button_cancel.png
63
+ - public/images/admin/button_delete.png
64
+ - public/images/admin/button_insert.png
65
+ - public/images/admin/button_login.png
66
+ - public/images/admin/button_middle.png
67
+ - public/images/admin/button_print.png
68
+ - public/images/admin/button_restore.png
69
+ - public/images/admin/button_right.png
70
+ - public/images/admin/button_save.png
71
+ - public/images/admin/button_send.png
72
+ - public/images/admin/column_left.png
73
+ - public/images/admin/column_right.png
74
+ - public/images/admin/footer.png
75
+ - public/images/admin/header.png
76
+ - public/images/admin/login.png
77
+ - public/images/admin/login_bottom.png
78
+ - public/images/admin/login_top.png
79
+ - public/images/admin/tab_1.png
80
+ - public/images/admin/tab_2.png
81
+ - public/images/admin/tab_3.png
82
+ - public/images/admin/top_1.png
83
+ - public/stylesheets/admin/application.css
84
+ - tasks/admin_tasks.rake
40
85
  - test/admin_test.rb
86
+ - test/fixtures/moderators.yml
87
+ - test/functional/admin/base_controller_test.rb
88
+ - test/functional/admin/dashboard_controller_test.rb
89
+ - test/functional/admin/moderator_sessions_controller_test.rb
90
+ - test/functional/admin/moderators_controller_test.rb
41
91
  - test/test_helper.rb
92
+ - test/unit/helpers/admin/base_helper_test.rb
93
+ - test/unit/helpers/admin/dashboard_helper_test.rb
94
+ - test/unit/helpers/admin/moderator_sessions_helper_test.rb
95
+ - test/unit/helpers/admin/moderators_helper_test.rb
96
+ - test/unit/moderator_test.rb
42
97
  has_rdoc: false
43
98
  homepage: http://github.com/cdamian/admin
44
99
  licenses:
@@ -65,7 +120,16 @@ rubyforge_project:
65
120
  rubygems_version: 1.3.5
66
121
  signing_key:
67
122
  specification_version: 3
68
- summary: Core admin interface with user authentication and authorization
123
+ summary: A drop-in admin interface for existing rails applications
69
124
  test_files:
70
125
  - test/admin_test.rb
126
+ - test/functional/admin/base_controller_test.rb
127
+ - test/functional/admin/dashboard_controller_test.rb
128
+ - test/functional/admin/moderators_controller_test.rb
129
+ - test/functional/admin/moderator_sessions_controller_test.rb
71
130
  - test/test_helper.rb
131
+ - test/unit/helpers/admin/base_helper_test.rb
132
+ - test/unit/helpers/admin/dashboard_helper_test.rb
133
+ - test/unit/helpers/admin/moderators_helper_test.rb
134
+ - test/unit/helpers/admin/moderator_sessions_helper_test.rb
135
+ - test/unit/moderator_test.rb