refinerycms-wymeditor 1.0.5 → 1.0.6

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: 36ee9ea62602a4594ff8d2dc0afaca7409b0cd66
4
- data.tar.gz: 62b3cd957c488bf48838f9db0585a1736ff7543e
3
+ metadata.gz: 42e188287df2aa1d0e5830f3e047eaf9d7dd6fc4
4
+ data.tar.gz: 316bbd46f2470f04b0dc941cb7186863bc977acb
5
5
  SHA512:
6
- metadata.gz: 33e5e4e3e8c829eb01dd5143edcc487aee702e44d852d9a0ec62888ea2eca0b4d23e636dbdbbc7ad41b93ce9c1263b77b77720bb38e8d34916851da56e04ee6c
7
- data.tar.gz: 92cfddd230cd50f178a98f53af20a37dbee71a955757cf7bb6818b8c067b382f5b7352d74bd4f05b59c0107659e86d26e4d0dbf3c45dc6abf52a7aa535e0b5e1
6
+ metadata.gz: e187ab0cc44b6a89ad8b5465e916c29e1b7e6a42f4671693f358599517e6dbb6159d4d88133b3dcc9e71769ce9453db4473cf4943b0580ec2d22bd291c0c15a8
7
+ data.tar.gz: 27abc9eb50f81e1d898d79273a4515a650566f69d7262cf1b39696c63bc48599b15e8e0dfaf150a8bd05a5ff804826b2b0079fa6964c409928b4d6e6eeb68f0a
data/Gemfile CHANGED
@@ -7,9 +7,6 @@ git "http://github.com/refinery/refinerycms", branch: "master" do
7
7
  gem "refinerycms-testing"
8
8
  end
9
9
 
10
- gem "refinerycms-i18n", git: "https://github.com/refinery/refinerycms-i18n",
11
- branch: "master"
12
-
13
10
  gem 'sqlite3'
14
11
  gem 'pry'
15
12
 
@@ -38,6 +38,8 @@ module Refinery
38
38
  %W(refinery/wymeditor wymeditor/lang/#{::I18n.locale} wymeditor/skins/refinery/skin).each do |javascript|
39
39
  Refinery::Core.config.register_visual_editor_javascript javascript
40
40
  end
41
+
42
+ Refinery::Pages.config.friendly_id_reserved_words << 'wymiframe'
41
43
  end
42
44
  end
43
45
  end
@@ -2,7 +2,7 @@
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.5'
5
+ s.version = '1.0.6'
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
8
  s.email = %q{info@refinerycms.com}
@@ -0,0 +1,12 @@
1
+ require "spec_helper"
2
+
3
+ module Refinery
4
+ describe Page, type: :feature do
5
+
6
+ subject { Page.create title: "wymiframe" }
7
+ it "treats wymiframe as a reserved word" do
8
+ expect(subject.url[:path]).to eq(["wymiframe-page"])
9
+ end
10
+
11
+ end
12
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-wymeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Arndt
@@ -163,7 +163,6 @@ files:
163
163
  - app/assets/stylesheets/wymeditor/skins/refinery/wymiframe.css.scss
164
164
  - app/controllers/refinery/wymeditor_controller.rb
165
165
  - app/decorators/controllers/refinery/fast_controller_decorator.rb
166
- - app/decorators/models/refinery/page/friendly_id_options_decorator.rb
167
166
  - app/views/refinery/admin/dialogs/show.html.erb
168
167
  - app/views/refinery/wymiframe.html.erb
169
168
  - bin/rails
@@ -183,6 +182,7 @@ files:
183
182
  - refinerycms-wymeditor.gemspec
184
183
  - spec/controllers/refinery/fast_controller_spec.rb
185
184
  - spec/features/refinery/admin/wymeditor_feature_spec.rb
185
+ - spec/models/refinery/page_spec.rb
186
186
  - spec/spec_helper.rb
187
187
  homepage: http://refinerycms.com
188
188
  licenses:
@@ -211,4 +211,5 @@ summary: WYMeditor support for Refinery CMS
211
211
  test_files:
212
212
  - spec/controllers/refinery/fast_controller_spec.rb
213
213
  - spec/features/refinery/admin/wymeditor_feature_spec.rb
214
+ - spec/models/refinery/page_spec.rb
214
215
  - spec/spec_helper.rb
@@ -1,8 +0,0 @@
1
- Refinery::Page::FriendlyIdOptions.class_eval do
2
- class << self
3
- def reserved_words_with_wymiframe
4
- reserved_words_without_wymiframe.push('wymiframe')
5
- end
6
- alias_method_chain :reserved_words, :wymiframe
7
- end
8
- end