rails_kindeditor 0.3.19 → 0.3.20

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f051713b361f1eaeb094c8ff8ea1f9399cfe99d4
4
- data.tar.gz: ead6e7b8a42d747ecf889e64bff980f3df6c80fb
3
+ metadata.gz: 66ce0b82bd4863150a143d291636ef6267e039c7
4
+ data.tar.gz: cbd50c7c0129e8c60526bdd77250ca7c4171aeed
5
5
  SHA512:
6
- metadata.gz: 95f844d3a29b958041be1066e50bc89683d55fd107df9aee43389220343be7cb1a404bdd8a1a0adbb4af6bd5762e27e535c7e0bcc376860139f3cf2e1bd40125
7
- data.tar.gz: 2e1447e268d1080dd332d2760bdce1efb9a738a9b2e3db1831638c7bc63a4a8d09b5cf5ea7dd264f87e26e1657b2714dac75b2d347e92b9dfd72de65c9f7fbd5
6
+ metadata.gz: b5c25553dc71eaee18a1b7c4d11c1411110d624c90b15525aae0ffe3c5171ba563cf63c2e29d37123a23e906b1f1de5236fcb724ad511963dbc2f17384fa66eb
7
+ data.tar.gz: 302641a3e917f8d38dc8964a8cb016f6cc30b5a2405a543b2ca97eac495a1f2467abb4191458ec8dbd48b5a3cfbeec8587b9e5f0b4c8d0f59966d6751d513a0b
data/README.md CHANGED
@@ -10,7 +10,7 @@ rails_kindeditor will helps your rails app integrate with kindeditor, includes i
10
10
  ### Add this to your Gemfile
11
11
 
12
12
  ```ruby
13
- gem 'rails_kindeditor', '~> 0.3.19'
13
+ gem 'rails_kindeditor', '~> 0.3.20'
14
14
  ```
15
15
 
16
16
  ### Run "bundle" command.
@@ -172,7 +172,7 @@ rails_kindeditor可以帮助你的rails程序集成kindeditor,包括了图片和
172
172
  ### 将下面代码加入Gemfile:
173
173
 
174
174
  ```ruby
175
- gem 'rails_kindeditor', '~> 0.3.19'
175
+ gem 'rails_kindeditor', '~> 0.3.20'
176
176
  ```
177
177
 
178
178
  ### 运行"bundle"命令:
@@ -36,8 +36,8 @@ module RailsKindeditor
36
36
  options.reverse_merge!(:width => '100%')
37
37
  options.reverse_merge!(:height => 300)
38
38
  options.reverse_merge!(:allowFileManager => true)
39
- options.merge!(:uploadJson => '/kindeditor/upload')
40
- options.merge!(:fileManagerJson => '/kindeditor/filemanager')
39
+ options.merge!(:uploadJson => "#{main_app.root_url}kindeditor/upload")
40
+ options.merge!(:fileManagerJson => "#{main_app.root_url}kindeditor/filemanager")
41
41
  if options[:simple_mode] == true
42
42
  options.merge!(:items => %w{fontname fontsize | forecolor hilitecolor bold italic underline removeformat | justifyleft justifycenter justifyright insertorderedlist insertunorderedlist | emoticons image link})
43
43
  end
@@ -1,4 +1,4 @@
1
1
  module RailsKindeditor
2
- VERSION = "0.3.19"
2
+ VERSION = "0.3.20"
3
3
  end
4
4
 
@@ -224,9 +224,6 @@ function _getBasePath() {
224
224
  if (/application[\w\-\.]*\.js/.test(src)) { // in production mode, we need application.js.
225
225
  return src.substring(0, src.lastIndexOf('/') + 1) + 'kindeditor/';
226
226
  }
227
- if (/[\w\-\.]*\.js/.test(src)) { // if no application.js found, we just use the first js file path.
228
- return src.substring(0, src.lastIndexOf('/') + 1) + 'kindeditor/';
229
- }
230
227
  }
231
228
  return '/assets/kindeditor/';
232
229
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_kindeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.19
4
+ version: 0.3.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Macrow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-03 00:00:00.000000000 Z
11
+ date: 2013-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave
@@ -305,4 +305,3 @@ signing_key:
305
305
  specification_version: 4
306
306
  summary: Kindeditor for Ruby on Rails
307
307
  test_files: []
308
- has_rdoc: