bullet_train 1.3.13 → 1.3.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: cebee7b2e16992167700e7be651823752180c0a94ac4dceb2000bb1363b62d9e
4
- data.tar.gz: bb64b9ea40fea04936812eabf14cc9b0261c4d11a2f8ff9c62de17ea756de55d
3
+ metadata.gz: 3fc370d1121df2825260d53e2b73da43644b952399992e520f2159522c3fa909
4
+ data.tar.gz: fd9ebef2d20fa5dec15e76b8500d44ea44f179177956d14170d882b70041c11d
5
5
  SHA512:
6
- metadata.gz: a4861d4e94ad6060fae8d4ea6859c6569c9acb3c1f7765675cee1d6d473850657ae2a7c6fcdff2f5e89b5524575ff11b9dca3d962ab732502b6615c255bd06ff
7
- data.tar.gz: dec3c199b727d7dac9e9f9b188b332aa049dddbf3380c7d156b07ca91903d46ccf473ee339d1b238d0588953035bd28454fce16acf1a68ba14baf3e415386063
6
+ metadata.gz: 544da7e87dd48e0503177822ec55e539885232da7e642a25adbe54538781e0603da94bd1a1031b9f43391b981b44724c5ee665b13ecd5992e0e1ba94b6fab4e5
7
+ data.tar.gz: 0d1c5bda4b465a70a6f9f1738d43d892c2c60d23b13e07a4331714bfc9a7019ecbf99f55173eb0f921938238e4087d9d64f8a93582f0efbcad41da0e9925a2a7
@@ -2,6 +2,7 @@ module Account::MarkdownHelper
2
2
  def markdown(string)
3
3
  if defined?(Commonmarker.to_html)
4
4
  Commonmarker.to_html(string, options: {
5
+ extensions: {header_ids: true},
5
6
  plugins: {syntax_highlighter: {theme: "InspiredGitHub"}},
6
7
  render: {width: 120, unsafe: true}
7
8
  }).html_safe
@@ -4,7 +4,7 @@ module AttributesHelper
4
4
  end
5
5
 
6
6
  def current_attributes_strategy
7
- @_current_attributes_settings&.dig(:strategy)
7
+ @_current_attribute_settings&.dig(:strategy)
8
8
  end
9
9
 
10
10
  def with_attribute_settings(object: current_attributes_object, strategy: current_attributes_strategy)
@@ -355,7 +355,7 @@
355
355
  <div class="py-2 px-1">
356
356
  <div class="mx-auto sm:px-6 sm:py-4 px-2">
357
357
  <div class="bg-white rounded-md shadow sm:py-14 sm:px-12 py-10 px-7">
358
- <div class="prose" style="max-width: none;">
358
+ <div class="prose" style="max-width: none;" id="bt-docs-content">
359
359
  <%= yield %>
360
360
  </div>
361
361
  </div>
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  class Configuration
3
3
  include Singleton
4
- attr_accessor :strong_passwords
4
+ attr_accessor :strong_passwords, :incoming_webhooks_parent_class_name
5
5
 
6
6
  @@config = nil
7
7
 
@@ -10,12 +10,17 @@ module BulletTrain
10
10
 
11
11
  # Default values
12
12
  @strong_passwords = true
13
+ @incoming_webhooks_parent_class_name = "ApplicationRecord"
13
14
  end
14
15
 
15
16
  class << self
16
17
  def strong_passwords
17
18
  @@config&.strong_passwords
18
19
  end
20
+
21
+ def incoming_webhooks_parent_class_name
22
+ @@config&.incoming_webhooks_parent_class_name
23
+ end
19
24
  end
20
25
  end
21
26
  end
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.3.13"
2
+ VERSION = "1.3.15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.13
4
+ version: 1.3.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-23 00:00:00.000000000 Z
11
+ date: 2023-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard