serialize_yaml2json 0.0.1 → 0.1.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: 143579bcbdbf4d6e20fa4a3f2fb743efc656d4bc
4
- data.tar.gz: d896eb4e0ec4854ac8d463cba0ff302cfcae5e00
3
+ metadata.gz: f1c63053c753cb5b33e5332ec4a11ee4545f045f
4
+ data.tar.gz: fb5dbe5d682bbf7155c448b8dcf3c1711b2c0cbb
5
5
  SHA512:
6
- metadata.gz: 74598265a4016ee1f98536dc318edd3de903523bf0a7c67d803c7ab305737f3106cb7ce6c713e9c6032cfa17b8d1fb0f665711b86f127f8db3f508260bdce629
7
- data.tar.gz: 6ed39e3f2b0682ecbba72bcea3ae6e17c4f22171d85217de63896456b22f7fb984b503459154df4edffac30feefa1555d0409b18d13b21181bef06a7453ec703
6
+ metadata.gz: 0d76f9ece3db7db6228d622ec333760d2128b91548f552a3c40b7303b7c26422a0bcaa32bce20c51e5e1217af9d4d16856551ba4809439edb1ef6b2778f8ac02
7
+ data.tar.gz: 292a29b4eb082eb87f4541430d302340a7d007ad252f216c657ceaa1059d626dc037d5baaba6d049fbca62702f96ed571e6ce972027e6258f8c66eee51bc66ef
@@ -1,3 +1,3 @@
1
1
  module SerializeYAML2JSON
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -11,7 +11,7 @@ module SerializeYAML2JSON
11
11
 
12
12
  def self.load(yaml_or_json)
13
13
  if yaml_or_json.is_a?(String) && yaml_or_json =~ /^---/
14
- obj = ::ActiveRecord::Coders::YAMLColumn.new.load(yaml_or_json)
14
+ obj = ::YAML.load(yaml_or_json)
15
15
  else
16
16
  obj = ::ActiveRecord::Coders::JSON.load(yaml_or_json)
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serialize_yaml2json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Hallstrom