activejson 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,3 @@
1
- require 'json'
2
1
  require 'multi_json'
3
2
 
4
3
  MultiJson.engine = :yajl
@@ -2,8 +2,11 @@ require 'activejson/activejson_core'
2
2
 
3
3
  module ActionView
4
4
  module Template::Handlers
5
- class ActiveJsonTemplate < Template::Handler
6
- include Compilable
5
+ class ActiveJsonTemplate
6
+
7
+ def self.call(template)
8
+ new.compile(template)
9
+ end
7
10
 
8
11
  def compile(template)
9
12
  %{ActiveJson::Core.new do |json|
@@ -1,3 +1,3 @@
1
1
  module Activejson
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activejson
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andy Caldwell
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-27 00:00:00 Z
18
+ date: 2011-12-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: multi_json
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  requirements: []
94
94
 
95
95
  rubyforge_project:
96
- rubygems_version: 1.8.4
96
+ rubygems_version: 1.8.10
97
97
  signing_key:
98
98
  specification_version: 3
99
99
  summary: Simple template engine for JSON views