bldr 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -2
- data/Gemfile +1 -0
- data/HISTORY.md +11 -1
- data/MIT-LICENSE +1 -1
- data/README.md +72 -2
- data/bldr.gemspec +3 -3
- data/lib/bldr/node.rb +43 -11
- data/lib/bldr/template.rb +3 -0
- data/lib/bldr/version.rb +1 -1
- data/lib/sinatra/bldr.rb +5 -3
- data/spec/fixtures/ivar.bldr +3 -0
- data/spec/fixtures/nested_ivars.bldr +5 -0
- data/spec/fixtures/nested_objects.json.bldr +2 -2
- data/spec/functional/tilt_template_spec.rb +191 -93
- data/spec/integration/sinatra_spec.rb +21 -1
- data/spec/models/song.rb +6 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/unit/node_spec.rb +501 -490
- metadata +20 -14
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bldr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|
@@ -48,33 +48,33 @@ dependencies:
|
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ! '>='
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: '0'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
none: false
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: '0'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: tilt
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ! '>='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: '0'
|
70
70
|
type: :development
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - ! '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
77
|
+
version: '0'
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
name: yajl-ruby
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
@@ -96,17 +96,17 @@ dependencies:
|
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
97
97
|
none: false
|
98
98
|
requirements:
|
99
|
-
- -
|
99
|
+
- - ! '>='
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
101
|
+
version: '0'
|
102
102
|
type: :development
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
|
-
- -
|
107
|
+
- - ! '>='
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
109
|
+
version: '0'
|
110
110
|
description: Provides a simple and intuitive templating DSL for serializing objects
|
111
111
|
to JSON.
|
112
112
|
email:
|
@@ -132,6 +132,8 @@ files:
|
|
132
132
|
- perf/bench
|
133
133
|
- perf/benchmark.rb
|
134
134
|
- perf/results.txt
|
135
|
+
- spec/fixtures/ivar.bldr
|
136
|
+
- spec/fixtures/nested_ivars.bldr
|
135
137
|
- spec/fixtures/nested_objects.json.bldr
|
136
138
|
- spec/fixtures/partial.json.bldr
|
137
139
|
- spec/fixtures/partial_with_locals.json.bldr
|
@@ -144,6 +146,7 @@ files:
|
|
144
146
|
- spec/models/comment.rb
|
145
147
|
- spec/models/person.rb
|
146
148
|
- spec/models/post.rb
|
149
|
+
- spec/models/song.rb
|
147
150
|
- spec/spec_helper.rb
|
148
151
|
- spec/unit/bldr_spec.rb
|
149
152
|
- spec/unit/node_spec.rb
|
@@ -172,6 +175,8 @@ signing_key:
|
|
172
175
|
specification_version: 3
|
173
176
|
summary: Templating library with a simple, minimalist DSL.
|
174
177
|
test_files:
|
178
|
+
- spec/fixtures/ivar.bldr
|
179
|
+
- spec/fixtures/nested_ivars.bldr
|
175
180
|
- spec/fixtures/nested_objects.json.bldr
|
176
181
|
- spec/fixtures/partial.json.bldr
|
177
182
|
- spec/fixtures/partial_with_locals.json.bldr
|
@@ -184,6 +189,7 @@ test_files:
|
|
184
189
|
- spec/models/comment.rb
|
185
190
|
- spec/models/person.rb
|
186
191
|
- spec/models/post.rb
|
192
|
+
- spec/models/song.rb
|
187
193
|
- spec/spec_helper.rb
|
188
194
|
- spec/unit/bldr_spec.rb
|
189
195
|
- spec/unit/node_spec.rb
|