fifty 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fifty/helpers.rb +8 -1
- data/lib/fifty.rb +1 -1
- metadata +1 -17
data/lib/fifty/helpers.rb
CHANGED
@@ -6,7 +6,14 @@ module Fifty::Helpers
|
|
6
6
|
require 'yaml'
|
7
7
|
require 'json'
|
8
8
|
|
9
|
-
Fifty.helper :t, "function(
|
9
|
+
Fifty.helper :t, "function(path) {
|
10
|
+
var current = locales[locale];
|
11
|
+
var elements = path.split('.');
|
12
|
+
while (elements.length > 0 ) {
|
13
|
+
current = current[elements.shift()];
|
14
|
+
}
|
15
|
+
return current;
|
16
|
+
}"
|
10
17
|
|
11
18
|
Fifty.class_eval do
|
12
19
|
class << self
|
data/lib/fifty.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fifty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -75,22 +75,6 @@ dependencies:
|
|
75
75
|
- - ! '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: binding_of_caller
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ! '>='
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: '0'
|
86
|
-
type: :runtime
|
87
|
-
prerelease: false
|
88
|
-
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - ! '>='
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '0'
|
94
78
|
description: ''
|
95
79
|
email:
|
96
80
|
- louis.mullie@gmail.com
|