brightcontent 2.3.4 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -1
  3. data/VERSION +1 -1
  4. metadata +9 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cb000c6dd464e775044728a09f7092e49e523c4
4
- data.tar.gz: 0f524feb165a1ea43ee8a65c81f05e3e27a5176c
3
+ metadata.gz: 424d7fc9467b35e00435ae4fe7c000bbd7ac60ff
4
+ data.tar.gz: 44202b44c637916ff1d7b5f7589dd4342608286d
5
5
  SHA512:
6
- metadata.gz: 7a947f771c45148d4d4209035a8d1490fa8cf16dfa8bdab5f0ada931b4033d31e1c586fa85a3fa2e9d6c7a174ad7c5373051d57a695f68d1cd76d650b1e77eda
7
- data.tar.gz: 5a35fab82d5718c3e99491d6bb052c4eb41922783d9491e5854a7bea9deff26bbd8ffb8615ae20c0c0def6d0b8c160dbad3c10d14418a16d5ad28952f57b6bff
6
+ metadata.gz: 1c23ee4b0c6eb9706917d2c61700de0f27124a6a3a843fede7e381ceaa000f3cbdae195cfcaa977797f4203967e85f06fff47d5aabec14959da284dc72e8ba74
7
+ data.tar.gz: e1a2b85fd21a65c2335e6e144b288f5e7fe233edba8987dbf8d614401094a9e07046e612aa3c1f822a3d6f21da2db6ff26e2c4ec6b7150433aee6d4a3b5606f1
data/README.md CHANGED
@@ -11,7 +11,7 @@ Brightcontent, yet another rails CMS / admin panel
11
11
  * No standard 'cms-modules', we hate those, making custom is easy enough
12
12
  * Built in the rails way, use your normals models, only controllers and views are provided
13
13
  * Only exception: Page model is provided with tree structure, sorting, hidden and pretty urls like `/services/cleaning/houses`
14
- * Rails 4 only (currently >= 4.2 is not supported)
14
+ * Rails 4.2 only (currently >= 5.0 is not supported)
15
15
  * Strong Parameters support
16
16
 
17
17
  ![Brightcontent preview](doc/browser.jpg)
@@ -145,3 +145,17 @@ This adds an extra layer on top of your existing routes. However when there aren
145
145
  ```ruby
146
146
  get "*path" => "pages#show", constraints: Brightcontent::Pages::PathConstraint.new
147
147
  ```
148
+
149
+ Pagination
150
+ ----------
151
+
152
+ The number of pages can be set in a controller by calling `per_page 50`.
153
+
154
+ If multiple page sizes are preferred, you can provide those sizes with
155
+
156
+ ``` ruby
157
+ page_size_options [10, 25, 50, 100]
158
+ ```
159
+
160
+ This will set the default page size to `10` and inject 4 page size options in
161
+ the index views. The `per_page` value (if provided), will be ignored.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.4
1
+ 2.4.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcontent
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Developers at Brightin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-14 00:00:00.000000000 Z
11
+ date: 2016-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brightcontent-core
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.3.4
19
+ version: 2.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.3.4
26
+ version: 2.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: brightcontent-pages
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.3.4
33
+ version: 2.4.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.3.4
40
+ version: 2.4.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: brightcontent-attachments
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.3.4
47
+ version: 2.4.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.3.4
54
+ version: 2.4.0
55
55
  description: Brightcontent, yet another Rails CMS / admin panel
56
56
  email: developers@brightin.nl
57
57
  executables: []
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.5.1
83
+ rubygems_version: 2.6.6
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Brightcontent gem