smalruby-editor 0.1.21-x86-mingw32 → 0.1.22-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of smalruby-editor might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 20f711eaebefa511e016b5e546a05a7a9d6ba131
4
- data.tar.gz: b2feda5f9659447e1b5736f8e7b6670129373cd7
3
+ metadata.gz: 0e323295cf676d3ebf6aa9f0eec6bbc4cf12553f
4
+ data.tar.gz: 816f40b49ca5276a114af3ff98e328e06d102cc8
5
5
  SHA512:
6
- metadata.gz: c548cae61d1255fe7f1d347a5754ac96f03b30e0646485ae4cc6143f153da780fd7aff53f4f30258299201c001ce49b5eda000b920e0a3488504273c4f725c40
7
- data.tar.gz: 67a0dda37bce833a7bc084d569008d99b1d9d543434cb99f380091f5dcbc354de45bf33da6b88b8d558c7f8d53c3a663a5a288d802c510103dd233edf9a8c792
6
+ metadata.gz: 56f4aecdec82553c32567a467fb57a2d16bfe6d81cd1c39d393ce1765bcd3c96f52a91d1566b14c579d687ac1dc7838173ddea9e1bc688b0311a31ada99aabf4
7
+ data.tar.gz: 2be0b97a458a00f0a29e3864f145cf84514668f5351fd6d76ecc3086e846129ecf4e17c01aaf28c51311b6ef0da9591c4535b8fae6db95a674873abb8ed5ea65
@@ -26,3 +26,29 @@ Blockly.Blocks['text'].init = function() {
26
26
  originalBlocksTextInit.call(this);
27
27
  this.setColour(100);
28
28
  };
29
+
30
+ // HACK: fix could not play sound on IE11
31
+ Blockly.loadAudio_ = function(filenames, name) {
32
+ if (!window['Audio'] || !filenames.length) {
33
+ // No browser support for Audio.
34
+ return;
35
+ }
36
+ var sound;
37
+ var audioTest = new window['Audio']();
38
+ for (var i = 0; i < filenames.length; i++) {
39
+ var filename = filenames[i];
40
+ var ext = filename.match(/\.(\w+)$/);
41
+ if (ext && audioTest.canPlayType('audio/' + ext[1])) {
42
+ // Found an audio format we can play.
43
+ sound = new window['Audio'](Blockly.pathToBlockly + filename);
44
+ break;
45
+ }
46
+ }
47
+ // To force the browser to load the sound, play it, but at nearly zero volume.
48
+ if (sound && sound.play) {
49
+ sound.volume = 0.01;
50
+ sound.play();
51
+ sound.pause(); // added
52
+ Blockly.SOUNDS_[name] = sound;
53
+ }
54
+ };
@@ -1,3 +1,3 @@
1
1
  module SmalrubyEditor
2
- VERSION = '0.1.21'
2
+ VERSION = '0.1.22'
3
3
  end
@@ -69,7 +69,7 @@ Gem::Specification.new do |spec|
69
69
  ['mime-types', '~> 1.16'],
70
70
  ['haml-rails'],
71
71
  ['nokogiri'],
72
- ['smalruby', '~> 0.0.30'],
72
+ ['smalruby', '~> 0.0.31'],
73
73
  ]
74
74
  runtime_dependencies << ['therubyracer'] unless is_windows
75
75
  runtime_dependencies.each do |args|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smalruby-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Kouji Takao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-12 00:00:00.000000000 Z
11
+ date: 2014-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -198,14 +198,14 @@ dependencies:
198
198
  requirements:
199
199
  - - ~>
200
200
  - !ruby/object:Gem::Version
201
- version: 0.0.30
201
+ version: 0.0.31
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - ~>
207
207
  - !ruby/object:Gem::Version
208
- version: 0.0.30
208
+ version: 0.0.31
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: bundler
211
211
  requirement: !ruby/object:Gem::Requirement
@@ -634,8 +634,8 @@ files:
634
634
  - vendor/assets/javascripts/blockly/msg/js/ja.js
635
635
  - vendor/assets/javascripts/jquery.blockUI.js
636
636
  - vendor/assets/stylesheets/.keep
637
- - public/assets/application-734570836cdba680c1568220a51af40f.js
638
- - public/assets/application-734570836cdba680c1568220a51af40f.js.gz
637
+ - public/assets/application-6d50da6cb28f4b6b3964e1a165c863e4.js
638
+ - public/assets/application-6d50da6cb28f4b6b3964e1a165c863e4.js.gz
639
639
  - public/assets/application-898cb749439fba4ce44cffeac1216201.css
640
640
  - public/assets/application-898cb749439fba4ce44cffeac1216201.css.gz
641
641
  - public/assets/favicon-a37c90b368fd8ed436cb8f9e9396465c.ico