vivus 1.0.8 → 1.0.9

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: b185bf25bd7e7ba47b047943c0456c2f82e271b3
4
- data.tar.gz: 8429dc067fd83b962aed851a24cd451c3d60b626
3
+ metadata.gz: 0b09e5c70b0d9dd24dccf5292468e4a6350616b4
4
+ data.tar.gz: 0884aa0edff4481e0ebd51de6ff154e74d1ae49c
5
5
  SHA512:
6
- metadata.gz: fc3e6369648090da445ccbd0342e723dc9fd0d88aa3164f97acab5b9d0f9dcef0ae359742e08c07d18797484410b9ecf0c58c5988c120b46335b142509d535c7
7
- data.tar.gz: b2b0d125f085af2359d257a9eb998d88bcaa518ef363e08ed4634ccea8adc042c500dabbcc6c3f1d7b664535972461039d58d8ae3ba10038dcc409c864331fa2
6
+ metadata.gz: 348c6b4c6051caab33c4156e1db01d63a50d62913600cef8320ebb785f79b56981025720d808521337c034ed9722758edd8011d06073e9fb4b5d2769423479e6
7
+ data.tar.gz: 2c11534c78a748c2c172988726e2cd6bdd68e606d0c41d4e730485258b0968a98eac96099baf687289c2d8c25f5184fa87f88f7f30cb84782ea35a941f2f7c6e
@@ -10,7 +10,7 @@
10
10
 
11
11
  <% if components.present? %>
12
12
  <ul>
13
- <% components.each do |component| %>
13
+ <% components.uniq{|c| c.name}.each do |component| %>
14
14
  <li class="h2">
15
15
  <%= link_to component.name, vivus_section_path(section_slug, anchor: component.slug) %>
16
16
  </li>
@@ -1,11 +1,13 @@
1
1
  <%= render partial: "nav" %>
2
2
  <div id="vivus-body">
3
3
  <ul class="vivus-sections">
4
+
4
5
  <% @stylesheets.select{ |section| section.downcase.gsub(/[^a-z1-9]+/, '-').chomp('-') == params[:section]}.each do |title, components| %>
6
+
5
7
  <li class="vivus-section">
6
8
  <h1 class="vivus-section-title"><%= title %></h1>
7
9
  <ul class="vivus-components">
8
- <%= render partial: "component", collection: components %>
10
+ <%= render partial: "component", collection: components.uniq{|c| c.name} %>
9
11
  </ul>
10
12
  </li>
11
13
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Vivus
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vivus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Cipolla
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-18 00:00:00.000000000 Z
11
+ date: 2014-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails