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 CHANGED
@@ -1,4 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
+ gem 'test-unit', '~> 1.2.3', :require => 'test/unit'
4
+
3
5
  # Specify your gem's dependencies in trimmer.gemspec
4
6
  gemspec
data/History.md CHANGED
@@ -9,4 +9,14 @@
9
9
 
10
10
  * Ruby 1.9 and 1.8 compatibility
11
11
 
12
+ * Version 0.0.4
13
+ #####Changed
14
+
15
+ * Order templates
16
+ * Fix tests
17
+
18
+ * Version 0.0.5
19
+ #####Changed
20
+
21
+ * Fix /trimmer/en/{translations/templates}.js routes
12
22
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Trimmer
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/test_helper'
1
+ require_relative 'test_helper'
2
2
 
3
3
  context Trimmer::Controller do
4
4
  F = ::File
data/test/test_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'i18n'
2
2
  require 'test/spec'
3
3
  require 'rack/mock'
4
- require File.dirname(__FILE__) + '/../lib/trimmer'
4
+ require_relative '../lib/trimmer'
5
5
 
6
6
  class Test::Unit::TestCase
7
7
 
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
- hash: 23
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
- date: 2012-01-25 00:00:00 +01:00
20
- default_executable:
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
- prerelease: false
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
- hash: 7
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
- requirement: &id002 !ruby/object:Gem::Requirement
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
- hash: 13
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
- requirement: &id003 !ruby/object:Gem::Requirement
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
- requirement: &id004 !ruby/object:Gem::Requirement
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
- requirement: &id005 !ruby/object:Gem::Requirement
73
+ version_requirements: !ruby/object:Gem::Requirement
88
74
  none: false
89
- requirements:
75
+ requirements:
90
76
  - - ~>
91
- - !ruby/object:Gem::Version
92
- hash: 59
93
- segments:
94
- - 0
95
- - 9
96
- - 0
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
- requirement: &id006 !ruby/object:Gem::Requirement
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
- requirement: &id007 !ruby/object:Gem::Requirement
105
+ version_requirements: !ruby/object:Gem::Requirement
120
106
  none: false
121
- requirements:
107
+ requirements:
122
108
  - - ~>
123
- - !ruby/object:Gem::Version
124
- hash: 13
125
- segments:
126
- - 1
127
- - 1
128
- version: "1.1"
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
- version_requirements: *id007
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
- hash: 3
178
- segments:
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
- hash: 3
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.6.2
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: