tinymce-rails-imageupload 3.4.8.1 → 3.4.9

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,9 @@
1
+ ## 3.4.9 (April 5, 2012)
2
+
3
+ * Document how to use I18n with the gem
4
+ * Explicitly require tinymce-rails so tinymce-rails-imageupload can be alone in the gemfile
5
+ * Update dependency to tinymce-rails 3.4.9
6
+
1
7
  ## 3.4.8.1 (March 7, 2012)
2
8
 
3
9
  * Added support for setting height and width for the inserted image
data/README.markdown CHANGED
@@ -46,6 +46,28 @@ This action gets called with a file parameter creatively called `file`, and must
46
46
 
47
47
  If the JSON response contains a `width` and/or `height` key, those will be used in the inserted HTML (`<img src="..." width="..." height="...">`), but if those are not present, the inserted HTML is just `<img src="...">`.
48
48
 
49
+ ## Internationalization
50
+
51
+ I18n is taken care of by `tinymce-rails`. This gem includes strings for English and Norwegian. To add your own language, create the files `<code>.js` and `<code>_dlg.js` in `vendor/assets/javascripts/tinymce/plugins/uploadimage/langs` in your application.
52
+
53
+ The available strings are listed below:
54
+
55
+ ### en.js
56
+
57
+ tinyMCE.addI18n('en.uploadimage', {
58
+ desc: 'Insert an image from your computer'
59
+ });
60
+
61
+ ### en_dlg.js
62
+
63
+ tinyMCE.addI18n('en.uploadimage_dlg', {
64
+ title: 'Insert image',
65
+ header: "Insert image",
66
+ input: "Choose an image",
67
+ insert: "Insert",
68
+ cancel: "Cancel"
69
+ });
70
+
49
71
  ## Versioning
50
72
 
51
73
  The version of this gem will be mirroring the release of `tinymce-rails` it is tested against.
@@ -1,2 +1,3 @@
1
+ require "tinymce-rails"
1
2
  require "tinymce-rails-imageupload/version"
2
3
  require "tinymce-rails-imageupload/rails"
@@ -1,7 +1,7 @@
1
1
  module Tinymce
2
2
  module Rails
3
3
  module Imageupload
4
- VERSION = "3.4.8.1"
4
+ VERSION = "3.4.9"
5
5
  end
6
6
  end
7
7
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.require_paths = ["lib"]
17
17
 
18
18
  s.add_runtime_dependency "railties", ">= 3.1"
19
- s.add_runtime_dependency "tinymce-rails", "~> 3.4.8"
19
+ s.add_runtime_dependency "tinymce-rails", "~> 3.4.9"
20
20
  s.add_development_dependency "bundler", "~> 1.0.0"
21
21
  s.add_development_dependency "rails", ">= 3.1"
22
22
  end
@@ -1,3 +1,3 @@
1
- tinyMCE.addI18n('no.uploadimage', {
1
+ tinyMCE.addI18n('nb.uploadimage', {
2
2
  desc: 'Sett inn et bilde fra datamaskinen'
3
3
  });
@@ -1,4 +1,4 @@
1
- tinyMCE.addI18n('no.uploadimage_dlg', {
1
+ tinyMCE.addI18n('nb.uploadimage_dlg', {
2
2
  title: 'Sett inn bilde',
3
3
  header: "Sett inn bilde",
4
4
  input: "Velg et bilde",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tinymce-rails-imageupload
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.8.1
4
+ version: 3.4.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-07 00:00:00.000000000 Z
12
+ date: 2012-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
16
- requirement: &10124560 !ruby/object:Gem::Requirement
16
+ requirement: &6045900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,21 +21,21 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *10124560
24
+ version_requirements: *6045900
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: tinymce-rails
27
- requirement: &10124060 !ruby/object:Gem::Requirement
27
+ requirement: &6044200 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: 3.4.8
32
+ version: 3.4.9
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *10124060
35
+ version_requirements: *6044200
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &10123600 !ruby/object:Gem::Requirement
38
+ requirement: &5180520 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.0.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *10123600
46
+ version_requirements: *5180520
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rails
49
- requirement: &10123140 !ruby/object:Gem::Requirement
49
+ requirement: &5179840 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '3.1'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *10123140
57
+ version_requirements: *5179840
58
58
  description: TinyMCE plugin for taking image uploads in Rails >= 3.1
59
59
  email:
60
60
  - perchr@northblue.org
@@ -77,8 +77,8 @@ files:
77
77
  - vendor/assets/javascripts/tinymce/plugins/uploadimage/img/uploadimage.png
78
78
  - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/en.js
79
79
  - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/en_dlg.js
80
- - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/no.js
81
- - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/no_dlg.js
80
+ - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/nb.js
81
+ - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/nb_dlg.js
82
82
  homepage: http://eastblue.org/oss
83
83
  licenses: []
84
84
  post_install_message:
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project:
102
- rubygems_version: 1.8.10
102
+ rubygems_version: 1.8.17
103
103
  signing_key:
104
104
  specification_version: 3
105
105
  summary: TinyMCE plugin for taking image uploads in Rails >= 3.1