fifty 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/fifty/helpers.rb +8 -1
  2. data/lib/fifty.rb +1 -1
  3. 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(element) { return locales[locale][element]; }"
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
@@ -3,7 +3,7 @@ module Fifty
3
3
  require 'handlebars'
4
4
  require 'haml'
5
5
 
6
- VERSION = '0.0.2'
6
+ VERSION = '0.0.3'
7
7
 
8
8
  class << self
9
9
  attr_accessor :views
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.2
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