activejson 0.1.2 → 0.1.3
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.
@@ -4,7 +4,7 @@ MultiJson.engine = :yajl
|
|
4
4
|
|
5
5
|
module ActiveJson
|
6
6
|
class Core
|
7
|
-
instance_methods.each {|m| undef_method(m) unless %w(__id__ __send__ to_json instance_eval nil? is_a? class).include?(m.to_s)}
|
7
|
+
instance_methods.each {|m| undef_method(m) unless %w(__id__ __send__ to_json instance_eval nil? is_a? class object_id).include?(m.to_s)}
|
8
8
|
|
9
9
|
def initialize()
|
10
10
|
@hash = {}
|
@@ -2,11 +2,8 @@ require 'activejson/activejson_core'
|
|
2
2
|
|
3
3
|
module ActionView
|
4
4
|
module Template::Handlers
|
5
|
-
class ActiveJsonTemplate
|
6
|
-
|
7
|
-
def self.call(template)
|
8
|
-
new.compile(template)
|
9
|
-
end
|
5
|
+
class ActiveJsonTemplate < Template::Handler
|
6
|
+
include Compilable
|
10
7
|
|
11
8
|
def compile(template)
|
12
9
|
%{ActiveJson::Core.new do |json|
|
data/lib/activejson/version.rb
CHANGED
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:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
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:
|
18
|
+
date: 2012-05-06 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.
|
96
|
+
rubygems_version: 1.8.15
|
97
97
|
signing_key:
|
98
98
|
specification_version: 3
|
99
99
|
summary: Simple template engine for JSON views
|