bs5 0.0.14 → 0.0.15

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: fe7d17d9f86d5887ab9e3a9cbc86212c19a6ed20526ac905339f6b997c044096
4
- data.tar.gz: 4d2df678ad8595ebff4a123325a84593dee109fe57a614aaa2473a7d88fb5e9c
3
+ metadata.gz: 1f868555ef8de05ff2a59b42efd77e1e43a4322d896ba468075131178f0dc1a7
4
+ data.tar.gz: adbcd1e63ac16714e3b4ee5c5d72266fe687685449b08dbf87aa3b0ea359a8a7
5
5
  SHA512:
6
- metadata.gz: f9a8d6249245234d557749abeecbe37feda5e13cbdf2e749baa96f77ffab0cb1b82d7c9c7e00f6751eda8860b396efb333ef8a7a69ca56908c9cd3f1570b9400
7
- data.tar.gz: 8d4de475b7f904a29ec63bc1845b58a7122fccd366f787616e9f7b7c36e1bba1d4886adc31d0e506de223fea7c84afbaddec553d7d307164adf0c79d949ddb45
6
+ metadata.gz: 46c4e2e6bcb0d65824c993daea510e230c891e3bf7808ed98bbbf9d57997c36b5d01b83864cda9e4bcfa26b6aaff2460ab7d3c153510f852e8c526b58855481b
7
+ data.tar.gz: 43a3f21f7527666fd7499a1e05d14f442976e9a1465f8a4f91d1e3b967f5eb3cff1a0bb8a42c9e4efd8486710039e723c03369df33a28236b83d36bdb26a6a00
data/README.md CHANGED
@@ -32,7 +32,7 @@ $ gem install bs5
32
32
 
33
33
  Run the following command to setup your project to use Bootstrap 5.
34
34
 
35
- $ rails generate bs5:install
35
+ $ bin/rails generate bs5:install
36
36
 
37
37
  ## Contributing
38
38
 
@@ -14,7 +14,7 @@
14
14
  id="<%= item.collapse_id %>"
15
15
  class="<%= item.collapse_class %>"
16
16
  aria-labelledby="<%= item.header_id %>"
17
- data-parent="#<%= id %>"
17
+ data-bs-parent="#<%= id %>"
18
18
  >
19
19
  <div class="accordion-body">
20
20
  <%= item.content %>
@@ -1,6 +1,6 @@
1
1
  <div class="<%= component_class %>" role="alert">
2
2
  <%= content %>
3
3
  <%- if is_dismissable %>
4
- <%= render Bs5::CloseButtonComponent.new(data: { dismiss: :alert }) %>
4
+ <%= render Bs5::CloseButtonComponent.new(data: { 'bs-dismiss': :alert }) %>
5
5
  <%- end %>
6
6
  </div>
@@ -24,8 +24,8 @@ module Bs5
24
24
  private
25
25
 
26
26
  def data_options
27
- options = { toggle: :collapse }
28
- options[:target] = target if target
27
+ options = { 'bs-toggle': :collapse }
28
+ options[:'bs-target'] = target if target
29
29
 
30
30
  options
31
31
  end
@@ -2,6 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>Bs5</title>
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
6
  <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
6
7
  <%= stylesheet_pack_tag 'styles', media: 'all', 'data-turbolinks-track': 'reload' %>
7
8
  <style><%= Rouge::Themes::Github.render(scope: '.highlight') %></style>
@@ -2,6 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>Bs5</title>
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
6
  <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
6
7
  <%= stylesheet_pack_tag 'styles', media: 'all', 'data-turbolinks-track': 'reload' %>
7
8
  <style><%= Rouge::Themes::Github.render(scope: '.highlight') %></style>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bs5
4
- VERSION = '0.0.14'
4
+ VERSION = '0.0.15'
5
5
  end
@@ -5,7 +5,7 @@ module Bs5
5
5
  source_root File.expand_path('templates', __dir__)
6
6
 
7
7
  def add_bootstrap # rubocop:disable Metrics/MethodLength
8
- run 'yarn add bootstrap@next popper.js'
8
+ run 'yarn add bootstrap@next @popperjs/core'
9
9
 
10
10
  create_file 'app/javascript/packs/styles.scss', <<~HEREDOC
11
11
  @import "~bootstrap/scss/bootstrap";
@@ -24,6 +24,7 @@ module Bs5
24
24
  inject_into_file 'app/views/layouts/application.html.erb', before: '</head>' do
25
25
  <<~HEREDOC
26
26
  <%= stylesheet_pack_tag 'styles', media: 'all', 'data-turbolinks-track': 'reload' %>
27
+ <meta name="viewport" content="width=device-width, initial-scale=1">
27
28
  HEREDOC
28
29
  end
29
30
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bs5
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Baselier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-06 00:00:00.000000000 Z
11
+ date: 2020-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri