rich_i18n 1.3.0 → 1.3.1

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  = Rich-i18n CHANGELOG
2
2
 
3
+ == Version 1.3.1 (November 8, 2010)
4
+
5
+ * Fixed the Rails 3 generators which conflicted with Rich-CMS
6
+
7
+ == Version 1.3.0 (November 8, 2010)
8
+
9
+ * Made Rich-i18n Rails 2 and 3 compatible (woot!)
10
+ * Tackled string concatenation, array joining and Rails 3 html escaping to render enriched strings correctly
11
+ * Fixed the gem dependencies to avoid conflicts
12
+ * Added a built-in Rails 2 and Rails 3 for testing
13
+ * Being able to run 'rake', 'rake test', 'rake test:rails2' and 'rake test:rails3' for testing within the gem directory
14
+ * Perfected the Rails generators (for both Rails 2 and 3)
15
+ * Added Rich::I18n::Engine.logger for logging (you can set this to nil to disable logging)
16
+ * Improved the auto-determination of the tag used for rendering translations
17
+ * Removed the filled? method
18
+
3
19
  == Version 1.2.3 (October 20, 2010)
4
20
 
5
21
  * Using SeatHolder v0.8.8 in order to tell SeatHolder not to react on focus events (yay!)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.1
@@ -1,12 +1,12 @@
1
- require "generators/rich"
1
+ require "generators/rich_i18n"
2
2
 
3
3
  module Rich
4
4
  module Generators
5
5
 
6
- class TranslationGenerator < Base
6
+ class TranslationGenerator < ::RichI18n::Generators::Base
7
7
 
8
8
  include Rails::Generators::Migration
9
- include Rich::Generators::Migration
9
+ include RichI18n::Generators::Migration
10
10
 
11
11
  desc "Creates Rich-i18n translation model and migration."
12
12
  argument :model_name, :type => :string , :default => "translation"
@@ -16,7 +16,7 @@ module Rich
16
16
  filename = "config/initializers/enrichments.rb"
17
17
  line = "\nRich::I18n::Engine.enable_i18n_cms"
18
18
 
19
- return if File.open(filename, "a+").readlines.include? line.strip
19
+ return if File.open(filename).readlines.collect(&:strip).include? line.strip
20
20
 
21
21
  File.open(filename, "a+") do |file|
22
22
  file << line
@@ -1,6 +1,6 @@
1
1
  require "rails/generators/named_base"
2
2
 
3
- module Rich
3
+ module RichI18n
4
4
  module Generators
5
5
 
6
6
  class Base < Rails::Generators::Base
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rich_i18n}
8
- s.version = "1.3.0"
8
+ s.version = "1.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Engel"]
@@ -31,10 +31,10 @@ Gem::Specification.new do |s|
31
31
  "assets/jzip/rich_i18n.jz",
32
32
  "init.rb",
33
33
  "install.rb",
34
- "lib/generators/rich.rb",
35
34
  "lib/generators/rich/translation/templates/migration.rb",
36
35
  "lib/generators/rich/translation/templates/model.rb",
37
36
  "lib/generators/rich/translation/translation_generator.rb",
37
+ "lib/generators/rich_i18n.rb",
38
38
  "lib/rich/i18n.rb",
39
39
  "lib/rich/i18n/actionpack.rb",
40
40
  "lib/rich/i18n/actionpack/action_controller/base.rb",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rich_i18n
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 0
10
- version: 1.3.0
9
+ - 1
10
+ version: 1.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paul Engel
@@ -120,10 +120,10 @@ files:
120
120
  - assets/jzip/rich_i18n.jz
121
121
  - init.rb
122
122
  - install.rb
123
- - lib/generators/rich.rb
124
123
  - lib/generators/rich/translation/templates/migration.rb
125
124
  - lib/generators/rich/translation/templates/model.rb
126
125
  - lib/generators/rich/translation/translation_generator.rb
126
+ - lib/generators/rich_i18n.rb
127
127
  - lib/rich/i18n.rb
128
128
  - lib/rich/i18n/actionpack.rb
129
129
  - lib/rich/i18n/actionpack/action_controller/base.rb