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 +5 -1
- data/lib/translations_ennder/rails.rb +5 -1
- data/test/integration/translations_ennder_test.rb +4 -0
- data/version.txt +1 -1
- metadata +9 -12
- data/spec/spec_helper.rb +0 -15
- data/spec/translations_ennder_spec.rb +0 -6
- data/test/integration/translations_test.rb +0 -13
- data/test/test_translations_ennder.rb +0 -0
data/History.txt
CHANGED
@@ -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
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
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
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
+
- 1
|
8
9
|
- 0
|
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-
|
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/
|
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.
|
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
|
-
|
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,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
|