bs5_expandable_list_group 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 53968aced77ec5891c98c1ecbcdfc9a7011a88b1d04893fdddc51f296eb6b4c5
4
- data.tar.gz: 79820d54b461d866e1f12f1896942d8e7f27bcd2e04251da3df8d0bc178d5f4d
3
+ metadata.gz: 30a9741e2db343705798e530a281b129e13ee85b96a182c74fd7c8de396aca58
4
+ data.tar.gz: d50e37ebe410d65accbe6628a266ea8e5ee09d1ab631be64ae63d589272ba891
5
5
  SHA512:
6
- metadata.gz: d9659802b3e4619a59bcc748ec5a5ded01e46ecae3b158ba304baf8837385ffdfa089792a8ec5632f7e009c6f223c19930609be6eff770c7015c4fb1bc15cf0d
7
- data.tar.gz: 1d0771ec4518307e8b5b6ee7e28aec4fbd3f398d13f93537ddc5334a53beb82942a90423e99592e79967db262f430afc50c698f2a74705fc3c4b865260460618
6
+ metadata.gz: a86b30b077436c266a577acff80896d4ae2eba25184a2e70657737b38d00e75a0ed25b582ed68c99ef620ae59c0c716f8b74353763c73451deedcfd15c57f15c
7
+ data.tar.gz: 2b420bd071decfe498f2ae564367250e1d5fb639bfeaa5a9b1dce40cc5abd2e682ad84f39887eda8c539f30281e841a84a1ee134a462ed001d08956267e5f8e0
data/README.md CHANGED
@@ -126,7 +126,7 @@ To show one set:
126
126
  ...
127
127
  <% c.item do |i| %>
128
128
  <%= i.title do |t| %>
129
- ...
129
+ ...
130
130
  <% end %>
131
131
  <% i.actions do %>
132
132
  <%= link_to 'Delete', post, method: :delete, class: 'btn btn-sm btn-outline-danger' %>
@@ -142,14 +142,14 @@ To show a different set on hovering:
142
142
  ...
143
143
  <% c.item do |i| %>
144
144
  <%= i.title do |t| %>
145
- ...
145
+ ...
146
146
  <% end %>
147
147
  <% i.actions do |a| %>
148
- <% a.collapsed %>
148
+ <% a.collapsed do %>
149
149
  <%= link_to 'Delete', post, method: :delete, class: 'btn btn-sm btn-outline-danger' %>
150
150
  <%= link_to 'Edit', edit_post_path(post), class: 'btn btn-sm btn-outline-secondary' %>
151
151
  <% end %>
152
- <% a.expanded %>
152
+ <% a.expanded do %>
153
153
  <%= link_to 'Details', post_path(post), class: 'btn btn-sm btn-outline-secondary' %>
154
154
  <%= link_to 'Comment' ... %>
155
155
  <%= link_to 'Delete', post, method: :delete, class: 'btn btn-sm btn-outline-danger' %>
@@ -174,7 +174,7 @@ This will render just a [list group item](https://getbootstrap.com/docs/5.0/comp
174
174
  <% end %>
175
175
  <% end %>
176
176
  <% if @posts.next_page %>
177
- <% c.item %>
177
+ <% c.item do %>
178
178
  <%= link_to_next_page @posts "Load more" %>
179
179
  <% end %>
180
180
  <% end %>
@@ -32,7 +32,7 @@ module Bs5
32
32
  if wrapper_html?
33
33
  tag.send(wrapper_tag, **wrapper_html, &block)
34
34
  else
35
- yield
35
+ capture { block.call }
36
36
  end
37
37
  end
38
38
 
@@ -1,3 +1,3 @@
1
1
  module Bs5ExpandableListGroup
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bs5_expandable_list_group
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Baselier
@@ -86,7 +86,9 @@ dependencies:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
- description: Description of Bs5ExpandableListGroup.
89
+ description: Bootstrap 5 expandable list group is a Ruby on Rails engine and gives
90
+ you a simple API for creating expandable and stretchable list groups. A bit like
91
+ Bootstrap 5's Accordion, Collapse and List group components combined.
90
92
  email:
91
93
  - patrick.baselier@gmail.com
92
94
  executables: []
@@ -148,5 +150,6 @@ requirements: []
148
150
  rubygems_version: 3.2.3
149
151
  signing_key:
150
152
  specification_version: 4
151
- summary: Summary of Bs5ExpandableListGroup.
153
+ summary: Rails engine for creating expandable and stretchable list groups with Bootstrap
154
+ 5
152
155
  test_files: []