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 +4 -4
- data/lib/canvas_sync/api_syncable.rb +7 -1
- data/lib/canvas_sync/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5da523765c3d937fee9e91a20f69d6b509f26b783509cc826517f6d75da74392
|
4
|
+
data.tar.gz: c4b8bfba21b2777746089fbccd57a18e1fe93b45dfa6276c58aa2e1b7b21bba9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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 })
|
data/lib/canvas_sync/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|