tinymce-rails-imageupload 3.5.6.1 → 3.5.6.2

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.
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ ## 3.5.6.2 (August 20, 2012)
2
+
3
+ * Portugese translation. Thanks to Hefesto
4
+ * Fix for asset compilation. Thanks to ffloyd (Roman Kolesnev)
5
+
1
6
  ## 3.5.6.1 (August 9, 2012)
2
7
 
3
8
  * Russian translation. Thanks to ffloyd (Roman Kolesnev)
data/README.markdown CHANGED
@@ -16,7 +16,7 @@ The icon used for the button comes from the icon set [Silk by famfamfam](http://
16
16
 
17
17
  Add the gem to your Gemfile
18
18
 
19
- gem 'tinymce-rails-imageupload', '~> 3.4.8'
19
+ gem 'tinymce-rails-imageupload', '~> 3.5.6.1'
20
20
 
21
21
  Set up TinyMCE as you would normally, but in the call to `.tinymce()`, add
22
22
 
@@ -50,7 +50,7 @@ If the JSON response contains a `width` and/or `height` key, those will be used
50
50
 
51
51
  ## Internationalization
52
52
 
53
- I18n is taken care of by `tinymce-rails`. This gem includes strings for English and Norwegian.
53
+ I18n is taken care of by `tinymce-rails`. This gem includes strings for English, Norwegian and Russian.
54
54
  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,
55
55
  or fork the gem and add your own translations there.
56
56
 
@@ -0,0 +1,7 @@
1
+ Rake::Task['assets:precompile:primary'].enhance do
2
+ assets = File.expand_path(File.dirname(__FILE__) + "/../../vendor/assets/javascripts/tinymce")
3
+ target = File.join(Rails.public_path, Rails.application.config.assets.prefix)
4
+
5
+ mkdir_p target
6
+ cp_r assets, target
7
+ end
@@ -2,6 +2,9 @@ module Tinymce
2
2
  module Rails
3
3
  module Imageupload
4
4
  class Engine < ::Rails::Engine
5
+ initializer 'TinymceRailsImageupload.assets_pipeline' do |app|
6
+ app.config.assets.precompile << "tinymce/plugins/uploadimage/editor_plugin.js"
7
+ end
5
8
  end
6
9
  end
7
10
  end
@@ -1,7 +1,7 @@
1
1
  module Tinymce
2
2
  module Rails
3
3
  module Imageupload
4
- VERSION = "3.5.6.1"
4
+ VERSION = "3.5.6.2"
5
5
  end
6
6
  end
7
7
  end
@@ -0,0 +1,3 @@
1
+ tinyMCE.addI18n('pt.uploadimage', {
2
+ desc: 'Inserir uma imagem do seu computador'
3
+ });
@@ -0,0 +1,7 @@
1
+ tinyMCE.addI18n('pt.uploadimage_dlg', {
2
+ title: 'Inserir imagem',
3
+ header: "Inserir imagem",
4
+ input: "Escolher uma imagem",
5
+ insert: "Inserir",
6
+ cancel: "Cancelar"
7
+ });
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.5.6.1
4
+ version: 3.5.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-09 00:00:00.000000000 Z
12
+ date: 2012-08-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -88,17 +88,20 @@ files:
88
88
  - LICENSE
89
89
  - README.markdown
90
90
  - Rakefile
91
+ - app/assets/javascripts/tinymce/plugins/uploadimage/editor_plugin.js.coffee
92
+ - lib/tasks/tinymce-uploadimage-assets.rake
91
93
  - lib/tinymce-rails-imageupload.rb
92
94
  - lib/tinymce-rails-imageupload/rails.rb
93
95
  - lib/tinymce-rails-imageupload/version.rb
94
96
  - tinymce-rails-imageupload.gemspec
95
97
  - vendor/assets/javascripts/tinymce/plugins/uploadimage/dialog.html
96
- - vendor/assets/javascripts/tinymce/plugins/uploadimage/editor_plugin.js.coffee
97
98
  - vendor/assets/javascripts/tinymce/plugins/uploadimage/img/uploadimage.png
98
99
  - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/en.js
99
100
  - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/en_dlg.js
100
101
  - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/nb.js
101
102
  - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/nb_dlg.js
103
+ - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/pt.js
104
+ - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/pt_dlg.js
102
105
  - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/ru.js
103
106
  - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/ru_dlg.js
104
107
  homepage: http://eastblue.org/oss