coffee-processing 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ 0.0.2
2
+ =====
3
+ - Prevents accidental assignment of `processing` variable which breaks the sketch.
4
+
@@ -1,10 +1,11 @@
1
- <%= javascript_object %> = (processing) ->
2
- for __sym of processing when eval("typeof #{__sym} === 'undefined'")
3
- if typeof processing[__sym] == 'function'
4
- eval "var #{__sym} = function() { return processing.#{__sym}.apply(processing, arguments) }"
1
+ <%= javascript_object %> = (__processing) ->
2
+ for __sym of __processing when eval("typeof #{__sym} === 'undefined'")
3
+ if typeof __processing[__sym] == 'function'
4
+ eval "var #{__sym} = function() { return __processing.#{__sym}.apply(__processing, arguments) }"
5
5
  else
6
- eval "var #{__sym} = function() { return processing.#{__sym} }"
6
+ eval "var #{__sym} = function() { return __processing.#{__sym} }"
7
7
  null
8
+ processing = __processing
8
9
 
9
10
  <%= code %>
10
11
 
@@ -22,5 +23,5 @@
22
23
  'keyReleased',
23
24
  'keyTyped'
24
25
  ] when !eval("typeof #{__sym} === 'undefined'")
25
- eval "processing.#{callback} = #{callback}"
26
+ eval "__processing.#{callback} = #{callback}"
26
27
 
@@ -1,3 +1,3 @@
1
1
  module CoffeeProcessing
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coffee-processing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-25 00:00:00.000000000 Z
12
+ date: 2012-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: coffee-script
16
- requirement: &2151894180 !ruby/object:Gem::Requirement
16
+ requirement: &2156567920 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2151894180
24
+ version_requirements: *2156567920
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: erubis
27
- requirement: &2151893340 !ruby/object:Gem::Requirement
27
+ requirement: &2156565480 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.7.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2151893340
35
+ version_requirements: *2156565480
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: test-unit
38
- requirement: &2151892320 !ruby/object:Gem::Requirement
38
+ requirement: &2156564900 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 2.4.8
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2151892320
46
+ version_requirements: *2156564900
47
47
  description: Helps writing Processing.js sketches in Coffeescript
48
48
  email:
49
49
  - junegunn.c@gmail.com
@@ -53,6 +53,7 @@ extensions: []
53
53
  extra_rdoc_files: []
54
54
  files:
55
55
  - .gitignore
56
+ - CHANGELOG.md
56
57
  - Gemfile
57
58
  - LICENSE
58
59
  - README.md