translations_ennder 1.0.9 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -42,4 +42,8 @@ sinon puts
42
42
 
43
43
  == 1.0.9 / 2011-03-21
44
44
  * trace init° gem dans les logs
45
- Pour Rails 2 et 3
45
+ Pour Rails 2 et 3
46
+
47
+ == 1.1.0 / 2011-03-22
48
+ * préparation des test
49
+ RAILS_ROOT au lien de Rails.root, Rails n'est pas encore initalisé
@@ -15,6 +15,8 @@ end
15
15
 
16
16
 
17
17
  if Rails::VERSION::MAJOR < 3 then
18
+ #Rails 2
19
+
18
20
  Rails.configuration.after_initialize do
19
21
  _info = "gem translations_ennder V#{TranslationsEnnder.version}, Railx V2.x.y, init_translations_ennder() dans after_initialize"
20
22
 
@@ -28,10 +30,12 @@ if Rails::VERSION::MAJOR < 3 then
28
30
  init_translations_ennder
29
31
  end
30
32
  else
33
+ #Rails 3
34
+
31
35
  _info = "gem translations_ennder V#{TranslationsEnnder.version}, Railx V3.x.y, init_translations_ennder()"
32
36
 
33
37
  if Rails.logger.nil?
34
- _logger = Logger.new(Rails.root + "log/#{Rails.env}.log")
38
+ _logger = Logger.new(::Rails.root.to_s + "log/#{Rails.env}.log")
35
39
  else
36
40
  _logger = Rails.logger
37
41
  end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class TranslationEnnderTest < ActionController::IntegrationTest
4
+ end
data/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.9
1
+ 1.1.0
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: 5
5
- prerelease: false
4
+ hash: 19
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 9
10
- version: 1.0.9
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ennder
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-21 00:00:00 +01:00
18
+ date: 2011-03-22 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -69,12 +69,9 @@ files:
69
69
  - lib/translations_ennder/locales/en.yml
70
70
  - lib/translations_ennder/locales/fr.yml
71
71
  - lib/translations_ennder/rails.rb
72
- - spec/spec_helper.rb
73
- - spec/translations_ennder_spec.rb
74
72
  - test/.directory
75
73
  - test/integration/.directory
76
- - test/integration/translations_test.rb
77
- - test/test_translations_ennder.rb
74
+ - test/integration/translations_ennder_test.rb
78
75
  - version.txt
79
76
  has_rdoc: true
80
77
  homepage: http://www.ennder.fr
@@ -107,9 +104,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
104
  requirements: []
108
105
 
109
106
  rubyforge_project: translations_ennder
110
- rubygems_version: 1.3.7
107
+ rubygems_version: 1.5.0
111
108
  signing_key:
112
109
  specification_version: 3
113
110
  summary: "Ce plugin apporte des traductions standard en fran\xC3\xA7ais et anglais."
114
- test_files:
115
- - test/test_translations_ennder.rb
111
+ test_files: []
112
+
data/spec/spec_helper.rb DELETED
@@ -1,15 +0,0 @@
1
-
2
- require File.expand_path(
3
- File.join(File.dirname(__FILE__), %w[.. lib translations_ennder]))
4
-
5
- Spec::Runner.configure do |config|
6
- # == Mock Framework
7
- #
8
- # RSpec uses it's own mocking framework by default. If you prefer to
9
- # use mocha, flexmock or RR, uncomment the appropriate line:
10
- #
11
- # config.mock_with :mocha
12
- # config.mock_with :flexmock
13
- # config.mock_with :rr
14
- end
15
-
@@ -1,6 +0,0 @@
1
-
2
- require File.join(File.dirname(__FILE__), %w[spec_helper])
3
-
4
- describe TranslationsEnnder do
5
- end
6
-
@@ -1,13 +0,0 @@
1
- # -*- coding: undecided -*-
2
- require 'test_helper'
3
-
4
- puts "Version de Rails : [#{Rails::VERSION::STRING}]"
5
-
6
- class TranslationTest < ActionController::IntegrationTest
7
- fixtures :all
8
-
9
- # TODO à tester (sans contrôleur !!!, alors que ce test est un test de contrôleur => jamais activé )
10
- test "the truth" do
11
- assert ( Time.utc(2011,"jan",1,16,0,0).to_s(:short) == '2011/12/01 16:01' )
12
- end
13
- end
File without changes