picrate 1.2.2-java → 1.2.3-java

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: 8c612c3062b041aae3a03f5973e2f4b34b3d6a13260380f3ab25b6787f5d8d33
4
- data.tar.gz: 60feb120d119655b1eba5b7644795a4602c027c0f3dcab53ccdc74a237193592
3
+ metadata.gz: 196363008c46f80fcf1beccfd3bb4115c8ff1ea1dbdb43cc6689dd746be5f4e9
4
+ data.tar.gz: b3a9acf034189e5f869a46d8a9bcb32456593a4a5f1f04a5be324781da8ac258
5
5
  SHA512:
6
- metadata.gz: 831341dc9b220bf0ec01dc2a6feefbba9c6e2c1510d19cb32bd3255b67fc804c70cc1d1ee0738d37ac2724f0c9e8b38fd16a27a5b373ef202b1709e17b9eee89
7
- data.tar.gz: 5f0ddacc9ba1f698d52e67e1249985c195662fe20d4d9c9b28802822358ab35787ddbd9d534811ca97fa018bc383ea0de4be8ea3393f1f0e8d7f28cad31c9802
6
+ metadata.gz: 8ec7acb456abf8ba0a03cfefc9b4bad90882cd99a7b8ab4ade033146739a192815de25e715d3e3167a6bea591c9303962293cf6c98d4e05bb502d359c3e6e856
7
+ data.tar.gz: a851c96e7c15da316ff7897dce62e33e42ce38c3d5f0ca3daf6ba047e9b624e39b4598ec5c3bc11b9cb977886cc7722745f91476b69b142e02bcd443d1fffa08
@@ -1,3 +1,5 @@
1
+ v1.2.3 Favor latest beta Video2 library over GLVideo.
2
+
1
3
  v1.2.2 Removed landscape from example as too taxing for raspberryPI. Improved geany tools.
2
4
 
3
5
  v1.2.1 Fix install Samples etc. in runner.rb to match modified vendor Rakefile.
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ task :init do
12
12
  # for Archlinux etc
13
13
  # processing_root = File.dirname(`readlink -f $(which processing)`)
14
14
  # alternative for debian linux etc
15
- processing_root = File.join(HOME_DIR, 'processing-3.4')
15
+ processing_root = File.join(HOME_DIR, 'processing-3.5.3')
16
16
  jar_dir = File.join(processing_root, 'core', 'library')
17
17
  opengl = Dir.entries(jar_dir).grep(/amd64|armv6hf/).select { |jar| jar =~ /linux/ }
18
18
  opengl.concat %w[jogl-all.jar gluegen-rt.jar]
@@ -18,17 +18,21 @@ Remember to give untitled sketch a new name (PS: it's easy to create your own te
18
18
 
19
19
  ![new with template]({{ site.github.url }}/assets/new_with_template.png)
20
20
 
21
- Use `make` to check syntax and `run` to run sketch
21
+ Use `Build/rubocop` to check syntax, and `run` button to run the
22
+ sketch
22
23
 
23
24
  See running sketch below:-
24
25
 
25
26
  ![geany]({{ site.github.url }}/assets/geany.png)
26
27
 
27
28
  #### Advanced options
29
+
28
30
  1. rubocop
29
31
 
30
32
  If you install the `rubocop` gem you can use the Build/Rubocop control to do a static test on the current file. You can configure `rubocop` to ignore selected rules if you wish. Or use it to auto-correct issues.
31
33
 
34
+ ![geany]({{ site.github.url }}/assets/rubocop.png)
35
+
32
36
  2. reek
33
37
 
34
38
  If you are keen to develop your `OO` skills analysing your sketch code for smells can be instructive see references:-
@@ -36,3 +40,5 @@ If you are keen to develop your `OO` skills analysing your sketch code for smell
36
40
  * Practical Object-Oriented Design in Ruby - Sandi Metz
37
41
  * Refactoring (Ruby Edition) - Jay Fields, Shane Harvie, Martin Fowler
38
42
  * 99 Bottles of OOP - Sandi Metz and Katrina Owen
43
+
44
+ ![geany]({{ site.github.url }}/assets/reek.png)
@@ -7,7 +7,7 @@ permalink: /getting_buster/
7
7
  ---
8
8
  Currently Raspbian Buster does not come with a pre-installed java. So the first step is to install a `jdk` we currently recommend installing openjdk8 (_there a complications you don't need using jdk11_) to benefit from `client` optimisations. There is a bash script [here][buster], that will install `openjdk8`, `jruby-9.2.9.0` and picrate for you.
9
9
  ```bash
10
- bash install_bust
10
+ bash buster_install.sh
11
11
  ```
12
12
 
13
13
  __Otherwise follow these instructions in order as needed:-__
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PiCrate
4
- VERSION = '1.2.2'
4
+ VERSION = '1.2.3'
5
5
  end
data/pom.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  project 'picrate', 'http://maven.apache.org' do
2
2
 
3
3
  model_version '4.0.0'
4
- id 'ruby-processing:picrate:1.2.2'
4
+ id 'ruby-processing:picrate:1.2.3'
5
5
  packaging 'jar'
6
6
 
7
7
  description 'An integrated processing-core (somewhat hacked), with additional java code for a jruby version of processing.'
data/pom.xml CHANGED
@@ -11,7 +11,7 @@ DO NOT MODIFIY - GENERATED CODE
11
11
  <modelVersion>4.0.0</modelVersion>
12
12
  <groupId>ruby-processing</groupId>
13
13
  <artifactId>picrate</artifactId>
14
- <version>1.2.2</version>
14
+ <version>1.2.3</version>
15
15
  <name>picrate</name>
16
16
  <description>An integrated processing-core (somewhat hacked), with additional java code for a jruby version of processing.</description>
17
17
  <url>http://maven.apache.org</url>
@@ -5,13 +5,12 @@ require 'rake/clean'
5
5
  WARNING = 'WARNING: wget download failed you could do a manual download'
6
6
  SOUND = 'sound.zip'
7
7
  SOUND_VERSION = 'v1.3.2'
8
- GLVIDEO = 'processing-glvideo.zip'
9
- VIDEO = 'video-2.zip'
10
- VIDEO_VERSION = '2'
8
+ VIDEO = 'video-2.0-beta4.zip'
9
+ VIDEO_VERSION = 'r6-v2.0-beta4'
11
10
  EXAMPLES = '0.5.1'
12
11
  HOME_DIR = ENV['HOME']
13
12
  LIBRARY = File.join(HOME_DIR, '.picrate', 'libraries')
14
- CLOBBER.include(EXAMPLES, SOUND, GLVIDEO, VIDEO)
13
+ CLOBBER.include(EXAMPLES, SOUND, VIDEO)
15
14
 
16
15
  def dependency
17
16
  system 'which wget'
@@ -40,29 +39,19 @@ task install_sound: %i[init_dir download_sound copy_sound clobber]
40
39
  desc 'download and copy video library to ~/.picrate'
41
40
  task install_video: %i[init_dir download_video copy_video clobber]
42
41
 
43
- desc 'download and copy glvideo library to ~/.picrate'
44
- task install_glvideo: %i[init_dir download_glvideo copy_glvideo clobber]
45
-
46
42
  desc 'download, and copy picrate examples'
47
43
  task download_samples: ["#{EXAMPLES}.tar.gz"]
48
44
 
49
45
  desc 'download sound library'
50
46
  task :download_sound do
51
- wget_base = 'wget https://github.com/processing/processing-sound'
47
+ wget_base = 'wget -P https://github.com/processing/processing-sound'
52
48
  wget_string = [wget_base, 'releases/download/latest', SOUND].join('/')
53
49
  system wget_string
54
50
  end
55
51
 
56
- desc 'download glvideo library'
57
- task :download_glvideo do
58
- wget_base = 'wget https://github.com/gohai/processing-glvideo'
59
- wget_string = [wget_base, 'releases/download/latest', GLVIDEO].join('/')
60
- system wget_string
61
- end
62
-
63
52
  desc 'download video library'
64
53
  task :download_video do
65
- wget_base = 'wget https://github.com/processing/processing-video'
54
+ wget_base = 'wget -P /tmp https://github.com/processing/processing-video'
66
55
  wget_string = [wget_base, 'releases/download', VIDEO_VERSION, VIDEO].join('/')
67
56
  system wget_string
68
57
  end
@@ -94,25 +83,15 @@ end
94
83
 
95
84
  desc 'copy sound library'
96
85
  task copy_sound: SOUND do
97
- system "unzip #{SOUND}"
86
+ system "unzip -d /tmp /tmp/#{SOUND}"
98
87
  FileUtils.rm_r "#{LIBRARY}/sound" if File.exist? "#{LIBRARY}/sound"
99
- FileUtils.cp_r 'sound', LIBRARY
100
- FileUtils.rm_r 'sound'
88
+ FileUtils.cp_r '/tmp/sound', LIBRARY
101
89
  end
102
90
 
103
91
  desc 'copy video library'
104
- task copy_video: VIDEO do
105
- system "unzip #{VIDEO}"
92
+ task copy_video: "/tmp/#{VIDEO}" do
93
+ system "unzip -d /tmp /tmp/#{VIDEO}"
106
94
  FileUtils.rm_r "#{LIBRARY}/video" if File.exist? "#{LIBRARY}/video"
107
- FileUtils.cp_r 'video', LIBRARY
108
- FileUtils.rm_r 'video'
109
- end
110
-
111
- desc 'copy glvideo library'
112
- task copy_glvideo: GLVIDEO do
113
- directory "#{LIBRARY}/glvideo"
114
- system "unzip #{GLVIDEO}"
115
- FileUtils.rm_r "#{LIBRARY}/glvideo" if File.exist? "#{LIBRARY}/glvideo"
116
- FileUtils.cp_r 'glvideo', LIBRARY
117
- FileUtils.rm_r 'glvideo'
95
+ FileUtils.mkdir_p "#{LIBRARY}/video/library"
96
+ FileUtils.mv Dir.glob("/tmp/video/library/*.jar"), "#{LIBRARY}/video/library"
118
97
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picrate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: java
6
6
  authors:
7
7
  - monkstone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-16 00:00:00.000000000 Z
11
+ date: 2019-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -188,6 +188,8 @@ files:
188
188
  - docs/assets/new_with_template.png
189
189
  - docs/assets/picrate.svg
190
190
  - docs/assets/picrate_template.png
191
+ - docs/assets/reek.png
192
+ - docs/assets/rubocop.png
191
193
  - docs/classes.md
192
194
  - docs/css/main.scss
193
195
  - docs/editors.md
@@ -207,7 +209,7 @@ files:
207
209
  - lib/jogl-all-natives-linux-amd64.jar
208
210
  - lib/jogl-all-natives-linux-armv6hf.jar
209
211
  - lib/jogl-all.jar
210
- - lib/picrate-1.2.2.jar
212
+ - lib/picrate-1.2.3.jar
211
213
  - lib/picrate.rb
212
214
  - lib/picrate/app.rb
213
215
  - lib/picrate/creators/parameters.rb