tilt-handlebars 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: decde4ca9500b00b2470619fab9c5d1ce6855f4c
4
- data.tar.gz: d96e11fe46cf6130ab1e53261adaa44a7d79670f
3
+ metadata.gz: 4393e0de3b15ac3c934d2af2f2ebfbb35d0289c1
4
+ data.tar.gz: 860bc8a1081a4d9fb44d917dbb0789bc795c344d
5
5
  SHA512:
6
- metadata.gz: 4371b4a50b69a12a782984a099e9fd1e13149a51f4198953431345a8d584d3efe4e598a0c85d1c4eff9c750e2ee7e3af9cb37580925d85a34ae009e4edc3a4f4
7
- data.tar.gz: 8fd0ba03a41f80d5605dbc042398db2021fed5b2a45b10f2deb20da955aefd99330f37869fb91dabf14be26d8cdfedbe146053fe3826bd50964f1d9f520b52f0
6
+ metadata.gz: 7704162d3a2c1aaff3a0b4c5bbccc55d52016a4c47283d5e0e40479122596cdc5ece316c98393580205a8ec2c5cdc979e90538f7533400f65979387abab67ba8
7
+ data.tar.gz: d7936aedb0222cb1138565b1f24596d1037b3d07df7db85deba9a85b5e16abde421fc580fa9385f562d3a19d4da0a56e5653420edb8129540ac291bb8415e524
@@ -1,6 +1,12 @@
1
1
  Tilt Handlebars Release Notes
2
2
  =============================
3
3
 
4
+ Version 1.4
5
+ -----------
6
+ * Updated to Tilt 2.0. It should still work with Tilt 1.3.
7
+ * Updated to [Handlebars.rb](https://github.com/cowboyd/handlebars.rb) 0.7.0 and [Handlebars.js](3.0)
8
+ * Issue #3: Fix "Template engine not found error"
9
+
4
10
  Version 1.3.1
5
11
  -------------
6
12
 
@@ -1,3 +1,5 @@
1
+ require 'tilt/handlebars'
2
+
1
3
  module Sinatra
2
4
  module Handlebars
3
5
  def handlebars(*args)
@@ -1,5 +1,5 @@
1
1
  module Tilt
2
2
  module Handlebars
3
- VERSION = "1.3.1"
3
+ VERSION = "1.4.0"
4
4
  end
5
5
  end
@@ -0,0 +1,7 @@
1
+ # Test Sinatra App
2
+
3
+ To run:
4
+
5
+ bundle exec ruby myapp.rb
6
+
7
+ Then open http://localhost:4567/hello in your browser.
@@ -0,0 +1,12 @@
1
+ require 'sinatra'
2
+ require 'sinatra/handlebars'
3
+
4
+ class MyApp < Sinatra::Base
5
+ helpers Sinatra::Handlebars
6
+
7
+ get "/hello" do
8
+ handlebars :index, locals: {name: 'Joe', emotion: 'happy'}
9
+ end
10
+
11
+ run! if app_file == $0
12
+ end
@@ -0,0 +1 @@
1
+ Hello, {{name}}. I'm {{emotion}} to meet you.
@@ -9,8 +9,12 @@ Gem::Specification.new do |spec|
9
9
  spec.version = Tilt::Handlebars::VERSION
10
10
  spec.authors = ["Jim Cushing"]
11
11
  spec.email = ["jimothy@mac.com"]
12
- spec.description = "Use Handlebars.rb with Tilt"
13
- spec.summary = spec.description
12
+ spec.description = <<-EOF
13
+ tilt-handlebars allows the Handlebars template engine to work with Tilt.
14
+ Is uses the official JavaScript implementation of Handlebars, courtesy
15
+ of therubyracer and handlebars.rb from cowboyd.
16
+ EOF
17
+ spec.summary = "Tilt support for Handlebars"
14
18
  spec.homepage = "https://github.com/jimothyGator/tilt-handlebars"
15
19
  spec.license = "MIT"
16
20
 
@@ -19,13 +23,13 @@ Gem::Specification.new do |spec|
19
23
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
24
  spec.require_paths = ["lib"]
21
25
 
22
- spec.add_dependency "tilt", "~> 1.4"
23
- spec.add_dependency "handlebars", "~> 0.6"
26
+ spec.add_dependency 'tilt', '>= 1.3', '< 3'
27
+ spec.add_dependency "handlebars", "~> 0.7"
24
28
 
25
29
  spec.add_development_dependency "bundler", "~> 1.3"
26
- spec.add_development_dependency "rake"
30
+ spec.add_development_dependency "rake", "~> 10"
27
31
  spec.add_development_dependency "minitest", "~> 5.0"
28
- spec.add_development_dependency "sinatra"
29
- spec.add_development_dependency "rack-test"
30
- spec.add_development_dependency "coveralls"
32
+ spec.add_development_dependency "sinatra", "~> 1.4"
33
+ spec.add_development_dependency "rack-test", "~> 0.6"
34
+ spec.add_development_dependency "coveralls", "~> 0.6"
31
35
  end
metadata CHANGED
@@ -1,136 +1,145 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tilt-handlebars
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Cushing
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-28 00:00:00.000000000 Z
11
+ date: 2015-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tilt
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.4'
19
+ version: '1.3'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - ~>
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: '1.4'
29
+ version: '1.3'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: handlebars
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - ~>
37
+ - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '0.6'
39
+ version: '0.7'
34
40
  type: :runtime
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
- - - ~>
44
+ - - "~>"
39
45
  - !ruby/object:Gem::Version
40
- version: '0.6'
46
+ version: '0.7'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: bundler
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
- - - ~>
51
+ - - "~>"
46
52
  - !ruby/object:Gem::Version
47
53
  version: '1.3'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
- - - ~>
58
+ - - "~>"
53
59
  - !ruby/object:Gem::Version
54
60
  version: '1.3'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: rake
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
- - - '>='
65
+ - - "~>"
60
66
  - !ruby/object:Gem::Version
61
- version: '0'
67
+ version: '10'
62
68
  type: :development
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
- - - '>='
72
+ - - "~>"
67
73
  - !ruby/object:Gem::Version
68
- version: '0'
74
+ version: '10'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: minitest
71
77
  requirement: !ruby/object:Gem::Requirement
72
78
  requirements:
73
- - - ~>
79
+ - - "~>"
74
80
  - !ruby/object:Gem::Version
75
81
  version: '5.0'
76
82
  type: :development
77
83
  prerelease: false
78
84
  version_requirements: !ruby/object:Gem::Requirement
79
85
  requirements:
80
- - - ~>
86
+ - - "~>"
81
87
  - !ruby/object:Gem::Version
82
88
  version: '5.0'
83
89
  - !ruby/object:Gem::Dependency
84
90
  name: sinatra
85
91
  requirement: !ruby/object:Gem::Requirement
86
92
  requirements:
87
- - - '>='
93
+ - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: '0'
95
+ version: '1.4'
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
- - - '>='
100
+ - - "~>"
95
101
  - !ruby/object:Gem::Version
96
- version: '0'
102
+ version: '1.4'
97
103
  - !ruby/object:Gem::Dependency
98
104
  name: rack-test
99
105
  requirement: !ruby/object:Gem::Requirement
100
106
  requirements:
101
- - - '>='
107
+ - - "~>"
102
108
  - !ruby/object:Gem::Version
103
- version: '0'
109
+ version: '0.6'
104
110
  type: :development
105
111
  prerelease: false
106
112
  version_requirements: !ruby/object:Gem::Requirement
107
113
  requirements:
108
- - - '>='
114
+ - - "~>"
109
115
  - !ruby/object:Gem::Version
110
- version: '0'
116
+ version: '0.6'
111
117
  - !ruby/object:Gem::Dependency
112
118
  name: coveralls
113
119
  requirement: !ruby/object:Gem::Requirement
114
120
  requirements:
115
- - - '>='
121
+ - - "~>"
116
122
  - !ruby/object:Gem::Version
117
- version: '0'
123
+ version: '0.6'
118
124
  type: :development
119
125
  prerelease: false
120
126
  version_requirements: !ruby/object:Gem::Requirement
121
127
  requirements:
122
- - - '>='
128
+ - - "~>"
123
129
  - !ruby/object:Gem::Version
124
- version: '0'
125
- description: Use Handlebars.rb with Tilt
130
+ version: '0.6'
131
+ description: |2
132
+ tilt-handlebars allows the Handlebars template engine to work with Tilt.
133
+ Is uses the official JavaScript implementation of Handlebars, courtesy
134
+ of therubyracer and handlebars.rb from cowboyd.
126
135
  email:
127
136
  - jimothy@mac.com
128
137
  executables: []
129
138
  extensions: []
130
139
  extra_rdoc_files: []
131
140
  files:
132
- - .gitignore
133
- - .travis.yml
141
+ - ".gitignore"
142
+ - ".travis.yml"
134
143
  - Gemfile
135
144
  - LICENSE.txt
136
145
  - README.md
@@ -146,6 +155,9 @@ files:
146
155
  - test/fixtures/views/partial_test.hbs
147
156
  - test/fixtures/views/partial_test2.handlebars
148
157
  - test/fixtures/views/two_partials.hbs
158
+ - test/sinatra/README.md
159
+ - test/sinatra/myapp.rb
160
+ - test/sinatra/views/index.handlebars
149
161
  - test/sinatra_test.rb
150
162
  - test/test_helper.rb
151
163
  - test/tilt_handlebarstemplate_test.rb
@@ -160,20 +172,20 @@ require_paths:
160
172
  - lib
161
173
  required_ruby_version: !ruby/object:Gem::Requirement
162
174
  requirements:
163
- - - '>='
175
+ - - ">="
164
176
  - !ruby/object:Gem::Version
165
177
  version: '0'
166
178
  required_rubygems_version: !ruby/object:Gem::Requirement
167
179
  requirements:
168
- - - '>='
180
+ - - ">="
169
181
  - !ruby/object:Gem::Version
170
182
  version: '0'
171
183
  requirements: []
172
184
  rubyforge_project:
173
- rubygems_version: 2.0.14
185
+ rubygems_version: 2.4.5
174
186
  signing_key:
175
187
  specification_version: 4
176
- summary: Use Handlebars.rb with Tilt
188
+ summary: Tilt support for Handlebars
177
189
  test_files:
178
190
  - test/fixtures/views/hello.hbs
179
191
  - test/fixtures/views/missing_partial.hbs
@@ -182,6 +194,9 @@ test_files:
182
194
  - test/fixtures/views/partial_test.hbs
183
195
  - test/fixtures/views/partial_test2.handlebars
184
196
  - test/fixtures/views/two_partials.hbs
197
+ - test/sinatra/README.md
198
+ - test/sinatra/myapp.rb
199
+ - test/sinatra/views/index.handlebars
185
200
  - test/sinatra_test.rb
186
201
  - test/test_helper.rb
187
202
  - test/tilt_handlebarstemplate_test.rb