jsonable 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -1
- data/VERSION.yml +1 -1
- data/jsonable.gemspec +2 -2
- data/lib/jsonable.rb +2 -1
- metadata +2 -2
data/README.md
CHANGED
data/VERSION.yml
CHANGED
data/jsonable.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "jsonable"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Travis Reeder"]
|
12
|
-
s.date = "2012-03-
|
12
|
+
s.date = "2012-03-29"
|
13
13
|
s.description = "Makes your json classes serializable."
|
14
14
|
s.email = "travis@iron.io"
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/jsonable.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
require 'json'
|
2
|
+
require 'json/add/core' # enables serializing of Time and other things
|
3
|
+
|
2
4
|
module Jsonable
|
3
5
|
|
4
6
|
def self.included(base)
|
@@ -8,7 +10,6 @@ module Jsonable
|
|
8
10
|
module ClassMethods
|
9
11
|
|
10
12
|
def json_create(object)
|
11
|
-
puts 'object=' + object.inspect
|
12
13
|
obj = new
|
13
14
|
object.each do |key, value|
|
14
15
|
next if key == 'json_class'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
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: 2012-03-
|
12
|
+
date: 2012-03-29 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Makes your json classes serializable.
|
15
15
|
email: travis@iron.io
|