rubysketch 0.3.14 → 0.3.18

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: 11106527579020a3b5bd37a616605f659099ca5523cb314399850652a647c96f
4
- data.tar.gz: a18591f7c86b38291a11eac844ff6da0a43a3916c79df3f7bf4eff330a5f1ebf
3
+ metadata.gz: 5a179e1170c79df6daea6d79f66eddc3aa7b50d22b2c685bcb36864f0644212e
4
+ data.tar.gz: 39565ddbcc31a7b6ef472c1fed40c91be91958531246b1673698afcd68ae621e
5
5
  SHA512:
6
- metadata.gz: 91f78963b6a956b4a68194963fb4de22a007ba075aad59d9a69fe752b596615bbf21189e5e404cb4d8346a3f287d6b7b061d027dc5e05bf7598904f99e21342d
7
- data.tar.gz: 4a054bd08ebdaa62e3fab7dd853cad2aa95fa7f9d6ed414992d0d7df8eb6de7d17dd5fc27925d544f3aec9866ad3ccef0c9d5c5e09bdc7ed8703f31801d9dbe3
6
+ metadata.gz: 435879c3538ece61aaecee0c19e6ece104934316fb113b2f23d9dc57394ded709417e30e32a7697ba1c465927b9d615fa945d1d4a4aa5068629509a33fcdbfff
7
+ data.tar.gz: b310a39f0c5e5fc55130d8c2cdd71c7620d17a42976d51fc73d7b09d41eeac15854482280bb213a937eda3474185935f27a1dcb6fd2983fad9a144c140fb337a
@@ -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,24 @@
1
1
  # RubySketch ChangeLog
2
2
 
3
3
 
4
+ ## [0.3.17] - 2021-12-5
5
+
6
+ - add 'mouseButton'
7
+ - pointer cancel event calls pointer_up block
8
+
9
+
10
+ ## [0.3.16] - 2021-2-14
11
+
12
+ - add key, keyCode and keyPressed system values
13
+ - add keyPressed(), keyReleased() and keyTyped() functions
14
+ - add motionGravity value and motion() function
15
+
16
+
17
+ ## [0.3.15] - 2020-12-12
18
+
19
+ - delete temporary directory on launch
20
+
21
+
4
22
  ## [0.3.14] - 2020-12-12
5
23
 
6
24
  - fix loadImage() fails when Encoding.default_internal is not nil
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.14
1
+ 0.3.18
@@ -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