soulless 1.1.0 → 1.1.1

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: 86071e11077e8f0fbb5a648383a33fa2285f44d0
4
- data.tar.gz: 0e204049ea4b6007dbb9280398e2e3d3101e964a
3
+ metadata.gz: 63319a4d6809bc1e9c9306a05bc5e4d7afa76b2c
4
+ data.tar.gz: 11e52c992cf8d311f84570d2393036cabed70bd1
5
5
  SHA512:
6
- metadata.gz: f938f7ff9708a8661dfdb79e54f0c89227e62feab7362166e4e605223551d4e720f93ea98b569c58ee8c7d31e8da4cd3249016b1bd7bfa81733ad39b148b86ad
7
- data.tar.gz: 61e9fde6e2a30146dfcc7d24025b9a2c60db26e50857df20753f1566ff50bb1b102b9091636bb3e49a70f10fb20007711e057618969d427a509a6b4d5e9d2dec
6
+ metadata.gz: 0c16b1e626087651a9d61aa18af101019c2f7caf18020edd77fb1ac0a1f2fe2e06d524a625ec75fe012e2abdde56d489cd854fb1aa106e59d75dc23d35244431
7
+ data.tar.gz: 8d8b9cf8a767b82cc907d39c799c77ecce304d281af55fd75056294c7ab9dba46fac9b305f087b0a1661c4fdc630cd1b812490d950bf0a4bab5c180e3f650a4c
data/.gitignore CHANGED
@@ -12,3 +12,4 @@
12
12
  .rvmrc
13
13
  .DS_Store
14
14
  *.sqlite3
15
+ *.gem
data/README.md CHANGED
@@ -214,7 +214,8 @@ form.errors.messages # => { name: ["can't be blank"] }
214
214
  ### Serialization
215
215
 
216
216
  Soulless automatically handles serializing and deserializing Soulless models
217
- using the standard ActiveRecord serialization methods.
217
+ using the standard ActiveRecord serialization methods. Serialization currently
218
+ only handles JSON and array data types.
218
219
 
219
220
  ```ruby
220
221
  class Profile < Soulless::Model
@@ -7,15 +7,13 @@ module Soulless
7
7
  end
8
8
  elsif value.is_a?(Hash)
9
9
  self.new(value)
10
- elsif value.is_a?(String)
11
- self.new(JSON.parse(value))
12
10
  else
13
11
  value
14
12
  end
15
13
  end
16
14
 
17
15
  def dump(value)
18
- value.to_json
16
+ value
19
17
  end
20
18
  end
21
19
  end
@@ -1,3 +1,3 @@
1
1
  module Soulless
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soulless
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Smith
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-19 00:00:00.000000000 Z
11
+ date: 2017-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel