processing 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release-gem.yml +1 -1
- data/ChangeLog.md +7 -0
- data/Rakefile +2 -3
- data/VERSION +1 -1
- data/lib/processing/context.rb +17 -5
- data/lib/processing.rb +1 -1
- data/processing.gemspec +4 -5
- data/test/helper.rb +2 -1
- metadata +11 -28
- data/RubyProcessing.podspec +0 -28
- data/src/RubyProcessing.h +0 -15
- data/src/RubyProcessing.mm +0 -55
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8460e80566c14a76b948bf96649cb28c9ca85964836965779d507d99c43e3445
|
4
|
+
data.tar.gz: '018da1a8c304990920869489aa97c948048cb3481b76a4f2f4341d76338830f6'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ecbfb604f4e58a42c01437778409b426efc2308c4c022e356170e45714a99c8428458e40e89ba364ee1ab08884027ece59ad6284d9508595e156b6eb66af5a4
|
7
|
+
data.tar.gz: 5c6f7cba56e08573d02a2818613325770f10270c04f92445a0240400b47246df77b17420018acbaea72f8c150fb2cf3fa56c32268d24a0bfb11b0d62d95c1444
|
data/ChangeLog.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
# processing ChangeLog
|
2
2
|
|
3
3
|
|
4
|
+
## [v0.5.3] - 2023-04-22
|
5
|
+
|
6
|
+
- Delete RubyProcessing.podspec
|
7
|
+
- Do not depend on Beeps
|
8
|
+
- If there are no user blocks, the window is not displayed and exits
|
9
|
+
|
10
|
+
|
4
11
|
## [v0.5.2] - 2023-03-02
|
5
12
|
|
6
13
|
- delete rubysketch.rb and rubysketch-processing.rb
|
data/Rakefile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- mode: ruby -*-
|
2
2
|
|
3
3
|
|
4
|
-
%w[../xot ../rucy ../
|
4
|
+
%w[../xot ../rucy ../rays ../reflex .]
|
5
5
|
.map {|s| File.expand_path "#{s}/lib", __dir__}
|
6
6
|
.each {|s| $:.unshift s if !$:.include?(s) && File.directory?(s)}
|
7
7
|
|
@@ -9,13 +9,12 @@ require 'rucy/rake'
|
|
9
9
|
|
10
10
|
require 'xot/extension'
|
11
11
|
require 'rucy/extension'
|
12
|
-
require 'beeps/extension'
|
13
12
|
require 'rays/extension'
|
14
13
|
require 'reflex/extension'
|
15
14
|
require 'processing/extension'
|
16
15
|
|
17
16
|
|
18
|
-
EXTENSIONS = [Xot, Rucy,
|
17
|
+
EXTENSIONS = [Xot, Rucy, Rays, Reflex, Processing]
|
19
18
|
|
20
19
|
ENV['RDOC'] = 'yardoc --no-private'
|
21
20
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.3
|
data/lib/processing/context.rb
CHANGED
@@ -148,6 +148,23 @@ module Processing
|
|
148
148
|
nil
|
149
149
|
end
|
150
150
|
|
151
|
+
# @private
|
152
|
+
def hasUserBlocks__()
|
153
|
+
@drawBlock__ ||
|
154
|
+
@keyPressedBlock__ ||
|
155
|
+
@keyReleasedBlock__ ||
|
156
|
+
@keyTypedBlock__ ||
|
157
|
+
@mousePressedBlock__ ||
|
158
|
+
@mouseReleasedBlock__ ||
|
159
|
+
@mouseMovedBlock__ ||
|
160
|
+
@mouseDraggedBlock__ ||
|
161
|
+
@mouseClickedBlock__ ||
|
162
|
+
@touchStartedBlock__ ||
|
163
|
+
@touchEndedBlock__ ||
|
164
|
+
@touchMovedBlock__ ||
|
165
|
+
@motionBlock__
|
166
|
+
end
|
167
|
+
|
151
168
|
# Defines draw block.
|
152
169
|
#
|
153
170
|
# @return [nil] nil
|
@@ -157,11 +174,6 @@ module Processing
|
|
157
174
|
nil
|
158
175
|
end
|
159
176
|
|
160
|
-
# @private
|
161
|
-
def hasDrawBlock__()
|
162
|
-
@drawBlock__ != nil
|
163
|
-
end
|
164
|
-
|
165
177
|
# Defines keyPressed block.
|
166
178
|
#
|
167
179
|
# @return [Boolean] is any key pressed or not
|
data/lib/processing.rb
CHANGED
data/processing.gemspec
CHANGED
@@ -28,11 +28,10 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.platform = Gem::Platform::RUBY
|
29
29
|
s.required_ruby_version = '>= 2.7.0'
|
30
30
|
|
31
|
-
s.add_runtime_dependency 'xot', '~> 0.1.
|
32
|
-
s.add_runtime_dependency 'rucy', '~> 0.1.
|
33
|
-
s.add_runtime_dependency '
|
34
|
-
s.add_runtime_dependency '
|
35
|
-
s.add_runtime_dependency 'reflexion', '~> 0.1.32'
|
31
|
+
s.add_runtime_dependency 'xot', '~> 0.1.33'
|
32
|
+
s.add_runtime_dependency 'rucy', '~> 0.1.33'
|
33
|
+
s.add_runtime_dependency 'rays', '~> 0.1.33'
|
34
|
+
s.add_runtime_dependency 'reflexion', '~> 0.1.33'
|
36
35
|
|
37
36
|
s.add_development_dependency 'rake'
|
38
37
|
s.add_development_dependency 'test-unit'
|
data/test/helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: processing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xordog
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xot
|
@@ -16,70 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1.
|
19
|
+
version: 0.1.33
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.1.
|
26
|
+
version: 0.1.33
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rucy
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.1.
|
33
|
+
version: 0.1.33
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.1.
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: beeps
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 0.1.32
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 0.1.32
|
40
|
+
version: 0.1.33
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rays
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
45
|
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.1.
|
47
|
+
version: 0.1.33
|
62
48
|
type: :runtime
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
52
|
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.1.
|
54
|
+
version: 0.1.33
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: reflexion
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
59
|
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.1.
|
61
|
+
version: 0.1.33
|
76
62
|
type: :runtime
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
66
|
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.1.
|
68
|
+
version: 0.1.33
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: rake
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,7 +125,6 @@ files:
|
|
139
125
|
- LICENSE
|
140
126
|
- README.md
|
141
127
|
- Rakefile
|
142
|
-
- RubyProcessing.podspec
|
143
128
|
- VERSION
|
144
129
|
- examples/breakout.rb
|
145
130
|
- examples/camera.rb
|
@@ -163,8 +148,6 @@ files:
|
|
163
148
|
- lib/processing/vector.rb
|
164
149
|
- lib/processing/window.rb
|
165
150
|
- processing.gemspec
|
166
|
-
- src/RubyProcessing.h
|
167
|
-
- src/RubyProcessing.mm
|
168
151
|
- test/helper.rb
|
169
152
|
- test/test_graphics.rb
|
170
153
|
- test/test_shader.rb
|
@@ -188,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
171
|
- !ruby/object:Gem::Version
|
189
172
|
version: '0'
|
190
173
|
requirements: []
|
191
|
-
rubygems_version: 3.4.
|
174
|
+
rubygems_version: 3.4.10
|
192
175
|
signing_key:
|
193
176
|
specification_version: 4
|
194
177
|
summary: Processing compatible Creative Coding Framework.
|
data/RubyProcessing.podspec
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
# -*- mode: ruby -*-
|
2
|
-
|
3
|
-
|
4
|
-
Pod::Spec.new do |s|
|
5
|
-
s.name = "RubyProcessing"
|
6
|
-
s.version = File.read(File.expand_path 'VERSION', __dir__)[/[\d\.]+/]
|
7
|
-
s.summary = "Yet Another Processing implementation for Ruby"
|
8
|
-
s.description = "Yet Another Processing implementation for Ruby"
|
9
|
-
s.license = "MIT"
|
10
|
-
s.source = {:git => "https://github.com/xord/processing.git"}
|
11
|
-
s.author = {"xordog" => "xordog@gmail.com"}
|
12
|
-
s.homepage = "https://github.com/xord/processing"
|
13
|
-
|
14
|
-
s.osx.deployment_target = "10.10"
|
15
|
-
s.ios.deployment_target = "10.0"
|
16
|
-
|
17
|
-
incdirs = %W[
|
18
|
-
#{s.name}/src
|
19
|
-
CRuby/CRuby/include
|
20
|
-
Reflexion/reflex/include
|
21
|
-
].map {|s| "${PODS_ROOT}/#{s}"}
|
22
|
-
|
23
|
-
s.preserve_paths = "src"
|
24
|
-
s.source_files = "src/*.mm"
|
25
|
-
s.xcconfig = {"HEADER_SEARCH_PATHS" => incdirs.join(' ')}
|
26
|
-
|
27
|
-
s.resource_bundles = {'RubyProcessing' => %w[lib VERSION]}
|
28
|
-
end
|
data/src/RubyProcessing.h
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
// -*- mode: objc -*-
|
2
|
-
#import <Foundation/Foundation.h>
|
3
|
-
|
4
|
-
|
5
|
-
@interface RubyProcessing : NSObject
|
6
|
-
|
7
|
-
+ (void) setup;
|
8
|
-
|
9
|
-
+ (void) start: (NSString*) path;
|
10
|
-
|
11
|
-
+ (void) setActiveReflexViewController: (id) reflexViewController;
|
12
|
-
|
13
|
-
+ (void) resetActiveReflexViewController;
|
14
|
-
|
15
|
-
@end
|
data/src/RubyProcessing.mm
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
#import <CRuby.h>
|
2
|
-
#import "RubyProcessing.h"
|
3
|
-
#include "../src/ios/view_controller.h"
|
4
|
-
|
5
|
-
|
6
|
-
static ReflexViewController* active_reflex_view_controller = nil;
|
7
|
-
|
8
|
-
static ReflexViewController*
|
9
|
-
ReflexViewController_create()
|
10
|
-
{
|
11
|
-
return active_reflex_view_controller;
|
12
|
-
}
|
13
|
-
|
14
|
-
static void
|
15
|
-
ReflexViewController_show (UIViewController*, ReflexViewController*)
|
16
|
-
{
|
17
|
-
}
|
18
|
-
|
19
|
-
|
20
|
-
@implementation RubyProcessing
|
21
|
-
|
22
|
-
+ (void) setup
|
23
|
-
{
|
24
|
-
static BOOL done = NO;
|
25
|
-
if (done) return;
|
26
|
-
done = YES;
|
27
|
-
|
28
|
-
[CRuby addLibrary:@"RubyProcessing" bundle:[NSBundle bundleForClass:RubyProcessing.class]];
|
29
|
-
|
30
|
-
ReflexViewController_set_create_fun(ReflexViewController_create);
|
31
|
-
ReflexViewController_set_show_fun(ReflexViewController_show);
|
32
|
-
}
|
33
|
-
|
34
|
-
+ (void) start: (NSString*) path
|
35
|
-
{
|
36
|
-
[CRuby evaluate:[NSString stringWithFormat:@
|
37
|
-
"raise 'already started' unless require 'processing'\n"
|
38
|
-
"load '%@'\n"
|
39
|
-
"PROCESSING_WINDOW.__send__ :end_draw\n"
|
40
|
-
"PROCESSING_WINDOW.show",
|
41
|
-
path
|
42
|
-
]];
|
43
|
-
}
|
44
|
-
|
45
|
-
+ (void) setActiveReflexViewController: (id) reflexViewController
|
46
|
-
{
|
47
|
-
active_reflex_view_controller = reflexViewController;
|
48
|
-
}
|
49
|
-
|
50
|
-
+ (void) resetActiveReflexViewController
|
51
|
-
{
|
52
|
-
active_reflex_view_controller = nil;
|
53
|
-
}
|
54
|
-
|
55
|
-
@end
|