picrate 1.2.1-java → 1.2.2-java

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: 6288baeea10667d750fa296c3fd35cca7431de0bf03a32c52e1a1975d10e25d3
4
- data.tar.gz: 5aabb708d0b878bbddbb648ccd59160b2b3c7854fd426ee1067fdb5c6d66e599
3
+ metadata.gz: 8c612c3062b041aae3a03f5973e2f4b34b3d6a13260380f3ab25b6787f5d8d33
4
+ data.tar.gz: 60feb120d119655b1eba5b7644795a4602c027c0f3dcab53ccdc74a237193592
5
5
  SHA512:
6
- metadata.gz: d5f06c699fb799aaf5e6204ece6028e01ab24a6cfe572c3bcd31683729a854b9eca51686b9cf90e5a9051ee084c72eab68af48f28cb37d9547bf3602ca2e5a2d
7
- data.tar.gz: 4e693488a9498b1e9ea66fe206cdd599be407d35ce3666a93bf835dc6531b8d8a33694b23e004f087eec0e994742741f3fcd9c1161e280d4e52602be1fc57dcf
6
+ metadata.gz: 831341dc9b220bf0ec01dc2a6feefbba9c6e2c1510d19cb32bd3255b67fc804c70cc1d1ee0738d37ac2724f0c9e8b38fd16a27a5b373ef202b1709e17b9eee89
7
+ data.tar.gz: 5f0ddacc9ba1f698d52e67e1249985c195662fe20d4d9c9b28802822358ab35787ddbd9d534811ca97fa018bc383ea0de4be8ea3393f1f0e8d7f28cad31c9802
@@ -1,3 +1,5 @@
1
+ v1.2.2 Removed landscape from example as too taxing for raspberryPI. Improved geany tools.
2
+
1
3
  v1.2.1 Fix install Samples etc. in runner.rb to match modified vendor Rakefile.
2
4
 
3
5
  v1.2.0 Update samples to use safer fonts, add linux specific suggestion on missing fonts PFont.java, fix :web_to_color_array(web).
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
- ruby '2.5.3', :engine => 'jruby', :engine_version => '9.2.8.0'
2
+ ruby '2.5.7', :engine => 'jruby', :engine_version => '9.2.9.0'
3
3
  gemspec
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.5.3')
15
+ processing_root = File.join(HOME_DIR, 'processing-3.4')
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]
@@ -23,3 +23,16 @@ Use `make` to check syntax and `run` to run sketch
23
23
  See running sketch below:-
24
24
 
25
25
  ![geany]({{ site.github.url }}/assets/geany.png)
26
+
27
+ #### Advanced options
28
+ 1. rubocop
29
+
30
+ 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
+
32
+ 2. reek
33
+
34
+ If you are keen to develop your `OO` skills analysing your sketch code for smells can be instructive see references:-
35
+
36
+ * Practical Object-Oriented Design in Ruby - Sandi Metz
37
+ * Refactoring (Ruby Edition) - Jay Fields, Shane Harvie, Martin Fowler
38
+ * 99 Bottles of OOP - Sandi Metz and Katrina Owen
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  layout: post
3
- title: "Getting Started Command Line"
3
+ title: "Getting Started Stretch"
4
4
  date: 2018-05-24 07:34:13
5
5
  categories: PiCrate update
6
6
  permalink: /getting/
7
7
  ---
8
- Raspbian stretch installs Oracle jdk-1.8.0_65-bi17 (hard float) and that is just fine, if you have more that one version of java installed you could use `update-alternatives` tool to manage their use. Will work with OpenJDK-11 but currently performance is sub-optimal.
8
+ Raspbian Stretch installs Oracle jdk-1.8.0_65-bi17 (hard float) and that is just fine, if you have more that one version of java installed you could use `update-alternatives` tool to manage their use. Will work with OpenJDK-11 but currently performance is sub-optimal.
9
9
 
10
10
  __Then install JRuby see__ [jruby][jruby].
11
11
 
@@ -14,7 +14,7 @@ Get the latest version from [http://jruby.org/download][download]
14
14
 
15
15
  ```bash
16
16
  cd /opt
17
- sudo tar xzvf /pathToDownload/jruby-bin-9.2.8.0.tar.gz
17
+ sudo tar xzvf /pathToDownload/jruby-bin-9.2.9.0.tar.gz
18
18
  ```
19
19
 
20
20
  Then use the excellent `update-alternatives` tool to provide symbolic links to `jruby`, `jgem`, `jirb` and `rake` especially if you haven't installed `mri` ruby.
@@ -44,9 +44,9 @@ mkdir installer
44
44
  cd installer
45
45
  rake
46
46
  ```
47
- Currently installs jruby-9.2.8.0
47
+ Currently installs jruby-9.2.9.0
48
48
 
49
49
  If you know better please post on wiki
50
50
 
51
- [download]:"https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.2.8.0/jruby-dist-9.2.8.0-bin.tar.gz"
51
+ [download]:"https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.2.9.0/jruby-dist-9.2.9.0-bin.tar.gz"
52
52
  [rake_gist]:https://gist.github.com/monkstone/159c5a9813c9cd181040b4715e74f6b2
@@ -12,7 +12,7 @@ Requirements:-
12
12
 
13
13
  Simply clone this distribution, then rake to build and test gem
14
14
  ```bash
15
- git clone -b stretch --single-branch https://github.com/ruby-processing/PiCrate.git
15
+ git clone --depth 1 https://github.com/ruby-processing/PiCrate.git
16
16
  cd PiCrate
17
17
  rake # to build gem
18
18
  ```
@@ -0,0 +1,116 @@
1
+ ---
2
+ layout: post
3
+ title: "Getting Started Buster"
4
+ date: 2019-11-11 07:34:13
5
+ categories: PiCrate update
6
+ permalink: /getting_buster/
7
+ ---
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
+ ```bash
10
+ bash install_bust
11
+ ```
12
+
13
+ __Otherwise follow these instructions in order as needed:-__
14
+
15
+ ```bash
16
+ sudo apt-get update # sync your local database with current release
17
+ sudo update # update to latest release
18
+ sudo apt install openjdk-8-jdk # installs latest jdk8
19
+ java -version # check installed version
20
+ ```
21
+ If you have already installed a version java the java version may not match you can control the _active_ java version on Debian using `update-alternatives` as follows:-
22
+ ```bash
23
+ sudo update-alternatives --config java
24
+ sudo update-alternatives --config javac
25
+ sudo update-alternatives --config jar
26
+ ```
27
+ See [java][java] install for more explanations.
28
+
29
+ __Then install JRuby see__ [jruby][jruby].
30
+
31
+ We strongly recommend that you create a local storage for gems on your system, as follows:-
32
+
33
+ ```bash
34
+ mkdir -p ~/.gem/jruby/2.5.0
35
+ ```
36
+ Now set your `GEM_HOME`, `GEM_PATH` and amend your `PATH` as follows:-
37
+
38
+ ```bash
39
+ echo "export GEM_HOME=\"\${HOME}/.gem/ruby/${MRI_RUBY}\"" >> ~/.profile
40
+ echo "export GEM_PATH=\"\${HOME}/.gem/ruby/${MRI_RUBY}\"" >> ~/.profile
41
+ echo "export PATH=\"\${PATH}:\${GEM_PATH}/bin\"" >> ~/.profile
42
+ source ~/.profile # to update environment without re-logging in
43
+ ```
44
+ Now should be ready to install `picrate` and other gems.
45
+ Install a local version of rake:-
46
+ ```bash
47
+ jgem install rake
48
+ ```
49
+ To install picrate and its dependencies:-
50
+
51
+ ```bash
52
+ jgem install picrate
53
+ ```
54
+ __For a first install:-__
55
+
56
+ ```bash
57
+ picrate --install # no args, install samples and geany config
58
+ # or
59
+ picrate -i Samples # to omit geany config
60
+ ```
61
+
62
+ This installs example sketches in `~/sample_sketches` and ties them into a `geany` project `picrate.geany`. It should also be possible to run sketches from the `geany` ide.
63
+
64
+ To create a template sketch from the command line:-
65
+
66
+ ```bash
67
+ picrate -c my_sketch 600 400
68
+ ```
69
+ creates file my_sketch.rb
70
+
71
+ ```ruby
72
+ #!/usr/bin/env jruby
73
+ # frozen_string_literal: false
74
+ require 'picrate'
75
+
76
+ class MySketch < Processing::App
77
+ def settings
78
+ size 200, 200
79
+ end
80
+
81
+ def setup
82
+ sketch_title 'My Sketch'
83
+ end
84
+
85
+ def draw
86
+
87
+ end
88
+ end
89
+ MySketch.new
90
+
91
+ ```
92
+
93
+ Edit in `vim` (at command line) or `geany` (gui), you may need to install `vim`
94
+ ```bash
95
+ vim my_sketch.rb
96
+ :!jruby % # from vim runs the sketch
97
+ ```
98
+
99
+ To run sketches from command line:-
100
+
101
+ ```bash
102
+ jruby my_sketch.rb
103
+ ```
104
+
105
+ Or even `chmod +x my_sketch.rb` to make an executable script.
106
+
107
+ See [editors][geany] geany, for how to run sketches from a gui.
108
+
109
+ ### JWishy Sketch Running on RaspberryPI
110
+
111
+ ![jwishy_buster]({{ site.github.url }}/assets/jwishy_buster.png)
112
+
113
+ [buster]: https://gist.github.com/monkstone/04a1272ca9274a2c7e3e1bf170877bfb
114
+ [java]:http://ruby-processing.github.io/java/raspberry/
115
+ [jruby]:{{ site.github.url }}/install_jruby/
116
+ [geany]:{{ site.github.url }}/editors/geany
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PiCrate
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.2'
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.1'
4
+ id 'ruby-processing:picrate:1.2.2'
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.'
@@ -31,24 +31,24 @@ project 'picrate', 'http://maven.apache.org' do
31
31
  'polyglot.dump.pom' => 'pom.xml'
32
32
  )
33
33
 
34
- pom 'org.jruby:jruby:9.2.8.0'
34
+ pom 'org.jruby:jruby:9.2.9.0'
35
35
  jar 'org.jogamp.jogl:jogl-all:${jogl.version}'
36
36
  jar 'org.jogamp.gluegen:gluegen-rt-main:${jogl.version}'
37
37
  jar 'org.processing:video:3.0.2'
38
38
  end
39
39
 
40
40
  overrides do
41
- plugin :resources, '2.7'
42
- plugin :dependency, '2.8'
41
+ plugin :resources, '3.1.0'
42
+ plugin :dependency, '3.1.1'
43
43
  plugin( :compiler, '3.8.1', 'release' => '8' )
44
44
  plugin(
45
45
  :javadoc,
46
- '2.10.4',
46
+ '3.1.1',
47
47
  'detectOfflineLinks' => 'false',
48
48
  'links' => [ '${processing.api}', '${jruby.api}' ]
49
49
  )
50
50
  plugin(
51
- :jar, '3.1.0',
51
+ :jar, '3.1.2',
52
52
  'archive' => {
53
53
  'manifestEntries' => { 'Class-Path' => 'gluegen-rt.jar jog-all.jar' }
54
54
  }
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.1</version>
14
+ <version>1.2.2</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>
@@ -76,7 +76,7 @@ DO NOT MODIFIY - GENERATED CODE
76
76
  <dependency>
77
77
  <groupId>org.jruby</groupId>
78
78
  <artifactId>jruby</artifactId>
79
- <version>9.2.8.0</version>
79
+ <version>9.2.9.0</version>
80
80
  <type>pom</type>
81
81
  </dependency>
82
82
  <dependency>
@@ -119,11 +119,11 @@ DO NOT MODIFIY - GENERATED CODE
119
119
  <plugins>
120
120
  <plugin>
121
121
  <artifactId>maven-resources-plugin</artifactId>
122
- <version>2.7</version>
122
+ <version>3.1.0</version>
123
123
  </plugin>
124
124
  <plugin>
125
125
  <artifactId>maven-dependency-plugin</artifactId>
126
- <version>2.8</version>
126
+ <version>3.1.1</version>
127
127
  </plugin>
128
128
  <plugin>
129
129
  <artifactId>maven-compiler-plugin</artifactId>
@@ -134,7 +134,7 @@ DO NOT MODIFIY - GENERATED CODE
134
134
  </plugin>
135
135
  <plugin>
136
136
  <artifactId>maven-javadoc-plugin</artifactId>
137
- <version>2.10.4</version>
137
+ <version>3.1.1</version>
138
138
  <configuration>
139
139
  <detectOfflineLinks>false</detectOfflineLinks>
140
140
  <links>
@@ -145,7 +145,7 @@ DO NOT MODIFIY - GENERATED CODE
145
145
  </plugin>
146
146
  <plugin>
147
147
  <artifactId>maven-jar-plugin</artifactId>
148
- <version>3.1.0</version>
148
+ <version>3.1.2</version>
149
149
  <configuration>
150
150
  <archive>
151
151
  <manifestEntries>
@@ -8,7 +8,7 @@ SOUND_VERSION = 'v1.3.2'
8
8
  GLVIDEO = 'processing-glvideo.zip'
9
9
  VIDEO = 'video-2.zip'
10
10
  VIDEO_VERSION = '2'
11
- EXAMPLES = '0.5.0'
11
+ EXAMPLES = '0.5.1'
12
12
  HOME_DIR = ENV['HOME']
13
13
  LIBRARY = File.join(HOME_DIR, '.picrate', 'libraries')
14
14
  CLOBBER.include(EXAMPLES, SOUND, GLVIDEO, VIDEO)
@@ -78,9 +78,9 @@ task :install_config do
78
78
  FileUtils.mkdir_p "#{HOME_DIR}/.config/geany/templates/files"
79
79
  FileUtils.cp 'picrate.rb', "#{HOME_DIR}/.config/geany/templates/files"
80
80
  end
81
- unless File.exist? "#{HOME_DIR}/projects/picrate.geany"
82
- FileUtils.mkdir_p "#{HOME_DIR}/projects"
83
- FileUtils.cp 'picrate.geany', "#{HOME_DIR}/projects"
81
+ unless File.exist? "#{HOME_DIR}/projects/sketchbook/picrate_sketches.geany"
82
+ FileUtils.mkdir_p "#{HOME_DIR}/projects/sketchbook"
83
+ FileUtils.cp 'picrate_sketches.geany', "#{HOME_DIR}/projects/sketchbook"
84
84
  end
85
85
  end
86
86
 
@@ -1,4 +1,5 @@
1
- #!/usr/bin/env jruby
1
+ # frozen_string_literal: true
2
+
2
3
  require 'picrate'
3
4
  # Sketch class
4
5
  class MySketch < Processing::App
@@ -0,0 +1,62 @@
1
+ [editor]
2
+ line_wrapping=false
3
+ line_break_column=72
4
+ auto_continue_multiline=true
5
+
6
+ [file_prefs]
7
+ final_new_line=true
8
+ ensure_convert_new_lines=false
9
+ strip_trailing_spaces=true
10
+ replace_tabs=true
11
+
12
+ [indentation]
13
+ indent_width=2
14
+ indent_type=0
15
+ indent_hard_tab_width=8
16
+ detect_indent=false
17
+ detect_indent_width=false
18
+ indent_mode=2
19
+
20
+ [project]
21
+ name=picrate_samples
22
+ base_path=/home/pi/projects/picrate_sketches
23
+ description=Exploring PiCrate
24
+ file_patterns=*.rb;*.glsl;*.txt;
25
+
26
+ [long line marker]
27
+ long_line_behaviour=1
28
+ long_line_column=72
29
+
30
+ [files]
31
+ current_page=3
32
+ FILE_NAME_0=667;Ruby;0;EUTF-8;0;1;0;%2Fhome%2Fpi%2Fprojects%2Fpicrate_sketches%2Fbasics%2Farrays%2Farray.rb;0;2
33
+ FILE_NAME_1=1664;Ruby;0;EUTF-8;0;1;0;%2Fhome%2Fpi%2Fprojects%2Fpicrate_sketches%2Fadvanced_data%2Fload_save_json.rb;0;2
34
+ FILE_NAME_2=259;Sh;0;EUTF-8;0;1;0;%2Fhome%2Fpi%2Fjruby_install.sh;0;2
35
+ FILE_NAME_3=236;Sh;0;EUTF-8;0;1;0;%2Fhome%2Fpi%2Ftest.sh;0;2
36
+
37
+ [VTE]
38
+ last_dir=/home/pi
39
+
40
+ [build-menu]
41
+ EX_00_LB=_Execute
42
+ EX_00_CM=jruby --dev "%f"
43
+ EX_00_WD=
44
+ RubyFT_00_LB=_Rubocop
45
+ RubyFT_00_CM=rubocop --fail-level F "%f"
46
+ RubyFT_00_WD=
47
+ filetypes=Ruby;
48
+ RubyFT_01_LB=_Rubocop autocorrect
49
+ RubyFT_01_CM=rubocop -a --fail-level F "%f"
50
+ RubyFT_01_WD=
51
+ NF_00_LB=
52
+ NF_00_CM=
53
+ NF_00_WD=
54
+ NF_01_LB=
55
+ NF_01_CM=
56
+ NF_01_WD=
57
+ NF_02_LB=
58
+ NF_02_CM=
59
+ NF_02_WD=
60
+ RubyFT_02_LB=_Reek
61
+ RubyFT_02_CM=reek --failure-exit-code=0 "%f"
62
+ RubyFT_02_WD=
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.1
4
+ version: 1.2.2
5
5
  platform: java
6
6
  authors:
7
7
  - monkstone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-25 00:00:00.000000000 Z
11
+ date: 2019-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -173,6 +173,7 @@ files:
173
173
  - docs/_posts/2018-06-26-auto_install_picrate.md
174
174
  - docs/_posts/2018-11-18-building-gem.md
175
175
  - docs/_posts/2018-11-27-getting_started_geany.md
176
+ - docs/_posts/2019-11-11-getting_started_buster.md
176
177
  - docs/_sass/_base.scss
177
178
  - docs/_sass/_layout.scss
178
179
  - docs/_sass/_syntax-highlighting.scss
@@ -181,6 +182,7 @@ files:
181
182
  - docs/assets/android-chrome-512x512.png
182
183
  - docs/assets/favicon.ico
183
184
  - docs/assets/geany.png
185
+ - docs/assets/jwishy_buster.png
184
186
  - docs/assets/jwishy_picrate.png
185
187
  - docs/assets/net.png
186
188
  - docs/assets/new_with_template.png
@@ -205,7 +207,7 @@ files:
205
207
  - lib/jogl-all-natives-linux-amd64.jar
206
208
  - lib/jogl-all-natives-linux-armv6hf.jar
207
209
  - lib/jogl-all.jar
208
- - lib/picrate-1.2.1.jar
210
+ - lib/picrate-1.2.2.jar
209
211
  - lib/picrate.rb
210
212
  - lib/picrate/app.rb
211
213
  - lib/picrate/creators/parameters.rb
@@ -362,8 +364,8 @@ files:
362
364
  - test/test_helper.rb
363
365
  - test/vecmath_spec_test.rb
364
366
  - vendors/Rakefile
365
- - vendors/picrate.geany
366
367
  - vendors/picrate.rb
368
+ - vendors/picrate_sketches.geany
367
369
  homepage: https://ruby-processing.github.io/PiCrate/
368
370
  licenses:
369
371
  - GPL-3.0
@@ -1,44 +0,0 @@
1
- [editor]
2
- line_wrapping=false
3
- line_break_column=72
4
- auto_continue_multiline=true
5
-
6
- [file_prefs]
7
- final_new_line=true
8
- ensure_convert_new_lines=false
9
- strip_trailing_spaces=false
10
- replace_tabs=true
11
-
12
- [indentation]
13
- indent_width=2
14
- indent_type=0
15
- indent_hard_tab_width=8
16
- detect_indent=false
17
- detect_indent_width=false
18
- indent_mode=2
19
-
20
- [project]
21
- name=picrate_samples
22
- base_path=/home/pi/picrate_samples/
23
- description=Exploring PiCrate
24
- file_patterns=*.rb;*.glsl;*.txt;
25
-
26
- [long line marker]
27
- long_line_behaviour=1
28
- long_line_column=72
29
-
30
- [files]
31
- current_page=0
32
- FILE_NAME_0=748;Ruby;0;EUTF-8;1;1;0;%2Fhome%2Fpi%2Fpicrate_samples%2Fdemo%2Ffire.rb;0;4
33
-
34
- [VTE]
35
- last_dir=/home/pi
36
-
37
- [build-menu]
38
- EX_00_LB=_Execute
39
- EX_00_CM=jruby "%f"
40
- EX_00_WD=
41
- RubyFT_00_LB=_Compile
42
- RubyFT_00_CM=jruby --dev "%f"
43
- RubyFT_00_WD=
44
- filetypes=Ruby;