brightcontent-pages 2.0.33 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/brightcontent/pages.js +1 -2
  3. data/app/assets/stylesheets/brightcontent/pages.css.scss +1 -1
  4. data/app/helpers/render_sortable_tree_helper.rb +3 -58
  5. data/app/models/brightcontent/page_core.rb +27 -14
  6. data/app/views/brightcontent/pages/_form_field_body.html.erb +1 -1
  7. data/app/views/brightcontent/pages/_list_field_name.html.erb +1 -1
  8. data/app/views/brightcontent/pages/_page.html.erb +15 -0
  9. data/app/views/brightcontent/pages/index.html.erb +9 -7
  10. data/brightcontent-pages.gemspec +2 -1
  11. data/config/locales/brightcontent_pages.nl.yml +10 -0
  12. data/config/routes.rb +0 -7
  13. data/lib/brightcontent/pages/methods.rb +1 -1
  14. data/lib/brightcontent/pages/path_constraint.rb +26 -0
  15. data/lib/brightcontent/pages/routes.rb +13 -0
  16. data/lib/brightcontent/pages.rb +4 -0
  17. data/lib/generators/brightcontent/pages/install_generator.rb +4 -0
  18. data/script/rails +2 -2
  19. data/spec/dummy/config/application.rb +2 -6
  20. data/spec/dummy/config/environments/development.rb +1 -10
  21. data/spec/dummy/config/environments/production.rb +0 -4
  22. data/spec/dummy/config/environments/test.rb +1 -6
  23. data/spec/dummy/config/initializers/secret_token.rb +1 -1
  24. data/spec/dummy/config/routes.rb +2 -1
  25. data/spec/dummy/db/migrate/20121206121725_create_brightcontent_admin_users.rb +1 -1
  26. data/spec/dummy/db/migrate/20140227110824_add_position_to_attachments.brightcontent_attachments_engine.rb +6 -0
  27. data/spec/dummy/db/schema.rb +16 -15
  28. data/spec/features/menu_spec.rb +1 -3
  29. data/spec/features/pages_index_spec.rb +3 -5
  30. data/spec/lib/brightcontent/pages/path_constraint_spec.rb +30 -0
  31. data/spec/models/brightcontent/page_spec.rb +21 -24
  32. metadata +48 -27
  33. data/app/assets/javascripts/brightcontent/wysithtml5-parser-rules.js +0 -553
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcontent-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.33
4
+ version: 2.1.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: 2013-11-07 00:00:00.000000000 Z
11
+ date: 2014-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brightcontent-core
@@ -16,124 +16,138 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.33
19
+ version: 2.1.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.0.33
26
+ version: 2.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: brightcontent-attachments
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.0.33
33
+ version: 2.1.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.0.33
40
+ version: 2.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: awesome_nested_set
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 3.0.0.rc.3
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: '0'
54
+ version: 3.0.0.rc.3
55
+ - !ruby/object:Gem::Dependency
56
+ name: jquery-ui-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 2.3.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 2.3.0
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: the_sortable_tree
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - ~>
73
+ - - "~>"
60
74
  - !ruby/object:Gem::Version
61
75
  version: 2.3.0
62
76
  type: :runtime
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - ~>
80
+ - - "~>"
67
81
  - !ruby/object:Gem::Version
68
82
  version: 2.3.0
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: sqlite3
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - '>='
87
+ - - ">="
74
88
  - !ruby/object:Gem::Version
75
89
  version: '0'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - '>='
94
+ - - ">="
81
95
  - !ruby/object:Gem::Version
82
96
  version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rspec-rails
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - '>='
101
+ - - ">="
88
102
  - !ruby/object:Gem::Version
89
103
  version: '0'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - '>='
108
+ - - ">="
95
109
  - !ruby/object:Gem::Version
96
110
  version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: capybara
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - '>='
115
+ - - ">="
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - '>='
122
+ - - ">="
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: launchy
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
- - - '>='
129
+ - - ">="
116
130
  - !ruby/object:Gem::Version
117
131
  version: '0'
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
- - - '>='
136
+ - - ">="
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: factory_girl_rails
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
- - - '>='
143
+ - - ">="
130
144
  - !ruby/object:Gem::Version
131
145
  version: '0'
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
- - - '>='
150
+ - - ">="
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
139
153
  description: Separate pages resource for brightcontent
@@ -142,13 +156,12 @@ executables: []
142
156
  extensions: []
143
157
  extra_rdoc_files: []
144
158
  files:
145
- - .gitignore
159
+ - ".gitignore"
146
160
  - Gemfile
147
161
  - Rakefile
148
162
  - app/assets/images/brightcontent/.gitkeep
149
163
  - app/assets/images/brightcontent/move.png
150
164
  - app/assets/javascripts/brightcontent/pages.js
151
- - app/assets/javascripts/brightcontent/wysithtml5-parser-rules.js
152
165
  - app/assets/stylesheets/brightcontent/pages.css.scss
153
166
  - app/controllers/brightcontent/page_base_controller.rb
154
167
  - app/controllers/brightcontent/pages_controller.rb
@@ -159,8 +172,10 @@ files:
159
172
  - app/views/brightcontent/pages/_form_field_body.html.erb
160
173
  - app/views/brightcontent/pages/_form_field_parent_id.html.erb
161
174
  - app/views/brightcontent/pages/_list_field_name.html.erb
175
+ - app/views/brightcontent/pages/_page.html.erb
162
176
  - app/views/brightcontent/pages/index.html.erb
163
177
  - brightcontent-pages.gemspec
178
+ - config/locales/brightcontent_pages.nl.yml
164
179
  - config/routes.rb
165
180
  - db/migrate/20121207132810_create_brightcontent_pages.rb
166
181
  - db/migrate/20130105141633_add_hidden_to_pages.rb
@@ -169,6 +184,8 @@ files:
169
184
  - lib/brightcontent/pages.rb
170
185
  - lib/brightcontent/pages/engine.rb
171
186
  - lib/brightcontent/pages/methods.rb
187
+ - lib/brightcontent/pages/path_constraint.rb
188
+ - lib/brightcontent/pages/routes.rb
172
189
  - lib/generators/brightcontent/pages/install_generator.rb
173
190
  - script/rails
174
191
  - spec/dummy/README.rdoc
@@ -205,6 +222,7 @@ files:
205
222
  - spec/dummy/config/routes.rb
206
223
  - spec/dummy/db/migrate/20121206121725_create_brightcontent_admin_users.rb
207
224
  - spec/dummy/db/migrate/20121228111704_create_attachments.brightcontent_attachments_engine.rb
225
+ - spec/dummy/db/migrate/20140227110824_add_position_to_attachments.brightcontent_attachments_engine.rb
208
226
  - spec/dummy/db/schema.rb
209
227
  - spec/dummy/lib/assets/.gitkeep
210
228
  - spec/dummy/public/404.html
@@ -216,6 +234,7 @@ files:
216
234
  - spec/features/menu_spec.rb
217
235
  - spec/features/pages_index_spec.rb
218
236
  - spec/features/pages_spec.rb
237
+ - spec/lib/brightcontent/pages/path_constraint_spec.rb
219
238
  - spec/models/brightcontent/page_spec.rb
220
239
  - spec/spec_helper.rb
221
240
  - spec/support/acceptance_helper.rb
@@ -228,17 +247,17 @@ require_paths:
228
247
  - lib
229
248
  required_ruby_version: !ruby/object:Gem::Requirement
230
249
  requirements:
231
- - - '>='
250
+ - - ">="
232
251
  - !ruby/object:Gem::Version
233
252
  version: '0'
234
253
  required_rubygems_version: !ruby/object:Gem::Requirement
235
254
  requirements:
236
- - - '>='
255
+ - - ">="
237
256
  - !ruby/object:Gem::Version
238
257
  version: '0'
239
258
  requirements: []
240
259
  rubyforge_project:
241
- rubygems_version: 2.0.2
260
+ rubygems_version: 2.2.2
242
261
  signing_key:
243
262
  specification_version: 4
244
263
  summary: Pages resource for brightcontent
@@ -277,6 +296,7 @@ test_files:
277
296
  - spec/dummy/config/routes.rb
278
297
  - spec/dummy/db/migrate/20121206121725_create_brightcontent_admin_users.rb
279
298
  - spec/dummy/db/migrate/20121228111704_create_attachments.brightcontent_attachments_engine.rb
299
+ - spec/dummy/db/migrate/20140227110824_add_position_to_attachments.brightcontent_attachments_engine.rb
280
300
  - spec/dummy/db/schema.rb
281
301
  - spec/dummy/lib/assets/.gitkeep
282
302
  - spec/dummy/public/404.html
@@ -288,6 +308,7 @@ test_files:
288
308
  - spec/features/menu_spec.rb
289
309
  - spec/features/pages_index_spec.rb
290
310
  - spec/features/pages_spec.rb
311
+ - spec/lib/brightcontent/pages/path_constraint_spec.rb
291
312
  - spec/models/brightcontent/page_spec.rb
292
313
  - spec/spec_helper.rb
293
314
  - spec/support/acceptance_helper.rb