canvas_sync 0.9.2 → 0.9.3

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
  SHA256:
3
- metadata.gz: 6d98e814dd8cffc39498bb463d82f1119ab7e9a176521463b0cf76ed78fbcb3b
4
- data.tar.gz: 8d7c287e842121c8827b76df9409d505bdb80716ff4c541caae55d71c2ac851e
3
+ metadata.gz: 5da523765c3d937fee9e91a20f69d6b509f26b783509cc826517f6d75da74392
4
+ data.tar.gz: c4b8bfba21b2777746089fbccd57a18e1fe93b45dfa6276c58aa2e1b7b21bba9
5
5
  SHA512:
6
- metadata.gz: 20019a5b2809fc909ac236383b0b9d1a42bbc8e45e8ee98107b2a6c0388fe56f9650a399677bede66b8fe52a30d8fd80c91f13d8126b4dd1d20ad6c69b4da2f1
7
- data.tar.gz: cfe52037205129f64a786895bb03e7bb3b2b15dd8c26f2d55bca6977a7948f8484dd5ac14aa746a5bdf77bc5b9046332968accad3cfcda5efe2626159aeff7f1
6
+ metadata.gz: d921a1d0b655a36e5cd8c5c4b2732a07fef0f5f470f5524739d7cc4857260f12a3e1e0044acde638e2cb5dff70dd8240347027612c6da8cc34ec27d85077b06f
7
+ data.tar.gz: ad447921c4ea7f9318f53fd231e0589b0e54832c8dc1555a7260de666b9d3eae2202c506318638f8b68dce09c5da3ae609381931e7581ab25cf2b7fd0b2bbecb
@@ -2,7 +2,13 @@ module CanvasSync::ApiSyncable
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  class_methods do
5
- attr_accessor :api_sync_options
5
+ def api_sync_options=(opts)
6
+ @api_sync_options = opts
7
+ end
8
+
9
+ def api_sync_options
10
+ @api_sync_options || superclass.try(:api_sync_options)
11
+ end
6
12
 
7
13
  # Define the model as being syncable via the Canvas API and configure sync options/parameters
8
14
  # @param [Hash] map A hash of local_field => (:api_response_key | ->(api_response){ value })
@@ -1,3 +1,3 @@
1
1
  module CanvasSync
2
- VERSION = "0.9.2".freeze
2
+ VERSION = "0.9.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Collings
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-29 00:00:00.000000000 Z
11
+ date: 2019-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler