skeleton 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1b90b70d2ffd87c025cfd71b1de006d2c8b2eb7
4
- data.tar.gz: 40574952c4de7e2919e5b3593ea984e9e459b707
3
+ metadata.gz: 7ccc3daece70c6ebfaeb928ee50c713b1bddea5b
4
+ data.tar.gz: 1c4592b173ffc9e0124e1cfdf9e4783fb7444f07
5
5
  SHA512:
6
- metadata.gz: b4b5754b13d7b116feb66afd02576adb07b6510059e50ed2d5c7ae7b245d44313ae5972e22342fe3d9124c13b5b5e163c0ccbb5dfd9d3c0c3215ce2d03710083
7
- data.tar.gz: 464593a435ca7e9e6724cdb60e24bc85247c36fd71ded9d3de4ae0d946e893460796b86ec520fd45298ce10a0c87b387d32baecb0918d7ecce4e9e8f9af0fc4e
6
+ metadata.gz: e73b48301a296dbadfb21f3d4ab2fb7e0a33f8b8e907a0928a0e8a5f14883c9aed5613aa513b6ba72c802e3f07034c7ecb762c23daefb6e2dfa70ea6cf75168d
7
+ data.tar.gz: 1e92ae4c2dd11c136e75d3f5aa1d6d21fb60f910b20ab23815c5af29177f2db42e94d985629487c75e57c5674622bf1af8d5e76c99c6ca7b7308111eec1d2651
@@ -1,3 +1,5 @@
1
+ require 'multi_json'
2
+
1
3
  require 'skeleton/action'
2
4
  require 'skeleton/link'
3
5
 
@@ -37,5 +39,9 @@ module Skeleton
37
39
  hash
38
40
  end
39
41
  alias_method :to_hash, :to_h
42
+
43
+ def to_json(*)
44
+ MultiJson.dump(to_h)
45
+ end
40
46
  end
41
47
  end
@@ -1,3 +1,3 @@
1
1
  module Skeleton
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skeleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Johnston