rich_i18n 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  = Rich-i18n CHANGELOG
2
2
 
3
+ == Version 1.3.2 (November 9, 2010)
4
+
5
+ * Fixed the Rails generators once and for all
6
+
3
7
  == Version 1.3.1 (November 8, 2010)
4
8
 
5
9
  * Fixed the Rails 3 generators which conflicted with Rich-CMS
data/README.textile CHANGED
@@ -46,7 +46,7 @@ Add Rich-i18n in @Gemfile@ as a gem dependency:
46
46
  Run the following in your console to install with Bundler:
47
47
 
48
48
  <pre>
49
- bundle install
49
+ sudo bundle install
50
50
  </pre>
51
51
 
52
52
  h3. Using Rich-i18n as gem in Rails 2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.3.2
@@ -16,6 +16,7 @@ module Rich
16
16
  filename = "config/initializers/enrichments.rb"
17
17
  line = "\nRich::I18n::Engine.enable_i18n_cms"
18
18
 
19
+ create_file filename unless File.exists?(filename)
19
20
  return if File.open(filename).readlines.collect(&:strip).include? line.strip
20
21
 
21
22
  File.open(filename, "a+") do |file|
@@ -14,9 +14,12 @@ class RichI18nTranslationGenerator < Rails::Generator::Base
14
14
  end
15
15
 
16
16
  def after_generate
17
- File.open(destination_path("config/initializers/enrichments.rb"), "a+") do |file|
18
- file << "\nRich::I18n::Engine.enable_i18n_cms"
19
- end
17
+ filename = destination_path("config/initializers/enrichments.rb")
18
+ line = "\nRich::I18n::Engine.enable_i18n_cms"
19
+
20
+ File.open(filename, "a+") do |file|
21
+ file << line
22
+ end unless File.open(filename).readlines.collect(&:strip).include? line.strip
20
23
 
21
24
  system "rake db:migrate" if options[:migrate]
22
25
  end
data/rich_i18n.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rich_i18n}
8
- s.version = "1.3.1"
8
+ s.version = "1.3.2"
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"]
12
- s.date = %q{2010-11-08}
12
+ s.date = %q{2010-11-09}
13
13
  s.description = %q{Rich-i18n is a module of E9s (http://github.com/archan937/e9s) which enriches I18n, Formtastic, the String and Symbol classes. This simplifies internationalization of your Rails application making a Rails developers life much easier.}
14
14
  s.email = %q{paul.engel@holder.nl}
15
15
  s.extra_rdoc_files = [
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: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 1
10
- version: 1.3.1
9
+ - 2
10
+ version: 1.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paul Engel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-08 00:00:00 +01:00
18
+ date: 2010-11-09 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency