i18n-js 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- i18n-js (2.1.1)
4
+ i18n-js (2.1.2)
5
5
  i18n
6
6
 
7
7
  GEM
@@ -29,11 +29,12 @@ module SimplesIdeias
29
29
 
30
30
  # rewrite path cache hash at startup and before each request in development
31
31
  config.to_prepare do
32
+ next unless SimplesIdeias::I18n.has_asset_pipeline?
32
33
  SimplesIdeias::I18n::Engine.write_hash_if_changed unless Rails.env.production?
33
34
  end
34
35
 
35
36
  def self.load_path_hash_cache
36
- @load_path_hash_cache ||= File.join(Rails.application.paths["tmp"].first, "i18n-js.i18n_path_cache.dat")
37
+ @load_path_hash_cache ||= Rails.root.join("tmp/i18n-js.cache")
37
38
  end
38
39
 
39
40
  def self.write_hash_if_changed
@@ -46,7 +47,9 @@ module SimplesIdeias
46
47
  end
47
48
 
48
49
  def self.write_hash!
49
- File.open(load_path_hash_cache, "w") do |f|
50
+ FileUtils.mkdir_p Rails.root.join("tmp")
51
+
52
+ File.open(load_path_hash_cache, "w+") do |f|
50
53
  f.write(cached_load_path_hash)
51
54
  end
52
55
  end
@@ -3,7 +3,7 @@ module SimplesIdeias
3
3
  module Version
4
4
  MAJOR = 2
5
5
  MINOR = 1
6
- PATCH = 1
6
+ PATCH = 2
7
7
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n-js
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-17 00:00:00.000000000 Z
12
+ date: 2011-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
16
- requirement: &70281327448420 !ruby/object:Gem::Requirement
16
+ requirement: &70147378835340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70281327448420
24
+ version_requirements: *70147378835340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: fakeweb
27
- requirement: &70281327447820 !ruby/object:Gem::Requirement
27
+ requirement: &70147377739360 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70281327447820
35
+ version_requirements: *70147377739360
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: activesupport
38
- requirement: &70281327437540 !ruby/object:Gem::Requirement
38
+ requirement: &70147377673420 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 3.0.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70281327437540
46
+ version_requirements: *70147377673420
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &70281327436980 !ruby/object:Gem::Requirement
49
+ requirement: &70147373213280 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '2.6'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70281327436980
57
+ version_requirements: *70147373213280
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: spec-js
60
- requirement: &70281327436280 !ruby/object:Gem::Requirement
60
+ requirement: &70147373066580 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.1.0.beta.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70281327436280
68
+ version_requirements: *70147373066580
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
- requirement: &70281327435620 !ruby/object:Gem::Requirement
71
+ requirement: &70147373080060 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70281327435620
79
+ version_requirements: *70147373080060
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: pry
82
- requirement: &70281327434980 !ruby/object:Gem::Requirement
82
+ requirement: &70147373075720 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70281327434980
90
+ version_requirements: *70147373075720
91
91
  description: It's a small library to provide the Rails I18n translations on the Javascript.
92
92
  email:
93
93
  - fnando.vieira@gmail.com
@@ -137,7 +137,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  segments:
139
139
  - 0
140
- hash: -2888069354346865938
140
+ hash: -360078987337318543
141
141
  required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  none: false
143
143
  requirements:
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  segments:
148
148
  - 0
149
- hash: -2888069354346865938
149
+ hash: -360078987337318543
150
150
  requirements: []
151
151
  rubyforge_project:
152
152
  rubygems_version: 1.8.11