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.
- data/app/cells/xhive/page_cell.rb +9 -0
- data/app/cells/xhive/stylesheet_cell.rb +3 -2
- data/lib/xhive/version.rb +1 -1
- metadata +4 -3
@@ -1,8 +1,9 @@
|
|
1
1
|
module Xhive
|
2
2
|
class StylesheetCell < BaseCell
|
3
3
|
def inline(params)
|
4
|
-
|
5
|
-
|
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
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.
|
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-
|
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:
|
301
|
+
hash: 392995254434772394
|
301
302
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
302
303
|
none: false
|
303
304
|
requirements:
|