Pachelbel 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/project/Pachelbel.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1db4add5dbc5c87afe3f908be78189e4cb7119d
4
- data.tar.gz: 3a4d363014c9299837d9d5962dd746e64ae01fc5
3
+ metadata.gz: 70115604b402ca0d93b76151d2ba202cf01055cf
4
+ data.tar.gz: 4c5350bf04c86d5bb85c4d3dd956f77ca7d9e596
5
5
  SHA512:
6
- metadata.gz: 049cffb1cba4b97f6f378fa4623cda461688a8e5f0e73a71f51a0e6f24685426ab6e31b98bd16a4ed8db9785fb3abe434af38e8adad7cfac1ee2817d38d3b8fe
7
- data.tar.gz: c18a5b399c16eedde445fb24104cabeba6bb7a4008ecd900ad0390ae0ca552d24f8a5a2145d3dcc7f1a295a43c42d36ff87b60f034dc3979c815d892e201dfd1
6
+ metadata.gz: 3e20dc7b0c60fc8c99a55b1e89eb8caa6bf2587e1eb37a87041163f867a355f0f2620c28c25a4e911d247662fa913f8598a1f67aaa2f59b3114debd18b6d8bd1
7
+ data.tar.gz: 569b7ee55f240db3a6bc7da55511427d10533e43f218bd9bd9e4dac2a59d8e9470fbdb5fc0231a3842b03c5990ce46ffce9f911e134f9fe38d42d0f03bd3a098
@@ -7,7 +7,7 @@ module Pachelbel
7
7
  'var audio_context = new AudioContext();' + 'var audio_nodes = [audio_context.destination];' + '</script>'
8
8
 
9
9
  def on_ready(&block)
10
- @on_ready.push block
10
+ @locked ? @on_ready.push(block) : block.call
11
11
  end
12
12
 
13
13
  def run_js(script)
@@ -39,7 +39,7 @@ module Pachelbel
39
39
  when "let://freedom.ring"
40
40
  @locked = false
41
41
  @on_ready.each(&:call)
42
- @on_ready.clear
42
+ @on_ready = nil
43
43
  return false
44
44
  else
45
45
  return true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Pachelbel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drew Carey Buglione