happy-helpers 0.1.0.pre11 → 0.1.0.pre12
Sign up to get free protection for your applications and to get access to all the features.
- data/happy-helpers.gemspec +0 -1
- data/lib/happy-helpers/version.rb +1 -1
- data/lib/happy-helpers.rb +0 -1
- metadata +14 -26
- data/lib/happy-helpers/templates.rb +0 -20
data/happy-helpers.gemspec
CHANGED
data/lib/happy-helpers.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: happy-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre12
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: tilt
|
16
|
-
requirement: &70246893470500 !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '1.3'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: *70246893470500
|
25
14
|
- !ruby/object:Gem::Dependency
|
26
15
|
name: i18n
|
27
|
-
requirement: &
|
16
|
+
requirement: &70179175596160 !ruby/object:Gem::Requirement
|
28
17
|
none: false
|
29
18
|
requirements:
|
30
19
|
- - ! '>='
|
@@ -32,10 +21,10 @@ dependencies:
|
|
32
21
|
version: '0'
|
33
22
|
type: :runtime
|
34
23
|
prerelease: false
|
35
|
-
version_requirements: *
|
24
|
+
version_requirements: *70179175596160
|
36
25
|
- !ruby/object:Gem::Dependency
|
37
26
|
name: money
|
38
|
-
requirement: &
|
27
|
+
requirement: &70179175593960 !ruby/object:Gem::Requirement
|
39
28
|
none: false
|
40
29
|
requirements:
|
41
30
|
- - ~>
|
@@ -43,10 +32,10 @@ dependencies:
|
|
43
32
|
version: '5.0'
|
44
33
|
type: :runtime
|
45
34
|
prerelease: false
|
46
|
-
version_requirements: *
|
35
|
+
version_requirements: *70179175593960
|
47
36
|
- !ruby/object:Gem::Dependency
|
48
37
|
name: activesupport
|
49
|
-
requirement: &
|
38
|
+
requirement: &70179175592180 !ruby/object:Gem::Requirement
|
50
39
|
none: false
|
51
40
|
requirements:
|
52
41
|
- - ! '>='
|
@@ -54,10 +43,10 @@ dependencies:
|
|
54
43
|
version: '0'
|
55
44
|
type: :runtime
|
56
45
|
prerelease: false
|
57
|
-
version_requirements: *
|
46
|
+
version_requirements: *70179175592180
|
58
47
|
- !ruby/object:Gem::Dependency
|
59
48
|
name: rspec
|
60
|
-
requirement: &
|
49
|
+
requirement: &70179175591400 !ruby/object:Gem::Requirement
|
61
50
|
none: false
|
62
51
|
requirements:
|
63
52
|
- - ! '>='
|
@@ -65,10 +54,10 @@ dependencies:
|
|
65
54
|
version: '0'
|
66
55
|
type: :development
|
67
56
|
prerelease: false
|
68
|
-
version_requirements: *
|
57
|
+
version_requirements: *70179175591400
|
69
58
|
- !ruby/object:Gem::Dependency
|
70
59
|
name: rake
|
71
|
-
requirement: &
|
60
|
+
requirement: &70179175590640 !ruby/object:Gem::Requirement
|
72
61
|
none: false
|
73
62
|
requirements:
|
74
63
|
- - ! '>='
|
@@ -76,10 +65,10 @@ dependencies:
|
|
76
65
|
version: '0'
|
77
66
|
type: :development
|
78
67
|
prerelease: false
|
79
|
-
version_requirements: *
|
68
|
+
version_requirements: *70179175590640
|
80
69
|
- !ruby/object:Gem::Dependency
|
81
70
|
name: watchr
|
82
|
-
requirement: &
|
71
|
+
requirement: &70179175589580 !ruby/object:Gem::Requirement
|
83
72
|
none: false
|
84
73
|
requirements:
|
85
74
|
- - ! '>='
|
@@ -87,7 +76,7 @@ dependencies:
|
|
87
76
|
version: '0'
|
88
77
|
type: :development
|
89
78
|
prerelease: false
|
90
|
-
version_requirements: *
|
79
|
+
version_requirements: *70179175589580
|
91
80
|
description: View helpers for your custom Rack app or framework.
|
92
81
|
email:
|
93
82
|
- hendrik@mans.de
|
@@ -109,7 +98,6 @@ files:
|
|
109
98
|
- lib/happy-helpers/helpers/html.rb
|
110
99
|
- lib/happy-helpers/helpers/i18n.rb
|
111
100
|
- lib/happy-helpers/helpers/numbers.rb
|
112
|
-
- lib/happy-helpers/templates.rb
|
113
101
|
- lib/happy-helpers/utils/date_parameter_converter.rb
|
114
102
|
- lib/happy-helpers/version.rb
|
115
103
|
- spec/helpers/html_spec.rb
|
@@ -1,20 +0,0 @@
|
|
1
|
-
require 'tilt'
|
2
|
-
|
3
|
-
module HappyHelpers
|
4
|
-
module Templates
|
5
|
-
def self.render(name, scope = nil, variables = {}, &block)
|
6
|
-
load(name).render(scope, variables, &block)
|
7
|
-
end
|
8
|
-
|
9
|
-
def self.load(name)
|
10
|
-
name = File.expand_path(name)
|
11
|
-
|
12
|
-
if false # Freddie.env.production?
|
13
|
-
@templates ||= {}
|
14
|
-
@templates[name] ||= Tilt.new(name, :default_encoding => 'utf-8')
|
15
|
-
else
|
16
|
-
Tilt.new(name, :default_encoding => 'utf-8')
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|