gettext_i18n_rails 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gettext_i18n_rails}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  "Rakefile",
20
20
  "VERSION",
21
21
  "gettext_i18n_rails.gemspec",
22
+ "init.rb",
22
23
  "lib/gettext_i18n_rails.rb",
23
24
  "lib/gettext_i18n_rails/action_controller.rb",
24
25
  "lib/gettext_i18n_rails/active_record.rb",
@@ -28,7 +29,6 @@ Gem::Specification.new do |s|
28
29
  "lib/gettext_i18n_rails/model_attributes_finder.rb",
29
30
  "lib/gettext_i18n_rails/ruby_gettext_extractor.rb",
30
31
  "lib/tasks/gettext_rails_i18n.rake",
31
- "rails/init.rb",
32
32
  "spec/gettext_i18n_rails/action_controller_spec.rb",
33
33
  "spec/gettext_i18n_rails/active_record_spec.rb",
34
34
  "spec/gettext_i18n_rails/backend_spec.rb",
data/init.rb ADDED
@@ -0,0 +1,14 @@
1
+ begin
2
+ require 'config/initializers/session_store'
3
+ rescue LoadError
4
+ # weird bug, when run with rake rails reports error that session
5
+ # store is not configured, this fixes it somewhat...
6
+ end
7
+
8
+ if Rails::VERSION::MAJOR > 2
9
+ require 'gettext_i18n_rails'
10
+ else
11
+ #requires fast_gettext to be present.
12
+ #We give rails a chance to install it using rake gems:install, by loading it later.
13
+ config.after_initialize { require 'gettext_i18n_rails' }
14
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Grosser
@@ -42,6 +42,7 @@ files:
42
42
  - Rakefile
43
43
  - VERSION
44
44
  - gettext_i18n_rails.gemspec
45
+ - init.rb
45
46
  - lib/gettext_i18n_rails.rb
46
47
  - lib/gettext_i18n_rails/action_controller.rb
47
48
  - lib/gettext_i18n_rails/active_record.rb
@@ -51,7 +52,6 @@ files:
51
52
  - lib/gettext_i18n_rails/model_attributes_finder.rb
52
53
  - lib/gettext_i18n_rails/ruby_gettext_extractor.rb
53
54
  - lib/tasks/gettext_rails_i18n.rake
54
- - rails/init.rb
55
55
  - spec/gettext_i18n_rails/action_controller_spec.rb
56
56
  - spec/gettext_i18n_rails/active_record_spec.rb
57
57
  - spec/gettext_i18n_rails/backend_spec.rb
data/rails/init.rb DELETED
@@ -1,10 +0,0 @@
1
- begin
2
- require 'config/initializers/session_store'
3
- rescue LoadError
4
- # weird bug, when run with rake rails reports error that session
5
- # store is not configured, this fixes it somewhat...
6
- end
7
-
8
- #requires fast_gettext to be present.
9
- #We give rails a chance to install it using rake gems:install, by loading it later.
10
- config.after_initialize { require 'gettext_i18n_rails' }