hicube 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb8d2212d274df96f8df57812e40a3c0b343ba42
4
- data.tar.gz: 4050530a2b1580547c7d1e838eda05f5be208e46
3
+ metadata.gz: 97f922c8ec90edb65b2f7e4bedfbf876b4337ff7
4
+ data.tar.gz: 1d5b9e697a96d5118d932bfc75fc06f9534c1a11
5
5
  SHA512:
6
- metadata.gz: ac632418e8cfc49782ec501bd9853d792d124c050db26ef521e4efa5118b2efeac82a327110c676537dbf51a3107d76b2f62373ba593c6b1aaaa6b0780b43a4b
7
- data.tar.gz: c50009a14bdc851c714c8a321d6336b03aa8fda66ac455e5f2de74f40f58cc0f580505999734a75d2527ce4aae35328a3228a56fe54bbff7759f97802a859b6c
6
+ metadata.gz: d64926b924e89e0f46605abe76250de398eaebc641c546db48abdb977eb5397a00b095e989a7dff36f30ec19147d9151e27f86da05edf428f8d77deb0c66eccd
7
+ data.tar.gz: 7fd717abe4ae3a109fad5aa26eda256b94f1a62dae20d81cbdca4ea3dbbcfb3d97f84173a4a608dbaffcdfeb9d1342756d27af822bebccb98d092643058824a6
@@ -49,8 +49,12 @@ module Hicube
49
49
  f.write ::Liquid::Template.parse(@page.body).render
50
50
  f.close
51
51
 
52
- @page_content = ::Slim::Template.new(filename).render Object.new, links: Hicube::Page.parents.map(&:slug), documents: Hicube::Document.all, id: @page.slug
53
-
52
+ @page_content = ::Slim::Template.new(filename).render (Object.new,
53
+ links: Hicube::Page.parents.map(&:slug),
54
+ header_links: Hicube::Page.parents.headers.map(&:slug),
55
+ footer_links: Hicube::Page.parents.footers.map(&:slug),
56
+ documents: Hicube::Document.all, id: @page.slug
57
+ )
54
58
  end
55
59
 
56
60
  private
@@ -57,9 +57,9 @@ module Hicube
57
57
  '/'
58
58
  end
59
59
 
60
- def header_links
61
- Hicube::Page.parents
62
- end
60
+ # def header_links
61
+ # Hicube::Page.parents
62
+ # end
63
63
 
64
64
  def snippet_render(name)
65
65
  snippet = Hicube::Snippet.find_by(name: name)
data/lib/hicube/engine.rb CHANGED
@@ -1,11 +1,5 @@
1
1
  module Hicube
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace Hicube
4
-
5
- initializer 'hicube.assets.precompile' do |app|
6
- %w(stylesheets javascripts img).each do |sub|
7
- app.config.assets.paths << root.join('vendor', 'assets', sub)
8
- end
9
- end
10
4
  end
11
5
  end
@@ -1,3 +1,3 @@
1
1
  module Hicube
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hicube
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaurav Cheema