tarantool-record 0.4.2.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
1
  require 'active_model'
2
+ require 'active_support/core_ext/hash/indifferent_access.rb'
2
3
  require 'tarantool/base_record'
3
4
 
4
5
  module Tarantool
data/test/test_record.rb CHANGED
@@ -83,7 +83,11 @@ describe 'Tarantool::Record' do
83
83
  it "should support AM serialization API" do
84
84
  h = { login: 'prepor', name: 'Andrew', email: 'ceo@prepor.ru' }
85
85
  u = user_class.create h
86
- u.as_json.must_equal({ 'user' => h.merge(apples_count: 0) })
86
+ if ActiveModel::VERSION::MAJOR >= 4
87
+ u.as_json.must_equal(h.merge(apples_count: 0))
88
+ else
89
+ u.as_json.must_equal({ 'user' => h.merge(apples_count: 0) })
90
+ end
87
91
  end
88
92
  end
89
93
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tarantool-record
3
3
  version: !ruby/object:Gem::Version
4
+ version: 0.4.3
4
5
  prerelease:
5
- version: 0.4.2.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Andrew Rudenko
@@ -10,46 +10,40 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-03-24 00:00:00.000000000 Z
13
+ date: 2014-03-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- type: :runtime
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ~>
21
19
  - !ruby/object:Gem::Version
22
- version: 0.4.4.0
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
20
+ version: 0.5.0
25
21
  none: false
22
+ version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: 0.4.4.0
26
+ version: 0.5.0
27
+ none: false
28
+ prerelease: false
30
29
  name: tarantool
31
- - !ruby/object:Gem::Dependency
32
30
  type: :runtime
31
+ - !ruby/object:Gem::Dependency
33
32
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
33
  requirements:
36
34
  - - ! '>='
37
35
  - !ruby/object:Gem::Version
38
36
  version: '3.1'
39
- - - <
40
- - !ruby/object:Gem::Version
41
- version: '4.0'
42
- prerelease: false
43
- version_requirements: !ruby/object:Gem::Requirement
44
37
  none: false
38
+ version_requirements: !ruby/object:Gem::Requirement
45
39
  requirements:
46
40
  - - ! '>='
47
41
  - !ruby/object:Gem::Version
48
42
  version: '3.1'
49
- - - <
50
- - !ruby/object:Gem::Version
51
- version: '4.0'
43
+ none: false
44
+ prerelease: false
52
45
  name: activemodel
46
+ type: :runtime
53
47
  description: Tarantool KV-storage ActiveModel-aware Record.
54
48
  email:
55
49
  - ceo@prepor.ru
@@ -73,17 +67,23 @@ rdoc_options:
73
67
  require_paths:
74
68
  - lib
75
69
  required_ruby_version: !ruby/object:Gem::Requirement
76
- none: false
77
70
  requirements:
78
71
  - - ! '>='
79
72
  - !ruby/object:Gem::Version
73
+ hash: 216157398776124353
80
74
  version: '0'
81
- required_rubygems_version: !ruby/object:Gem::Requirement
75
+ segments:
76
+ - 0
82
77
  none: false
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
79
  requirements:
84
80
  - - ! '>='
85
81
  - !ruby/object:Gem::Version
82
+ hash: 216157398776124353
86
83
  version: '0'
84
+ segments:
85
+ - 0
86
+ none: false
87
87
  requirements: []
88
88
  rubyforge_project:
89
89
  rubygems_version: 1.8.23