brightcontent 2.0.0.alpha3 → 2.0.0.alpha5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +13 -1
- data/VERSION +1 -1
- metadata +7 -178
- data/.gitignore +0 -8
- data/MIT-LICENSE +0 -20
- data/Rakefile +0 -14
- data/brightcontent.gemspec +0 -21
- data/core/.gitignore +0 -9
- data/core/Gemfile +0 -17
- data/core/Gemfile.lock +0 -163
- data/core/MIT-LICENSE +0 -20
- data/core/README.md +0 -44
- data/core/Rakefile +0 -14
- data/core/app/assets/images/brightcontent/.gitkeep +0 -0
- data/core/app/assets/images/brightcontent/glyphicons-halflings-white.png +0 -0
- data/core/app/assets/images/brightcontent/glyphicons-halflings.png +0 -0
- data/core/app/assets/javascripts/brightcontent/bootstrap.min.js +0 -6
- data/core/app/assets/javascripts/brightcontent/brightcontent.js +0 -17
- data/core/app/assets/javascripts/brightcontent/custom.js +0 -1
- data/core/app/assets/javascripts/brightcontent/main.js +0 -3
- data/core/app/assets/stylesheets/brightcontent/bootstrap-responsive.min.css +0 -9
- data/core/app/assets/stylesheets/brightcontent/bootstrap.min.css +0 -9
- data/core/app/assets/stylesheets/brightcontent/brightcontent.css +0 -17
- data/core/app/assets/stylesheets/brightcontent/custom.css +0 -1
- data/core/app/assets/stylesheets/brightcontent/main.css +0 -44
- data/core/app/controllers/brightcontent/admin_users_controller.rb +0 -6
- data/core/app/controllers/brightcontent/application_controller.rb +0 -22
- data/core/app/controllers/brightcontent/base_controller.rb +0 -27
- data/core/app/controllers/brightcontent/sessions_controller.rb +0 -24
- data/core/app/helpers/brightcontent/application_helper.rb +0 -4
- data/core/app/helpers/brightcontent/base_helper.rb +0 -17
- data/core/app/models/brightcontent/admin_user.rb +0 -7
- data/core/app/views/brightcontent/application/_menu.html.erb +0 -3
- data/core/app/views/brightcontent/application/_show_flash_names.html.erb +0 -5
- data/core/app/views/brightcontent/base/_form.html.erb +0 -10
- data/core/app/views/brightcontent/base/_list.html.erb +0 -8
- data/core/app/views/brightcontent/base/_list_actions.html.erb +0 -2
- data/core/app/views/brightcontent/base/edit.html.erb +0 -3
- data/core/app/views/brightcontent/base/index.html.erb +0 -22
- data/core/app/views/brightcontent/base/new.html.erb +0 -3
- data/core/app/views/brightcontent/sessions/new.html.erb +0 -12
- data/core/app/views/layouts/brightcontent/application.html.erb +0 -53
- data/core/brightcontent-core.gemspec +0 -31
- data/core/config/initializers/simple_form.rb +0 -142
- data/core/config/initializers/simple_form_bootstrap.rb +0 -45
- data/core/config/initializers/will_paginate.rb +0 -28
- data/core/config/routes.rb +0 -9
- data/core/db/migrate/20121206121725_create_brightcontent_admin_users.rb +0 -12
- data/core/lib/brightcontent/core.rb +0 -32
- data/core/lib/brightcontent/default_actions.rb +0 -19
- data/core/lib/brightcontent/engine.rb +0 -9
- data/core/lib/brightcontent/pagination.rb +0 -24
- data/core/lib/brightcontent/rails/routes.rb +0 -16
- data/core/lib/brightcontent/routes_parser.rb +0 -38
- data/core/lib/brightcontent-core.rb +0 -1
- data/core/lib/generators/brightcontent/install_generator.rb +0 -34
- data/core/lib/generators/brightcontent/resource_generator.rb +0 -22
- data/core/lib/generators/brightcontent/templates/brightcontent_controller.rb +0 -2
- data/core/lib/generators/brightcontent/templates/initializer.rb +0 -8
- data/core/script/rails +0 -8
- data/core/spec/dummy/README.rdoc +0 -261
- data/core/spec/dummy/Rakefile +0 -7
- data/core/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/core/spec/dummy/app/assets/javascripts/brightcontent/custom.js +0 -1
- data/core/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/core/spec/dummy/app/assets/stylesheets/brightcontent/custom.css +0 -1
- data/core/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/core/spec/dummy/app/controllers/brightcontent/blogs_controller.rb +0 -2
- data/core/spec/dummy/app/controllers/pages_controller.rb +0 -8
- data/core/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/core/spec/dummy/app/mailers/.gitkeep +0 -0
- data/core/spec/dummy/app/models/.gitkeep +0 -0
- data/core/spec/dummy/app/models/blog.rb +0 -3
- data/core/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/core/spec/dummy/app/views/pages/index.html.erb +0 -1
- data/core/spec/dummy/config/application.rb +0 -59
- data/core/spec/dummy/config/boot.rb +0 -10
- data/core/spec/dummy/config/database.yml +0 -25
- data/core/spec/dummy/config/environment.rb +0 -5
- data/core/spec/dummy/config/environments/development.rb +0 -37
- data/core/spec/dummy/config/environments/production.rb +0 -67
- data/core/spec/dummy/config/environments/test.rb +0 -37
- data/core/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/core/spec/dummy/config/initializers/brightcontent.rb +0 -3
- data/core/spec/dummy/config/initializers/inflections.rb +0 -15
- data/core/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/core/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/core/spec/dummy/config/initializers/session_store.rb +0 -8
- data/core/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/core/spec/dummy/config/locales/en.yml +0 -5
- data/core/spec/dummy/config/routes.rb +0 -7
- data/core/spec/dummy/config.ru +0 -4
- data/core/spec/dummy/db/migrate/20121206225720_create_blogs.rb +0 -10
- data/core/spec/dummy/db/schema.rb +0 -30
- data/core/spec/dummy/lib/assets/.gitkeep +0 -0
- data/core/spec/dummy/public/404.html +0 -26
- data/core/spec/dummy/public/422.html +0 -26
- data/core/spec/dummy/public/500.html +0 -25
- data/core/spec/dummy/public/favicon.ico +0 -0
- data/core/spec/dummy/script/rails +0 -6
- data/core/spec/factories.rb +0 -16
- data/core/spec/features/login_spec.rb +0 -29
- data/core/spec/features/menu_spec.rb +0 -27
- data/core/spec/features/resources_form_spec.rb +0 -51
- data/core/spec/features/resources_index_spec.rb +0 -50
- data/core/spec/lib/brightcontent/routes_parser_spec.rb +0 -34
- data/core/spec/spec_helper.rb +0 -18
- data/core/spec/support/acceptance_helper.rb +0 -8
- data/pages/.gitignore +0 -9
- data/pages/Gemfile +0 -5
- data/pages/Gemfile.lock +0 -173
- data/pages/MIT-LICENSE +0 -20
- data/pages/README.md +0 -35
- data/pages/Rakefile +0 -14
- data/pages/app/assets/images/brightcontent/.gitkeep +0 -0
- data/pages/app/controllers/brightcontent/pages_controller.rb +0 -16
- data/pages/app/helpers/brightcontent/pages_helper.rb +0 -13
- data/pages/app/models/brightcontent/page.rb +0 -27
- data/pages/app/views/brightcontent/pages/_form_field_parent_id.html.erb +0 -1
- data/pages/app/views/brightcontent/pages/_list_field_name.html.erb +0 -1
- data/pages/brightcontent-pages.gemspec +0 -26
- data/pages/config/routes.rb +0 -3
- data/pages/db/migrate/20121207132810_create_brightcontent_pages.rb +0 -16
- data/pages/lib/brightcontent/pages/engine.rb +0 -14
- data/pages/lib/brightcontent/pages/methods.rb +0 -9
- data/pages/lib/brightcontent/pages.rb +0 -10
- data/pages/lib/brightcontent-pages.rb +0 -1
- data/pages/lib/generators/brightcontent/pages/install_generator.rb +0 -15
- data/pages/script/rails +0 -8
- data/pages/spec/dummy/README.rdoc +0 -261
- data/pages/spec/dummy/Rakefile +0 -7
- data/pages/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/pages/spec/dummy/app/assets/javascripts/brightcontent/custom.js +0 -1
- data/pages/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/pages/spec/dummy/app/assets/stylesheets/brightcontent/custom.css +0 -1
- data/pages/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/pages/spec/dummy/app/controllers/brightcontent/blogs_controller.rb +0 -2
- data/pages/spec/dummy/app/controllers/pages_controller.rb +0 -8
- data/pages/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/pages/spec/dummy/app/mailers/.gitkeep +0 -0
- data/pages/spec/dummy/app/models/.gitkeep +0 -0
- data/pages/spec/dummy/app/models/blog.rb +0 -3
- data/pages/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/pages/spec/dummy/app/views/pages/index.html.erb +0 -1
- data/pages/spec/dummy/config/application.rb +0 -59
- data/pages/spec/dummy/config/boot.rb +0 -10
- data/pages/spec/dummy/config/database.yml +0 -25
- data/pages/spec/dummy/config/environment.rb +0 -5
- data/pages/spec/dummy/config/environments/development.rb +0 -37
- data/pages/spec/dummy/config/environments/production.rb +0 -67
- data/pages/spec/dummy/config/environments/test.rb +0 -37
- data/pages/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/pages/spec/dummy/config/initializers/brightcontent.rb +0 -3
- data/pages/spec/dummy/config/initializers/inflections.rb +0 -15
- data/pages/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/pages/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/pages/spec/dummy/config/initializers/session_store.rb +0 -8
- data/pages/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/pages/spec/dummy/config/locales/en.yml +0 -5
- data/pages/spec/dummy/config/routes.rb +0 -6
- data/pages/spec/dummy/config.ru +0 -4
- data/pages/spec/dummy/db/schema.rb +0 -44
- data/pages/spec/dummy/lib/assets/.gitkeep +0 -0
- data/pages/spec/dummy/public/404.html +0 -26
- data/pages/spec/dummy/public/422.html +0 -26
- data/pages/spec/dummy/public/500.html +0 -25
- data/pages/spec/dummy/public/favicon.ico +0 -0
- data/pages/spec/dummy/script/rails +0 -6
- data/pages/spec/factories.rb +0 -16
- data/pages/spec/features/menu_spec.rb +0 -16
- data/pages/spec/features/pages_spec.rb +0 -18
- data/pages/spec/models/brightcontent/page_spec.rb +0 -49
- data/pages/spec/spec_helper.rb +0 -18
- data/pages/spec/support/acceptance_helper.rb +0 -8
data/README.md
CHANGED
@@ -19,13 +19,14 @@ Installation
|
|
19
19
|
Include the gem in your Gemfile:
|
20
20
|
|
21
21
|
```ruby
|
22
|
-
gem "brightcontent",
|
22
|
+
gem "brightcontent", "~> 2.0.0.alpha5"
|
23
23
|
bundle install
|
24
24
|
```
|
25
25
|
|
26
26
|
Generate the initializer, copy migrations and edit routes file. This can be done via a generator. Migrate the database afterwards:
|
27
27
|
|
28
28
|
$ rails generate brightcontent:install
|
29
|
+
$ rails generate brightcontent:pages:install
|
29
30
|
$ rake db:migrate
|
30
31
|
|
31
32
|
Go to `/admin` and login with default user (email: `admin@example.com` / password: `password`).
|
@@ -42,3 +43,14 @@ To add the resource to brightcontent run:
|
|
42
43
|
$ rails generate brightcontent:resource Project
|
43
44
|
|
44
45
|
Gratz! Projects can now be controlled with Brightcontent.
|
46
|
+
|
47
|
+
Pages
|
48
|
+
-----
|
49
|
+
|
50
|
+
Pages gives you a Page model with tree structure and pretty urls. Every page relates to a specific path. For example, you could create a page with the path `/about/team`. The page is available on the url via `current_page`.
|
51
|
+
|
52
|
+
This adds an extra layer on top of your existing routes. However when there aren't any routes available for the specific url, Rails cannot render the page. Therefore it is best to add a catch-all route (at the very bottom of the file) for all general pages:
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
get "*path" => "pages#show"
|
56
|
+
```
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0.
|
1
|
+
2.0.0.alpha5
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brightcontent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.alpha5
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.0.0.
|
21
|
+
version: 2.0.0.alpha5
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.0.0.
|
29
|
+
version: 2.0.0.alpha5
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: brightcontent-pages
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - '='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 2.0.0.
|
37
|
+
version: 2.0.0.alpha5
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,189 +42,18 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - '='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 2.0.0.
|
45
|
+
version: 2.0.0.alpha5
|
46
46
|
description: Brightcontent, yet another Rails CMS / admin panel
|
47
47
|
email: developers@brightin.nl
|
48
48
|
executables: []
|
49
49
|
extensions: []
|
50
50
|
extra_rdoc_files: []
|
51
51
|
files:
|
52
|
-
- .gitignore
|
53
|
-
- MIT-LICENSE
|
54
|
-
- README.md
|
55
|
-
- Rakefile
|
56
52
|
- VERSION
|
57
|
-
-
|
58
|
-
- core/.gitignore
|
59
|
-
- core/Gemfile
|
60
|
-
- core/Gemfile.lock
|
61
|
-
- core/MIT-LICENSE
|
62
|
-
- core/README.md
|
63
|
-
- core/Rakefile
|
64
|
-
- core/app/assets/images/brightcontent/.gitkeep
|
65
|
-
- core/app/assets/images/brightcontent/glyphicons-halflings-white.png
|
66
|
-
- core/app/assets/images/brightcontent/glyphicons-halflings.png
|
67
|
-
- core/app/assets/javascripts/brightcontent/bootstrap.min.js
|
68
|
-
- core/app/assets/javascripts/brightcontent/brightcontent.js
|
69
|
-
- core/app/assets/javascripts/brightcontent/custom.js
|
70
|
-
- core/app/assets/javascripts/brightcontent/main.js
|
71
|
-
- core/app/assets/stylesheets/brightcontent/bootstrap-responsive.min.css
|
72
|
-
- core/app/assets/stylesheets/brightcontent/bootstrap.min.css
|
73
|
-
- core/app/assets/stylesheets/brightcontent/brightcontent.css
|
74
|
-
- core/app/assets/stylesheets/brightcontent/custom.css
|
75
|
-
- core/app/assets/stylesheets/brightcontent/main.css
|
76
|
-
- core/app/controllers/brightcontent/admin_users_controller.rb
|
77
|
-
- core/app/controllers/brightcontent/application_controller.rb
|
78
|
-
- core/app/controllers/brightcontent/base_controller.rb
|
79
|
-
- core/app/controllers/brightcontent/sessions_controller.rb
|
80
|
-
- core/app/helpers/brightcontent/application_helper.rb
|
81
|
-
- core/app/helpers/brightcontent/base_helper.rb
|
82
|
-
- core/app/models/brightcontent/admin_user.rb
|
83
|
-
- core/app/views/brightcontent/application/_menu.html.erb
|
84
|
-
- core/app/views/brightcontent/application/_show_flash_names.html.erb
|
85
|
-
- core/app/views/brightcontent/base/_form.html.erb
|
86
|
-
- core/app/views/brightcontent/base/_list.html.erb
|
87
|
-
- core/app/views/brightcontent/base/_list_actions.html.erb
|
88
|
-
- core/app/views/brightcontent/base/edit.html.erb
|
89
|
-
- core/app/views/brightcontent/base/index.html.erb
|
90
|
-
- core/app/views/brightcontent/base/new.html.erb
|
91
|
-
- core/app/views/brightcontent/sessions/new.html.erb
|
92
|
-
- core/app/views/layouts/brightcontent/application.html.erb
|
93
|
-
- core/brightcontent-core.gemspec
|
94
|
-
- core/config/initializers/simple_form.rb
|
95
|
-
- core/config/initializers/simple_form_bootstrap.rb
|
96
|
-
- core/config/initializers/will_paginate.rb
|
97
|
-
- core/config/routes.rb
|
98
|
-
- core/db/migrate/20121206121725_create_brightcontent_admin_users.rb
|
99
|
-
- core/lib/brightcontent-core.rb
|
100
|
-
- core/lib/brightcontent/core.rb
|
101
|
-
- core/lib/brightcontent/default_actions.rb
|
102
|
-
- core/lib/brightcontent/engine.rb
|
103
|
-
- core/lib/brightcontent/pagination.rb
|
104
|
-
- core/lib/brightcontent/rails/routes.rb
|
105
|
-
- core/lib/brightcontent/routes_parser.rb
|
106
|
-
- core/lib/generators/brightcontent/install_generator.rb
|
107
|
-
- core/lib/generators/brightcontent/resource_generator.rb
|
108
|
-
- core/lib/generators/brightcontent/templates/brightcontent_controller.rb
|
109
|
-
- core/lib/generators/brightcontent/templates/initializer.rb
|
110
|
-
- core/script/rails
|
111
|
-
- core/spec/dummy/README.rdoc
|
112
|
-
- core/spec/dummy/Rakefile
|
113
|
-
- core/spec/dummy/app/assets/javascripts/application.js
|
114
|
-
- core/spec/dummy/app/assets/javascripts/brightcontent/custom.js
|
115
|
-
- core/spec/dummy/app/assets/stylesheets/application.css
|
116
|
-
- core/spec/dummy/app/assets/stylesheets/brightcontent/custom.css
|
117
|
-
- core/spec/dummy/app/controllers/application_controller.rb
|
118
|
-
- core/spec/dummy/app/controllers/brightcontent/blogs_controller.rb
|
119
|
-
- core/spec/dummy/app/controllers/pages_controller.rb
|
120
|
-
- core/spec/dummy/app/helpers/application_helper.rb
|
121
|
-
- core/spec/dummy/app/mailers/.gitkeep
|
122
|
-
- core/spec/dummy/app/models/.gitkeep
|
123
|
-
- core/spec/dummy/app/models/blog.rb
|
124
|
-
- core/spec/dummy/app/views/layouts/application.html.erb
|
125
|
-
- core/spec/dummy/app/views/pages/index.html.erb
|
126
|
-
- core/spec/dummy/config.ru
|
127
|
-
- core/spec/dummy/config/application.rb
|
128
|
-
- core/spec/dummy/config/boot.rb
|
129
|
-
- core/spec/dummy/config/database.yml
|
130
|
-
- core/spec/dummy/config/environment.rb
|
131
|
-
- core/spec/dummy/config/environments/development.rb
|
132
|
-
- core/spec/dummy/config/environments/production.rb
|
133
|
-
- core/spec/dummy/config/environments/test.rb
|
134
|
-
- core/spec/dummy/config/initializers/backtrace_silencers.rb
|
135
|
-
- core/spec/dummy/config/initializers/brightcontent.rb
|
136
|
-
- core/spec/dummy/config/initializers/inflections.rb
|
137
|
-
- core/spec/dummy/config/initializers/mime_types.rb
|
138
|
-
- core/spec/dummy/config/initializers/secret_token.rb
|
139
|
-
- core/spec/dummy/config/initializers/session_store.rb
|
140
|
-
- core/spec/dummy/config/initializers/wrap_parameters.rb
|
141
|
-
- core/spec/dummy/config/locales/en.yml
|
142
|
-
- core/spec/dummy/config/routes.rb
|
143
|
-
- core/spec/dummy/db/migrate/20121206225720_create_blogs.rb
|
144
|
-
- core/spec/dummy/db/schema.rb
|
145
|
-
- core/spec/dummy/lib/assets/.gitkeep
|
146
|
-
- core/spec/dummy/public/404.html
|
147
|
-
- core/spec/dummy/public/422.html
|
148
|
-
- core/spec/dummy/public/500.html
|
149
|
-
- core/spec/dummy/public/favicon.ico
|
150
|
-
- core/spec/dummy/script/rails
|
151
|
-
- core/spec/factories.rb
|
152
|
-
- core/spec/features/login_spec.rb
|
153
|
-
- core/spec/features/menu_spec.rb
|
154
|
-
- core/spec/features/resources_form_spec.rb
|
155
|
-
- core/spec/features/resources_index_spec.rb
|
156
|
-
- core/spec/lib/brightcontent/routes_parser_spec.rb
|
157
|
-
- core/spec/spec_helper.rb
|
158
|
-
- core/spec/support/acceptance_helper.rb
|
53
|
+
- README.md
|
159
54
|
- lib/brightcontent.rb
|
160
55
|
- lib/tasks/release.rake
|
161
56
|
- lib/tasks/rspec.rake
|
162
|
-
- pages/.gitignore
|
163
|
-
- pages/Gemfile
|
164
|
-
- pages/Gemfile.lock
|
165
|
-
- pages/MIT-LICENSE
|
166
|
-
- pages/README.md
|
167
|
-
- pages/Rakefile
|
168
|
-
- pages/app/assets/images/brightcontent/.gitkeep
|
169
|
-
- pages/app/controllers/brightcontent/pages_controller.rb
|
170
|
-
- pages/app/helpers/brightcontent/pages_helper.rb
|
171
|
-
- pages/app/models/brightcontent/page.rb
|
172
|
-
- pages/app/views/brightcontent/pages/_form_field_parent_id.html.erb
|
173
|
-
- pages/app/views/brightcontent/pages/_list_field_name.html.erb
|
174
|
-
- pages/brightcontent-pages.gemspec
|
175
|
-
- pages/config/routes.rb
|
176
|
-
- pages/db/migrate/20121207132810_create_brightcontent_pages.rb
|
177
|
-
- pages/lib/brightcontent-pages.rb
|
178
|
-
- pages/lib/brightcontent/pages.rb
|
179
|
-
- pages/lib/brightcontent/pages/engine.rb
|
180
|
-
- pages/lib/brightcontent/pages/methods.rb
|
181
|
-
- pages/lib/generators/brightcontent/pages/install_generator.rb
|
182
|
-
- pages/script/rails
|
183
|
-
- pages/spec/dummy/README.rdoc
|
184
|
-
- pages/spec/dummy/Rakefile
|
185
|
-
- pages/spec/dummy/app/assets/javascripts/application.js
|
186
|
-
- pages/spec/dummy/app/assets/javascripts/brightcontent/custom.js
|
187
|
-
- pages/spec/dummy/app/assets/stylesheets/application.css
|
188
|
-
- pages/spec/dummy/app/assets/stylesheets/brightcontent/custom.css
|
189
|
-
- pages/spec/dummy/app/controllers/application_controller.rb
|
190
|
-
- pages/spec/dummy/app/controllers/brightcontent/blogs_controller.rb
|
191
|
-
- pages/spec/dummy/app/controllers/pages_controller.rb
|
192
|
-
- pages/spec/dummy/app/helpers/application_helper.rb
|
193
|
-
- pages/spec/dummy/app/mailers/.gitkeep
|
194
|
-
- pages/spec/dummy/app/models/.gitkeep
|
195
|
-
- pages/spec/dummy/app/models/blog.rb
|
196
|
-
- pages/spec/dummy/app/views/layouts/application.html.erb
|
197
|
-
- pages/spec/dummy/app/views/pages/index.html.erb
|
198
|
-
- pages/spec/dummy/config.ru
|
199
|
-
- pages/spec/dummy/config/application.rb
|
200
|
-
- pages/spec/dummy/config/boot.rb
|
201
|
-
- pages/spec/dummy/config/database.yml
|
202
|
-
- pages/spec/dummy/config/environment.rb
|
203
|
-
- pages/spec/dummy/config/environments/development.rb
|
204
|
-
- pages/spec/dummy/config/environments/production.rb
|
205
|
-
- pages/spec/dummy/config/environments/test.rb
|
206
|
-
- pages/spec/dummy/config/initializers/backtrace_silencers.rb
|
207
|
-
- pages/spec/dummy/config/initializers/brightcontent.rb
|
208
|
-
- pages/spec/dummy/config/initializers/inflections.rb
|
209
|
-
- pages/spec/dummy/config/initializers/mime_types.rb
|
210
|
-
- pages/spec/dummy/config/initializers/secret_token.rb
|
211
|
-
- pages/spec/dummy/config/initializers/session_store.rb
|
212
|
-
- pages/spec/dummy/config/initializers/wrap_parameters.rb
|
213
|
-
- pages/spec/dummy/config/locales/en.yml
|
214
|
-
- pages/spec/dummy/config/routes.rb
|
215
|
-
- pages/spec/dummy/db/schema.rb
|
216
|
-
- pages/spec/dummy/lib/assets/.gitkeep
|
217
|
-
- pages/spec/dummy/public/404.html
|
218
|
-
- pages/spec/dummy/public/422.html
|
219
|
-
- pages/spec/dummy/public/500.html
|
220
|
-
- pages/spec/dummy/public/favicon.ico
|
221
|
-
- pages/spec/dummy/script/rails
|
222
|
-
- pages/spec/factories.rb
|
223
|
-
- pages/spec/features/menu_spec.rb
|
224
|
-
- pages/spec/features/pages_spec.rb
|
225
|
-
- pages/spec/models/brightcontent/page_spec.rb
|
226
|
-
- pages/spec/spec_helper.rb
|
227
|
-
- pages/spec/support/acceptance_helper.rb
|
228
57
|
homepage: http://brightin.nl
|
229
58
|
licenses: []
|
230
59
|
post_install_message:
|
@@ -245,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
74
|
version: 1.3.1
|
246
75
|
requirements: []
|
247
76
|
rubyforge_project:
|
248
|
-
rubygems_version: 1.8.
|
77
|
+
rubygems_version: 1.8.24
|
249
78
|
signing_key:
|
250
79
|
specification_version: 3
|
251
80
|
summary: Brightcontent gem
|
data/.gitignore
DELETED
data/MIT-LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright 2012 YOURNAME
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'bundler/setup'
|
3
|
-
rescue LoadError
|
4
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
-
end
|
6
|
-
|
7
|
-
require 'bundler'
|
8
|
-
Bundler::GemHelper.install_tasks
|
9
|
-
|
10
|
-
Dir[File.expand_path('../lib/tasks/**/*', __FILE__)].each do |task|
|
11
|
-
load task
|
12
|
-
end
|
13
|
-
|
14
|
-
task :default => :spec
|
data/brightcontent.gemspec
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
$:.push File.expand_path("../lib", __FILE__)
|
2
|
-
$:.push File.expand_path("..", __FILE__)
|
3
|
-
|
4
|
-
version = File.read(File.expand_path("../VERSION",__FILE__)).strip
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = "brightcontent"
|
8
|
-
s.version = version
|
9
|
-
s.email = "developers@brightin.nl"
|
10
|
-
s.homepage = "http://brightin.nl"
|
11
|
-
s.summary = "Brightcontent gem"
|
12
|
-
s.description = "Brightcontent, yet another Rails CMS / admin panel"
|
13
|
-
s.authors = ["Developers at Brightin"]
|
14
|
-
|
15
|
-
s.files = `git ls-files`.split("\n")
|
16
|
-
s.test_files = `git ls-files -- spec/*`.split("\n")
|
17
|
-
s.require_paths = ["lib"]
|
18
|
-
|
19
|
-
s.add_dependency "brightcontent-core", version
|
20
|
-
s.add_dependency "brightcontent-pages", version
|
21
|
-
end
|
data/core/.gitignore
DELETED
data/core/Gemfile
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
source "http://rubygems.org"
|
2
|
-
|
3
|
-
# Declare your gem's dependencies in brightcontent.gemspec.
|
4
|
-
# Bundler will treat runtime dependencies like base dependencies, and
|
5
|
-
# development dependencies will be added by default to the :development group.
|
6
|
-
gemspec
|
7
|
-
|
8
|
-
# jquery-rails is used by the dummy application
|
9
|
-
# gem "jquery-rails"
|
10
|
-
|
11
|
-
# Declare any dependencies that are still in development here instead of in
|
12
|
-
# your gemspec. These might include edge Rails or gems from your path or
|
13
|
-
# Git. Remember to move these dependencies to your gemspec before releasing
|
14
|
-
# your gem to rubygems.org.
|
15
|
-
|
16
|
-
# To use debugger
|
17
|
-
# gem 'debugger'
|
data/core/Gemfile.lock
DELETED
@@ -1,163 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
brightcontent-core (2.0.0.alpha3)
|
5
|
-
bcrypt-ruby
|
6
|
-
bootstrap-wysihtml5-rails
|
7
|
-
inherited_resources
|
8
|
-
jquery-rails
|
9
|
-
rails (~> 3.2.9)
|
10
|
-
simple_form
|
11
|
-
will_paginate
|
12
|
-
|
13
|
-
GEM
|
14
|
-
remote: http://rubygems.org/
|
15
|
-
specs:
|
16
|
-
actionmailer (3.2.9)
|
17
|
-
actionpack (= 3.2.9)
|
18
|
-
mail (~> 2.4.4)
|
19
|
-
actionpack (3.2.9)
|
20
|
-
activemodel (= 3.2.9)
|
21
|
-
activesupport (= 3.2.9)
|
22
|
-
builder (~> 3.0.0)
|
23
|
-
erubis (~> 2.7.0)
|
24
|
-
journey (~> 1.0.4)
|
25
|
-
rack (~> 1.4.0)
|
26
|
-
rack-cache (~> 1.2)
|
27
|
-
rack-test (~> 0.6.1)
|
28
|
-
sprockets (~> 2.2.1)
|
29
|
-
activemodel (3.2.9)
|
30
|
-
activesupport (= 3.2.9)
|
31
|
-
builder (~> 3.0.0)
|
32
|
-
activerecord (3.2.9)
|
33
|
-
activemodel (= 3.2.9)
|
34
|
-
activesupport (= 3.2.9)
|
35
|
-
arel (~> 3.0.2)
|
36
|
-
tzinfo (~> 0.3.29)
|
37
|
-
activeresource (3.2.9)
|
38
|
-
activemodel (= 3.2.9)
|
39
|
-
activesupport (= 3.2.9)
|
40
|
-
activesupport (3.2.9)
|
41
|
-
i18n (~> 0.6)
|
42
|
-
multi_json (~> 1.0)
|
43
|
-
addressable (2.3.2)
|
44
|
-
arel (3.0.2)
|
45
|
-
bcrypt-ruby (3.0.1)
|
46
|
-
bootstrap-wysihtml5-rails (0.3.1.13)
|
47
|
-
railties (>= 3.0)
|
48
|
-
builder (3.0.4)
|
49
|
-
capybara (2.0.1)
|
50
|
-
mime-types (>= 1.16)
|
51
|
-
nokogiri (>= 1.3.3)
|
52
|
-
rack (>= 1.0.0)
|
53
|
-
rack-test (>= 0.5.4)
|
54
|
-
selenium-webdriver (~> 2.0)
|
55
|
-
xpath (~> 1.0.0)
|
56
|
-
childprocess (0.3.6)
|
57
|
-
ffi (~> 1.0, >= 1.0.6)
|
58
|
-
diff-lcs (1.1.3)
|
59
|
-
erubis (2.7.0)
|
60
|
-
factory_girl (4.1.0)
|
61
|
-
activesupport (>= 3.0.0)
|
62
|
-
factory_girl_rails (4.1.0)
|
63
|
-
factory_girl (~> 4.1.0)
|
64
|
-
railties (>= 3.0.0)
|
65
|
-
ffi (1.2.0)
|
66
|
-
has_scope (0.5.1)
|
67
|
-
hike (1.2.1)
|
68
|
-
i18n (0.6.1)
|
69
|
-
inherited_resources (1.3.1)
|
70
|
-
has_scope (~> 0.5.0)
|
71
|
-
responders (~> 0.6)
|
72
|
-
journey (1.0.4)
|
73
|
-
jquery-rails (2.1.4)
|
74
|
-
railties (>= 3.0, < 5.0)
|
75
|
-
thor (>= 0.14, < 2.0)
|
76
|
-
json (1.7.5)
|
77
|
-
launchy (2.1.2)
|
78
|
-
addressable (~> 2.3)
|
79
|
-
libwebsocket (0.1.7.1)
|
80
|
-
addressable
|
81
|
-
websocket
|
82
|
-
mail (2.4.4)
|
83
|
-
i18n (>= 0.4.0)
|
84
|
-
mime-types (~> 1.16)
|
85
|
-
treetop (~> 1.4.8)
|
86
|
-
mime-types (1.19)
|
87
|
-
multi_json (1.5.0)
|
88
|
-
nokogiri (1.5.6)
|
89
|
-
polyglot (0.3.3)
|
90
|
-
rack (1.4.1)
|
91
|
-
rack-cache (1.2)
|
92
|
-
rack (>= 0.4)
|
93
|
-
rack-ssl (1.3.2)
|
94
|
-
rack
|
95
|
-
rack-test (0.6.2)
|
96
|
-
rack (>= 1.0)
|
97
|
-
rails (3.2.9)
|
98
|
-
actionmailer (= 3.2.9)
|
99
|
-
actionpack (= 3.2.9)
|
100
|
-
activerecord (= 3.2.9)
|
101
|
-
activeresource (= 3.2.9)
|
102
|
-
activesupport (= 3.2.9)
|
103
|
-
bundler (~> 1.0)
|
104
|
-
railties (= 3.2.9)
|
105
|
-
railties (3.2.9)
|
106
|
-
actionpack (= 3.2.9)
|
107
|
-
activesupport (= 3.2.9)
|
108
|
-
rack-ssl (~> 1.3.2)
|
109
|
-
rake (>= 0.8.7)
|
110
|
-
rdoc (~> 3.4)
|
111
|
-
thor (>= 0.14.6, < 2.0)
|
112
|
-
rake (10.0.3)
|
113
|
-
rdoc (3.12)
|
114
|
-
json (~> 1.4)
|
115
|
-
responders (0.9.3)
|
116
|
-
railties (~> 3.1)
|
117
|
-
rspec-core (2.12.2)
|
118
|
-
rspec-expectations (2.12.1)
|
119
|
-
diff-lcs (~> 1.1.3)
|
120
|
-
rspec-mocks (2.12.1)
|
121
|
-
rspec-rails (2.12.0)
|
122
|
-
actionpack (>= 3.0)
|
123
|
-
activesupport (>= 3.0)
|
124
|
-
railties (>= 3.0)
|
125
|
-
rspec-core (~> 2.12.0)
|
126
|
-
rspec-expectations (~> 2.12.0)
|
127
|
-
rspec-mocks (~> 2.12.0)
|
128
|
-
rubyzip (0.9.9)
|
129
|
-
selenium-webdriver (2.27.2)
|
130
|
-
childprocess (>= 0.2.5)
|
131
|
-
libwebsocket (~> 0.1.3)
|
132
|
-
multi_json (~> 1.0)
|
133
|
-
rubyzip
|
134
|
-
simple_form (2.0.4)
|
135
|
-
actionpack (~> 3.0)
|
136
|
-
activemodel (~> 3.0)
|
137
|
-
sprockets (2.2.2)
|
138
|
-
hike (~> 1.2)
|
139
|
-
multi_json (~> 1.0)
|
140
|
-
rack (~> 1.0)
|
141
|
-
tilt (~> 1.1, != 1.3.0)
|
142
|
-
sqlite3 (1.3.6)
|
143
|
-
thor (0.16.0)
|
144
|
-
tilt (1.3.3)
|
145
|
-
treetop (1.4.12)
|
146
|
-
polyglot
|
147
|
-
polyglot (>= 0.3.1)
|
148
|
-
tzinfo (0.3.35)
|
149
|
-
websocket (1.0.6)
|
150
|
-
will_paginate (3.0.3)
|
151
|
-
xpath (1.0.0)
|
152
|
-
nokogiri (~> 1.3)
|
153
|
-
|
154
|
-
PLATFORMS
|
155
|
-
ruby
|
156
|
-
|
157
|
-
DEPENDENCIES
|
158
|
-
brightcontent-core!
|
159
|
-
capybara
|
160
|
-
factory_girl_rails
|
161
|
-
launchy
|
162
|
-
rspec-rails
|
163
|
-
sqlite3
|
data/core/MIT-LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright 2012 YOURNAME
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/core/README.md
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
___ _ _ _ ___ _ _
|
2
|
-
| _ )_ _(_)__ _| |_| |_ / __|___ _ _| |_ ___ _ _| |
|
3
|
-
| _ \ '_| / _` | ' \ _| (__/ _ \ ' \ _/ -_) ' \ _|
|
4
|
-
|___/_| |_\__, |_||_\__|\___\___/_||_\__\___|_||_\__|
|
5
|
-
|___/
|
6
|
-
|
7
|
-
|
8
|
-
Brightcontent, yet another rails CMS / admin panel
|
9
|
-
|
10
|
-
* For *developers*, to make a *custom CMS* for *non-technical users*
|
11
|
-
* No standard 'cms-modules', we hate those, making custom is easy enough
|
12
|
-
* Build in the rails way, use your normals models, only controllers and views are provided
|
13
|
-
* Only exception: Page model is provided with tree structure, draft, hidden and pretty urls like `/services/cleaning/houses`
|
14
|
-
* Rails 3.1+ only
|
15
|
-
|
16
|
-
Installation
|
17
|
-
------------
|
18
|
-
|
19
|
-
Include the gem in your Gemfile:
|
20
|
-
|
21
|
-
```ruby
|
22
|
-
gem "brightcontent", :git => "git://github.com/stexy/brightcontent.git"
|
23
|
-
bundle install
|
24
|
-
```
|
25
|
-
|
26
|
-
Generate the initializer, copy migrations and edit routes file. This can be done via a generator. Migrate the database afterwards:
|
27
|
-
|
28
|
-
$ rails generate brightcontent:install
|
29
|
-
$ rake db:migrate
|
30
|
-
|
31
|
-
Go to `/admin` and login with default user (email: `admin@example.com` / password: `password`).
|
32
|
-
|
33
|
-
Add a resource to Brightcontent
|
34
|
-
-------------------------------
|
35
|
-
|
36
|
-
Lets say, we want to add projects. Just create the `Project` model the rails way:
|
37
|
-
$ rails g model Project name:string description:text
|
38
|
-
$ rake db:migrate
|
39
|
-
|
40
|
-
To add the resource to brightcontent run:
|
41
|
-
|
42
|
-
$ rails generate brightcontent:resource Project
|
43
|
-
|
44
|
-
Gratz! Projects can now be controlled with Brightcontent.
|
data/core/Rakefile
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'bundler/setup'
|
3
|
-
rescue LoadError
|
4
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
-
end
|
6
|
-
|
7
|
-
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
8
|
-
load 'rails/tasks/engine.rake'
|
9
|
-
|
10
|
-
require 'rspec/core/rake_task'
|
11
|
-
RSpec::Core::RakeTask.new(:spec)
|
12
|
-
task :default => :spec
|
13
|
-
|
14
|
-
Bundler::GemHelper.install_tasks
|
File without changes
|
Binary file
|
Binary file
|