rails_accordion 0.1.10.pre.beta → 0.1.12.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: 69e17b962522e43231f883b4351da85466cea94decf851f9a8097ecad0efc95b
4
- data.tar.gz: '08288fa6d7aba855336aa6ac4eb8a5d747a7adee49dffb28a43e8dd789ddebef'
3
+ metadata.gz: c244471d0787356eefa06399b40b2b04976031b8f8cf2e9f3f4963e4d21d9d33
4
+ data.tar.gz: ec849e00e61d79708ac48f7e4a9ab542a1db6f0cca8a1758080ffc67bf914ec9
5
5
  SHA512:
6
- metadata.gz: c22caab1fcb5e8012f921f9282c8c1fe3076d93b0261d4fabb98928d9b3fe35bd03360e191b9646dceec34963d4142523547f8cb9401bf2606a201379da23a95
7
- data.tar.gz: 5af2c478ef328ca0e2d835b0b7e54fb6a4967bf018b9bb0794db0b00d3574d5d18d1d357bf0231f7b1bfada611e71db2eb2bf0debb85b94ce49555b1ddb1e37b
6
+ metadata.gz: 509645eec227f7f356a587a5548a2f699bbae8529fc318d6a973503eadb2f67beb826f65404747d977e1fa354c00052f338f57b0e691875fd0c72ba5f0c57d4b
7
+ data.tar.gz: c50a9e77ba5d477464f3976e39e2fde7e4a8d6dfddcd79f3ef0b7599da80561740e3f6ae41429734c9dd3a4d2be572bbd2ddee3a6e07bfcbe20e11d181169149
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in rails_accordion.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+ gem "rspec", "~> 3.0"
10
+ gem "rubocop", "~> 1.21"
11
+ gem "stimulus-rails", "~> 1.2"
12
+ gem "view_component", "~> 2.52"
13
+ gem "zeitwerk", "~> 2.6"
data/Gemfile.lock ADDED
@@ -0,0 +1,126 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rails_accordion (0.1.12.pre.beta)
5
+ stimulus-rails (~> 1.2)
6
+ view_component (~> 2.52)
7
+ zeitwerk (~> 2.6)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actionpack (6.1.7.3)
13
+ actionview (= 6.1.7.3)
14
+ activesupport (= 6.1.7.3)
15
+ rack (~> 2.0, >= 2.0.9)
16
+ rack-test (>= 0.6.3)
17
+ rails-dom-testing (~> 2.0)
18
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
19
+ actionview (6.1.7.3)
20
+ activesupport (= 6.1.7.3)
21
+ builder (~> 3.1)
22
+ erubi (~> 1.4)
23
+ rails-dom-testing (~> 2.0)
24
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
25
+ activesupport (6.1.7.3)
26
+ concurrent-ruby (~> 1.0, >= 1.0.2)
27
+ i18n (>= 1.6, < 2)
28
+ minitest (>= 5.1)
29
+ tzinfo (~> 2.0)
30
+ zeitwerk (~> 2.3)
31
+ ast (2.4.2)
32
+ builder (3.2.4)
33
+ concurrent-ruby (1.2.2)
34
+ crass (1.0.6)
35
+ diff-lcs (1.5.0)
36
+ erubi (1.12.0)
37
+ i18n (1.13.0)
38
+ concurrent-ruby (~> 1.0)
39
+ json (2.6.3)
40
+ loofah (2.21.2)
41
+ crass (~> 1.0.2)
42
+ nokogiri (>= 1.12.0)
43
+ method_source (1.0.0)
44
+ minitest (5.18.0)
45
+ nokogiri (1.13.10-arm64-darwin)
46
+ racc (~> 1.4)
47
+ nokogiri (1.13.10-x86_64-darwin)
48
+ racc (~> 1.4)
49
+ nokogiri (1.13.10-x86_64-linux)
50
+ racc (~> 1.4)
51
+ parallel (1.23.0)
52
+ parser (3.2.2.1)
53
+ ast (~> 2.4.1)
54
+ racc (1.6.2)
55
+ rack (2.2.7)
56
+ rack-test (2.1.0)
57
+ rack (>= 1.3)
58
+ rails-dom-testing (2.0.3)
59
+ activesupport (>= 4.2.0)
60
+ nokogiri (>= 1.6)
61
+ rails-html-sanitizer (1.5.0)
62
+ loofah (~> 2.19, >= 2.19.1)
63
+ railties (6.1.7.3)
64
+ actionpack (= 6.1.7.3)
65
+ activesupport (= 6.1.7.3)
66
+ method_source
67
+ rake (>= 12.2)
68
+ thor (~> 1.0)
69
+ rainbow (3.1.1)
70
+ rake (13.0.6)
71
+ regexp_parser (2.8.0)
72
+ rexml (3.2.5)
73
+ rspec (3.12.0)
74
+ rspec-core (~> 3.12.0)
75
+ rspec-expectations (~> 3.12.0)
76
+ rspec-mocks (~> 3.12.0)
77
+ rspec-core (3.12.2)
78
+ rspec-support (~> 3.12.0)
79
+ rspec-expectations (3.12.3)
80
+ diff-lcs (>= 1.2.0, < 2.0)
81
+ rspec-support (~> 3.12.0)
82
+ rspec-mocks (3.12.5)
83
+ diff-lcs (>= 1.2.0, < 2.0)
84
+ rspec-support (~> 3.12.0)
85
+ rspec-support (3.12.0)
86
+ rubocop (1.50.2)
87
+ json (~> 2.3)
88
+ parallel (~> 1.10)
89
+ parser (>= 3.2.0.0)
90
+ rainbow (>= 2.2.2, < 4.0)
91
+ regexp_parser (>= 1.8, < 3.0)
92
+ rexml (>= 3.2.5, < 4.0)
93
+ rubocop-ast (>= 1.28.0, < 2.0)
94
+ ruby-progressbar (~> 1.7)
95
+ unicode-display_width (>= 2.4.0, < 3.0)
96
+ rubocop-ast (1.28.1)
97
+ parser (>= 3.2.1.0)
98
+ ruby-progressbar (1.13.0)
99
+ stimulus-rails (1.2.1)
100
+ railties (>= 6.0.0)
101
+ thor (1.2.2)
102
+ tzinfo (2.0.6)
103
+ concurrent-ruby (~> 1.0)
104
+ unicode-display_width (2.4.2)
105
+ view_component (2.82.0)
106
+ activesupport (>= 5.2.0, < 8.0)
107
+ concurrent-ruby (~> 1.0)
108
+ method_source (~> 1.0)
109
+ zeitwerk (2.6.8)
110
+
111
+ PLATFORMS
112
+ arm64-darwin-22
113
+ x86_64-darwin-20
114
+ x86_64-linux
115
+
116
+ DEPENDENCIES
117
+ rails_accordion!
118
+ rake (~> 13.0)
119
+ rspec (~> 3.0)
120
+ rubocop (~> 1.21)
121
+ stimulus-rails (~> 1.2)
122
+ view_component (~> 2.52)
123
+ zeitwerk (~> 2.6)
124
+
125
+ BUNDLED WITH
126
+ 2.4.13
data/README.md ADDED
@@ -0,0 +1,66 @@
1
+ # RailsAccordion
2
+
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.
4
+
5
+ ## Installation
6
+
7
+ ```rb
8
+ gem 'rails_accordion', '~> 0.1.12.pre.beta'
9
+ ```
10
+
11
+ ```shell
12
+ bundle install
13
+ ```
14
+
15
+ ```shell
16
+ rails generate rails_accordion:install
17
+ ```
18
+
19
+ In config/importmap.rb, add:
20
+
21
+ ```rb
22
+ pin "rails_accordion", to: "rails_accordion.js"
23
+ ```
24
+
25
+ And in app/javascript/application.js, add:
26
+ ```js
27
+ import 'rails_accordion'
28
+ ```
29
+
30
+ in application.scss, add:
31
+ ```scss
32
+ @import 'rails_accordion'
33
+ ```
34
+
35
+ ## Usage
36
+
37
+ ```erb
38
+ <%= accordion class: "bg-white rounded-xl overflow-auto", data: {controller: "tooltip"} do %>
39
+ <%= accordion_item do |item| %>
40
+ <% item.header do %>
41
+ Hello world
42
+ <% end %>
43
+ <% item.body do %>
44
+ Hello accordion body
45
+ <% end %>
46
+ <% end %>
47
+ <% end %>
48
+ ```
49
+
50
+ ## Development
51
+
52
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
53
+
54
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
55
+
56
+ ## Contributing
57
+
58
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rails_accordion. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/rails_accordion/blob/master/CODE_OF_CONDUCT.md).
59
+
60
+ ## License
61
+
62
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
63
+
64
+ ## Code of Conduct
65
+
66
+ Everyone interacting in the RailsAccordion project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/rails_accordion/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]