kuhsaft 0.2.5 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/.gitignore +0 -1
  2. data/README.md +7 -3
  3. data/{public → app/assets}/images/kuhsaft/add-child-page.png +0 -0
  4. data/{public → app/assets}/images/kuhsaft/closedhand.cur +0 -0
  5. data/{public → app/assets}/images/kuhsaft/delete.png +0 -0
  6. data/{public → app/assets}/images/kuhsaft/header-bg.jpg +0 -0
  7. data/{public → app/assets}/images/kuhsaft/module-nav-tab-bg.png +0 -0
  8. data/{public → app/assets}/images/kuhsaft/openhand.cur +0 -0
  9. data/{public → app/assets}/images/kuhsaft/page-edit-icon.png +0 -0
  10. data/{public → app/assets}/images/kuhsaft/page-new-icon.png +0 -0
  11. data/{public → app/assets}/images/kuhsaft/page-part-draggable-area.png +0 -0
  12. data/{public → app/assets}/images/kuhsaft/page-tree-breadcrumb-arrow.png +0 -0
  13. data/{public → app/assets}/images/kuhsaft/pages-breadcrumb-icon.png +0 -0
  14. data/{public → app/assets}/images/kuhsaft/tab-bg.png +0 -0
  15. data/{public → app/assets}/images/kuhsaft/toggle-arrow-closed.png +0 -0
  16. data/{public → app/assets}/images/kuhsaft/toggle-arrow-open.png +0 -0
  17. data/{public → app/assets}/images/kuhsaft/wrapper-bg.png +0 -0
  18. data/{public → app/assets}/javascripts/kuhsaft/cms/application.js +0 -0
  19. data/{public → app/assets}/javascripts/kuhsaft/cms/jquery-ui-1.8.12.custom.min.js +0 -0
  20. data/{public → app/assets}/javascripts/kuhsaft/cms/jquery.elastic.source.js +0 -0
  21. data/{public → app/assets}/javascripts/kuhsaft/cms/jquery.min.js +0 -0
  22. data/{public → app/assets}/javascripts/kuhsaft/cms/jquery_ujs.js +0 -0
  23. data/app/{stylesheets → assets/stylesheets}/kuhsaft/cms/partials/_assets.sass +0 -0
  24. data/app/{stylesheets → assets/stylesheets}/kuhsaft/cms/partials/_buttons.sass +0 -0
  25. data/app/{stylesheets → assets/stylesheets}/kuhsaft/cms/partials/_forms.sass +0 -0
  26. data/app/{stylesheets → assets/stylesheets}/kuhsaft/cms/partials/_generic.sass +1 -5
  27. data/app/{stylesheets → assets/stylesheets}/kuhsaft/cms/partials/_simple_form.sass +0 -0
  28. data/app/{stylesheets → assets/stylesheets}/kuhsaft/cms/screen.sass +0 -0
  29. data/app/controllers/kuhsaft/pages_controller.rb +1 -9
  30. data/app/helpers/cms_helper.rb +0 -10
  31. data/app/views/kuhsaft/cms/pages/new.html.haml +0 -4
  32. data/config/locales/kuhsaft.en.yml +0 -3
  33. data/kuhsaft.gemspec +7 -6
  34. data/lib/kuhsaft/version.rb +1 -1
  35. data/spec/controllers/pages_controller_spec.rb +3 -10
  36. metadata +80 -70
  37. data/CHANGELOG.md +0 -67
  38. data/spec/helpers/cms_helper_spec.rb +0 -22
data/.gitignore CHANGED
@@ -15,4 +15,3 @@ spec/dummy/public/javascripts/**/*
15
15
  Gemfile.lock
16
16
  .DS_Store
17
17
  .sass-cache
18
- tags
data/README.md CHANGED
@@ -36,14 +36,18 @@ to get the gem
36
36
 
37
37
  Then install the assets and the migrations and run them:
38
38
 
39
- rails generate kuhsaft:install:assets
40
39
  rails generate kuhsaft:install:migrations
41
40
  rake db:migrate
42
-
41
+
43
42
  If you are upgrading, run those installers again and hopefully we will generate just the migrations you need.
44
43
 
45
44
  (NOTE: Steps below should hopefully not be necessary in future versions:)
46
45
 
46
+ In order to load the engine's assets you need to require them in your
47
+ application.css:
48
+
49
+ //= require kuhsaft
50
+
47
51
  Finally, you need to add a before filter to the application controller (for now...)
48
52
 
49
53
  ApplicationController < ActionController::Base
@@ -69,5 +73,5 @@ Create a toplevel page and set the page type to "navigation". You can now get th
69
73
  navigation_for(:slug => 'main-navigation') { |pages| ... }
70
74
 
71
75
  # LICENSE
72
-
76
+
73
77
  See the file LICENSE.
@@ -130,10 +130,6 @@ body
130
130
 
131
131
  .colored-box
132
132
  background: $color3
133
- border:
134
- left: 1px solid $color3
135
- right: 1px solid $color3
136
- bottom: 1px solid $color3
137
133
  @extend .box
138
134
 
139
135
  .draggable-box
@@ -328,7 +324,7 @@ ul.pages-root
328
324
  +float_right
329
325
 
330
326
  .will-drag
331
- border: 1px solid #666 !important
327
+ border: 1px solid #666
332
328
  +single-box-shadow(rgba(0,0,0,0.2), 0px, 5px, 20px)
333
329
 
334
330
  .container
@@ -6,15 +6,7 @@ module Kuhsaft
6
6
 
7
7
  def show
8
8
  @page = Kuhsaft::Page.find_by_url(params[:url])
9
- if @page.present?
10
- respond_with @page
11
- else
12
- if respond_to?(:handle_404)
13
- handle_404
14
- else
15
- raise ActionController::RoutingError.new('Not Found')
16
- end
17
- end
9
+ respond_with @page
18
10
  end
19
11
 
20
12
  private
@@ -2,14 +2,4 @@ module CmsHelper
2
2
  def admin_tab title, path
3
3
  content_tag :li, link_to(title, path), :class => (:current if request.path.include?(path))
4
4
  end
5
-
6
- def available_parent_pages
7
- pages = []
8
- pages << { :title => t('kuhsaft.cms.pages.new.pages'), :link => cms_pages_path(:locale => :en) }
9
- if params[:parent_id].present?
10
- parent_page = Kuhsaft::Page.find(params[:parent_id])
11
- pages += parent_page.parent_pages
12
- end
13
- pages << { :title => t('kuhsaft.cms.pages.new.new_page'), :link => '#' }
14
- end
15
5
  end
@@ -2,9 +2,5 @@
2
2
  - Kuhsaft::Page.translation_locales.each do |locale|
3
3
  %li{ :class => (:current if params[:locale] == locale.to_s) }= link_to locale.to_s, new_cms_page_path(:locale => locale)
4
4
 
5
- .page-tree-breadcrumb
6
- - available_parent_pages.each do |parent_page|
7
- = link_to((parent_page[:title].presence || parent_page.title), parent_page[:link].presence || edit_cms_page_path(parent_page))
8
-
9
5
  .box-container
10
6
  = render :partial => 'form', :locals => { :url => cms_pages_path, :page_title => t('.new') }
@@ -1,5 +1,4 @@
1
1
  en:
2
- 404: '404, Page not found'
3
2
  layouts:
4
3
  kuhsaft:
5
4
  admin:
@@ -14,10 +13,8 @@ en:
14
13
  create: 'Create new page'
15
14
  new:
16
15
  new: 'Creating new page'
17
- pages: 'Pages'
18
16
  edit:
19
17
  edit_html: 'Editing page: <span>%{title}</span>'
20
- pages: 'Pages'
21
18
  branch:
22
19
  add: 'Add page'
23
20
  create: 'Create new page'
@@ -19,22 +19,23 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_development_dependency 'rspec-rails', '>= 2.6'
22
+ s.add_development_dependency 'rspec-rails'
23
23
  s.add_development_dependency 'factory_girl_rails'
24
24
  s.add_development_dependency 'capybara', '>= 0.4.0'
25
25
  s.add_development_dependency 'ruby-debug'
26
26
  s.add_development_dependency 'sqlite3-ruby', '1.2.5'
27
- s.add_development_dependency 'guard', '>= 0.6'
27
+ s.add_development_dependency 'guard'
28
28
  s.add_development_dependency 'guard-spork'
29
29
  s.add_development_dependency 'guard-rspec'
30
30
  s.add_development_dependency 'growl'
31
+ s.add_development_dependency 'linecache', '0.42'
31
32
 
32
33
  s.add_dependency 'rails', '~>3.0'
33
34
  s.add_dependency 'haml', '~> 3.1'
34
35
  s.add_dependency 'compass', '>= 0.11.1'
35
- s.add_dependency 'simple_form', '>= 1.4'
36
- s.add_dependency 'carrierwave', '>= 0.5.7'
36
+ s.add_dependency 'simple_form'
37
+ s.add_dependency 'carrierwave', '0.5.2'
37
38
  s.add_dependency 'rmagick', '2.12.2'
38
- s.add_dependency 'rdiscount', '>= 1.6'
39
- s.add_dependency 'acts-as-taggable-on', '>= 2.0.6'
39
+ s.add_dependency 'rdiscount'
40
+ s.add_dependency 'acts-as-taggable-on', '2.0.6'
40
41
  end
@@ -1,3 +1,3 @@
1
1
  module Kuhsaft
2
- VERSION = "0.2.5"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -5,8 +5,8 @@ describe Kuhsaft::PagesController do
5
5
 
6
6
  before do
7
7
  set_lang :en
8
- # create page with slug=english-title-1
9
- @page = Factory(:page)
8
+ # create page with slug=english-title
9
+ @page = Factory.create :page
10
10
  end
11
11
 
12
12
  after do
@@ -16,15 +16,8 @@ describe Kuhsaft::PagesController do
16
16
 
17
17
  describe 'should render successfully' do
18
18
  it '#show' do
19
- get :show, :locale => 'en', :url => 'english-title-1'
20
- response.response_code.should eq(200)
19
+ get :show, :locale => 'en', :url => '/english-title'
21
20
  response.should be_success
22
21
  end
23
22
  end
24
-
25
- describe 'should render 404' do
26
- it 'should raise RoutingError by default' do
27
- expect{ get :show, :locale => 'en', :url => '/i-dont-know' }.to raise_error(ActionController::RoutingError)
28
- end
29
- end
30
23
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuhsaft
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 5
10
- version: 0.2.5
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Immanuel H\xC3\xA4ussermann"
@@ -17,7 +17,8 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-08-29 00:00:00 Z
20
+ date: 2011-08-08 00:00:00 +02:00
21
+ default_executable:
21
22
  dependencies:
22
23
  - !ruby/object:Gem::Dependency
23
24
  name: rspec-rails
@@ -27,11 +28,10 @@ dependencies:
27
28
  requirements:
28
29
  - - ">="
29
30
  - !ruby/object:Gem::Version
30
- hash: 15
31
+ hash: 3
31
32
  segments:
32
- - 2
33
- - 6
34
- version: "2.6"
33
+ - 0
34
+ version: "0"
35
35
  type: :development
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
@@ -102,11 +102,10 @@ dependencies:
102
102
  requirements:
103
103
  - - ">="
104
104
  - !ruby/object:Gem::Version
105
- hash: 7
105
+ hash: 3
106
106
  segments:
107
107
  - 0
108
- - 6
109
- version: "0.6"
108
+ version: "0"
110
109
  type: :development
111
110
  version_requirements: *id006
112
111
  - !ruby/object:Gem::Dependency
@@ -152,9 +151,24 @@ dependencies:
152
151
  type: :development
153
152
  version_requirements: *id009
154
153
  - !ruby/object:Gem::Dependency
155
- name: rails
154
+ name: linecache
156
155
  prerelease: false
157
156
  requirement: &id010 !ruby/object:Gem::Requirement
157
+ none: false
158
+ requirements:
159
+ - - "="
160
+ - !ruby/object:Gem::Version
161
+ hash: 95
162
+ segments:
163
+ - 0
164
+ - 42
165
+ version: "0.42"
166
+ type: :development
167
+ version_requirements: *id010
168
+ - !ruby/object:Gem::Dependency
169
+ name: rails
170
+ prerelease: false
171
+ requirement: &id011 !ruby/object:Gem::Requirement
158
172
  none: false
159
173
  requirements:
160
174
  - - ~>
@@ -165,11 +179,11 @@ dependencies:
165
179
  - 0
166
180
  version: "3.0"
167
181
  type: :runtime
168
- version_requirements: *id010
182
+ version_requirements: *id011
169
183
  - !ruby/object:Gem::Dependency
170
184
  name: haml
171
185
  prerelease: false
172
- requirement: &id011 !ruby/object:Gem::Requirement
186
+ requirement: &id012 !ruby/object:Gem::Requirement
173
187
  none: false
174
188
  requirements:
175
189
  - - ~>
@@ -180,11 +194,11 @@ dependencies:
180
194
  - 1
181
195
  version: "3.1"
182
196
  type: :runtime
183
- version_requirements: *id011
197
+ version_requirements: *id012
184
198
  - !ruby/object:Gem::Dependency
185
199
  name: compass
186
200
  prerelease: false
187
- requirement: &id012 !ruby/object:Gem::Requirement
201
+ requirement: &id013 !ruby/object:Gem::Requirement
188
202
  none: false
189
203
  requirements:
190
204
  - - ">="
@@ -196,42 +210,41 @@ dependencies:
196
210
  - 1
197
211
  version: 0.11.1
198
212
  type: :runtime
199
- version_requirements: *id012
213
+ version_requirements: *id013
200
214
  - !ruby/object:Gem::Dependency
201
215
  name: simple_form
202
216
  prerelease: false
203
- requirement: &id013 !ruby/object:Gem::Requirement
217
+ requirement: &id014 !ruby/object:Gem::Requirement
204
218
  none: false
205
219
  requirements:
206
220
  - - ">="
207
221
  - !ruby/object:Gem::Version
208
- hash: 7
222
+ hash: 3
209
223
  segments:
210
- - 1
211
- - 4
212
- version: "1.4"
224
+ - 0
225
+ version: "0"
213
226
  type: :runtime
214
- version_requirements: *id013
227
+ version_requirements: *id014
215
228
  - !ruby/object:Gem::Dependency
216
229
  name: carrierwave
217
230
  prerelease: false
218
- requirement: &id014 !ruby/object:Gem::Requirement
231
+ requirement: &id015 !ruby/object:Gem::Requirement
219
232
  none: false
220
233
  requirements:
221
- - - ">="
234
+ - - "="
222
235
  - !ruby/object:Gem::Version
223
- hash: 5
236
+ hash: 15
224
237
  segments:
225
238
  - 0
226
239
  - 5
227
- - 7
228
- version: 0.5.7
240
+ - 2
241
+ version: 0.5.2
229
242
  type: :runtime
230
- version_requirements: *id014
243
+ version_requirements: *id015
231
244
  - !ruby/object:Gem::Dependency
232
245
  name: rmagick
233
246
  prerelease: false
234
- requirement: &id015 !ruby/object:Gem::Requirement
247
+ requirement: &id016 !ruby/object:Gem::Requirement
235
248
  none: false
236
249
  requirements:
237
250
  - - "="
@@ -243,29 +256,28 @@ dependencies:
243
256
  - 2
244
257
  version: 2.12.2
245
258
  type: :runtime
246
- version_requirements: *id015
259
+ version_requirements: *id016
247
260
  - !ruby/object:Gem::Dependency
248
261
  name: rdiscount
249
262
  prerelease: false
250
- requirement: &id016 !ruby/object:Gem::Requirement
263
+ requirement: &id017 !ruby/object:Gem::Requirement
251
264
  none: false
252
265
  requirements:
253
266
  - - ">="
254
267
  - !ruby/object:Gem::Version
255
268
  hash: 3
256
269
  segments:
257
- - 1
258
- - 6
259
- version: "1.6"
270
+ - 0
271
+ version: "0"
260
272
  type: :runtime
261
- version_requirements: *id016
273
+ version_requirements: *id017
262
274
  - !ruby/object:Gem::Dependency
263
275
  name: acts-as-taggable-on
264
276
  prerelease: false
265
- requirement: &id017 !ruby/object:Gem::Requirement
277
+ requirement: &id018 !ruby/object:Gem::Requirement
266
278
  none: false
267
279
  requirements:
268
- - - ">="
280
+ - - "="
269
281
  - !ruby/object:Gem::Version
270
282
  hash: 3
271
283
  segments:
@@ -274,7 +286,7 @@ dependencies:
274
286
  - 6
275
287
  version: 2.0.6
276
288
  type: :runtime
277
- version_requirements: *id017
289
+ version_requirements: *id018
278
290
  description: Kuhsaft is a Rails engine that offers a simple CMS.
279
291
  email: developers@screenconcept.ch
280
292
  executables: []
@@ -287,12 +299,37 @@ files:
287
299
  - .gitignore
288
300
  - .rspec
289
301
  - .rvmrc
290
- - CHANGELOG.md
291
302
  - Gemfile
292
303
  - Guardfile
293
304
  - LICENSE
294
305
  - README.md
295
306
  - Rakefile
307
+ - app/assets/images/kuhsaft/add-child-page.png
308
+ - app/assets/images/kuhsaft/closedhand.cur
309
+ - app/assets/images/kuhsaft/delete.png
310
+ - app/assets/images/kuhsaft/header-bg.jpg
311
+ - app/assets/images/kuhsaft/module-nav-tab-bg.png
312
+ - app/assets/images/kuhsaft/openhand.cur
313
+ - app/assets/images/kuhsaft/page-edit-icon.png
314
+ - app/assets/images/kuhsaft/page-new-icon.png
315
+ - app/assets/images/kuhsaft/page-part-draggable-area.png
316
+ - app/assets/images/kuhsaft/page-tree-breadcrumb-arrow.png
317
+ - app/assets/images/kuhsaft/pages-breadcrumb-icon.png
318
+ - app/assets/images/kuhsaft/tab-bg.png
319
+ - app/assets/images/kuhsaft/toggle-arrow-closed.png
320
+ - app/assets/images/kuhsaft/toggle-arrow-open.png
321
+ - app/assets/images/kuhsaft/wrapper-bg.png
322
+ - app/assets/javascripts/kuhsaft/cms/application.js
323
+ - app/assets/javascripts/kuhsaft/cms/jquery-ui-1.8.12.custom.min.js
324
+ - app/assets/javascripts/kuhsaft/cms/jquery.elastic.source.js
325
+ - app/assets/javascripts/kuhsaft/cms/jquery.min.js
326
+ - app/assets/javascripts/kuhsaft/cms/jquery_ujs.js
327
+ - app/assets/stylesheets/kuhsaft/cms/partials/_assets.sass
328
+ - app/assets/stylesheets/kuhsaft/cms/partials/_buttons.sass
329
+ - app/assets/stylesheets/kuhsaft/cms/partials/_forms.sass
330
+ - app/assets/stylesheets/kuhsaft/cms/partials/_generic.sass
331
+ - app/assets/stylesheets/kuhsaft/cms/partials/_simple_form.sass
332
+ - app/assets/stylesheets/kuhsaft/cms/screen.sass
296
333
  - app/controllers/kuhsaft/cms/admin_controller.rb
297
334
  - app/controllers/kuhsaft/cms/assets_controller.rb
298
335
  - app/controllers/kuhsaft/cms/page_parts_controller.rb
@@ -308,12 +345,6 @@ files:
308
345
  - app/models/kuhsaft/page_part/markdown.rb
309
346
  - app/models/kuhsaft/page_type.rb
310
347
  - app/models/kuhsaft/publish_state.rb
311
- - app/stylesheets/kuhsaft/cms/partials/_assets.sass
312
- - app/stylesheets/kuhsaft/cms/partials/_buttons.sass
313
- - app/stylesheets/kuhsaft/cms/partials/_forms.sass
314
- - app/stylesheets/kuhsaft/cms/partials/_generic.sass
315
- - app/stylesheets/kuhsaft/cms/partials/_simple_form.sass
316
- - app/stylesheets/kuhsaft/cms/screen.sass
317
348
  - app/uploaders/kuhsaft/asset_uploader.rb
318
349
  - app/views/kuhsaft/cms/assets/_form.html.haml
319
350
  - app/views/kuhsaft/cms/assets/_list.html.haml
@@ -359,26 +390,6 @@ files:
359
390
  - lib/templates/kuhsaft/install/create_kuhsaft_localized_pages.rb
360
391
  - lib/templates/kuhsaft/install/create_kuhsaft_pages.rb
361
392
  - lib/templates/kuhsaft/install/create_page_part_contents.rb
362
- - public/images/kuhsaft/add-child-page.png
363
- - public/images/kuhsaft/closedhand.cur
364
- - public/images/kuhsaft/delete.png
365
- - public/images/kuhsaft/header-bg.jpg
366
- - public/images/kuhsaft/module-nav-tab-bg.png
367
- - public/images/kuhsaft/openhand.cur
368
- - public/images/kuhsaft/page-edit-icon.png
369
- - public/images/kuhsaft/page-new-icon.png
370
- - public/images/kuhsaft/page-part-draggable-area.png
371
- - public/images/kuhsaft/page-tree-breadcrumb-arrow.png
372
- - public/images/kuhsaft/pages-breadcrumb-icon.png
373
- - public/images/kuhsaft/tab-bg.png
374
- - public/images/kuhsaft/toggle-arrow-closed.png
375
- - public/images/kuhsaft/toggle-arrow-open.png
376
- - public/images/kuhsaft/wrapper-bg.png
377
- - public/javascripts/kuhsaft/cms/application.js
378
- - public/javascripts/kuhsaft/cms/jquery-ui-1.8.12.custom.min.js
379
- - public/javascripts/kuhsaft/cms/jquery.elastic.source.js
380
- - public/javascripts/kuhsaft/cms/jquery.min.js
381
- - public/javascripts/kuhsaft/cms/jquery_ujs.js
382
393
  - spec/controllers/cms_assets_controller_spec.rb
383
394
  - spec/controllers/cms_pages_controller_spec.rb
384
395
  - spec/controllers/page_parts_controller_spec.rb
@@ -411,7 +422,6 @@ files:
411
422
  - spec/dummy/public/stylesheets/.gitkeep
412
423
  - spec/dummy/script/rails
413
424
  - spec/factories.rb
414
- - spec/helpers/cms_helper_spec.rb
415
425
  - spec/helpers/pages_helper_spec.rb
416
426
  - spec/integration/navigation_spec.rb
417
427
  - spec/kuhsaft_spec.rb
@@ -427,6 +437,7 @@ files:
427
437
  - spec/routing/pages_routing_spec.rb
428
438
  - spec/spec_helper.rb
429
439
  - spec/support/kuhsaft_spec_helper.rb
440
+ has_rdoc: true
430
441
  homepage: http://github.com/screenconcept/kuhsaft
431
442
  licenses: []
432
443
 
@@ -456,7 +467,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
456
467
  requirements: []
457
468
 
458
469
  rubyforge_project: kuhsaft
459
- rubygems_version: 1.8.6
470
+ rubygems_version: 1.6.1
460
471
  signing_key:
461
472
  specification_version: 3
462
473
  summary: A tool that helps you to manage your content within your app.
@@ -493,7 +504,6 @@ test_files:
493
504
  - spec/dummy/public/stylesheets/.gitkeep
494
505
  - spec/dummy/script/rails
495
506
  - spec/factories.rb
496
- - spec/helpers/cms_helper_spec.rb
497
507
  - spec/helpers/pages_helper_spec.rb
498
508
  - spec/integration/navigation_spec.rb
499
509
  - spec/kuhsaft_spec.rb
@@ -1,67 +0,0 @@
1
- ## master / rails31
2
-
3
- ### Bug fixes
4
-
5
- ### Improvements
6
-
7
- - fix README on how to integrate devise (rails31) ([@effkay][])
8
-
9
- ## 0.2.5 - August 29, 2011
10
-
11
- ### Bug fixes
12
-
13
- - fix a bug where virtual page tree wasn't available ([@manufaktor][])
14
-
15
- ## 0.2.4 - August 29, 2011
16
-
17
- ### Improvements
18
-
19
- - handle 404s with an ActionController::RoutingError, controllers can optionally implement a `handle_404` method to change behavior ([@manufaktor][])
20
- - Backend now shows the hierarchy breadcrumb when creating a new page ([@manufaktor][])
21
-
22
- ### New features
23
-
24
- ## 0.2.3 - August 19, 2011
25
-
26
- ### Bug fixes
27
-
28
- - update gem versions of dependencies, because some contain bugfixes (linecache, carrierwave) ([@manufaktor][])
29
-
30
- ## 0.3.1 - August 9, 2011
31
-
32
- ### Bug fixes
33
-
34
- - fix image paths and update readme concerning asset pipeline ([@effkay][])
35
-
36
- ### Improvements
37
-
38
- - we have a changelog now! ([@effkay][])
39
-
40
- ### New features
41
-
42
- ## 0.3.0 - August 8, 2011
43
-
44
- ### Improvements
45
-
46
- - moved assets to a rails 3.1 compatible location ([@effkay][])
47
-
48
- ## 0.2.2 - August 5, 2011
49
-
50
- ### Bug fixes
51
-
52
- - `params[:locale]` is now recognized by the PagesController ([@manufaktor][])
53
-
54
- ### Improvements
55
-
56
- - Lots of styling improvements for the backend ([@iphilgood][] & [melinda][])
57
- - Formatted Text textareas now resize smartly according to its content ([@iphilgood][] & [melinda][])
58
- - Added specific delete messages for pages and assets ([@manufaktor][])
59
- - Updated to latest UJS Jquery ([@manufaktor][])
60
- - Backend recognizes a current_user and will display a logout possibility ([@iphilgood][])
61
-
62
-
63
-
64
- [@manufaktor]: https://github.com/manufaktor
65
- [@effkay]: https://github.com/effkay
66
- [@iphilgood]: https://github.com/iphilgood
67
- [melinda]: http://www.melinda-lini.de/
@@ -1,22 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe CmsHelper do
4
- context 'when the user creates a toplevel page' do
5
- describe '#available_parent_pages' do
6
- it 'should return the 2 pages' do
7
- helper.available_parent_pages.should have(2).pages
8
- end
9
- end
10
- end
11
-
12
- describe '#available_parent_pages' do
13
- before do
14
- page1, page2, page3 = create_page_tree
15
- helper.stub!(:params).and_return(:parent_id => page3.id)
16
- end
17
-
18
- it 'should return the parent pages' do
19
- helper.available_parent_pages.should have_at_least(3).pages
20
- end
21
- end
22
- end