spud_core 0.6.4 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +40 -0
  4. data/db/migrate/20111214161011_create_spud_admin_permissions.rb +11 -0
  5. data/db/migrate/20111214161146_create_spud_users.rb +29 -0
  6. data/lib/spud_core/version.rb +5 -0
  7. data/lib/tasks/spud_core_tasks.rake +4 -0
  8. data/test/dummy/README.rdoc +261 -0
  9. data/test/dummy/Rakefile +7 -0
  10. data/test/dummy/app/assets/javascripts/application.js +15 -0
  11. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  12. data/test/dummy/app/controllers/application_controller.rb +3 -0
  13. data/test/dummy/app/helpers/application_helper.rb +2 -0
  14. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  15. data/{config → test/dummy/config}/application.rb +15 -7
  16. data/test/dummy/config/boot.rb +10 -0
  17. data/test/dummy/config/database.yml +15 -0
  18. data/test/dummy/config/environment.rb +5 -0
  19. data/test/dummy/config/environments/development.rb +37 -0
  20. data/test/dummy/config/environments/production.rb +67 -0
  21. data/test/dummy/config/environments/test.rb +37 -0
  22. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  23. data/test/dummy/config/initializers/inflections.rb +15 -0
  24. data/test/dummy/config/initializers/mime_types.rb +5 -0
  25. data/test/dummy/config/initializers/secret_token.rb +7 -0
  26. data/test/dummy/config/initializers/session_store.rb +8 -0
  27. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  28. data/test/dummy/config/locales/en.yml +5 -0
  29. data/test/dummy/config/routes.rb +5 -0
  30. data/test/dummy/config.ru +4 -0
  31. data/test/dummy/db/development.sqlite3 +0 -0
  32. data/test/dummy/db/schema.rb +49 -0
  33. data/test/dummy/db/test.sqlite3 +0 -0
  34. data/test/dummy/log/development.log +46 -0
  35. data/test/dummy/log/test.log +7991 -0
  36. data/test/dummy/public/404.html +26 -0
  37. data/test/dummy/public/422.html +26 -0
  38. data/test/dummy/public/500.html +25 -0
  39. data/test/dummy/public/favicon.ico +0 -0
  40. data/test/dummy/script/rails +6 -0
  41. metadata +167 -36
  42. data/README.markdown +0 -41
  43. data/config/boot.rb +0 -6
@@ -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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spud_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.7.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,33 +9,33 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-24 00:00:00.000000000 Z
12
+ date: 2012-02-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: activesupport
16
- requirement: &70276415306700 !ruby/object:Gem::Requirement
15
+ name: rails
16
+ requirement: &70347500593880 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 3.2.0
21
+ version: 3.2.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70276415306700
24
+ version_requirements: *70347500593880
25
25
  - !ruby/object:Gem::Dependency
26
- name: rails
27
- requirement: &70276415301000 !ruby/object:Gem::Requirement
26
+ name: authlogic
27
+ requirement: &70347500609300 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
- version: 3.2.0
32
+ version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70276415301000
35
+ version_requirements: *70347500609300
36
36
  - !ruby/object:Gem::Dependency
37
- name: authlogic
38
- requirement: &70276415320060 !ruby/object:Gem::Requirement
37
+ name: jquery-rails
38
+ requirement: &70347500607760 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70276415320060
46
+ version_requirements: *70347500607760
47
47
  - !ruby/object:Gem::Dependency
48
- name: jquery-rails
49
- requirement: &70276415317660 !ruby/object:Gem::Requirement
48
+ name: breadcrumbs_on_rails
49
+ requirement: &70347500606440 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70276415317660
57
+ version_requirements: *70347500606440
58
58
  - !ruby/object:Gem::Dependency
59
- name: breadcrumbs_on_rails
60
- requirement: &70276415315580 !ruby/object:Gem::Requirement
59
+ name: will_paginate
60
+ requirement: &70347500605520 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,24 +65,79 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70276415315580
68
+ version_requirements: *70347500605520
69
69
  - !ruby/object:Gem::Dependency
70
- name: will_paginate
71
- requirement: &70276415330340 !ruby/object:Gem::Requirement
70
+ name: mysql2
71
+ requirement: &70347500604300 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
- type: :runtime
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *70347500604300
80
+ - !ruby/object:Gem::Dependency
81
+ name: rspec
82
+ requirement: &70347500630140 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *70347500630140
91
+ - !ruby/object:Gem::Dependency
92
+ name: rspec-rails
93
+ requirement: &70347500628940 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *70347500628940
102
+ - !ruby/object:Gem::Dependency
103
+ name: factory_girl
104
+ requirement: &70347500627500 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - =
108
+ - !ruby/object:Gem::Version
109
+ version: 2.5.0
110
+ type: :development
78
111
  prerelease: false
79
- version_requirements: *70276415330340
80
- description:
81
- email: destes@redwindsw.com
112
+ version_requirements: *70347500627500
113
+ - !ruby/object:Gem::Dependency
114
+ name: mocha
115
+ requirement: &70347500625940 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - =
119
+ - !ruby/object:Gem::Version
120
+ version: 0.10.3
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: *70347500625940
124
+ - !ruby/object:Gem::Dependency
125
+ name: database_cleaner
126
+ requirement: &70347500624440 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - =
130
+ - !ruby/object:Gem::Version
131
+ version: 0.7.1
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: *70347500624440
135
+ description: Spud Core Engine
136
+ email:
137
+ - destes@redwindsw.com
82
138
  executables: []
83
139
  extensions: []
84
- extra_rdoc_files:
85
- - README.markdown
140
+ extra_rdoc_files: []
86
141
  files:
87
142
  - app/assets/images/back_disabled.jpg
88
143
  - app/assets/images/back_enabled.jpg
@@ -190,8 +245,8 @@ files:
190
245
  - app/assets/javascripts/wymeditor/plugins/table/table_insert_column.png
191
246
  - app/assets/javascripts/wymeditor/plugins/table/table_insert_row.png
192
247
  - app/assets/javascripts/wymeditor/plugins/table/table_join_row.png
193
- - app/assets/javascripts/wymeditor/plugins/tidy/README
194
248
  - app/assets/javascripts/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js
249
+ - app/assets/javascripts/wymeditor/plugins/tidy/README
195
250
  - app/assets/javascripts/wymeditor/plugins/tidy/tidy.php
196
251
  - app/assets/javascripts/wymeditor/plugins/tidy/wand.png
197
252
  - app/assets/javascripts/wymeditor/skins/compact/icons.png
@@ -207,11 +262,11 @@ files:
207
262
  - app/assets/javascripts/wymeditor/skins/minimal/skin.css
208
263
  - app/assets/javascripts/wymeditor/skins/minimal/skin.js
209
264
  - app/assets/javascripts/wymeditor/skins/silver/COPYING
210
- - app/assets/javascripts/wymeditor/skins/silver/README
211
265
  - app/assets/javascripts/wymeditor/skins/silver/images/bg.header.gif
212
266
  - app/assets/javascripts/wymeditor/skins/silver/images/bg.selector.silver.gif
213
267
  - app/assets/javascripts/wymeditor/skins/silver/images/bg.wymeditor.png
214
268
  - app/assets/javascripts/wymeditor/skins/silver/images/icons.silver.gif
269
+ - app/assets/javascripts/wymeditor/skins/silver/README
215
270
  - app/assets/javascripts/wymeditor/skins/silver/skin.css
216
271
  - app/assets/javascripts/wymeditor/skins/silver/skin.js
217
272
  - app/assets/javascripts/wymeditor/skins/twopanels/icons.png
@@ -477,8 +532,8 @@ files:
477
532
  - app/assets/stylesheets/spud/admin/settings.css
478
533
  - app/assets/stylesheets/spud/admin/users.css
479
534
  - app/assets/stylesheets/spud/forms.css
480
- - app/assets/stylesheets/spud/login.css
481
535
  - app/assets/stylesheets/spud/login/application.css
536
+ - app/assets/stylesheets/spud/login.css
482
537
  - app/assets/stylesheets/spud/setup.css
483
538
  - app/assets/stylesheets/spud/sitemaps.css
484
539
  - app/assets/stylesheets/spud/user_sessions.css
@@ -512,16 +567,53 @@ files:
512
567
  - app/views/spud/user_sessions/new.html.erb
513
568
  - app/views/spud/users/_form.html.erb
514
569
  - app/views/spud/users/settings.html.erb
515
- - config/application.rb
516
- - config/boot.rb
517
570
  - config/routes.rb
518
- - lib/spud_core.rb
571
+ - db/migrate/20111214161011_create_spud_admin_permissions.rb
572
+ - db/migrate/20111214161146_create_spud_users.rb
519
573
  - lib/spud_core/belongs_to_app.rb
520
574
  - lib/spud_core/configuration.rb
521
575
  - lib/spud_core/engine.rb
522
576
  - lib/spud_core/searchable.rb
523
577
  - lib/spud_core/test_files.rb
524
- - README.markdown
578
+ - lib/spud_core/version.rb
579
+ - lib/spud_core.rb
580
+ - lib/tasks/spud_core_tasks.rake
581
+ - MIT-LICENSE
582
+ - Rakefile
583
+ - README.rdoc
584
+ - test/dummy/app/assets/javascripts/application.js
585
+ - test/dummy/app/assets/stylesheets/application.css
586
+ - test/dummy/app/controllers/application_controller.rb
587
+ - test/dummy/app/helpers/application_helper.rb
588
+ - test/dummy/app/views/layouts/application.html.erb
589
+ - test/dummy/config/application.rb
590
+ - test/dummy/config/boot.rb
591
+ - test/dummy/config/database.yml
592
+ - test/dummy/config/environment.rb
593
+ - test/dummy/config/environments/development.rb
594
+ - test/dummy/config/environments/production.rb
595
+ - test/dummy/config/environments/test.rb
596
+ - test/dummy/config/initializers/backtrace_silencers.rb
597
+ - test/dummy/config/initializers/inflections.rb
598
+ - test/dummy/config/initializers/mime_types.rb
599
+ - test/dummy/config/initializers/secret_token.rb
600
+ - test/dummy/config/initializers/session_store.rb
601
+ - test/dummy/config/initializers/wrap_parameters.rb
602
+ - test/dummy/config/locales/en.yml
603
+ - test/dummy/config/routes.rb
604
+ - test/dummy/config.ru
605
+ - test/dummy/db/development.sqlite3
606
+ - test/dummy/db/schema.rb
607
+ - test/dummy/db/test.sqlite3
608
+ - test/dummy/log/development.log
609
+ - test/dummy/log/test.log
610
+ - test/dummy/public/404.html
611
+ - test/dummy/public/422.html
612
+ - test/dummy/public/500.html
613
+ - test/dummy/public/favicon.ico
614
+ - test/dummy/Rakefile
615
+ - test/dummy/README.rdoc
616
+ - test/dummy/script/rails
525
617
  homepage: http://github.com/davydotcom/spud_core_admin
526
618
  licenses: []
527
619
  post_install_message:
@@ -534,16 +626,55 @@ required_ruby_version: !ruby/object:Gem::Requirement
534
626
  - - ! '>='
535
627
  - !ruby/object:Gem::Version
536
628
  version: '0'
629
+ segments:
630
+ - 0
631
+ hash: 1888352672657206352
537
632
  required_rubygems_version: !ruby/object:Gem::Requirement
538
633
  none: false
539
634
  requirements:
540
635
  - - ! '>='
541
636
  - !ruby/object:Gem::Version
542
637
  version: '0'
638
+ segments:
639
+ - 0
640
+ hash: 1888352672657206352
543
641
  requirements: []
544
642
  rubyforge_project:
545
643
  rubygems_version: 1.8.15
546
644
  signing_key:
547
645
  specification_version: 3
548
646
  summary: Spud Core Engine
549
- test_files: []
647
+ test_files:
648
+ - test/dummy/app/assets/javascripts/application.js
649
+ - test/dummy/app/assets/stylesheets/application.css
650
+ - test/dummy/app/controllers/application_controller.rb
651
+ - test/dummy/app/helpers/application_helper.rb
652
+ - test/dummy/app/views/layouts/application.html.erb
653
+ - test/dummy/config/application.rb
654
+ - test/dummy/config/boot.rb
655
+ - test/dummy/config/database.yml
656
+ - test/dummy/config/environment.rb
657
+ - test/dummy/config/environments/development.rb
658
+ - test/dummy/config/environments/production.rb
659
+ - test/dummy/config/environments/test.rb
660
+ - test/dummy/config/initializers/backtrace_silencers.rb
661
+ - test/dummy/config/initializers/inflections.rb
662
+ - test/dummy/config/initializers/mime_types.rb
663
+ - test/dummy/config/initializers/secret_token.rb
664
+ - test/dummy/config/initializers/session_store.rb
665
+ - test/dummy/config/initializers/wrap_parameters.rb
666
+ - test/dummy/config/locales/en.yml
667
+ - test/dummy/config/routes.rb
668
+ - test/dummy/config.ru
669
+ - test/dummy/db/development.sqlite3
670
+ - test/dummy/db/schema.rb
671
+ - test/dummy/db/test.sqlite3
672
+ - test/dummy/log/development.log
673
+ - test/dummy/log/test.log
674
+ - test/dummy/public/404.html
675
+ - test/dummy/public/422.html
676
+ - test/dummy/public/500.html
677
+ - test/dummy/public/favicon.ico
678
+ - test/dummy/Rakefile
679
+ - test/dummy/README.rdoc
680
+ - test/dummy/script/rails
data/README.markdown DELETED
@@ -1,41 +0,0 @@
1
- Spud Core Admin
2
- ===============
3
-
4
- Spud Admin is a dependency package that adds a nice looking administrative panel to any project you add it to with built in authlogic authentication ready to go out of the box. It supports easy engine integration and there are several planned future engines that we plan on designing for the spud suite. The first of which is Spud CMS which can be found at http://github.com/davydotcom/spud_cms
5
-
6
- Installation/Usage
7
- ------------------
8
-
9
- 1. In your Gemfile add the following
10
-
11
- gem 'spud_core', :git => "git://github.com/davydotcom/spud_core_admin.git"
12
-
13
- 2. Run bundle install
14
- 3. Copy in database migrations to your new rails project
15
-
16
- bundle exec rake spud_core:install:migrations
17
- rake db:migrate
18
-
19
- 4. run a rails server instance and point your browser to /spud/admin
20
-
21
-
22
- Adding Your Own Engines
23
- -----------------------
24
-
25
- Creating a rails engine that ties into spud admin is fairly straight forward
26
- In your new engine add spud_admin as a dependency and create an initializer inside your engine class as such:
27
-
28
- initializer :admin do
29
- Spud::Core.configure do |config|
30
- config.admin_applications += [{:name => "Pages",:thumbnail => "spud/admin/pages_thumb.png",:url => "/spud/admin/pages",:order => 0}]
31
-
32
- end
33
- end
34
-
35
- You can use the layouts provided with spud admin by using 'spud/admin/application' or 'spud/admin/detail' layouts
36
-
37
- When creating controllers for the admin panel create them in the Spud::Admin Namespace and have them extend Spud::Admin::ApplicationController for automatic user authentication restrictions.
38
-
39
-
40
-
41
-
data/config/boot.rb DELETED
@@ -1,6 +0,0 @@
1
- require 'rubygems'
2
-
3
- # Set up gems listed in the Gemfile.
4
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
5
-
6
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])