tinymce-rails 5.10.7 → 5.10.7.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: 39d20eb5e06bb92de8edd49990f50ea436b923e78d81826c6338fd3f3bf4ddfd
4
- data.tar.gz: 6894c7b8084f43cf4671789f9e2fe1a8d8c70233fb4c85259026fb57ad5d617d
3
+ metadata.gz: 3433812a62063e2c0bdd391b4da0be774b8437a8f084ff21cf968956ea58b990
4
+ data.tar.gz: bf3f60aaf12ca77491f10519d69e56a6615a720285a74a8b2a7bca6ac5cfe1a6
5
5
  SHA512:
6
- metadata.gz: 307ba81d6c20a00415c50e65d4db4eab2f850f5ecb17a1188d05c50d065ef29743ec062d5d5a6647c7bcd12b5ad32bb61ea3e35140a80575c5ddfada94a906ec
7
- data.tar.gz: 32ae057d1662ee255581ee0ae6a37174aca6b39219cafeb93f8933881d43fd130ff61f97a1ac0a1a14d6b51e2c187e05ac96c28e26ddd9209537986c66610f7a
6
+ metadata.gz: f38eadb9fd76c28c57d5ae35c0d33718bfb66492ae21a4ce8fdfd4e357ee4b68a465ce9341d6d35735aafd092720c2662c3b16cba1043a846d37c2677600feb9
7
+ data.tar.gz: 232c70d4fed9a26ab9e1ae9ca77313324313e5ba289d8e5187d524491f37d522aeb18dd800d16fd5bd0862b5e4bc42eac7740b131b4a2d07c3f0b90f7b65cd72
data/README.md CHANGED
@@ -3,11 +3,11 @@ Rails Integration for TinyMCE
3
3
 
4
4
  The `tinymce-rails` gem integrates the [TinyMCE](https://www.tiny.cloud/) editor with the Rails asset pipeline.
5
5
 
6
- This gem is compatible with Rails 4.2 and higher.
6
+ This gem is compatible with Rails 5.0 and higher.
7
7
 
8
8
  This is the branch for TinyMCE 5. Please see the [`main`](https://github.com/spohlenz/tinymce-rails) branch for TinyMCE 6, and alternate branches for For [TinyMCE 4](https://github.com/spohlenz/tinymce-rails/tree/tinymce-4) & [TinyMCE 3](https://github.com/spohlenz/tinymce-rails/tree/tinymce-3).
9
9
 
10
- [![Build Status](https://travis-ci.org/spohlenz/tinymce-rails.svg?branch=master)](https://travis-ci.org/spohlenz/tinymce-rails)
10
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/spohlenz/tinymce-rails/rspec.yml?branch=tinymce-5)](https://github.com/spohlenz/tinymce-rails/actions?query=branch%3Atinymce-5)
11
11
 
12
12
  **New in 3.5.11, 4.1.10 and 4.2.1:** Alternative asset installation methods (copy vs compile/symlink). See the [Asset Compilation](#asset-compilation) section below for details.
13
13
 
@@ -15,7 +15,7 @@ module TinyMCE::Rails
15
15
  }
16
16
  end
17
17
 
18
- FUNCTION_REGEX = /^function\s*\(/
18
+ FUNCTION_REGEX = /^function\s*\(([\w\d\s_,]*)\)\s*\{([^}]*)\}|\(([\w\d\s_,]*)\)\s*=>\s*\{([^}]*)\}/
19
19
  RELATIVE_PATH_REGEX = /^(\/|\.{1,2})\S*/
20
20
 
21
21
  COMMA = ",".freeze
@@ -43,7 +43,8 @@ module TinyMCE::Rails
43
43
  end
44
44
 
45
45
  def load_yaml(path)
46
- YAML::load(ERB.new(IO.read(path)).result)
46
+ result = ERB.new(IO.read(path)).result
47
+ YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(result) : YAML.load(result)
47
48
  end
48
49
  end
49
50
  end
@@ -1,6 +1,6 @@
1
1
  module TinyMCE
2
2
  module Rails
3
- VERSION = "5.10.7"
3
+ VERSION = "5.10.7.1"
4
4
  TINYMCE_VERSION = "5.10.7"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tinymce-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.10.7
4
+ version: 5.10.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Pohlenz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-07 00:00:00.000000000 Z
11
+ date: 2023-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  - !ruby/object:Gem::Version
162
162
  version: '0'
163
163
  requirements: []
164
- rubygems_version: 3.1.4
164
+ rubygems_version: 3.2.33
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: Rails asset pipeline integration for TinyMCE.