mumukit-sync 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumukit/sync/store/bibliotheca.rb +2 -2
- data/lib/mumukit/sync/version.rb +1 -1
- data/lib/mumukit/sync.rb +10 -0
- data/mumukit-sync.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c659613a5cf31ae6187d7aef2d53fb2898e6e48317fbd1bdee0b316932f3a41
|
4
|
+
data.tar.gz: e699518a09b463a3b06ea20592e06850d3ded4cad5cab2e0be5ef984b78122b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f2749d271932fbadf3f60cc5b44685e3d5f83e0de4f2c7aac02c2cbb895f054b511831b8b9afc6cb31b386ec1eb9f15ad17962a47f29094bdc51d113f19b142
|
7
|
+
data.tar.gz: 686a7017bcfe01e693fc0edf6b45d421bedf6f025ee5b7494fc3b5c515dbfbf22862a6b80da690d5832855c8c2fff29e6c7e85c39a24afe274d4636967bcbe62
|
@@ -13,13 +13,13 @@ module Mumukit::Sync::Store
|
|
13
13
|
def sync_keys
|
14
14
|
%w(guide topic book).flat_map do |kind|
|
15
15
|
@bibliotheca_bridge
|
16
|
-
.send(kind.
|
16
|
+
.send(kind.as_variable_name.pluralize)
|
17
17
|
.map { |it| Mumukit::Sync.key kind, it['slug'] }
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
21
|
def do_read(sync_key)
|
22
|
-
@bibliotheca_bridge.send(sync_key.kind, sync_key.id)
|
22
|
+
@bibliotheca_bridge.send(sync_key.kind.as_variable_name, sync_key.id)
|
23
23
|
end
|
24
24
|
|
25
25
|
def write_resource!(*)
|
data/lib/mumukit/sync/version.rb
CHANGED
data/lib/mumukit/sync.rb
CHANGED
@@ -16,6 +16,16 @@ module Mumukit
|
|
16
16
|
def self.key(kind, id)
|
17
17
|
struct kind: kind, id: id
|
18
18
|
end
|
19
|
+
|
20
|
+
# depracated
|
21
|
+
def self.constantize(kind)
|
22
|
+
kind.as_module
|
23
|
+
end
|
24
|
+
|
25
|
+
# depracated
|
26
|
+
def self.classify(kind)
|
27
|
+
kind.as_module_name
|
28
|
+
end
|
19
29
|
end
|
20
30
|
end
|
21
31
|
|
data/mumukit-sync.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_dependency 'mumukit-core', '~> 1.
|
24
|
+
spec.add_dependency 'mumukit-core', '~> 1.13'
|
25
25
|
spec.add_dependency 'mumukit-bridge', '~> 3.5'
|
26
26
|
spec.add_dependency 'mumukit-auth', '~> 7.0'
|
27
27
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit-sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Bulgarelli
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.13'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.13'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mumukit-bridge
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|