tinymce-rails 4.0.28.1 → 4.0.28.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tinymce/rails/engine.rb +10 -1
- data/lib/tinymce/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f3c545ef2a08298b3011727dd8485921dc8f441c
|
|
4
|
+
data.tar.gz: d79073032758a9b9af02e3eeb7f49f725be137e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a0f6dfcd00ac4f4e83efd36da834d55e226ead25a8ba9ddbdb486898d98b9d030b42d22f5d3efd40ebec5a8451a283bf78e00fc4de8558c48142fb8e58721af
|
|
7
|
+
data.tar.gz: 789cde03e59a7b323d933dc52dcc9ccc4fa57f37dcb76967192a4929c22541330b010d95ddc9862cba2f02ba96ae50cf8c96139ea3b167f3c17d27b894ea70b7
|
data/lib/tinymce/rails/engine.rb
CHANGED
|
@@ -45,9 +45,18 @@ module TinyMCE::Rails
|
|
|
45
45
|
nil
|
|
46
46
|
elsif host =~ /%d/
|
|
47
47
|
# Load all TinyMCE assets from the first asset host
|
|
48
|
-
host % 0
|
|
48
|
+
normalize_host(host % 0)
|
|
49
49
|
else
|
|
50
|
+
normalize_host(host)
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def self.normalize_host(host)
|
|
55
|
+
if host =~ /^https?:\/\//
|
|
50
56
|
host
|
|
57
|
+
else
|
|
58
|
+
# Use a protocol-relative URL if not otherwise specified
|
|
59
|
+
"//#{host}"
|
|
51
60
|
end
|
|
52
61
|
end
|
|
53
62
|
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: 4.0.28.
|
|
4
|
+
version: 4.0.28.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sam Pohlenz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-06-
|
|
11
|
+
date: 2014-06-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|