mumukit-sync 0.2.0 → 0.2.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: f1505c375cf560fcd9a941fe53cfda45c2bf9ab519a0522ce8d815ac2c304f68
4
- data.tar.gz: 109330836eeafdf44a4f794e5807ad6a3d9dc005bd157e84d86560587ce4dd59
3
+ metadata.gz: 380186a77555510417026bf6aabd063a83bea1f64182819b121df078c0a1b436
4
+ data.tar.gz: '09b3c4a045fdc53fd19546ce228744308e1949c306ab9e96af7d280b95cad36d'
5
5
  SHA512:
6
- metadata.gz: 4ce0f22daf2c676ef2a87799d1c220585dcdcedcd7ce760a78480af751d8bff68cd6a79755a08e9de1992ca81249293325f58e79fcd6c7f4e10cc970b122ef07
7
- data.tar.gz: fd36ddbdfc6900fc6c1095b94330cb7ba01bf1248fee1f1054d8f3a07a9f20f07ae2c329b1fb72367cdf33b6248fdefee1399eb4b78f285eab9a860b005dd54d
6
+ metadata.gz: cfde552120a8a206ea26977d98b17a95e654193f495299daf271bfc953fcec355c0fda02f2d0b46e2f7dfb1a446c694c8ae00691972b09363a485d128ce26204
7
+ data.tar.gz: 6d3dbc5dced89107a7256d6180b89e36dee7acfa81d8293502584d523fbd6a383f7619271f0c63e2b0b0d90901d00594106155cbd8f1ffd993963828a810e43b
@@ -12,4 +12,5 @@ require_relative './store/github'
12
12
  require_relative './store/json'
13
13
  require_relative './store/thesaurus'
14
14
  require_relative './store/with_wrapped_language'
15
+ require_relative './store/with_id_filtering'
15
16
  require_relative './store/bibliotheca'
@@ -4,6 +4,7 @@ module Mumukit::Sync::Store
4
4
  ## from Bibliotheca API
5
5
  class Bibliotheca < Mumukit::Sync::Store::Base
6
6
  include Mumukit::Sync::Store::WithWrappedLanguage
7
+ include Mumukit::Sync::Store::WithIdFiltering
7
8
 
8
9
  def initialize(bibliotheca_bridge)
9
10
  @bibliotheca_bridge = bibliotheca_bridge
@@ -33,17 +33,6 @@ module Mumukit::Sync::Store
33
33
  bot: @bot).run!
34
34
  end
35
35
  end
36
-
37
- ## FIXME REMOVE
38
- class Github::Bot
39
- def upload_asset!(slug, filename, content)
40
- path = "assets/#{filename.gsub(/\.(.*){2,4}/) { |it| "_#{(Time.now.to_f * 1000).to_i}#{it}" }}"
41
- octokit.create_contents(slug.to_s,
42
- path,
43
- 'Uploading new asset',
44
- content).content.to_h
45
- end
46
- end
47
36
  end
48
37
 
49
38
  require 'mumukit/auth'
@@ -0,0 +1,5 @@
1
+ module Mumukit::Sync::Store::WithIdFiltering
2
+ def pre_transform(key, json)
3
+ super.tap { |it| it.indifferent_delete(:id) }
4
+ end
5
+ end
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Sync
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  end
@@ -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.10'
24
+ spec.add_dependency 'mumukit-core', '~> 1.11'
25
25
  spec.add_dependency 'mumukit-bridge', '~> 3.5'
26
26
  spec.add_dependency 'mumukit-auth', '~> 7.0'
27
27
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumukit-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-19 00:00:00.000000000 Z
11
+ date: 2018-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.10'
19
+ version: '1.11'
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.10'
26
+ version: '1.11'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mumukit-bridge
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -170,6 +170,7 @@ files:
170
170
  - lib/mumukit/sync/store/json.rb
171
171
  - lib/mumukit/sync/store/null.rb
172
172
  - lib/mumukit/sync/store/thesaurus.rb
173
+ - lib/mumukit/sync/store/with_id_filtering.rb
173
174
  - lib/mumukit/sync/store/with_wrapped_language.rb
174
175
  - lib/mumukit/sync/syncer.rb
175
176
  - lib/mumukit/sync/version.rb