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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 292bb83cfe620088d9ee13efcc8a839aafc2337813de75f1d5cffb09c6e2cebb
4
- data.tar.gz: 384b5cebfec6360b4af095963853016f8410cccfc6edff81d9477eada820c70c
3
+ metadata.gz: 5c659613a5cf31ae6187d7aef2d53fb2898e6e48317fbd1bdee0b316932f3a41
4
+ data.tar.gz: e699518a09b463a3b06ea20592e06850d3ded4cad5cab2e0be5ef984b78122b1
5
5
  SHA512:
6
- metadata.gz: 549c13c8f22fb061d9a229f8d7ae484eddc9e01c9dc22d2d6ac2f082da0143db4c0460f459fa91f4221b1c7849cc33cc2f3b385ed45dbdfa9cf5c3c6cd6558e2
7
- data.tar.gz: 7feb1370691b2a0d0158d24d7e4586c3d360b93bf2960bc3720640403f7e83f4eefff84735be79c335f3a6674ddba13d702d9745b6c4094c4bc836a1b6c4be14
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.to_s.pluralize)
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!(*)
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Sync
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
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.12'
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.0
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.12'
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.12'
26
+ version: '1.13'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mumukit-bridge
29
29
  requirement: !ruby/object:Gem::Requirement