bullet_train-themes 1.11.0 → 1.12.0

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: 136b28758b937f1720822d43fa46933c97128f5abeb9c30a83c354ce37338faa
4
+ data.tar.gz: 6d2cfcc9b36e737ae55efd19178103b0dab2065032df0dedc359d5a4c7c74c11
5
5
  SHA512:
6
- metadata.gz: 7879b62b2a7d15dbe084841330d51c23136872a2eb1b47022c1ee29a6abac597ff1e012f25f6deb9a6d375dd71326069c2c6d2ca26b1184b16836ae77f32910e
7
- data.tar.gz: 9c07a22b33c1efcd05e8eadf12942cac53bb96ce7eb2bf56992bd3f4ae28d9e396a1cf4b1416b79381391d816f6bbd33b6508a3697fd38c30a715b8c2ae8b827
6
+ metadata.gz: 37adb5c3f1119dcbaabe601a316b58040958c95532dbecfe119523fe029664c60168baca6fdcec2ddf15f025cb46887ffabfb44acdbd3e028773fdac6738561e
7
+ data.tar.gz: 195437aae471991bd096536f8268c044d52f684edb42fa5adf3f91eed4a091a7492d8219ebb465473f2d81cd6f7619bf4f0231053378c726530aa16f006b4c6d
@@ -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.0"
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.0
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-10 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