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 +4 -4
- data/app/assets/javascripts/fix_blockly.js +26 -0
- data/lib/smalruby_editor/version.rb +1 -1
- data/smalruby-editor.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e323295cf676d3ebf6aa9f0eec6bbc4cf12553f
|
4
|
+
data.tar.gz: 816f40b49ca5276a114af3ff98e328e06d102cc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
};
|
data/smalruby-editor.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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.
|
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-
|
638
|
-
- public/assets/application-
|
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
|