trogdir_models 0.2.0 → 0.2.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: edb9470ea04be61ae4649b4e2027be09a40b620b
4
- data.tar.gz: 0aeeead1af33652a0d7c86412ff45fe911459f88
3
+ metadata.gz: 23c13d865e352b7bd365cba6686d41dc43d16c11
4
+ data.tar.gz: 7fef16feb5166d694e45a74e6a5dfab9e7bc1008
5
5
  SHA512:
6
- metadata.gz: 089237ffaebb318aa47757e285842332eb196c04b1235c60cc96324f95acd9c01e5a8bd481c6312c3939ee8d22a53fd5b6b58cb526433755cc1e347faa6269f0
7
- data.tar.gz: 93a5d7f0d5b918614cf354d007468cc2e13d4539316877d2f9ef1e721958573cee016c5f39c837a104d3ba4ea2ae9f00492100182e55040f74080e9a20f68846
6
+ metadata.gz: 8957e5d5b86a82ad66357049a567945fcbe608bbf4f8923b057c72f9ceb25bff6fa1e05719ea5ec61b207cf356c04072559dc79df7b7045087fb68c029b8d3ed
7
+ data.tar.gz: cc95856729be3016bca9f850d766a37a39701522c50f4d269eeebe0a78f88b16e5e4bc88267354de62da7786bdad8e75d70d5253a76971f28cb57b7efc120089
@@ -1,7 +1,7 @@
1
1
  class ChangeSync
2
2
  include Mongoid::Document
3
3
 
4
- belongs_to :changeset
4
+ embedded_in :changeset
5
5
  belongs_to :syncinator
6
6
  embeds_many :sync_logs
7
7
  end
@@ -1,7 +1,7 @@
1
1
  class Changeset
2
2
  include Mongoid::History::Tracker
3
3
 
4
- has_many :change_syncs
4
+ embeds_many :change_syncs
5
5
 
6
6
  after_create :create_change_syncs
7
7
 
@@ -1,7 +1,7 @@
1
1
  class SyncLog
2
2
  include Mongoid::Document
3
3
 
4
- belongs_to :change_sync
4
+ embedded_in :change_sync
5
5
 
6
6
  field :started_at, type: Time
7
7
  field :errored_at, type: Time
@@ -5,8 +5,6 @@ class Syncinator
5
5
 
6
6
  FIXNUM_MAX = (2**(0.size * 8 -2) -1)
7
7
 
8
- has_many :change_syncs
9
-
10
8
  field :name, type: String
11
9
  field :slug, type: String
12
10
  field :access_id, type: Integer
@@ -1,3 +1,3 @@
1
1
  module TrogdirModels
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.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.2.0
4
+ version: 0.2.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-03-26 00:00:00.000000000 Z
11
+ date: 2014-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: api-auth