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 CHANGED
@@ -1,4 +1,5 @@
1
- Makes your json classes serializable.
1
+ Makes your json classes serializable. Without this, you'll have to add your own
2
+ to_json and json_create methods to your classes which is a big pain.
2
3
 
3
4
  Getting Started
4
5
  ==============
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 2
4
+ :patch: 3
5
5
  :build: !!null
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.2"
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-27"
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.2
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-27 00:00:00.000000000 Z
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