ruby_l10n 0.0.4 → 0.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 681b217b068f90158ae5044f6fb3ddc96bc57b87
4
- data.tar.gz: 38154968302c98cbeab4c8e7272fc237b0c99d2b
3
+ metadata.gz: 38e22155c7cb29424ae53c3380ba2e507cf30830
4
+ data.tar.gz: c4e80d4b9350837e3936be76575b7e6d0f3f2101
5
5
  SHA512:
6
- metadata.gz: c8d65628fedfb3098ddf864d517141f8f5bb1e77480fb38fa01afdce7254829bfc6614211ead865cd02e8997c1b0f7ee525ad626b059a93bd6796fcd8b58f729
7
- data.tar.gz: 261c6218b92dfacf5f007799916b57961edae5c56e24fd0d682c551b950f3d1d45115ab9829c7a571c65c3757d78ebf2ce34e2f215e62943c7e1423ebfcb9eb5
6
+ metadata.gz: 397a4de7e6ca2707f0b75009221516400af0f6477bd41751d59adb2a89b697a55896b354dbc46df0d80d33f5233505385836764da2e9500762b76c8665b22a57
7
+ data.tar.gz: 80cb6317ea8cd0948f81d2228f7890f79eceda00ca5c443f5620d9bcac80b8435113ac91e005e502aae088f5675f9009a00cef9ecabd10ebd5d7e1ef5ec2003d
@@ -11,15 +11,13 @@ class LocaleHelper
11
11
 
12
12
  def initialize(locale, options = {})
13
13
  @locale = locale
14
- config = ConfigService.load_config("locales/#{locale}.yml")
15
- @format_data = config[locale]
14
+ @format_data = ConfigService.load_config("locales/#{locale}.yml")
16
15
 
17
16
  if options['logger']
18
17
  @logger = options['logger']
19
18
  else
20
19
  @logger = ::Logging::Logger.new("locale_helper_#{@locale}_#{self.object_id}")
21
20
  current_env = ENV['RACK_ENV'] || ENV['RAILS_ENV'] || options['env'] || 'development'
22
- #raise File.expand_path("../../log/#{current_env}.log")
23
21
  @logger.add_appenders(Logging.appenders.stdout, Logging.appenders.file(File.expand_path("./log/#{current_env}.log")))
24
22
  end
25
23
 
@@ -123,7 +121,6 @@ class LocaleHelper
123
121
 
124
122
  if st.nil?
125
123
  logger.error("\n***** Warning: label #{label} is not found in the locale #{@locale}.\n\n")
126
- # st = LOCALES[US_LOCALE].lc_label(label, args)
127
124
  return "#{lc_label('label_not_found')} #{label}"
128
125
  end
129
126
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ruby_l10n'
3
- s.version = '0.0.4'
3
+ s.version = '0.0.5'
4
4
  s.summary = "A gem that provide L10n functionalities"
5
5
  s.description = "A gem that provide L10n functionalities"
6
6
  s.authors = ['Linh Chau']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_l10n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linh Chau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-12 00:00:00.000000000 Z
11
+ date: 2015-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logging