translations_ennder 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -39,3 +39,7 @@ Rails.logger pas initalisé
39
39
  == 1.0.8 / 2011-03-21
40
40
  * Utilisation de Rails.configuration.logger si initialisé
41
41
  sinon puts
42
+
43
+ == 1.0.9 / 2011-03-21
44
+ * trace init° gem dans les logs
45
+ Pour Rails 2 et 3
@@ -17,21 +17,25 @@ end
17
17
  if Rails::VERSION::MAJOR < 3 then
18
18
  Rails.configuration.after_initialize do
19
19
  _info = "gem translations_ennder V#{TranslationsEnnder.version}, Railx V2.x.y, init_translations_ennder() dans after_initialize"
20
- if !Rails.configuration.logger.nil?
21
- Rails.configuration.logger.info _info
20
+
21
+ if RAILS_DEFAULT_LOGGER.nil?
22
+ _logger = Logger.new( File.join(RAILS_ROOT, "log", "#{RAILS_ENV}.log") )
22
23
  else
23
- puts _info
24
+ _logger = RAILS_DEFAULT_LOGGER
24
25
  end
26
+ _logger.info _info
25
27
 
26
28
  init_translations_ennder
27
29
  end
28
30
  else
29
31
  _info = "gem translations_ennder V#{TranslationsEnnder.version}, Railx V3.x.y, init_translations_ennder()"
30
- if !Rails.configuration.logger.nil?
31
- Rails.configuration.logger.info _info
32
+
33
+ if Rails.logger.nil?
34
+ _logger = Logger.new(Rails.root + "log/#{Rails.env}.log")
32
35
  else
33
- puts _info
36
+ _logger = Rails.logger
34
37
  end
38
+ _logger.info _info
35
39
 
36
40
  init_translations_ennder
37
41
  end
data/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.8
1
+ 1.0.9
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: translations_ennder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 8
10
- version: 1.0.8
9
+ - 9
10
+ version: 1.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ennder