bridge_cache 0.0.18 → 0.0.19

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: fe9f7dc02c99dcbe3627edab365cc1ab83005b40
4
- data.tar.gz: 308aafc1de90150dd79aa399b7e11b004aaf3549
3
+ metadata.gz: 79d80cd046afc64041e1e24b3b5fd763b21866ee
4
+ data.tar.gz: 2a91f78fce7c03472383cb94aa8d48daeed6c883
5
5
  SHA512:
6
- metadata.gz: fdf68035835816b605413d587a670420f89edf9175d7c3530db430363933fcb52f579926e97746bf4551967d22ed682c79ba9c7d4d6a276770db145603fda2b1
7
- data.tar.gz: 622fb7aacbfb6c249f9ee16a1285570c5d4714fbd152b5cad29317cd85838ec16beaff1f06725b1688a876309eb301dc89ecfcbe7aa584184e30ed976d1b80f6
6
+ metadata.gz: 21d2658e35c754bb4bccbc72c40d447244ccdf2de76d0889048f4fec4bd7579f958355d42e2d3b4bb73bdcd460496f8ae7f281f69ee16a5ddc8cfcadbec501c0
7
+ data.tar.gz: 8e471686f3e4ad83e9628c4b2eb1ec401b87e9332c403fc0376c6d501d9fa6e68a5e9444046fd9ded8b6d8cd77d5c478d86d0bffc18ab776535ed77c75081472
@@ -0,0 +1,11 @@
1
+ module BridgeCache
2
+ class LiveCourse < ActiveRecord::Base
3
+ extend BridgeCache::Data::BridgeModel
4
+
5
+ belongs_to :user, foreign_key: :user_id, primary_key: :bridge_id, class_name: 'BridgeCache::User', optional: true
6
+ belongs_to :domain, foreign_key: :domain_id, primary_key: :bridge_id, class_name: 'BridgeCache::Domain', optional: true
7
+ belongs_to :sub_account, foreign_key: :sub_account_id, primary_key: :bridge_id, class_name: 'BridgeCache::Domain', optional: true
8
+ has_many :live_course_enrollments, foreign_key: :live_course_id, primary_key: :bridge_id, class_name: 'BridgeCache::LiveCourseEnrollment'
9
+
10
+ end
11
+ end
@@ -0,0 +1,10 @@
1
+ module BridgeCache
2
+ class LiveCourseEnrollment < ActiveRecord::Base
3
+ extend BridgeCache::Data::BridgeModel
4
+
5
+ belongs_to :user, foreign_key: :user_id, primary_key: :bridge_id, class_name: 'BridgeCache::User', optional: true
6
+ belongs_to :live_course, foreign_key: :live_course_id, primary_key: :bridge_id, class_name: 'BridgeCache::LiveCourse', optional: true
7
+ has_many :live_course_session_registrations, foreign_key: :live_course_enrollment_id, primary_key: :bridge_id, class_name: 'BridgeCache::LiveCourseSessionRegistration'
8
+
9
+ end
10
+ end
@@ -0,0 +1,11 @@
1
+ module BridgeCache
2
+ class LiveCourseSession < ActiveRecord::Base
3
+ extend BridgeCache::Data::BridgeModel
4
+
5
+ belongs_to :domain, foreign_key: :domain_id, primary_key: :bridge_id, class_name: 'BridgeCache::Domain', optional: true
6
+ belongs_to :sub_account, foreign_key: :sub_account_id, primary_key: :bridge_id, class_name: 'BridgeCache::Domain', optional: true
7
+ belongs_to :live_course, foreign_key: :live_course_id, primary_key: :bridge_id, class_name: 'BridgeCache::LiveCourse', optional: true
8
+ has_many :live_course_session_registrations, foreign_key: :live_course_session_id, primary_key: :bridge_id, class_name: 'BridgeCache::LiveCourseSessionRegistration'
9
+
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module BridgeCache
2
+ class LiveCourseSessionRegistration < ActiveRecord::Base
3
+ extend BridgeCache::Data::BridgeModel
4
+
5
+ belongs_to :user, foreign_key: :user_id, primary_key: :bridge_id, class_name: 'BridgeCache::User', optional: true
6
+ belongs_to :domain, foreign_key: :domain_id, primary_key: :bridge_id, class_name: 'BridgeCache::Domain', optional: true
7
+ belongs_to :live_course_enrollment, primary_key: :bridge_id, class_name: 'BridgeCache::LiveCourseEnrollment', optional: true
8
+ belongs_to :live_course_session, primary_key: :bridge_id, class_name: 'BridgeCache::LiveCourseSession', optional: true
9
+
10
+ end
11
+ end
@@ -12,6 +12,8 @@ module BridgeCache
12
12
  has_many :program_enrollments, foreign_key: :user_id, primary_key: :bridge_id, class_name: 'BridgeCache::ProgramEnrollment'
13
13
  has_many :memberships, foreign_key: :user_id, primary_key: :bridge_id, class_name: 'BridgeCache::Membership'
14
14
  has_many :learner_custom_field_values, foreign_key: :user_id, primary_key: :bridge_id, class_name: 'BridgeCache::LearnerCustomFieldValue'
15
+ has_many :live_course_enrollments, foreign_key: :user_id, primary_key: :bridge_id, class_name: 'BridgeCache::LiveCourseEnrollment'
16
+ has_many :live_course_session_registrations, foreign_key: :user_id, primary_key: :bridge_id, class_name: 'BridgeCache::LiveCourseSessionRegistration'
15
17
 
16
18
  serialize :config
17
19
 
@@ -0,0 +1,19 @@
1
+ class CreateLiveCourses < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :bridge_cache_live_courses do |t|
4
+ t.integer :bridge_id, limit: 8
5
+ t.string :title
6
+ t.string :description
7
+ t.datetime :created_at
8
+ t.datetime :updated_at
9
+ t.integer :user_id, limit: 8
10
+ t.integer :domain_id, limit: 8
11
+ t.datetime :deleted_at
12
+ t.integer :sessions_count
13
+ t.integer :enrollments_count
14
+ t.integer :attachments_count
15
+ t.integer :sub_account_id, limit: 8
16
+ t.integer :external_course_id, limit: 8
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,17 @@
1
+ class CreateLiveCourseEnrollments < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :bridge_cache_live_course_enrollments do |t|
4
+ t.integer :bridge_id, limit: 8
5
+ t.integer :live_course_id,limit: 8
6
+ t.integer :user_id, limit: 8
7
+ t.datetime :created_at
8
+ t.datetime :updated_at
9
+ t.integer :state
10
+ t.datetime :deleted_at
11
+ t.integer :sources_count
12
+ t.datetime :expires_at
13
+ t.boolean :inactive
14
+ t.datetime :renew_by
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,15 @@
1
+ class CreateLiveCourseSessionRegistrations < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :bridge_cache_live_course_session_registrations do |t|
4
+ t.integer :bridge_id, limit: 8
5
+ t.integer :live_course_session_id, limit: 8
6
+ t.integer :user_id, limit: 8
7
+ t.datetime :created_at
8
+ t.datetime :updated_at
9
+ t.integer :live_course_enrollment_id, limit: 8
10
+ t.datetime :deleted_at
11
+ t.text :config
12
+ t.datetime :marked_complete_at
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,26 @@
1
+ class CreateLiveCourseSessions < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :bridge_cache_live_course_sessions do |t|
4
+ t.integer :bridge_id, limit: 8
5
+ t.datetime :start_at
6
+ t.datetime :end_at
7
+ t.string :location
8
+ t.integer :seats
9
+ t.integer :live_course_id, limit: 8
10
+ t.datetime :created_at
11
+ t.datetime :updated_at
12
+ t.integer :registered_count
13
+ t.datetime :concluded_at
14
+ t.datetime :deleted_at
15
+ t.string :notes
16
+ t.integer :domain_id, limit: 8
17
+ t.integer :sub_account_id, limit: 8
18
+ t.integer :present_count
19
+ t.string :title
20
+ t.integer :parent_id, limit: 8
21
+ t.boolean :multi_part
22
+ t.string :timezone
23
+ t.datetime :published_at
24
+ end
25
+ end
26
+ end
@@ -1,3 +1,3 @@
1
1
  module BridgeCache
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.19"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridge_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - jshaffer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-18 00:00:00.000000000 Z
11
+ date: 2017-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -213,6 +213,10 @@ files:
213
213
  - app/models/bridge_cache/group.rb
214
214
  - app/models/bridge_cache/group_enrollment.rb
215
215
  - app/models/bridge_cache/learner_custom_field_value.rb
216
+ - app/models/bridge_cache/live_course.rb
217
+ - app/models/bridge_cache/live_course_enrollment.rb
218
+ - app/models/bridge_cache/live_course_session.rb
219
+ - app/models/bridge_cache/live_course_session_registration.rb
216
220
  - app/models/bridge_cache/membership.rb
217
221
  - app/models/bridge_cache/program.rb
218
222
  - app/models/bridge_cache/program_enrollment.rb
@@ -240,6 +244,10 @@ files:
240
244
  - db/migrate/20170523165014_create_bridge_cache_memberships.rb
241
245
  - db/migrate/20170615145554_create_bridge_cache_learner_custom_field_values.rb
242
246
  - db/migrate/20171017211850_create_affiliated_sub_accounts.rb
247
+ - db/migrate/20171019195443_create_live_courses.rb
248
+ - db/migrate/20171019195503_create_live_course_enrollments.rb
249
+ - db/migrate/20171019195512_create_live_course_session_registrations.rb
250
+ - db/migrate/20171019195516_create_live_course_sessions.rb
243
251
  - lib/bridge_cache.rb
244
252
  - lib/bridge_cache/engine.rb
245
253
  - lib/bridge_cache/version.rb
@@ -264,8 +272,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
264
272
  version: '0'
265
273
  requirements: []
266
274
  rubyforge_project:
267
- rubygems_version: 2.6.11
275
+ rubygems_version: 2.4.8
268
276
  signing_key:
269
277
  specification_version: 4
270
278
  summary: A mountable engine for bridge data storage
271
279
  test_files: []
280
+ has_rdoc: