xhive 1.2.1.pre → 1.3.0.pre

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,9 @@
1
+ module Xhive
2
+ class PageCell < Cell::Base
3
+ def inline(params)
4
+ site = params[:site].present? ? Xhive::Site.find(params[:site]) : Xhive::Site.first
5
+ page = site.pages.find(params[:id])
6
+ page.present_content(params)
7
+ end
8
+ end
9
+ end
@@ -1,8 +1,9 @@
1
1
  module Xhive
2
2
  class StylesheetCell < BaseCell
3
3
  def inline(params)
4
- @stylesheet = Xhive::Stylesheet.find(params[:id])
5
- "<style type='text/css'>#{@stylesheet.presenter.compressed}</style>"
4
+ site = params[:site].present? ? Xhive::Site.find(params[:site]) : Xhive::Site.first
5
+ stylesheet = site.stylesheets.find(params[:id])
6
+ "<style type='text/css'>#{stylesheet.presenter.compressed}</style>"
6
7
  end
7
8
  end
8
9
  end
data/lib/xhive/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xhive
2
- VERSION = "1.2.1.pre"
2
+ VERSION = "1.3.0.pre"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xhive
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1.pre
4
+ version: 1.3.0.pre
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-14 00:00:00.000000000 Z
12
+ date: 2012-11-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -233,6 +233,7 @@ files:
233
233
  - app/assets/stylesheets/xhive/application.css
234
234
  - app/assets/stylesheets/xhive/pages.css
235
235
  - app/cells/base_cell.rb
236
+ - app/cells/xhive/page_cell.rb
236
237
  - app/cells/xhive/stylesheet_cell.rb
237
238
  - app/controllers/xhive/application_controller.rb
238
239
  - app/controllers/xhive/images_controller.rb
@@ -297,7 +298,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
297
298
  version: '0'
298
299
  segments:
299
300
  - 0
300
- hash: 2967828758709563627
301
+ hash: 392995254434772394
301
302
  required_rubygems_version: !ruby/object:Gem::Requirement
302
303
  none: false
303
304
  requirements: