trimmer 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/History.md +10 -0
- data/lib/trimmer/controller.rb +2 -2
- data/lib/trimmer/version.rb +1 -1
- data/test/spec_trimmer_controller.rb +1 -1
- data/test/test_helper.rb +1 -1
- metadata +103 -119
data/Gemfile
CHANGED
data/History.md
CHANGED
data/lib/trimmer/controller.rb
CHANGED
@@ -43,12 +43,12 @@ module Trimmer
|
|
43
43
|
protected
|
44
44
|
|
45
45
|
def templates(locale, ext)
|
46
|
-
[200, {'Content-Type' => 'text/javascript'}, templates_to_js(locale)]
|
46
|
+
[200, {'Content-Type' => 'text/javascript'}, [templates_to_js(locale)]]
|
47
47
|
end
|
48
48
|
|
49
49
|
|
50
50
|
def translations(locale, ext)
|
51
|
-
[200, {'Content-Type' => 'text/javascript'}, translations_to_js(:locale => locale, :only => allowed_keys)]
|
51
|
+
[200, {'Content-Type' => 'text/javascript'}, [translations_to_js(:locale => locale, :only => allowed_keys)]]
|
52
52
|
end
|
53
53
|
|
54
54
|
# Exports templates and translations in a single request
|
data/lib/trimmer/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,144 +1,137 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: trimmer
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 4
|
10
|
-
version: 0.0.4
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Pablo Villalba
|
14
9
|
- Saimon Moore
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
dependencies:
|
22
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2013-07-17 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
23
16
|
name: activesupport
|
24
|
-
|
25
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
26
18
|
none: false
|
27
|
-
requirements:
|
28
|
-
- -
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
|
31
|
-
segments:
|
32
|
-
- 3
|
33
|
-
- 0
|
34
|
-
version: "3.0"
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3.0'
|
35
23
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: rack
|
39
24
|
prerelease: false
|
40
|
-
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '3.0'
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: rack
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
41
34
|
none: false
|
42
|
-
requirements:
|
35
|
+
requirements:
|
43
36
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
segments:
|
47
|
-
- 1
|
48
|
-
- 1
|
49
|
-
version: "1.1"
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '1.1'
|
50
39
|
type: :runtime
|
51
|
-
version_requirements: *id002
|
52
|
-
- !ruby/object:Gem::Dependency
|
53
|
-
name: i18n
|
54
40
|
prerelease: false
|
55
|
-
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1.1'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: i18n
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
56
50
|
none: false
|
57
|
-
requirements:
|
51
|
+
requirements:
|
58
52
|
- - ~>
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
hash: 7
|
61
|
-
segments:
|
62
|
-
- 0
|
63
|
-
- 6
|
64
|
-
- 0
|
53
|
+
- !ruby/object:Gem::Version
|
65
54
|
version: 0.6.0
|
66
55
|
type: :runtime
|
67
|
-
version_requirements: *id003
|
68
|
-
- !ruby/object:Gem::Dependency
|
69
|
-
name: tilt
|
70
56
|
prerelease: false
|
71
|
-
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 0.6.0
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: tilt
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
72
66
|
none: false
|
73
|
-
requirements:
|
67
|
+
requirements:
|
74
68
|
- - ~>
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
hash: 29
|
77
|
-
segments:
|
78
|
-
- 1
|
79
|
-
- 3
|
80
|
-
- 3
|
69
|
+
- !ruby/object:Gem::Version
|
81
70
|
version: 1.3.3
|
82
71
|
type: :runtime
|
83
|
-
version_requirements: *id004
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: test-spec
|
86
72
|
prerelease: false
|
87
|
-
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
88
74
|
none: false
|
89
|
-
requirements:
|
75
|
+
requirements:
|
90
76
|
- - ~>
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 1.3.3
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: test-spec
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ~>
|
85
|
+
- !ruby/object:Gem::Version
|
97
86
|
version: 0.9.0
|
98
87
|
type: :development
|
99
|
-
version_requirements: *id005
|
100
|
-
- !ruby/object:Gem::Dependency
|
101
|
-
name: haml
|
102
88
|
prerelease: false
|
103
|
-
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ~>
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 0.9.0
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: haml
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
104
98
|
none: false
|
105
|
-
requirements:
|
99
|
+
requirements:
|
106
100
|
- - ~>
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
hash: 53
|
109
|
-
segments:
|
110
|
-
- 3
|
111
|
-
- 0
|
112
|
-
- 25
|
101
|
+
- !ruby/object:Gem::Version
|
113
102
|
version: 3.0.25
|
114
103
|
type: :development
|
115
|
-
version_requirements: *id006
|
116
|
-
- !ruby/object:Gem::Dependency
|
117
|
-
name: json
|
118
104
|
prerelease: false
|
119
|
-
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
106
|
none: false
|
121
|
-
requirements:
|
107
|
+
requirements:
|
122
108
|
- - ~>
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 3.0.25
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: json
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ~>
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '1.1'
|
129
119
|
type: :development
|
130
|
-
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ~>
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '1.1'
|
131
127
|
description:
|
132
|
-
email:
|
128
|
+
email:
|
133
129
|
- pablo@teambox.com
|
134
130
|
- saimon@teambox.com
|
135
131
|
executables: []
|
136
|
-
|
137
132
|
extensions: []
|
138
|
-
|
139
133
|
extra_rdoc_files: []
|
140
|
-
|
141
|
-
files:
|
134
|
+
files:
|
142
135
|
- .gitignore
|
143
136
|
- Gemfile
|
144
137
|
- History.md
|
@@ -160,41 +153,31 @@ files:
|
|
160
153
|
- test/test_data/templates_missing_t/baz/bif.haml
|
161
154
|
- test/test_helper.rb
|
162
155
|
- trimmer.gemspec
|
163
|
-
has_rdoc: true
|
164
156
|
homepage: https://github.com/teambox/trimmer
|
165
157
|
licenses: []
|
166
|
-
|
167
158
|
post_install_message:
|
168
159
|
rdoc_options: []
|
169
|
-
|
170
|
-
require_paths:
|
160
|
+
require_paths:
|
171
161
|
- lib
|
172
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
162
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
173
163
|
none: false
|
174
|
-
requirements:
|
175
|
-
- -
|
176
|
-
- !ruby/object:Gem::Version
|
177
|
-
|
178
|
-
|
179
|
-
- 0
|
180
|
-
version: "0"
|
181
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ! '>='
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
168
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
169
|
none: false
|
183
|
-
requirements:
|
184
|
-
- -
|
185
|
-
- !ruby/object:Gem::Version
|
186
|
-
|
187
|
-
segments:
|
188
|
-
- 0
|
189
|
-
version: "0"
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
190
174
|
requirements: []
|
191
|
-
|
192
175
|
rubyforge_project: trimmer
|
193
|
-
rubygems_version: 1.
|
176
|
+
rubygems_version: 1.8.23
|
194
177
|
signing_key:
|
195
178
|
specification_version: 3
|
196
179
|
summary: Rack endpoint to make templates and i18n translations available in javascript
|
197
|
-
test_files:
|
180
|
+
test_files:
|
198
181
|
- test/spec_trimmer_controller.rb
|
199
182
|
- test/test_data/complex_templates/bar/deportes.haml
|
200
183
|
- test/test_data/complex_templates/foo/manchu.haml
|
@@ -205,3 +188,4 @@ test_files:
|
|
205
188
|
- test/test_data/templates/foo/bar.haml
|
206
189
|
- test/test_data/templates_missing_t/baz/bif.haml
|
207
190
|
- test/test_helper.rb
|
191
|
+
has_rdoc:
|