jsonify 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,7 @@
|
|
1
|
-
require 'tilt'
|
2
|
-
require 'tilt/template'
|
3
1
|
|
4
|
-
module
|
5
|
-
|
6
|
-
|
7
|
-
class JsonifyTemplate < Template
|
2
|
+
module Jsonify
|
3
|
+
|
4
|
+
class Template < Tilt::Template
|
8
5
|
self.default_mime_type = 'application/json'
|
9
6
|
|
10
7
|
def self.engine_initialized?
|
@@ -37,6 +34,5 @@ module Tilt
|
|
37
34
|
data.to_str
|
38
35
|
end
|
39
36
|
end
|
40
|
-
end
|
41
37
|
|
42
|
-
|
38
|
+
end
|
data/lib/jsonify/tilt.rb
ADDED
data/lib/jsonify/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
describe
|
1
|
+
describe Jsonify::Template do
|
2
2
|
it 'should be associated with .jsonify files' do
|
3
3
|
template = Tilt.new('spec/hello_world.jsonify')
|
4
|
-
template.should be_a_kind_of(
|
4
|
+
template.should be_a_kind_of(Jsonify::Template)
|
5
5
|
end
|
6
6
|
it 'should render the template' do
|
7
7
|
template = Tilt.new('spec/hello_world.jsonify')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-08-08 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
|
-
requirement: &
|
16
|
+
requirement: &70349313881080 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70349313881080
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: tilt
|
27
|
-
requirement: &
|
27
|
+
requirement: &70349313880380 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70349313880380
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &70349313879820 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70349313879820
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &70349313879120 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70349313879120
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: autotest
|
60
|
-
requirement: &
|
60
|
+
requirement: &70349313878380 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70349313878380
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: yard
|
71
|
-
requirement: &
|
71
|
+
requirement: &70349313877680 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70349313877680
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rdiscount
|
82
|
-
requirement: &
|
82
|
+
requirement: &70349313876960 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70349313876960
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: ruby-prof
|
93
|
-
requirement: &
|
93
|
+
requirement: &70349313876420 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70349313876420
|
102
102
|
description: Turn Ruby objects into JSON -- correctly!
|
103
103
|
email:
|
104
104
|
- bsiggelkow@me.com
|
@@ -118,8 +118,9 @@ files:
|
|
118
118
|
- lib/jsonify/builder.rb
|
119
119
|
- lib/jsonify/generate.rb
|
120
120
|
- lib/jsonify/json_value.rb
|
121
|
+
- lib/jsonify/template.rb
|
122
|
+
- lib/jsonify/tilt.rb
|
121
123
|
- lib/jsonify/version.rb
|
122
|
-
- lib/tilt/jsonify_template.rb
|
123
124
|
- performance/profile.rb
|
124
125
|
- performance/speed.rb
|
125
126
|
- spec/builder_spec.rb
|
@@ -127,8 +128,8 @@ files:
|
|
127
128
|
- spec/hello_world.jsonify
|
128
129
|
- spec/json_value_spec.rb
|
129
130
|
- spec/jsonify_spec.rb
|
130
|
-
- spec/jsonify_template_spec.rb
|
131
131
|
- spec/spec_helper.rb
|
132
|
+
- spec/template_spec.rb
|
132
133
|
homepage: http://github.com/bsiggelkow/jsonify
|
133
134
|
licenses: []
|
134
135
|
post_install_message:
|
@@ -143,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
144
|
version: '0'
|
144
145
|
segments:
|
145
146
|
- 0
|
146
|
-
hash:
|
147
|
+
hash: 2506856459072491085
|
147
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
149
|
none: false
|
149
150
|
requirements:
|
@@ -152,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
153
|
version: '0'
|
153
154
|
segments:
|
154
155
|
- 0
|
155
|
-
hash:
|
156
|
+
hash: 2506856459072491085
|
156
157
|
requirements: []
|
157
158
|
rubyforge_project: jsonify
|
158
159
|
rubygems_version: 1.8.6
|
@@ -167,5 +168,5 @@ test_files:
|
|
167
168
|
- spec/hello_world.jsonify
|
168
169
|
- spec/json_value_spec.rb
|
169
170
|
- spec/jsonify_spec.rb
|
170
|
-
- spec/jsonify_template_spec.rb
|
171
171
|
- spec/spec_helper.rb
|
172
|
+
- spec/template_spec.rb
|