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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/typus.rb +5 -2
  3. data/typus.gemspec +1 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.3
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
- # FIXME
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{typus}
5
- s.version = "0.9.3"
5
+ s.version = "0.9.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Francesc Esplugas"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fesplugas-typus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesc Esplugas