seo_pages 1.0.0

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 (85) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +34 -0
  4. data/Rakefile +34 -0
  5. data/app/assets/javascripts/seo/application.js +13 -0
  6. data/app/assets/javascripts/seo/seo_page_defaults.js +2 -0
  7. data/app/assets/javascripts/seo/seo_pages.js +2 -0
  8. data/app/assets/stylesheets/scaffold.css +56 -0
  9. data/app/assets/stylesheets/seo/application.css +24 -0
  10. data/app/assets/stylesheets/seo/seo_page_defaults.css +4 -0
  11. data/app/assets/stylesheets/seo/seo_pages.css +4 -0
  12. data/app/controllers/seo/application_controller.rb +6 -0
  13. data/app/controllers/seo/seo_page_defaults_controller.rb +62 -0
  14. data/app/controllers/seo/seo_pages_controller.rb +64 -0
  15. data/app/helpers/seo/application_helper.rb +16 -0
  16. data/app/helpers/seo/seo_page_defaults_helper.rb +4 -0
  17. data/app/helpers/seo/seo_pages_helper.rb +4 -0
  18. data/app/models/seo/seo_page.rb +5 -0
  19. data/app/models/seo/seo_page_default.rb +10 -0
  20. data/app/views/layouts/seo/application.html.erb +18 -0
  21. data/app/views/seo/seo_page_defaults/_form.html.erb +33 -0
  22. data/app/views/seo/seo_page_defaults/edit.html.erb +6 -0
  23. data/app/views/seo/seo_page_defaults/index.html.erb +27 -0
  24. data/app/views/seo/seo_page_defaults/new.html.erb +5 -0
  25. data/app/views/seo/seo_page_defaults/show.html.erb +19 -0
  26. data/app/views/seo/seo_pages/_form.html.erb +38 -0
  27. data/app/views/seo/seo_pages/edit.html.erb +6 -0
  28. data/app/views/seo/seo_pages/index.html.erb +44 -0
  29. data/app/views/seo/seo_pages/new.html.erb +5 -0
  30. data/app/views/seo/seo_pages/show.html.erb +24 -0
  31. data/config/routes.rb +7 -0
  32. data/db/migrate/20130903105348_create_seo_seo_pages.rb +12 -0
  33. data/db/migrate/20130903111044_create_seo_seo_page_defaults.rb +11 -0
  34. data/db/migrate/20130903123958_create_seo_page_default_record.rb +10 -0
  35. data/lib/seo/engine.rb +10 -0
  36. data/lib/seo/version.rb +3 -0
  37. data/lib/seo.rb +4 -0
  38. data/lib/tasks/seo_tasks.rake +4 -0
  39. data/test/controllers/seo/seo_page_defaults_controller_test.rb +51 -0
  40. data/test/controllers/seo/seo_pages_controller_test.rb +51 -0
  41. data/test/dummy/README.rdoc +28 -0
  42. data/test/dummy/Rakefile +6 -0
  43. data/test/dummy/app/assets/javascripts/application.js +13 -0
  44. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  45. data/test/dummy/app/controllers/application_controller.rb +6 -0
  46. data/test/dummy/app/helpers/application_helper.rb +2 -0
  47. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  48. data/test/dummy/bin/bundle +3 -0
  49. data/test/dummy/bin/rails +4 -0
  50. data/test/dummy/bin/rake +4 -0
  51. data/test/dummy/config/application.rb +23 -0
  52. data/test/dummy/config/boot.rb +5 -0
  53. data/test/dummy/config/database.yml +25 -0
  54. data/test/dummy/config/environment.rb +5 -0
  55. data/test/dummy/config/environments/development.rb +29 -0
  56. data/test/dummy/config/environments/production.rb +80 -0
  57. data/test/dummy/config/environments/test.rb +36 -0
  58. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  59. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  60. data/test/dummy/config/initializers/inflections.rb +16 -0
  61. data/test/dummy/config/initializers/mime_types.rb +5 -0
  62. data/test/dummy/config/initializers/secret_token.rb +12 -0
  63. data/test/dummy/config/initializers/seo_initializer.rb +8 -0
  64. data/test/dummy/config/initializers/session_store.rb +3 -0
  65. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  66. data/test/dummy/config/locales/en.yml +23 -0
  67. data/test/dummy/config/routes.rb +4 -0
  68. data/test/dummy/config.ru +4 -0
  69. data/test/dummy/db/development.sqlite3 +0 -0
  70. data/test/dummy/db/schema.rb +33 -0
  71. data/test/dummy/log/development.log +7489 -0
  72. data/test/dummy/public/404.html +58 -0
  73. data/test/dummy/public/422.html +58 -0
  74. data/test/dummy/public/500.html +57 -0
  75. data/test/dummy/public/favicon.ico +0 -0
  76. data/test/fixtures/seo/seo_page_defaults.yml +11 -0
  77. data/test/fixtures/seo/seo_pages.yml +13 -0
  78. data/test/helpers/seo/seo_page_defaults_helper_test.rb +6 -0
  79. data/test/helpers/seo/seo_pages_helper_test.rb +6 -0
  80. data/test/integration/navigation_test.rb +10 -0
  81. data/test/models/seo/seo_page_default_test.rb +9 -0
  82. data/test/models/seo/seo_page_test.rb +9 -0
  83. data/test/seo_test.rb +7 -0
  84. data/test/test_helper.rb +15 -0
  85. metadata +190 -0
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/404.html -->
52
+ <div class="dialog">
53
+ <h1>The page you were looking for doesn't exist.</h1>
54
+ <p>You may have mistyped the address or the page may have moved.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/422.html -->
52
+ <div class="dialog">
53
+ <h1>The change you wanted was rejected.</h1>
54
+ <p>Maybe you tried to change something you didn't have access to.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,57 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/500.html -->
52
+ <div class="dialog">
53
+ <h1>We're sorry, but something went wrong.</h1>
54
+ </div>
55
+ <p>If you are the application owner check the logs for more information.</p>
56
+ </body>
57
+ </html>
File without changes
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ page_title: MyString
5
+ meta_keywords: MyString
6
+ meta_description: MyString
7
+
8
+ two:
9
+ page_title: MyString
10
+ meta_keywords: MyString
11
+ meta_description: MyString
@@ -0,0 +1,13 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ page_title: MyString
5
+ meta_keywords: MyString
6
+ meta_description: MyString
7
+ url_identifier: MyString
8
+
9
+ two:
10
+ page_title: MyString
11
+ meta_keywords: MyString
12
+ meta_description: MyString
13
+ url_identifier: MyString
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ module Seo
4
+ class SeoPageDefaultsHelperTest < ActionView::TestCase
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ module Seo
4
+ class SeoPagesHelperTest < ActionView::TestCase
5
+ end
6
+ 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,9 @@
1
+ require 'test_helper'
2
+
3
+ module Seo
4
+ class SeoPageDefaultTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module Seo
4
+ class SeoPageTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
data/test/seo_test.rb ADDED
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class SeoTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, Seo
6
+ end
7
+ end
@@ -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,190 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: seo_pages
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - BadrIT
8
+ - mahmoud_khaled
9
+ - Hassan Zaki
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2013-09-05 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rails
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 4.0.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ version: 4.0.0
29
+ description: Seo Page make it easy to manage you SEO content for all pages in your
30
+ website
31
+ email:
32
+ - bazaretas@gmail.com
33
+ executables: []
34
+ extensions: []
35
+ extra_rdoc_files: []
36
+ files:
37
+ - app/helpers/seo/seo_page_defaults_helper.rb
38
+ - app/helpers/seo/seo_pages_helper.rb
39
+ - app/helpers/seo/application_helper.rb
40
+ - app/models/seo/seo_page_default.rb
41
+ - app/models/seo/seo_page.rb
42
+ - app/controllers/seo/seo_pages_controller.rb
43
+ - app/controllers/seo/seo_page_defaults_controller.rb
44
+ - app/controllers/seo/application_controller.rb
45
+ - app/assets/javascripts/seo/seo_page_defaults.js
46
+ - app/assets/javascripts/seo/application.js
47
+ - app/assets/javascripts/seo/seo_pages.js
48
+ - app/assets/stylesheets/scaffold.css
49
+ - app/assets/stylesheets/seo/application.css
50
+ - app/assets/stylesheets/seo/seo_page_defaults.css
51
+ - app/assets/stylesheets/seo/seo_pages.css
52
+ - app/views/layouts/seo/application.html.erb
53
+ - app/views/seo/seo_pages/new.html.erb
54
+ - app/views/seo/seo_pages/show.html.erb
55
+ - app/views/seo/seo_pages/_form.html.erb
56
+ - app/views/seo/seo_pages/edit.html.erb
57
+ - app/views/seo/seo_pages/index.html.erb
58
+ - app/views/seo/seo_page_defaults/new.html.erb
59
+ - app/views/seo/seo_page_defaults/show.html.erb
60
+ - app/views/seo/seo_page_defaults/_form.html.erb
61
+ - app/views/seo/seo_page_defaults/edit.html.erb
62
+ - app/views/seo/seo_page_defaults/index.html.erb
63
+ - config/routes.rb
64
+ - db/migrate/20130903111044_create_seo_seo_page_defaults.rb
65
+ - db/migrate/20130903123958_create_seo_page_default_record.rb
66
+ - db/migrate/20130903105348_create_seo_seo_pages.rb
67
+ - lib/seo.rb
68
+ - lib/tasks/seo_tasks.rake
69
+ - lib/seo/engine.rb
70
+ - lib/seo/version.rb
71
+ - MIT-LICENSE
72
+ - Rakefile
73
+ - README.rdoc
74
+ - test/fixtures/seo/seo_pages.yml
75
+ - test/fixtures/seo/seo_page_defaults.yml
76
+ - test/helpers/seo/seo_pages_helper_test.rb
77
+ - test/helpers/seo/seo_page_defaults_helper_test.rb
78
+ - test/models/seo/seo_page_default_test.rb
79
+ - test/models/seo/seo_page_test.rb
80
+ - test/seo_test.rb
81
+ - test/controllers/seo/seo_page_defaults_controller_test.rb
82
+ - test/controllers/seo/seo_pages_controller_test.rb
83
+ - test/dummy/config/locales/en.yml
84
+ - test/dummy/config/database.yml
85
+ - test/dummy/config/environment.rb
86
+ - test/dummy/config/application.rb
87
+ - test/dummy/config/environments/test.rb
88
+ - test/dummy/config/environments/development.rb
89
+ - test/dummy/config/environments/production.rb
90
+ - test/dummy/config/routes.rb
91
+ - test/dummy/config/initializers/filter_parameter_logging.rb
92
+ - test/dummy/config/initializers/seo_initializer.rb
93
+ - test/dummy/config/initializers/secret_token.rb
94
+ - test/dummy/config/initializers/mime_types.rb
95
+ - test/dummy/config/initializers/backtrace_silencers.rb
96
+ - test/dummy/config/initializers/session_store.rb
97
+ - test/dummy/config/initializers/inflections.rb
98
+ - test/dummy/config/initializers/wrap_parameters.rb
99
+ - test/dummy/config/boot.rb
100
+ - test/dummy/config.ru
101
+ - test/dummy/log/development.log
102
+ - test/dummy/public/500.html
103
+ - test/dummy/public/422.html
104
+ - test/dummy/public/favicon.ico
105
+ - test/dummy/public/404.html
106
+ - test/dummy/Rakefile
107
+ - test/dummy/db/development.sqlite3
108
+ - test/dummy/db/schema.rb
109
+ - test/dummy/bin/bundle
110
+ - test/dummy/bin/rake
111
+ - test/dummy/bin/rails
112
+ - test/dummy/app/helpers/application_helper.rb
113
+ - test/dummy/app/controllers/application_controller.rb
114
+ - test/dummy/app/assets/javascripts/application.js
115
+ - test/dummy/app/assets/stylesheets/application.css
116
+ - test/dummy/app/views/layouts/application.html.erb
117
+ - test/dummy/README.rdoc
118
+ - test/test_helper.rb
119
+ - test/integration/navigation_test.rb
120
+ homepage: https://github.com/BadrIT/seo_pages
121
+ licenses:
122
+ - MIT
123
+ metadata: {}
124
+ post_install_message:
125
+ rdoc_options: []
126
+ require_paths:
127
+ - lib
128
+ required_ruby_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - '>='
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ requirements: []
139
+ rubyforge_project:
140
+ rubygems_version: 2.0.0.rc.2
141
+ signing_key:
142
+ specification_version: 4
143
+ summary: Eaasily add Seo to your pages
144
+ test_files:
145
+ - test/fixtures/seo/seo_pages.yml
146
+ - test/fixtures/seo/seo_page_defaults.yml
147
+ - test/helpers/seo/seo_pages_helper_test.rb
148
+ - test/helpers/seo/seo_page_defaults_helper_test.rb
149
+ - test/models/seo/seo_page_default_test.rb
150
+ - test/models/seo/seo_page_test.rb
151
+ - test/seo_test.rb
152
+ - test/controllers/seo/seo_page_defaults_controller_test.rb
153
+ - test/controllers/seo/seo_pages_controller_test.rb
154
+ - test/dummy/config/locales/en.yml
155
+ - test/dummy/config/database.yml
156
+ - test/dummy/config/environment.rb
157
+ - test/dummy/config/application.rb
158
+ - test/dummy/config/environments/test.rb
159
+ - test/dummy/config/environments/development.rb
160
+ - test/dummy/config/environments/production.rb
161
+ - test/dummy/config/routes.rb
162
+ - test/dummy/config/initializers/filter_parameter_logging.rb
163
+ - test/dummy/config/initializers/seo_initializer.rb
164
+ - test/dummy/config/initializers/secret_token.rb
165
+ - test/dummy/config/initializers/mime_types.rb
166
+ - test/dummy/config/initializers/backtrace_silencers.rb
167
+ - test/dummy/config/initializers/session_store.rb
168
+ - test/dummy/config/initializers/inflections.rb
169
+ - test/dummy/config/initializers/wrap_parameters.rb
170
+ - test/dummy/config/boot.rb
171
+ - test/dummy/config.ru
172
+ - test/dummy/log/development.log
173
+ - test/dummy/public/500.html
174
+ - test/dummy/public/422.html
175
+ - test/dummy/public/favicon.ico
176
+ - test/dummy/public/404.html
177
+ - test/dummy/Rakefile
178
+ - test/dummy/db/development.sqlite3
179
+ - test/dummy/db/schema.rb
180
+ - test/dummy/bin/bundle
181
+ - test/dummy/bin/rake
182
+ - test/dummy/bin/rails
183
+ - test/dummy/app/helpers/application_helper.rb
184
+ - test/dummy/app/controllers/application_controller.rb
185
+ - test/dummy/app/assets/javascripts/application.js
186
+ - test/dummy/app/assets/stylesheets/application.css
187
+ - test/dummy/app/views/layouts/application.html.erb
188
+ - test/dummy/README.rdoc
189
+ - test/test_helper.rb
190
+ - test/integration/navigation_test.rb