tinymce-rails 4.0.28.1 → 4.0.28.2

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
  SHA1:
3
- metadata.gz: bbb5b0491068647580afdb55641b93c7e91934d3
4
- data.tar.gz: 34adddab7097e20a69eafbb5a1d54c65cd66d8c0
3
+ metadata.gz: f3c545ef2a08298b3011727dd8485921dc8f441c
4
+ data.tar.gz: d79073032758a9b9af02e3eeb7f49f725be137e9
5
5
  SHA512:
6
- metadata.gz: 3ce49cdff4a6fc645ee7db3274bb96ff164def6a64b3cc1ba1543d17a364cb17bc49a2d39a762185af7b110076679be9153fa1fdac05647cb534a533555d73fb
7
- data.tar.gz: 74ccf99309c13c99b3b25cbbb3edebfd20b0e0125383a93811a6739b1df8dbfee279dfce8c3fe7e4b9733e28946d37fa7b1b9267536c0c38c89f403de0e5ebc7
6
+ metadata.gz: 2a0f6dfcd00ac4f4e83efd36da834d55e226ead25a8ba9ddbdb486898d98b9d030b42d22f5d3efd40ebec5a8451a283bf78e00fc4de8558c48142fb8e58721af
7
+ data.tar.gz: 789cde03e59a7b323d933dc52dcc9ccc4fa57f37dcb76967192a4929c22541330b010d95ddc9862cba2f02ba96ae50cf8c96139ea3b167f3c17d27b894ea70b7
@@ -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
@@ -1,6 +1,6 @@
1
1
  module TinyMCE
2
2
  module Rails
3
- VERSION = "4.0.28.1"
3
+ VERSION = "4.0.28.2"
4
4
  TINYMCE_VERSION = "4.0.28"
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: 4.0.28.1
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-09 00:00:00.000000000 Z
11
+ date: 2014-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties