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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be2fa3f6b3e5b132cb08255a0591b8d896594cc803a53078c03d3ab299569fd6
4
- data.tar.gz: 1d704d15285d063e1e24e4ee6d0e689a26bb2c92d0465c22dce3c36bb2880419
3
+ metadata.gz: 8460e80566c14a76b948bf96649cb28c9ca85964836965779d507d99c43e3445
4
+ data.tar.gz: '018da1a8c304990920869489aa97c948048cb3481b76a4f2f4341d76338830f6'
5
5
  SHA512:
6
- metadata.gz: f60d36a8162be8b116f469a88c4acb294a2f0b3ad79ba7c03b987a308a4d3ad6c78fde70a5edc7bfe85c94dd9b6c6768f38440ef81e3d0c5da98be657b216863
7
- data.tar.gz: 52ff4e98095ccb6ff4a81caf6c66b43304047ac953364ef8c82835a0fbf9f5b210b4f107786d0b35798e77ffec33b1ee80f53c2668760fb941d1520e618d2644
6
+ metadata.gz: 7ecbfb604f4e58a42c01437778409b426efc2308c4c022e356170e45714a99c8428458e40e89ba364ee1ab08884027ece59ad6284d9508595e156b6eb66af5a4
7
+ data.tar.gz: 5c6f7cba56e08573d02a2818613325770f10270c04f92445a0240400b47246df77b17420018acbaea72f8c150fb2cf3fa56c32268d24a0bfb11b0d62d95c1444
@@ -24,7 +24,7 @@ jobs:
24
24
  run: gem install yard
25
25
 
26
26
  - name: test
27
- run: rake test
27
+ run: rake quiet test
28
28
 
29
29
  - name: create gem
30
30
  id: gem
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 ../beeps ../rays ../reflex .]
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, Beeps, Rays, Reflex, Processing]
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.2
1
+ 0.5.3
@@ -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
@@ -25,6 +25,6 @@ begin
25
25
  w.__send__ :begin_draw
26
26
  at_exit do
27
27
  w.__send__ :end_draw
28
- Processing::App.new {w.show}.start if c.hasDrawBlock__ && !$!
28
+ Processing::App.new {w.show}.start if c.hasUserBlocks__ && !$!
29
29
  end
30
30
  end
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'
32
- s.add_runtime_dependency 'rucy', '~> 0.1.32'
33
- s.add_runtime_dependency 'beeps', '~> 0.1.32'
34
- s.add_runtime_dependency 'rays', '~> 0.1.32'
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
@@ -5,10 +5,11 @@
5
5
  .map {|s| File.expand_path "../#{s}/lib", __dir__}
6
6
  .each {|s| $:.unshift s if !$:.include?(s) && File.directory?(s)}
7
7
 
8
- require 'test/unit'
9
8
  require 'xot/test'
10
9
  require 'processing/all'
11
10
 
11
+ require 'test/unit'
12
+
12
13
  include Xot::Test
13
14
 
14
15
 
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.2
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-03-01 00:00:00.000000000 Z
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.32
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.32
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.32
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.32
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.32
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.32
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.32
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.32
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.6
174
+ rubygems_version: 3.4.10
192
175
  signing_key:
193
176
  specification_version: 4
194
177
  summary: Processing compatible Creative Coding Framework.
@@ -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
@@ -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