processing 0.5.0 → 0.5.2
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.
- checksums.yaml +4 -4
- data/.github/workflows/{release.yml → release-gem.yml} +20 -20
- data/.github/workflows/tag.yml +35 -0
- data/.github/workflows/test.yml +5 -6
- data/.github/workflows/utils.rb +55 -0
- data/ChangeLog.md +39 -29
- data/Rakefile +9 -34
- data/RubyProcessing.podspec +1 -1
- data/VERSION +1 -1
- data/lib/processing/all.rb +1 -1
- data/lib/processing/{module.rb → extension.rb} +3 -3
- data/processing.gemspec +11 -5
- metadata +93 -9
- data/lib/rubysketch-processing.rb +0 -1
- data/lib/rubysketch.rb +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be2fa3f6b3e5b132cb08255a0591b8d896594cc803a53078c03d3ab299569fd6
|
|
4
|
+
data.tar.gz: 1d704d15285d063e1e24e4ee6d0e689a26bb2c92d0465c22dce3c36bb2880419
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f60d36a8162be8b116f469a88c4acb294a2f0b3ad79ba7c03b987a308a4d3ad6c78fde70a5edc7bfe85c94dd9b6c6768f38440ef81e3d0c5da98be657b216863
|
|
7
|
+
data.tar.gz: 52ff4e98095ccb6ff4a81caf6c66b43304047ac953364ef8c82835a0fbf9f5b210b4f107786d0b35798e77ffec33b1ee80f53c2668760fb941d1520e618d2644
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name: Release
|
|
1
|
+
name: Release Gem
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
@@ -9,46 +9,46 @@ jobs:
|
|
|
9
9
|
runs-on: macos-latest
|
|
10
10
|
|
|
11
11
|
steps:
|
|
12
|
-
- name: checkout
|
|
13
|
-
uses: actions/checkout@v2
|
|
14
|
-
|
|
15
12
|
- name: ruby 3.2
|
|
16
13
|
uses: ruby/setup-ruby@v1
|
|
17
14
|
with:
|
|
18
15
|
ruby-version: 3.2
|
|
19
16
|
|
|
17
|
+
- name: checkout
|
|
18
|
+
uses: actions/checkout@v2
|
|
19
|
+
|
|
20
|
+
- name: setup dependencies
|
|
21
|
+
run: "ruby -I.github/workflows -rutils -e 'setup_dependencies'"
|
|
22
|
+
|
|
20
23
|
- name: install gems
|
|
21
|
-
run:
|
|
22
|
-
gem install bundler
|
|
23
|
-
bundle install --jobs 4 --retry 3
|
|
24
|
+
run: gem install yard
|
|
24
25
|
|
|
25
|
-
- name:
|
|
26
|
-
|
|
27
|
-
run: |
|
|
28
|
-
echo value=$(ruby -e 'print "${{ github.ref }}"[/\/v([\w\.\-]+)/, 1]') >> $GITHUB_OUTPUT
|
|
26
|
+
- name: test
|
|
27
|
+
run: rake test
|
|
29
28
|
|
|
30
29
|
- name: create gem
|
|
31
|
-
|
|
30
|
+
id: gem
|
|
31
|
+
run: |
|
|
32
|
+
rake gem
|
|
33
|
+
echo path=$(ruby -e 'print Dir.glob("*.gem").first') >> $GITHUB_OUTPUT
|
|
32
34
|
|
|
33
|
-
- name: create release
|
|
34
|
-
id:
|
|
35
|
+
- name: create github release
|
|
36
|
+
id: release
|
|
35
37
|
uses: actions/create-release@v1
|
|
36
38
|
env:
|
|
37
39
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
38
40
|
with:
|
|
39
41
|
tag_name: ${{ github.ref }}
|
|
40
42
|
release_name: ${{ github.ref }}
|
|
41
|
-
draft: false
|
|
42
|
-
prerelease: false
|
|
43
43
|
|
|
44
|
-
- name: upload to
|
|
44
|
+
- name: upload to github release
|
|
45
45
|
uses: actions/upload-release-asset@v1
|
|
46
46
|
env:
|
|
47
47
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
48
48
|
with:
|
|
49
|
-
upload_url: ${{ steps.
|
|
50
|
-
asset_path:
|
|
51
|
-
asset_name:
|
|
49
|
+
upload_url: ${{ steps.release.outputs.upload_url }}
|
|
50
|
+
asset_path: ./${{ steps.gem.outputs.path }}
|
|
51
|
+
asset_name: ${{ steps.gem.outputs.path }}
|
|
52
52
|
asset_content_type: application/zip
|
|
53
53
|
|
|
54
54
|
- name: upload to rubygems
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Tag
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [master]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
tag:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
steps:
|
|
12
|
+
- name: ruby 3.2
|
|
13
|
+
uses: ruby/setup-ruby@v1
|
|
14
|
+
with:
|
|
15
|
+
ruby-version: 3.2
|
|
16
|
+
|
|
17
|
+
- name: checkout
|
|
18
|
+
uses: actions/checkout@v2
|
|
19
|
+
with:
|
|
20
|
+
fetch-depth: 0
|
|
21
|
+
token: ${{ secrets.PAT }}
|
|
22
|
+
|
|
23
|
+
- name: setup dependencies
|
|
24
|
+
run: "ruby -I.github/workflows -rutils -e 'setup_dependencies only: :xot'"
|
|
25
|
+
|
|
26
|
+
- name: setup user name and email
|
|
27
|
+
run: |
|
|
28
|
+
git config --global user.email "xordog@gmail.com"
|
|
29
|
+
git config --global user.name "xord"
|
|
30
|
+
|
|
31
|
+
- name: tag versions
|
|
32
|
+
run: "ruby -I.github/workflows -rutils -e 'tag_versions'"
|
|
33
|
+
|
|
34
|
+
- name: push tags
|
|
35
|
+
run: git push origin --tags
|
data/.github/workflows/test.yml
CHANGED
|
@@ -11,17 +11,16 @@ jobs:
|
|
|
11
11
|
runs-on: macos-latest
|
|
12
12
|
|
|
13
13
|
steps:
|
|
14
|
-
- uses: actions/checkout@v2
|
|
15
|
-
|
|
16
14
|
- name: ruby 3.2
|
|
17
15
|
uses: ruby/setup-ruby@v1
|
|
18
16
|
with:
|
|
19
17
|
ruby-version: 3.2
|
|
20
18
|
|
|
21
|
-
- name:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
- name: checkout
|
|
20
|
+
uses: actions/checkout@v2
|
|
21
|
+
|
|
22
|
+
- name: setup dependencies
|
|
23
|
+
run: "ruby -I.github/workflows -rutils -e 'setup_dependencies'"
|
|
25
24
|
|
|
26
25
|
- name: test
|
|
27
26
|
run: rake test
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
RENAMES = {reflex: 'reflexion'}
|
|
2
|
+
|
|
3
|
+
def sh(cmd)
|
|
4
|
+
puts cmd
|
|
5
|
+
system cmd
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def setup_dependencies(build: true, only: nil)
|
|
9
|
+
gemspec_path = `git ls-files`.lines(chomp: true).find {|l| l =~ /\.gemspec$/}
|
|
10
|
+
return unless gemspec_path
|
|
11
|
+
|
|
12
|
+
gemspec = File.read gemspec_path
|
|
13
|
+
name = File.basename gemspec_path, '.gemspec'
|
|
14
|
+
|
|
15
|
+
exts = File.readlines('Rakefile')
|
|
16
|
+
.map {|l| l[%r|^\s*require\W+(\w+)/extension\W+$|, 1]}
|
|
17
|
+
.compact
|
|
18
|
+
.reject {|ext| ext == name}
|
|
19
|
+
exts = exts & [only].flatten.map(&:to_s) if only
|
|
20
|
+
|
|
21
|
+
exts.each do |ext|
|
|
22
|
+
gem = RENAMES[ext.to_sym].then {|s| s || ext}
|
|
23
|
+
clone = "git clone --depth 1 https://github.com/xord/#{ext}.git ../#{ext}"
|
|
24
|
+
ver = gemspec[/add_runtime_dependency.*['"]#{gem}['"].*['"]\s*~>\s*([\d\.]+)\s*['"]/, 1]
|
|
25
|
+
|
|
26
|
+
# 'rake subtree:push' pushes all subrepos, so cloning by new tag
|
|
27
|
+
# often fails before tagging each new tag
|
|
28
|
+
sh %( #{clone} --branch v#{ver} || #{clone} )
|
|
29
|
+
sh %( cd ../#{ext} && rake ext )
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def tag_versions()
|
|
34
|
+
tags = `git tag`.lines chomp: true
|
|
35
|
+
vers = `git log --oneline ./VERSION`
|
|
36
|
+
.lines(chomp: true)
|
|
37
|
+
.map {|line| line.split.first[/^\w+$/]}
|
|
38
|
+
.map {|hash| [`git cat-file -p #{hash}:./VERSION 2>/dev/null`[/[\d\.]+/], hash]}
|
|
39
|
+
.select {|ver, hash| ver && hash}
|
|
40
|
+
.reverse
|
|
41
|
+
.to_h
|
|
42
|
+
|
|
43
|
+
changes = File.read('ChangeLog.md')
|
|
44
|
+
.split(/^\s*##\s*\[\s*v([\d\.]+)\s*\].*$/)
|
|
45
|
+
.slice(1..-1)
|
|
46
|
+
.each_slice(2)
|
|
47
|
+
.to_h
|
|
48
|
+
.transform_values(&:strip!)
|
|
49
|
+
|
|
50
|
+
vers.to_a.reverse.each do |ver, hash|
|
|
51
|
+
tag = "v#{ver}"
|
|
52
|
+
break if tags.include?(tag)
|
|
53
|
+
sh %( git tag -a -m \"#{changes[ver]&.gsub '"', '\\"'}\" #{tag} #{hash} )
|
|
54
|
+
end
|
|
55
|
+
end
|
data/ChangeLog.md
CHANGED
|
@@ -1,21 +1,31 @@
|
|
|
1
|
-
#
|
|
1
|
+
# processing ChangeLog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
## [
|
|
4
|
+
## [v0.5.2] - 2023-03-02
|
|
5
|
+
|
|
6
|
+
- delete rubysketch.rb and rubysketch-processing.rb
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [v0.5.1] - 2023-03-01
|
|
10
|
+
|
|
11
|
+
- requiring 'rubysketch-processing' is deprecated
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [v0.5.0] - 2023-02-09
|
|
5
15
|
|
|
6
16
|
- requiring 'processing/include' is deprecated
|
|
7
17
|
- require 'processing' and 'using Processing' is now required
|
|
8
18
|
- do not show the window if a draw block is not given
|
|
9
19
|
|
|
10
20
|
|
|
11
|
-
## [
|
|
21
|
+
## [v0.4.0] - 2022-12-29
|
|
12
22
|
|
|
13
23
|
- renamed from rubysketch.gem to processing.gem
|
|
14
24
|
- renamed from RubySketch Pod to RubyProcessing Pod
|
|
15
25
|
- delete glsl mode
|
|
16
26
|
|
|
17
27
|
|
|
18
|
-
## [
|
|
28
|
+
## [v0.3.22] - 2022-11-14
|
|
19
29
|
|
|
20
30
|
RubySketch::Processing
|
|
21
31
|
- add Shader class
|
|
@@ -29,7 +39,7 @@ RubySketch::GLSL
|
|
|
29
39
|
- displays with pixel density 1.0
|
|
30
40
|
|
|
31
41
|
|
|
32
|
-
## [
|
|
42
|
+
## [v0.3.21] - 2022-09-05
|
|
33
43
|
|
|
34
44
|
- add rubysketch-glsl.rb
|
|
35
45
|
- add blend(), createImage(), setTitle(), tint() and noTint()
|
|
@@ -39,7 +49,7 @@ RubySketch::GLSL
|
|
|
39
49
|
- change initial values for strokeCap and strokeJoin to ROUND and MITER
|
|
40
50
|
|
|
41
51
|
|
|
42
|
-
## [
|
|
52
|
+
## [v0.3.20] - 2022-07-24
|
|
43
53
|
|
|
44
54
|
- add mouseClicked()
|
|
45
55
|
- add blendMode()
|
|
@@ -48,73 +58,73 @@ RubySketch::GLSL
|
|
|
48
58
|
- fix that resizing canvas consumes too much memory
|
|
49
59
|
|
|
50
60
|
|
|
51
|
-
## [
|
|
61
|
+
## [v0.3.19] - 2021-12-5
|
|
52
62
|
|
|
53
63
|
- fix runtime error
|
|
54
64
|
|
|
55
65
|
|
|
56
|
-
## [
|
|
66
|
+
## [v0.3.18] - 2021-12-5
|
|
57
67
|
|
|
58
68
|
- add 'mouseButton'
|
|
59
69
|
- pointer cancel event calls pointer_up block
|
|
60
70
|
|
|
61
71
|
|
|
62
|
-
## [
|
|
72
|
+
## [v0.3.17] - 2021-12-5
|
|
63
73
|
|
|
64
74
|
- add Touch#id
|
|
65
75
|
|
|
66
76
|
|
|
67
|
-
## [
|
|
77
|
+
## [v0.3.16] - 2021-2-14
|
|
68
78
|
|
|
69
79
|
- add key, keyCode and keyPressed system values
|
|
70
80
|
- add keyPressed(), keyReleased() and keyTyped() functions
|
|
71
81
|
- add motionGravity value and motion() function
|
|
72
82
|
|
|
73
83
|
|
|
74
|
-
## [
|
|
84
|
+
## [v0.3.15] - 2020-12-12
|
|
75
85
|
|
|
76
86
|
- delete temporary directory on launch
|
|
77
87
|
|
|
78
88
|
|
|
79
|
-
## [
|
|
89
|
+
## [v0.3.14] - 2020-12-12
|
|
80
90
|
|
|
81
91
|
- fix loadImage() fails when Encoding.default_internal is not nil
|
|
82
92
|
|
|
83
93
|
|
|
84
|
-
## [
|
|
94
|
+
## [v0.3.13] - 2020-12-12
|
|
85
95
|
|
|
86
96
|
- size(), createCanvas(): default pixelDensity is same as current value
|
|
87
97
|
|
|
88
98
|
|
|
89
|
-
## [
|
|
99
|
+
## [v0.3.12] - 2020-12-10
|
|
90
100
|
|
|
91
101
|
- size() and createCanvas() take 'pixelDensity' parameter and default value is 1
|
|
92
102
|
|
|
93
103
|
|
|
94
|
-
## [
|
|
104
|
+
## [v0.3.11] - 2020-12-9
|
|
95
105
|
|
|
96
106
|
- add size(), createCanvas() and pixelDensity()
|
|
97
107
|
|
|
98
108
|
|
|
99
|
-
## [
|
|
109
|
+
## [v0.3.10] - 2020-12-1
|
|
100
110
|
|
|
101
111
|
- invert angle parameter value for arc() to fix compatibility to processing API
|
|
102
112
|
|
|
103
113
|
|
|
104
|
-
## [
|
|
114
|
+
## [v0.3.9] - 2020-11-30
|
|
105
115
|
|
|
106
116
|
- Graphics#beginDraw() can take block to call endDraw automatically
|
|
107
117
|
- Capture#start() always returns nil
|
|
108
118
|
- add delay_camera.rb
|
|
109
119
|
|
|
110
120
|
|
|
111
|
-
## [
|
|
121
|
+
## [v0.3.8] - 2020-11-27
|
|
112
122
|
|
|
113
123
|
- Capture#initialize() can take requestWidth, requestHeight and cameraName
|
|
114
124
|
- add Capture#width and Capture#height
|
|
115
125
|
|
|
116
126
|
|
|
117
|
-
## [
|
|
127
|
+
## [v0.3.7] - 2020-11-18
|
|
118
128
|
|
|
119
129
|
- add Capture class
|
|
120
130
|
- add log(), exp(), sqrt() and PI
|
|
@@ -123,13 +133,13 @@ RubySketch::GLSL
|
|
|
123
133
|
- fix error on calling image()
|
|
124
134
|
|
|
125
135
|
|
|
126
|
-
## [
|
|
136
|
+
## [v0.3.6] - 2020-08-02
|
|
127
137
|
|
|
128
138
|
- random() can take array or nothing
|
|
129
139
|
- use github actions to release gem package
|
|
130
140
|
|
|
131
141
|
|
|
132
|
-
## [
|
|
142
|
+
## [v0.3.5] - 2020-08-02
|
|
133
143
|
|
|
134
144
|
- add random()
|
|
135
145
|
- add sin(), cos(), tan(), asin(), acos(), atan() and atan2()
|
|
@@ -137,17 +147,17 @@ RubySketch::GLSL
|
|
|
137
147
|
- fix error on calling rotate()
|
|
138
148
|
|
|
139
149
|
|
|
140
|
-
## [
|
|
150
|
+
## [v0.3.4] - 2020-08-02
|
|
141
151
|
|
|
142
152
|
- delete Utility module
|
|
143
153
|
|
|
144
154
|
|
|
145
|
-
## [
|
|
155
|
+
## [v0.3.3] - 2020-08-01
|
|
146
156
|
|
|
147
157
|
- add Vector class
|
|
148
158
|
|
|
149
159
|
|
|
150
|
-
## [
|
|
160
|
+
## [v0.3.2] - 2020-07-22
|
|
151
161
|
|
|
152
162
|
- text() draws to the baseline by default
|
|
153
163
|
- add textWidth(), textAscent(), textDescent() and textAlign()
|
|
@@ -155,24 +165,24 @@ RubySketch::GLSL
|
|
|
155
165
|
- change initial background color to grayscale 0.8
|
|
156
166
|
|
|
157
167
|
|
|
158
|
-
## [
|
|
168
|
+
## [v0.3.1] - 2020-07-17
|
|
159
169
|
|
|
160
170
|
- add touchStarted(), touchEnded(), touchMoved() and touches()
|
|
161
171
|
- make all event handler drawable
|
|
162
172
|
- limit font max size to 256
|
|
163
173
|
|
|
164
174
|
|
|
165
|
-
## [
|
|
175
|
+
## [v0.3.0] - 2020-05-21
|
|
166
176
|
|
|
167
177
|
- add createGraphics()
|
|
168
178
|
|
|
169
179
|
|
|
170
|
-
## [
|
|
180
|
+
## [v0.2.7] - 2020-04-17
|
|
171
181
|
|
|
172
182
|
- add strokeCap() and strokeJoin()
|
|
173
183
|
|
|
174
184
|
|
|
175
|
-
## [
|
|
185
|
+
## [v0.2.6] - 2020-04-17
|
|
176
186
|
|
|
177
187
|
- push(), pushMatrix() and pushStyle() take block to automatic pop
|
|
178
188
|
- refine startup process
|
|
@@ -181,7 +191,7 @@ RubySketch::GLSL
|
|
|
181
191
|
- add loop(), noLoop() and redraw()
|
|
182
192
|
|
|
183
193
|
|
|
184
|
-
## [
|
|
194
|
+
## [v0.2.5] - 2020-03-29
|
|
185
195
|
|
|
186
196
|
- delete debug prints
|
|
187
197
|
- show unsupported image type
|
data/Rakefile
CHANGED
|
@@ -1,50 +1,25 @@
|
|
|
1
1
|
# -*- mode: ruby -*-
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
%w[../xot ../rucy ../rays ../reflex .]
|
|
4
|
+
%w[../xot ../rucy ../beeps ../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
|
|
|
8
8
|
require 'rucy/rake'
|
|
9
9
|
|
|
10
|
-
require 'xot/
|
|
11
|
-
require 'rucy/
|
|
12
|
-
require '
|
|
13
|
-
require '
|
|
14
|
-
require '
|
|
10
|
+
require 'xot/extension'
|
|
11
|
+
require 'rucy/extension'
|
|
12
|
+
require 'beeps/extension'
|
|
13
|
+
require 'rays/extension'
|
|
14
|
+
require 'reflex/extension'
|
|
15
|
+
require 'processing/extension'
|
|
15
16
|
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
EXTENSIONS = [Xot, Rucy, Beeps, Rays, Reflex, Processing]
|
|
18
19
|
|
|
19
20
|
ENV['RDOC'] = 'yardoc --no-private'
|
|
20
21
|
|
|
22
|
+
default_tasks
|
|
21
23
|
test_ruby_extension
|
|
22
24
|
generate_documents
|
|
23
25
|
build_ruby_gem
|
|
24
|
-
|
|
25
|
-
task :default
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
namespace :version do
|
|
29
|
-
|
|
30
|
-
namespace :bump do
|
|
31
|
-
|
|
32
|
-
task :major do
|
|
33
|
-
update_and_tag_version 0
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
task :minor do
|
|
37
|
-
update_and_tag_version 1
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
task :patch do
|
|
41
|
-
update_and_tag_version 2
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
task :build do
|
|
45
|
-
update_and_tag_version 3
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
end# bump
|
|
49
|
-
|
|
50
|
-
end# version
|
data/RubyProcessing.podspec
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
Pod::Spec.new do |s|
|
|
5
5
|
s.name = "RubyProcessing"
|
|
6
|
-
s.version = File.
|
|
6
|
+
s.version = File.read(File.expand_path 'VERSION', __dir__)[/[\d\.]+/]
|
|
7
7
|
s.summary = "Yet Another Processing implementation for Ruby"
|
|
8
8
|
s.description = "Yet Another Processing implementation for Ruby"
|
|
9
9
|
s.license = "MIT"
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.2
|
data/lib/processing/all.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Processing
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
module
|
|
4
|
+
module Extension
|
|
5
5
|
|
|
6
6
|
module_function
|
|
7
7
|
|
|
@@ -10,14 +10,14 @@ module Processing
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def version()
|
|
13
|
-
|
|
13
|
+
File.read(root_dir 'VERSION')[/[\d\.]+/]
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def root_dir(path = '')
|
|
17
17
|
File.expand_path "../../#{path}", __dir__
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
end#
|
|
20
|
+
end# Extension
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
end# Processing
|
data/processing.gemspec
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
File.expand_path('lib', __dir__)
|
|
5
5
|
.tap {|s| $:.unshift s if !$:.include?(s) && File.directory?(s)}
|
|
6
6
|
|
|
7
|
-
require 'processing/
|
|
7
|
+
require 'processing/extension'
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Gem::Specification.new do |s|
|
|
@@ -12,14 +12,14 @@ Gem::Specification.new do |s|
|
|
|
12
12
|
patterns.map {|pat| Dir.glob(pat).to_a}.flatten
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
name =
|
|
15
|
+
ext = Processing::Extension
|
|
16
|
+
name = ext.name.downcase
|
|
17
17
|
rdocs = glob.call *%w[README]
|
|
18
18
|
|
|
19
19
|
s.name = name
|
|
20
20
|
s.summary = 'Processing compatible Creative Coding Framework.'
|
|
21
21
|
s.description = 'Creative Coding Framework has API compatible to Processing or p5.js.'
|
|
22
|
-
s.version =
|
|
22
|
+
s.version = ext.version
|
|
23
23
|
|
|
24
24
|
s.authors = %w[xordog]
|
|
25
25
|
s.email = 'xordog@gmail.com'
|
|
@@ -28,8 +28,14 @@ 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 '
|
|
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'
|
|
32
36
|
|
|
37
|
+
s.add_development_dependency 'rake'
|
|
38
|
+
s.add_development_dependency 'test-unit'
|
|
33
39
|
s.add_development_dependency 'yard'
|
|
34
40
|
|
|
35
41
|
s.files = `git ls-files`.split $/
|
metadata
CHANGED
|
@@ -1,29 +1,113 @@
|
|
|
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.2
|
|
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-03-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: xot
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 0.1.32
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 0.1.32
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rucy
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 0.1.32
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
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
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rays
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: 0.1.32
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: 0.1.32
|
|
13
69
|
- !ruby/object:Gem::Dependency
|
|
14
70
|
name: reflexion
|
|
15
71
|
requirement: !ruby/object:Gem::Requirement
|
|
16
72
|
requirements:
|
|
17
73
|
- - "~>"
|
|
18
74
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.1.
|
|
75
|
+
version: 0.1.32
|
|
20
76
|
type: :runtime
|
|
21
77
|
prerelease: false
|
|
22
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
79
|
requirements:
|
|
24
80
|
- - "~>"
|
|
25
81
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.1.
|
|
82
|
+
version: 0.1.32
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: rake
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - ">="
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: test-unit
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
27
111
|
- !ruby/object:Gem::Dependency
|
|
28
112
|
name: yard
|
|
29
113
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -44,8 +128,10 @@ executables: []
|
|
|
44
128
|
extensions: []
|
|
45
129
|
extra_rdoc_files: []
|
|
46
130
|
files:
|
|
47
|
-
- ".github/workflows/release.yml"
|
|
131
|
+
- ".github/workflows/release-gem.yml"
|
|
132
|
+
- ".github/workflows/tag.yml"
|
|
48
133
|
- ".github/workflows/test.yml"
|
|
134
|
+
- ".github/workflows/utils.rb"
|
|
49
135
|
- ".gitignore"
|
|
50
136
|
- ".yardopts"
|
|
51
137
|
- ChangeLog.md
|
|
@@ -67,17 +153,15 @@ files:
|
|
|
67
153
|
- lib/processing/app.rb
|
|
68
154
|
- lib/processing/capture.rb
|
|
69
155
|
- lib/processing/context.rb
|
|
156
|
+
- lib/processing/extension.rb
|
|
70
157
|
- lib/processing/font.rb
|
|
71
158
|
- lib/processing/graphics.rb
|
|
72
159
|
- lib/processing/graphics_context.rb
|
|
73
160
|
- lib/processing/image.rb
|
|
74
|
-
- lib/processing/module.rb
|
|
75
161
|
- lib/processing/shader.rb
|
|
76
162
|
- lib/processing/touch.rb
|
|
77
163
|
- lib/processing/vector.rb
|
|
78
164
|
- lib/processing/window.rb
|
|
79
|
-
- lib/rubysketch-processing.rb
|
|
80
|
-
- lib/rubysketch.rb
|
|
81
165
|
- processing.gemspec
|
|
82
166
|
- src/RubyProcessing.h
|
|
83
167
|
- src/RubyProcessing.mm
|
|
@@ -104,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
104
188
|
- !ruby/object:Gem::Version
|
|
105
189
|
version: '0'
|
|
106
190
|
requirements: []
|
|
107
|
-
rubygems_version: 3.4.
|
|
191
|
+
rubygems_version: 3.4.6
|
|
108
192
|
signing_key:
|
|
109
193
|
specification_version: 4
|
|
110
194
|
summary: Processing compatible Creative Coding Framework.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require 'processing'
|
data/lib/rubysketch.rb
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require 'processing/all'
|