fesplugas-typus 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/typus.rb +5 -2
- data/typus.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.9.
|
|
1
|
+
0.9.4
|
data/lib/typus.rb
CHANGED
|
@@ -2,6 +2,10 @@ module Typus
|
|
|
2
2
|
|
|
3
3
|
class << self
|
|
4
4
|
|
|
5
|
+
def version
|
|
6
|
+
@@version ||= File.read("#{root}/VERSION").strip
|
|
7
|
+
end
|
|
8
|
+
|
|
5
9
|
def root
|
|
6
10
|
File.dirname(__FILE__) + '/../'
|
|
7
11
|
end
|
|
@@ -104,8 +108,7 @@ module Typus
|
|
|
104
108
|
if plugin?
|
|
105
109
|
I18n.load_path += Dir[File.join("#{Rails.root}/vendor/plugins/typus/config/locales/**/*.{rb,yml}")]
|
|
106
110
|
else
|
|
107
|
-
#
|
|
108
|
-
Gem.path.each { |g| I18n.load_path += Dir[File.join("#{g}/gems/*typus*/config/locales/**/*.{rb,yml}")] }
|
|
111
|
+
Gem.path.each { |g| I18n.load_path += Dir[File.join("#{g}/gems/*typus-#{version}/config/locales/**/*.{rb,yml}")] }
|
|
109
112
|
end
|
|
110
113
|
|
|
111
114
|
# Require the test/models on when testing.
|
data/typus.gemspec
CHANGED