rails_accordion 0.1.5.pre.beta → 0.1.6.pre.beta

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
  SHA256:
3
- metadata.gz: ff481f08fc6909483bcb8be004d23f34871b03743beed4dad4079c039ee61732
4
- data.tar.gz: 875095bdc66e3ccd30f9b133a6f66a3c46ac830b29b783a80ece2cd1d281b49a
3
+ metadata.gz: 2ea3fe333f60ade1175aa01c95276b51dfc63926872b0796986a8f45b2f7d1bc
4
+ data.tar.gz: e74020dbf76050ee024f7220164289578ded3a57bfc41f89a8d05f0726091855
5
5
  SHA512:
6
- metadata.gz: 9fc5c914c9826cb62238cfd6e826404b8e864a6d025682fe15fb68cf4c1d925c79eb4b8b4829f33fccc243b4ae2a1aeaf88f8ab854920754fce84645f63d6048
7
- data.tar.gz: a543be6a95a177af5312e693bc7d4789a8b62ed35f9f7c57de33eceac0cd50978a49c8b3d0af939e5b7427d800ba6865e21277b6a6c772e758ddd52c586d509a
6
+ metadata.gz: 15d0ebc7d8fb88b0b70c25b5f4f97537c62e9a845342cffcaba296e39eac0b205c3feeef9d9b1e1f74bdfd8227d513c7107f8e5e217b1baa26a7f85a8c971763
7
+ data.tar.gz: 885ad23a42b4bdbc3f841f5d33901742e7fa1b6ba74f74934394cccdde3e8ebe51d8e7cbd1d0188e314a196a2fae86bd928debdc629643921c050c54c72b127b
data/README.md CHANGED
@@ -1,24 +1,35 @@
1
1
  # RailsAccordion
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rails_accordion`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ rails_accordion is a Ruby gem that provides an easy-to-use accordion component for use in Rails web applications. With this gem, developers can create collapsible sections of content that can be expanded or collapsed with a single click. The accordion is a great way to improve the user experience of your web application, by providing a clean and intuitive way to display complex information.
6
4
 
7
5
  ## Installation
8
6
 
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
- Install the gem and add to the application's Gemfile by executing:
12
-
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
7
+ ```rb
8
+ gem 'rails_accordion'
9
+ ```
14
10
 
15
- If bundler is not being used to manage dependencies, install the gem by executing:
11
+ ```bash
12
+ bundle install
13
+ ```
16
14
 
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
15
+ ```bash
16
+ rails generate rails_accordion:install
17
+ ```
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ ```erb
22
+ <%= accordion class: "bg-white rounded-xl overflow-auto", data: {controller: "tooltip"} do %>
23
+ <%= accordion_item do |item| %>
24
+ <% item.header do %>
25
+ Hello world
26
+ <% end %>
27
+ <% item.body do %>
28
+ Hello accordion body
29
+ <% end %>
30
+ <% end %>
31
+ <% end %>
32
+ ```
22
33
 
23
34
  ## Development
24
35
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsAccordion
4
- VERSION = "0.1.5-beta"
4
+ VERSION = "0.1.6-beta"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_accordion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5.pre.beta
4
+ version: 0.1.6.pre.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ahmadshoh Nasrullozoda