rubysketch 0.3.15 → 0.3.19

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75d494d2c77928d0cac0bd8d6c29f28004098baed821870169a5829673eedb54
4
- data.tar.gz: 29f153c1caa566e87efc6b3158ff8e17367ef57c78ed981a4e4f5a5a0a410ee1
3
+ metadata.gz: 4d4db586910af2d484acc1ca1b63d49402804a8067097cd39121c34b584672c5
4
+ data.tar.gz: 53485422b257e6ce5d92e019c7568ea9c462241305997afaa10d7317d1255102
5
5
  SHA512:
6
- metadata.gz: 7076a1988f49df4df59499eeeee4871eee1b1f228fb7f61be118bfd0f8cbe2fd7b77d5ffddb76a2972bb11931a8f07de91b413afedc54896870f41689d03743f
7
- data.tar.gz: e26017b018da1cf2866ea84479c8b6fa3d246956bf4a2ffd307cf3c34e891fe5b7284017cb32dfed54d8313576742240ef6e9cb282b3f6a3f2876387ce64df76
6
+ metadata.gz: 05f812e6830f10453a82845d936205c3f8d7738d3a0236161f27244c6af7ae9a5d03de377f00069353b0ebc449c09012a649a7c153e78ad947a6223f5b66f95b
7
+ data.tar.gz: f55999518e51caec7adcf662a67a522ed6baaa3a4956b9161776fb5f99e0ee1c1fb2011af2a41219ee2cefb43e1f02ab458f3b16281b430bf5c7c01f2c6f1530
@@ -12,10 +12,10 @@ jobs:
12
12
  - name: checkout
13
13
  uses: actions/checkout@v2
14
14
 
15
- - name: ruby 2.6
15
+ - name: ruby 2.7
16
16
  uses: actions/setup-ruby@v1
17
17
  with:
18
- ruby-version: 2.6.x
18
+ ruby-version: 2.7.x
19
19
 
20
20
  - name: install gems
21
21
  run: |
@@ -13,10 +13,10 @@ jobs:
13
13
  steps:
14
14
  - uses: actions/checkout@v2
15
15
 
16
- - name: ruby 2.6
16
+ - name: ruby 2.7
17
17
  uses: actions/setup-ruby@v1
18
18
  with:
19
- ruby-version: 2.6.x
19
+ ruby-version: 2.7.x
20
20
 
21
21
  - name: install gems
22
22
  run: |
data/ChangeLog.md CHANGED
@@ -1,6 +1,29 @@
1
1
  # RubySketch ChangeLog
2
2
 
3
3
 
4
+ ## [0.3.19] - 2021-12-5
5
+
6
+ - fix runtime error
7
+
8
+
9
+ ## [0.3.18] - 2021-12-5
10
+
11
+ - add 'mouseButton'
12
+ - pointer cancel event calls pointer_up block
13
+
14
+
15
+ ## [0.3.17] - 2021-12-5
16
+
17
+ - add Touch#id
18
+
19
+
20
+ ## [0.3.16] - 2021-2-14
21
+
22
+ - add key, keyCode and keyPressed system values
23
+ - add keyPressed(), keyReleased() and keyTyped() functions
24
+ - add motionGravity value and motion() function
25
+
26
+
4
27
  ## [0.3.15] - 2020-12-12
5
28
 
6
29
  - delete temporary directory on launch
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.15
1
+ 0.3.19
@@ -0,0 +1,13 @@
1
+ module RubySketch
2
+
3
+
4
+ class App < Reflex::Application
5
+
6
+ def on_motion(e)
7
+ RubySketch.instance_variable_get(:@window)&.on_motion e
8
+ end
9
+
10
+ end# App
11
+
12
+
13
+ end# RubySketch
@@ -4,12 +4,12 @@ module RubySketch
4
4
  # @private
5
5
  class GLSL
6
6
 
7
- def initialize (glsl)
7
+ def initialize(glsl)
8
8
  @shader = Reflex::Shader.new glsl
9
9
  end
10
10
 
11
11
  # @private
12
- def on_start__ (window)
12
+ def on_start__(window)
13
13
  start = Time.now.to_f
14
14
 
15
15
  window.draw = proc do |e, painter|
@@ -5,15 +5,15 @@ module RubySketch
5
5
 
6
6
  module_function
7
7
 
8
- def name ()
8
+ def name()
9
9
  super.split('::')[-2]
10
10
  end
11
11
 
12
- def version ()
12
+ def version()
13
13
  open(root_dir 'VERSION') {|f| f.readline.chomp}
14
14
  end
15
15
 
16
- def root_dir (path = '')
16
+ def root_dir(path = '')
17
17
  File.expand_path "../../#{path}", __dir__
18
18
  end
19
19