tolk 1.3.6 → 1.3.7

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.
@@ -1,4 +1,4 @@
1
1
  //= require tolk/prototype.js
2
+ //= require tolk/effects.js
2
3
  //= require tolk/controls.js
3
4
  //= require tolk/dragdrop.js
4
- //= require tolk/effects.js
@@ -5,8 +5,6 @@ require 'tolk/engine'
5
5
  require 'tolk/sync'
6
6
  require 'tolk/import'
7
7
 
8
- SafeYAML::OPTIONS[:suppress_warnings] = true
9
-
10
8
  module Tolk
11
9
  # Setup Tolk
12
10
  def self.config(&block)
@@ -2,6 +2,7 @@ require 'rails'
2
2
 
3
3
  module Tolk
4
4
  class Engine < Rails::Engine
5
+ SafeYAML::OPTIONS[:default_mode] = :safe
5
6
  isolate_namespace Tolk
6
7
  end
7
8
  end
@@ -17,7 +17,7 @@ module Tolk
17
17
 
18
18
  def read_primary_locale_file
19
19
  primary_file = "#{self.locales_config_path}/#{self.primary_locale_name}.yml"
20
- File.exists?(primary_file) ? flat_hash(YAML::load(IO.read(primary_file))[self.primary_locale_name]) : {}
20
+ File.exists?(primary_file) ? flat_hash(YAML::safe_load(IO.read(primary_file))[self.primary_locale_name]) : {}
21
21
  end
22
22
 
23
23
  def flat_hash(data, prefix = '', result = {})
@@ -1,3 +1,3 @@
1
1
  module Tolk
2
- VERSION = "1.3.6"
2
+ VERSION = "1.3.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tolk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: 1.3.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-03-04 00:00:00.000000000 Z
15
+ date: 2013-03-07 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: will_paginate
@@ -37,7 +37,7 @@ dependencies:
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: '0.7'
40
+ version: '0.8'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
@@ -45,7 +45,7 @@ dependencies:
45
45
  requirements:
46
46
  - - ~>
47
47
  - !ruby/object:Gem::Version
48
- version: '0.7'
48
+ version: '0.8'
49
49
  description: Tolk is a web interface for doing i18n translations packaged as an engine
50
50
  for Rails applications.
51
51
  email: david@loudthinking.com