refinerycms-wymeditor 1.0.6 → 1.0.7

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: 42e188287df2aa1d0e5830f3e047eaf9d7dd6fc4
4
- data.tar.gz: 316bbd46f2470f04b0dc941cb7186863bc977acb
3
+ metadata.gz: ef1631d0fc032d8b29f7b3f6d2d24792b5c9919e
4
+ data.tar.gz: 7da06a9747c6016d2fa8356038ec773a160354b3
5
5
  SHA512:
6
- metadata.gz: e187ab0cc44b6a89ad8b5465e916c29e1b7e6a42f4671693f358599517e6dbb6159d4d88133b3dcc9e71769ce9453db4473cf4943b0580ec2d22bd291c0c15a8
7
- data.tar.gz: 27abc9eb50f81e1d898d79273a4515a650566f69d7262cf1b39696c63bc48599b15e8e0dfaf150a8bd05a5ff804826b2b0079fa6964c409928b4d6e6eeb68f0a
6
+ metadata.gz: df8a46418240ea3839ff4bfb9b477001f6920281b964e102390b19badbf38220180d90edda6db42f4e1887c63991bf6756ea3bfed146220ac5bef67e95278b66
7
+ data.tar.gz: a3174d259aebd783c7cc96153367172e47e97ad0f973a541d8fe2d9a6c70bba48484bfac413482367bcf7115f40cc00c20dede1bef132bcace475e1f379e99ae
Binary file
@@ -0,0 +1 @@
1
+ ����:Ԅ�T��f���H�z{�*F �9��
@@ -2,25 +2,17 @@ language: ruby
2
2
  cache: bundler
3
3
  bundler_args: --without development
4
4
  before_script:
5
- - "sh -e /etc/init.d/xvfb start"
6
- - "bin/rake refinery:testing:dummy_app"
7
- script:
8
- - "DISPLAY=:99.0 bundle exec rspec spec"
5
+ - sh -e /etc/init.d/xvfb start
6
+ - bin/rake refinery:testing:dummy_app
7
+ - export DISPLAY=:99.0
8
+ env:
9
+ - DB=postgresql
10
+ - DB=mysql
9
11
  notifications:
10
- email: true
11
- irc:
12
- use_notice: true
13
- skip_join: true
14
- channels:
15
- - "irc.freenode.org#refinerycms"
16
- campfire:
17
- on_success: always
18
- on_failure: always
19
- rooms:
20
- - secure: "X5X39BTgXacSdc32F8mIjJKPqm5dZzmgZfJ14qYpJeMETTdA5JfByt2uCfU8\njJkkxT+XGWta0bSSlRIHQJO6pK26U94A95VYDX0jNuneKEnsoAsqJ6U0VY6v\nH5oxXMAZ2perP/FH9ZsPNR+ulyFfbMQCeGPJw5AXKZQqzf6qPOI="
21
12
  webhooks:
22
13
  - https://webhooks.gitter.im/e/b5d48907cdc89864b874
23
14
  rvm:
15
+ - 2.3.1
24
16
  - 2.2
25
17
  - 2.1
26
18
  - 2.0.0
@@ -96,7 +96,7 @@ var wymeditor_boot_options = $.extend({
96
96
 
97
97
  , iframeHtml:
98
98
  "<div class='wym_iframe wym_section'>"
99
- + "<iframe id='WYMeditor_" + WYMeditor.INDEX + "'" + ($.browser.msie ? " src='" + WYMeditor.IFRAME_BASE_PATH + "wymiframe'" : "")
99
+ + "<iframe id='WYMeditor_" + WYMeditor.INDEX + "' src='" + WYMeditor.IFRAME_BASE_PATH + "wymiframe'"
100
100
  + " frameborder='0' marginheight='0' marginwidth='0' border='0'"
101
101
  + " onload='this.contentWindow.parent.WYMeditor.INSTANCES[" + WYMeditor.INDEX + "].loadIframe(this);'></iframe>"
102
102
  +"</div>"
@@ -213,12 +213,6 @@ WYMeditor.editor.prototype.loadIframe = function(iframe) {
213
213
  if(doc.document) {
214
214
  doc = doc.document;
215
215
  }
216
- if (!$.browser.msie) {
217
- var doc_head = doc.head || $(doc).find('head').get(0);
218
- $("<link href='<%= Rails.application.config.assets.prefix + '/wymeditor/skins/refinery/wymiframe.css' %>' media='all' rel='stylesheet' />").appendTo(doc_head);
219
- $("<link href='<%= Rails.application.config.assets.prefix + '/refinery/formatting.css' %>' media='all' rel='stylesheet' />").appendTo(doc_head);
220
- $("<link href='<%= Rails.application.config.assets.prefix + '/refinery/theme.css' %>' media='all' rel='stylesheet' />").appendTo(doc_head);
221
- }
222
216
  if ((id_of_editor = wym._element.parent().attr('id')) != null) {
223
217
  $(doc.body).addClass(id_of_editor);
224
218
  }
@@ -299,6 +299,8 @@ WYMeditor.XhtmlValidator = {
299
299
  "width",
300
300
  "height",
301
301
  "frameborder",
302
+ "allowfullscreen",
303
+ "rel",
302
304
  "scrolling",
303
305
  "marginheight",
304
306
  "marginwidth"
@@ -476,6 +476,7 @@ a.wym_wymeditor_link {
476
476
  top: 23px;
477
477
  padding-top: 6px !important;
478
478
  width: 200px;
479
+ z-index: 1;
479
480
  }
480
481
  .wym_classes_hidden {
481
482
  display: none;
@@ -1,4 +1,4 @@
1
1
  Refinery::Wymeditor.configure do |config|
2
- # Add extra tags to the wymeditor whitelist e.g. = {'tag' => {'attributes': '1': 'href'}} or just {'tag' => {}}
2
+ # Add extra tags to the wymeditor whitelist e.g. = {'a' => {'attributes': '1': 'href'}} or just {'a' => {}}
3
3
  # config.whitelist_tags = <%= Refinery::Wymeditor.whitelist_tags.inspect %>
4
- end
4
+ end
@@ -2,17 +2,22 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = %q{refinerycms-wymeditor}
5
- s.version = '1.0.6'
5
+ s.version = '1.0.7'
6
6
  s.summary = %q{WYMeditor support for Refinery CMS}
7
7
  s.description = %q{This extension adds WYMeditor support to Refinery CMS for visual editing.}
8
- s.email = %q{info@refinerycms.com}
8
+ s.email = %q{gems@p.arndt.io}
9
9
  s.homepage = %q{http://refinerycms.com}
10
10
  s.authors = ['Philip Arndt']
11
11
  s.license = %q{MIT}
12
12
  s.require_paths = %w(lib)
13
13
 
14
- s.files = `git ls-files`.split("\n")
14
+ s.files = `git ls-files -- '*[^.pem]'`.split("\n")
15
15
  s.test_files = `git ls-files -- spec/*`.split("\n")
16
16
 
17
- s.add_dependency 'refinerycms-core', '~> 3.0', '>= 3.0.0'
17
+ s.add_dependency 'refinerycms-core', ['>= 3.0.0', '< 5.0']
18
+
19
+ s.cert_chain = ['certs/parndt.pem']
20
+ if $0 =~ /gem\z/ && ARGV.include?("build") && ARGV.include?(__FILE__)
21
+ s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem")
22
+ end
18
23
  end
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe 'wymeditor', :type => :feature do
4
- refinery_login_with :refinery_user
4
+ refinery_login
5
5
  # see https://github.com/refinery/refinerycms/pull/1583
6
6
  context "when switching locales" do
7
7
  before do
@@ -22,12 +22,12 @@ describe 'wymeditor', :type => :feature do
22
22
  page = Refinery::Page.last
23
23
  # we need page parts so that there's a visual editor
24
24
  Refinery::Pages.default_parts.each_with_index do |default_page_part, index|
25
- page.parts.create(:title => default_page_part, :body => nil, :position => index)
25
+ page.parts.create(title: default_page_part[:title], slug: default_page_part[:slug], :body => nil, :position => index)
26
26
  end
27
27
  page
28
28
  end
29
29
 
30
- specify "dialog has correct links", :js do
30
+ specify "dialog has correct links", js: true do
31
31
  visit refinery.edit_admin_page_path(about_page)
32
32
 
33
33
  find("#page_part_body .wym_tools_link a").click
@@ -7,7 +7,6 @@ require File.expand_path("../dummy/config/environment", __FILE__)
7
7
 
8
8
  require 'rspec/rails'
9
9
  require 'capybara/rspec'
10
- require 'factory_girl_rails'
11
10
 
12
11
  Rails.backtrace_cleaner.remove_silencers!
13
12
 
metadata CHANGED
@@ -1,45 +1,64 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-wymeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Arndt
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
11
- date: 2015-01-25 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDhjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBNMQ0wCwYDVQQDDARnZW1z
14
+ MREwDwYKCZImiZPyLGQBGRYBcDEVMBMGCgmSJomT8ixkARkWBWFybmR0MRIwEAYK
15
+ CZImiZP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9HSNxW0NL2vZx8VabpsWGWfrb+koj
31
+ rE1h12GTgwaC3r9FOkdnSpClgPYAzTTCJ8kD74qO2zC9pGegrUXdWFM6
32
+ -----END CERTIFICATE-----
33
+ date: 2016-06-22 00:00:00.000000000 Z
12
34
  dependencies:
13
35
  - !ruby/object:Gem::Dependency
14
36
  name: refinerycms-core
15
37
  requirement: !ruby/object:Gem::Requirement
16
38
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '3.0'
20
39
  - - ">="
21
40
  - !ruby/object:Gem::Version
22
41
  version: 3.0.0
42
+ - - "<"
43
+ - !ruby/object:Gem::Version
44
+ version: '5.0'
23
45
  type: :runtime
24
46
  prerelease: false
25
47
  version_requirements: !ruby/object:Gem::Requirement
26
48
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '3.0'
30
49
  - - ">="
31
50
  - !ruby/object:Gem::Version
32
51
  version: 3.0.0
52
+ - - "<"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
33
55
  description: This extension adds WYMeditor support to Refinery CMS for visual editing.
34
- email: info@refinerycms.com
56
+ email: gems@p.arndt.io
35
57
  executables: []
36
58
  extensions: []
37
59
  extra_rdoc_files: []
38
60
  files:
39
- - ".gitignore"
40
61
  - ".travis.yml"
41
- - Gemfile
42
- - Rakefile
43
62
  - app/assets/images/wymeditor/skins/refinery/arrow_redo.png
44
63
  - app/assets/images/wymeditor/skins/refinery/arrow_undo.png
45
64
  - app/assets/images/wymeditor/skins/refinery/eye.png
@@ -166,7 +185,6 @@ files:
166
185
  - app/views/refinery/admin/dialogs/show.html.erb
167
186
  - app/views/refinery/wymiframe.html.erb
168
187
  - bin/rails
169
- - bin/rake
170
188
  - config/initializers/refinery/wymeditor.rb.erb
171
189
  - config/routes.rb
172
190
  - lib/generators/refinery/wymeditor/templates/config/initializers/refinery/wymeditor.rb.erb
@@ -204,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
222
  version: '0'
205
223
  requirements: []
206
224
  rubyforge_project:
207
- rubygems_version: 2.4.5
225
+ rubygems_version: 2.6.4
208
226
  signing_key:
209
227
  specification_version: 4
210
228
  summary: WYMeditor support for Refinery CMS
@@ -0,0 +1 @@
1
+ ��9J:G/�#�A�P�J�Xnf�ep�/�&W�i]��MΗ�4S ��ͼ�4>D�������+p�"Q�VO�I�ޚb����X�a�v�-��x>0|�@�@ �.��U-
data/.gitignore DELETED
@@ -1,2 +0,0 @@
1
- spec/dummy
2
- Gemfile.lock
data/Gemfile DELETED
@@ -1,15 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- git "http://github.com/refinery/refinerycms", branch: "master" do
6
- gem "refinerycms"
7
- gem "refinerycms-testing"
8
- end
9
-
10
- gem 'sqlite3'
11
- gem 'pry'
12
-
13
- group :development, :test do
14
- gem 'selenium-webdriver', '~> 2.43'
15
- end
data/Rakefile DELETED
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env rake
2
- begin
3
- require 'bundler/setup'
4
- rescue LoadError
5
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
- end
7
-
8
- ENGINE_PATH = File.dirname(__FILE__)
9
- APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
10
-
11
- if File.exists?(APP_RAKEFILE)
12
- load 'rails/tasks/engine.rake'
13
- end
14
-
15
- require "refinerycms-testing"
16
- Refinery::Testing::Railtie.load_dummy_tasks(ENGINE_PATH)
17
-
18
- task :default => :spec
data/bin/rake DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rake' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rake', 'rake')