bullet_train-themes 1.11.0 → 1.12.1

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: dfd104742656d64e7e77f601eff6684873464aedaf489d59350e0638dce1c923
4
- data.tar.gz: d19bfe15ba0d4fedb5bf80218176feab38fcd2fb63e751329da3d4d9a9ca8330
3
+ metadata.gz: acd1b538a95797c170167ec3eaca11c287a54e4d30e4fc11c8c6dcc4e0d87b9d
4
+ data.tar.gz: 73498956460b7c2e0e665872f70d8d239fa13596b33f3faf25e40c24b3cc4ea2
5
5
  SHA512:
6
- metadata.gz: 7879b62b2a7d15dbe084841330d51c23136872a2eb1b47022c1ee29a6abac597ff1e012f25f6deb9a6d375dd71326069c2c6d2ca26b1184b16836ae77f32910e
7
- data.tar.gz: 9c07a22b33c1efcd05e8eadf12942cac53bb96ce7eb2bf56992bd3f4ae28d9e396a1cf4b1416b79381391d816f6bbd33b6508a3697fd38c30a715b8c2ae8b827
6
+ metadata.gz: 1da44f98665d5ec697bfb692025fa4f49c9c4a823a44247923426a56246e21a23b0fd9e27f61391e8b352843b55e4ba8734610868bdbae0a36bf292d0f1fbe1f
7
+ data.tar.gz: aa754f8852625f3a9ce80b42fc3ce1394e9e48c323c4a050839cc7300289b03991a1f0fffeb1e57c44a6b6727ed275c94160f38abf44c06318b6785e23c828ec
@@ -28,3 +28,11 @@ options[:data][:topics] ||= []
28
28
  <% end %>
29
29
  <% end %>
30
30
  </div>
31
+
32
+ <% if options[:disabled] %>
33
+ <script charset="utf-8">
34
+ document.addEventListener("trix-initialize", function() {
35
+ document.getElementById("<%= field_id(form.object, method) %>").editor.element.setAttribute('contentEditable', false)
36
+ });
37
+ </script>
38
+ <% end %>
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.11.0"
3
+ VERSION = "1.12.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-themes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-25 00:00:00.000000000 Z
11
+ date: 2024-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: simplecov
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rails
29
43
  requirement: !ruby/object:Gem::Requirement