brightcontent-pages 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/Gemfile.lock +3 -3
- metadata +5 -7
- data/MIT-LICENSE +0 -20
- data/README.md +0 -35
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
brightcontent-pages (2.0.0.
|
4
|
+
brightcontent-pages (2.0.0.alpha5)
|
5
5
|
awesome_nested_set
|
6
|
-
brightcontent-core (= 2.0.0.
|
6
|
+
brightcontent-core (= 2.0.0.alpha5)
|
7
7
|
|
8
8
|
PATH
|
9
9
|
remote: ../core
|
10
10
|
specs:
|
11
|
-
brightcontent-core (2.0.0.
|
11
|
+
brightcontent-core (2.0.0.alpha5)
|
12
12
|
bcrypt-ruby
|
13
13
|
bootstrap-wysihtml5-rails
|
14
14
|
inherited_resources
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brightcontent-pages
|
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: awesome_nested_set
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,8 +132,6 @@ files:
|
|
132
132
|
- .gitignore
|
133
133
|
- Gemfile
|
134
134
|
- Gemfile.lock
|
135
|
-
- MIT-LICENSE
|
136
|
-
- README.md
|
137
135
|
- Rakefile
|
138
136
|
- app/assets/images/brightcontent/.gitkeep
|
139
137
|
- app/controllers/brightcontent/pages_controller.rb
|
@@ -209,7 +207,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
209
207
|
version: '0'
|
210
208
|
segments:
|
211
209
|
- 0
|
212
|
-
hash:
|
210
|
+
hash: 4070560086322677921
|
213
211
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
212
|
none: false
|
215
213
|
requirements:
|
@@ -218,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
216
|
version: 1.3.1
|
219
217
|
requirements: []
|
220
218
|
rubyforge_project:
|
221
|
-
rubygems_version: 1.8.
|
219
|
+
rubygems_version: 1.8.24
|
222
220
|
signing_key:
|
223
221
|
specification_version: 3
|
224
222
|
summary: Pages resource for brightcontent
|
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/README.md
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
Requirements
|
2
|
-
------------
|
3
|
-
|
4
|
-
Brightcontent
|
5
|
-
|
6
|
-
Installation
|
7
|
-
------------
|
8
|
-
|
9
|
-
Include the gem in your Gemfile:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem "brightcontent", :git => "git://github.com/stexy/brightcontent.git"
|
13
|
-
gem "brightcontent-pages", :git => "git://github.com/stexy/brightcontent-pages.git"
|
14
|
-
bundle install
|
15
|
-
```
|
16
|
-
|
17
|
-
Generate the initializer, copy migrations and edit routes file. This can be done via a generator. Migrate the database afterwards:
|
18
|
-
|
19
|
-
$ rails generate brightcontent:install
|
20
|
-
$ rails generate brightcontent:pages:install
|
21
|
-
$ rake db:migrate
|
22
|
-
|
23
|
-
Go to `/admin` and login with default user (email: `admin@example.com` / password: `password`).
|
24
|
-
|
25
|
-
|
26
|
-
Usage
|
27
|
-
-----
|
28
|
-
|
29
|
-
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`.
|
30
|
-
|
31
|
-
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:
|
32
|
-
|
33
|
-
```ruby
|
34
|
-
get "*path" => "pages#show"
|
35
|
-
```
|