trogdir_models 0.7.0 → 0.7.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: 6fe9a8a06bbf7ffbfcdb32f0923862595882fabe
4
- data.tar.gz: e86b663fc9600f2d3998a34479ba42c3d4728472
3
+ metadata.gz: e42baf973b741d8dbb1b680c8ce22e44c2ca2c04
4
+ data.tar.gz: 3e64949a69e81429eecd29f774ee4d493f3c0e38
5
5
  SHA512:
6
- metadata.gz: 22ee46f066db3401c7c578eaa3ac989c5f79b5550e8843707cc3688e4f661a2a7004f3ccc3acbf5213825534946aabd7b306ad92c58362e7cbfd54adc7eafe9d
7
- data.tar.gz: 5826b08f1d46c2cf7163da2e745f0b9cba2152b5fd097cf31ea47369a1edb772f8417b0d5ddb5864c561bc8a81113bdbee26c263c9b8b6905357cac09b8f5838
6
+ metadata.gz: 75bbaeaa65e42450768c5d2313fb440c8230e948569233f920bfa9467fe0ed223188c6938ccd9d2f409c1f5369ee1471b5898734b5d3f90328955d187d3b552b
7
+ data.tar.gz: 860fd191406ddfc2c59319f56d83623b0fbc9c3ae7f8ba5c4d93202c3dea245d9af38a6d3d5a22e72557d1b30c082a130f5581ce4c70d920a4daacea6057225b
@@ -13,7 +13,6 @@ class Person
13
13
  embeds_many :photos
14
14
  embeds_many :phones
15
15
  embeds_many :addresses
16
- has_many :changesets, as: :changeable
17
16
 
18
17
  # ID
19
18
  field :uuid, type: String
@@ -46,6 +45,8 @@ class Person
46
45
 
47
46
  before_validation :set_uuid, on: :create
48
47
 
48
+ alias :changesets :history_tracks
49
+
49
50
  def email
50
51
  emails.where(primary: true).first
51
52
  end
@@ -14,7 +14,7 @@ class SyncLog
14
14
  delegate :changeset, :syncinator, to: :change_sync
15
15
 
16
16
  def self.find_through_parents(id)
17
- id = Moped::BSON::ObjectId(id)
17
+ id = BSON::ObjectId.from_string(id.to_s) unless id.is_a? BSON::ObjectId
18
18
  changeset = Changeset.find_by('change_syncs.sync_logs._id' => id)
19
19
  change_sync = changeset.change_syncs.find_by('sync_logs._id' => id)
20
20
  change_sync.sync_logs.find(id)
@@ -1,3 +1,3 @@
1
1
  module TrogdirModels
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trogdir_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Crownoble
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-29 00:00:00.000000000 Z
11
+ date: 2014-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: api-auth
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.0'
47
+ version: '4.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.0'
54
+ version: '4.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mongoid-history
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -100,28 +100,28 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '2.14'
103
+ version: '3.1'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '2.14'
110
+ version: '3.1'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: mongoid-rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '1.11'
117
+ version: 2.0.0.rc1
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '1.11'
124
+ version: 2.0.0.rc1
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: pry
127
127
  requirement: !ruby/object:Gem::Requirement