lines-engine 0.4.5 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9b5e3a26036072bb2901ef8079d3db346267714
4
- data.tar.gz: 112b3d8163c8c00d723fecbaaab13b5bb45b74cb
3
+ metadata.gz: 7707a5c9fa3b93b41456dfe4fa66b750d79544cf
4
+ data.tar.gz: 18212bc967c89d0eaba2d3fe2c4410ca4b68ee8c
5
5
  SHA512:
6
- metadata.gz: a27f000ce5f5aed63aeddcbe8bc0720290eda7788292b90873dec0cb7503ea66a1b0a7582847f508a9c4ab14483f4a2f409b37db276b2711f82a928ad9e70305
7
- data.tar.gz: cc6548a98969104a265a1a79e5008a30400223307a02e758c82914d5a37926ff9a5080c94bde49da1a42811d27df406fd02b81a6ffb7448d7440a451b13f0ab7
6
+ metadata.gz: 2405705ea0961b7a61a9bb9207850aa7037cd6f8d4524e7eb83490f45640e3e3eb97a1abeb597697a46471bc447a8034e1335af4379c0475f79d4454e2d5f84c
7
+ data.tar.gz: d034478226878ddd5ad6b517032c6472111cdbe86e7ee78937a5e08a8e051cb3046a1d01cedce723711c3e297a25b7f76211052211fafe093d933878e67cf215
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.6
4
+
5
+ - Fixed caching bug.
6
+
3
7
  ## 0.4.5
4
8
 
5
9
  - BUGFIX: stylesheet for pagination is now included correctly
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lines-engine (0.4.5)
4
+ lines-engine (0.4.6)
5
5
  acts-as-taggable-on (~> 3.2.6, >= 3.2.6)
6
6
  bcrypt (~> 3.1.0, >= 3.1.0)
7
7
  carrierwave (~> 0.10.0, >= 0.10.0)
@@ -1,4 +1,4 @@
1
- <div class="article <%= (article_counter < 0) ? 'first' : 'small' %>">
1
+ <div class="article first">
2
2
 
3
3
  <% cache article do %>
4
4
 
@@ -1,4 +1,4 @@
1
- <%= render article_collection, article: article_collection, article_counter: article_collection_counter %>
1
+ <%= render partial: 'article_small', locals: { article_small: article_collection, article_counter: article_collection_counter } %>
2
2
 
3
3
  <% if (article_collection_counter % 2) != 0 %>
4
4
  <div class="breaker" style="clear:both;height:1px;line-height:1px">&nbsp;</div>
@@ -0,0 +1,22 @@
1
+ <div class="article small">
2
+ <% cache "#{article_small}_small" do %>
3
+ <div class="hero_image">
4
+ <%= link_to article_path(article_small), { style: "background-image:url('#{article_small.image_url}')" } do %>
5
+ <img src="<%= article_small.image_url %>" alt="<%= article_small.title %>" />
6
+ <% end %>
7
+ </div>
8
+
9
+ <div class="article_header">
10
+ <h1><%= link_to article_small.title, article_path(article_small) %></h1>
11
+ <h2><%= article_small.sub_title %></h2>
12
+ <div class="author_name"><span>by</span> <%= display_article_authors(article_small) %></div>
13
+ </div>
14
+
15
+ <div class="article_teaser">
16
+ <%= render_teaser(article_small) %>
17
+ <div class="more-link">
18
+ <%= link_to "Read full article", article_path(article_small) %>
19
+ </div>
20
+ </div>
21
+ <% end %>
22
+ </div>
@@ -1,12 +1,11 @@
1
1
  <% content_for :head, auto_discovery_link_tag(:atom, articles_url(format: "atom")) %>
2
-
3
2
  <div class="rss">
4
- <%= link_to image_tag("feed-icon-28x28.png"), articles_url(format: "atom") %>
3
+ <%= link_to image_tag("ic_rss.png"), articles_url(format: "atom") %>
5
4
  </div>
6
5
 
7
6
  <div id="articles">
8
7
  <%= render partial: 'article', locals: { article: @first_article, article_counter: -1 } unless @first_article.nil? %>
9
- <%= render partial: "article_collection", collection: @articles %>
8
+ <%= render partial: 'article_collection', collection: @articles %>
10
9
  </div>
11
10
 
12
11
  <% if @articles.num_pages > 1 %>
data/lib/lines/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lines
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lines-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Opoloo GbR
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-22 00:00:00.000000000 Z
11
+ date: 2015-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter
@@ -687,6 +687,7 @@ files:
687
687
  - app/views/lines/admin/pictures/destroy.js.erb
688
688
  - app/views/lines/articles/_article.html.erb
689
689
  - app/views/lines/articles/_article_collection.html.erb
690
+ - app/views/lines/articles/_article_small.html.erb
690
691
  - app/views/lines/articles/index.atom.builder
691
692
  - app/views/lines/articles/index.html.erb
692
693
  - app/views/lines/articles/show.html.erb