active_node 2.2.9 → 2.2.10

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: ec9336e089548ff6330d481bd0eba85e7271f9ee
4
- data.tar.gz: 52ddbd8b07e19a0abc8597342543697b7ad1127e
3
+ metadata.gz: b8b5cdce49bea8a43202dd604742e923524d112e
4
+ data.tar.gz: 3528cb5ae3bc24ba06ac5ed67144da5f3f20c02e
5
5
  SHA512:
6
- metadata.gz: 0097d3c8dd69f3b8cd29253b3a10fc8ef87e0609dca385fde28384d228b37b16ebaffac607526e545019355e64d500f7316a0b9995628db7a997f1670f15c9c3
7
- data.tar.gz: a38eecc74b13f6842262d0af6a273eec053ac656ad9e8edfa5d04bf588e212185a963bbd487758c0623692ace430a47b39ea75d9cab44b2d11424726b057e363
6
+ metadata.gz: e161898cfc4cc82d71a98dc3009430124ecf259df99858bf66fa12afad2f667d0f2adb236efd1a4eacadcc9726c151f3059197e65e93db0115eede6bf7f43dec
7
+ data.tar.gz: 5d6c3b17d28b112e6a6fe4247b9c8aacac0b8566782b87f72458ddea7a82297c5f1230943a943f3ccfe7326995fae4ebe7a93ba95663b655bdda86af0d332c93
@@ -8,6 +8,7 @@ module ActiveNode
8
8
  include ActiveAttr::MassAssignment
9
9
  include ActiveAttr::AttributeDefaults
10
10
  include ActiveAttr::TypecastedAttributes
11
+ include ActiveModel::Serializers::JSON
11
12
  include Typecasting
12
13
  include Dirty
13
14
  include Persistence
@@ -1,3 +1,3 @@
1
1
  module ActiveNode
2
- VERSION = "2.2.9"
2
+ VERSION = "2.2.10"
3
3
  end
@@ -0,0 +1,7 @@
1
+ describe ActiveNode::Persistence do
2
+ describe '#to_json' do
3
+ it 'should serialize' do
4
+ expect(Person.create!(name: "abc").as_json["name"]).to eq 'abc'
5
+ end
6
+ end
7
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_node
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.9
4
+ version: 2.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Heinrich Klobuczek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-18 00:00:00.000000000 Z
11
+ date: 2015-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_attr
@@ -148,6 +148,7 @@ files:
148
148
  - spec/functional/graph/query_methods_spec.rb
149
149
  - spec/functional/graph_spec.rb
150
150
  - spec/functional/persistence_spec.rb
151
+ - spec/functional/serialization_spec.rb
151
152
  - spec/functional/validations_spec.rb
152
153
  - spec/models/address.rb
153
154
  - spec/models/client.rb
@@ -185,6 +186,7 @@ test_files:
185
186
  - spec/functional/graph/query_methods_spec.rb
186
187
  - spec/functional/graph_spec.rb
187
188
  - spec/functional/persistence_spec.rb
189
+ - spec/functional/serialization_spec.rb
188
190
  - spec/functional/validations_spec.rb
189
191
  - spec/models/address.rb
190
192
  - spec/models/client.rb