mumukit-sync 0.4.0 → 0.4.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: 7feb07d1901e4d169f61f50b7d9d5e5b002ef659d7315fd78f06ca5506886e0a
4
- data.tar.gz: dc32e9012638c59634d1e509ae95259e03353fc3301feaf94f3adc9effd29dd8
3
+ metadata.gz: e0bdc140990239269aee542470c932aeabba4dc74da7fddb574fefd51e3a58c1
4
+ data.tar.gz: 75befb01b2eae5d5e75cf96175e7b67041b35ae87f22cc38838574f8800ba1bd
5
5
  SHA512:
6
- metadata.gz: 7e12bc3c131aaa6f6aa623613daa615490b56d93b52c6a952eee900a91f6f30f65736e0c0d62a05e1da6d0169b40f6c6d8f2cf2fd368eec9fad6760029b4e9d8
7
- data.tar.gz: 1bd94411302041cb9fa4c303a7ed7adfa58e67a7c5ef4d0d9d6a706c21b2e4c94112e8d94891c9606c4b5a1555bd3c617cafd677506362e8d7212582c315cbf5
6
+ metadata.gz: b7c3176f4f3b6bc05515c788da77463aea89ae7779939357821d5de0cdb0f6b4efebf0c0345a29f48cdbb793b0d8c175ee3209d1995803f816a29e30b613d7d7
7
+ data.tar.gz: 40f5ff3a7e9ed53fd9c8eedcdfb0bce89b103f52f17b174a81c09513e80f9c1d742ab6a640957eed42f7bf1d638f4b0c91f390e0c504352dbe428a5f4f89c909
@@ -10,5 +10,4 @@ require_relative './inflator/exercise'
10
10
  require_relative './inflator/choice'
11
11
  require_relative './inflator/single_choice'
12
12
  require_relative './inflator/multiple_choice'
13
- require_relative './inflator/gobstones_kids_boards'
14
13
 
@@ -20,7 +20,7 @@ class Mumukit::Sync::Store::Github
20
20
  yield dir, local_repo
21
21
  rescue Git::GitExecuteError => e
22
22
  raise Mumukit::Sync::SyncError, 'Repository is private or does not exist' if private_repo_error(e.message)
23
- raise Mumukit::Sync::SyncError, e
23
+ raise Mumukit::Sync::SyncError, "Clone of #{repo} failed"
24
24
  end
25
25
 
26
26
  def register_post_commit_hook!(slug, web_hook_base_url)
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Sync
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
5
5
  end
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.4.0
4
+ version: 0.4.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: 2019-01-24 00:00:00.000000000 Z
11
+ date: 2019-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit-core
@@ -143,7 +143,6 @@ files:
143
143
  - lib/mumukit/sync/inflator.rb
144
144
  - lib/mumukit/sync/inflator/choice.rb
145
145
  - lib/mumukit/sync/inflator/exercise.rb
146
- - lib/mumukit/sync/inflator/gobstones_kids_boards.rb
147
146
  - lib/mumukit/sync/inflator/multiple_choice.rb
148
147
  - lib/mumukit/sync/inflator/single_choice.rb
149
148
  - lib/mumukit/sync/store.rb
@@ -194,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
193
  - !ruby/object:Gem::Version
195
194
  version: '0'
196
195
  requirements: []
197
- rubygems_version: 3.0.2
196
+ rubygems_version: 3.0.3
198
197
  signing_key:
199
198
  specification_version: 4
200
199
  summary: Synchronization tool for resources
@@ -1,35 +0,0 @@
1
- module Mumukit::Sync::Inflator
2
- class GobstonesKidsBoards < Exercise
3
- def inflate_exercise!(exercise_h, language_name, guide_h)
4
- return unless language_name == 'gobstones'
5
- return unless exercise_h[:layout] == 'input_kids'
6
- return unless exercise_h[:test]
7
-
8
- spec = YAML.load(exercise_h[:test])
9
- example = spec&.dig('examples')&.first
10
- with_head = spec&.dig('check_head_position')
11
-
12
- return unless example
13
-
14
- exercise_h[:initial_state] = initial_board example
15
- exercise_h[:final_state] = final_board example, with_head
16
- end
17
-
18
- def to_gs_board(board, with_head)
19
- "<gs-board#{with_head ? "" : " without-header"}> #{board} </gs-board>" if board
20
- end
21
-
22
-
23
- def initial_board(example)
24
- to_gs_board(example['initial_board'], true)
25
- end
26
-
27
- def final_board(example, with_head)
28
- to_gs_board(example['final_board'], with_head) || self.class.boom_board
29
- end
30
-
31
- def self.boom_board
32
- "<img src='https://user-images.githubusercontent.com/1631752/37945593-54b482c0-3157-11e8-9f32-bd25d7bf901b.png'>"
33
- end
34
- end
35
- end