picrate 0.4.3-java → 0.5.0-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 +4 -4
- data/CHANGELOG.md +2 -0
- data/Rakefile +1 -1
- data/docs/_posts/2018-06-26-auto_install_picrate.md +2 -2
- data/lib/picrate/version.rb +1 -1
- data/picrate.gemspec +2 -1
- data/pom.rb +1 -1
- data/pom.xml +1 -1
- data/vendors/Rakefile +16 -18
- data/vendors/picrate.geany +44 -0
- data/vendors/picrate.rb +18 -0
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69f965460e585f0969e5365e8b8d774e437fedf421c7e95e1fabfb1c51f03578
|
4
|
+
data.tar.gz: ccc029c85a4e901b4da67a56d44d1819c312554ba533780dce3b261e158ecfbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec5076a7c966860094d980937c197c4b7477b12d77515bedaa2a7cf8848bd9ce59098b22ede31f99c9c386b51aa41e5325ad352734f43df5c1a7bcb1a37e0dec
|
7
|
+
data.tar.gz: d2d04dc4b71e23ad97285548a6aec6700f97993122c9d7b306181042fc722e408888dbf2b7ec086254a8c91a09dca78e9283b8f025a0fc0c1aeb42c1b86bb15a
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
@@ -6,10 +6,10 @@ categories: PiCrate update
|
|
6
6
|
permalink: /install_picrate/
|
7
7
|
---
|
8
8
|
|
9
|
-
For a semi-automated setup and install, download and extract [this gist](https://gist.github.com/monkstone/8f06529790c36f5b7f668015faadcbc5/archive/
|
9
|
+
For a semi-automated setup and install, download and extract [this gist](https://gist.github.com/monkstone/8f06529790c36f5b7f668015faadcbc5/archive/94c5262e4fbe4bfbc615a40478255b48cc1eaf8c.zip)
|
10
10
|
|
11
11
|
```bash
|
12
12
|
bash gem_environment.sh # sets up a local gem environment
|
13
13
|
rake # default is to install jruby to opt, then link using update-alternatives
|
14
14
|
```
|
15
|
-
Adjust script to suit needs if required,
|
15
|
+
Adjust script to suit needs if required, now installs `gems` with `jgem` from `rubygems`.
|
data/lib/picrate/version.rb
CHANGED
data/picrate.gemspec
CHANGED
@@ -11,11 +11,12 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.licenses = %w(GPL-3.0 LGPL-2.0)
|
12
12
|
gem.description = <<-EOS
|
13
13
|
A batteries included version of processing in ruby, for raspberrypi and linux.
|
14
|
+
Install samples to configures geany ide.
|
14
15
|
EOS
|
15
16
|
gem.summary = %q{ruby wrapper for processing-3.4 on raspberrypi and linux64}
|
16
17
|
gem.homepage = 'https://ruby-processing.github.io/PiCrate/'
|
17
18
|
gem.files = `git ls-files`.split($/)
|
18
|
-
gem.files << 'lib/picrate-0.
|
19
|
+
gem.files << 'lib/picrate-0.5.0.jar'
|
19
20
|
gem.files << 'lib/gluegen-rt.jar'
|
20
21
|
gem.files << 'lib/jogl-all.jar'
|
21
22
|
gem.files << 'lib/gluegen-rt-natives-linux-amd64.jar'
|
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:0.
|
4
|
+
id 'ruby-processing:picrate:0.5.0'
|
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>0.
|
14
|
+
<version>0.5.0</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>
|
data/vendors/Rakefile
CHANGED
@@ -1,10 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
require 'rake/clean'
|
3
3
|
|
4
|
-
WARNING =
|
5
|
-
WARNING: you may not have wget installed, you could just download
|
6
|
-
the correct version of picrate-examples (see EXAMPLES vendors directory)
|
7
|
-
EOS
|
4
|
+
WARNING = 'WARNING: wget download failed you could do a manual download'.freeze
|
8
5
|
SOUND = 'sound.zip'.freeze
|
9
6
|
SOUND_VERSION = 'v1.3.2'
|
10
7
|
GLVIDEO = 'processing-glvideo.zip'
|
@@ -12,18 +9,16 @@ VIDEO = 'video-2.zip'
|
|
12
9
|
VIDEO_VERSION = '2'
|
13
10
|
EXAMPLES = '0.0.8'.freeze
|
14
11
|
HOME_DIR = ENV['HOME']
|
15
|
-
PI_OR_LINUX = /linux|arm/ =~ RbConfig::CONFIG['host_os']
|
16
|
-
|
17
12
|
CLOBBER.include(EXAMPLES, SOUND, GLVIDEO, VIDEO)
|
18
13
|
|
19
14
|
desc 'download, and copy picrate examples'
|
20
15
|
task default: [:download_and_copy_samples]
|
21
16
|
|
22
17
|
desc 'download and copy examples to user home'
|
23
|
-
task download_and_copy_samples: [:download_examples, :copy_examples]
|
18
|
+
task download_and_copy_samples: [:download_examples, :copy_examples, :config_geany]
|
24
19
|
|
25
20
|
task :download_examples
|
26
|
-
file_name =
|
21
|
+
file_name = "#{EXAMPLES}.tar.gz"
|
27
22
|
wget_base = 'wget https://github.com/ruby-processing/picrate-examples'
|
28
23
|
wget_string = [wget_base, 'archive', file_name].join('/')
|
29
24
|
file file_name do
|
@@ -43,7 +38,6 @@ task download_and_copy_video: [:init_dir, :download_video, :copy_video, :clobber
|
|
43
38
|
desc 'download and copy glvideo library to ~/.picrate'
|
44
39
|
task download_and_copy_glvideo: [:init_dir, :download_glvideo, :copy_glvideo, :clobber]
|
45
40
|
|
46
|
-
|
47
41
|
desc 'download sound library'
|
48
42
|
task :download_sound do
|
49
43
|
wget_base = 'wget https://github.com/processing/processing-sound'
|
@@ -80,19 +74,25 @@ end
|
|
80
74
|
desc 'initialize ~/.picrate directories'
|
81
75
|
task :init_dir do
|
82
76
|
unless File.exist? "#{HOME_DIR}/.picrate/libraries"
|
83
|
-
sh "mkdir -p
|
84
|
-
sh "mkdir -p ~/.picrate/libraries"
|
77
|
+
sh "mkdir -p #{HOME_DIR}/.picrate/libraries"
|
85
78
|
end
|
86
79
|
end
|
87
80
|
|
81
|
+
desc 'configure geany'
|
82
|
+
task :config_geany do
|
83
|
+
unless File.exist? "#{HOME_DIR}/.config/geany/templates/files/picrate.rb"
|
84
|
+
sh "mkdir -p #{HOME_DIR}/.config/geany/templates/files"
|
85
|
+
sh "cp picrate.rb #{HOME_DIR}/.config/geany/templates/files"
|
86
|
+
end
|
87
|
+
unless File.exist? "#{HOME_DIR}/projects/picrate.geany"
|
88
|
+
sh "mkdir -p #{HOME_DIR}/projects"
|
89
|
+
sh "cp picrate.geany #{HOME_DIR}/projects"
|
90
|
+
end
|
91
|
+
end
|
88
92
|
|
89
93
|
desc 'copy examples'
|
90
94
|
task :copy_examples => file_name do
|
91
|
-
|
92
|
-
sh "unzip #{EXAMPLES}.zip"
|
93
|
-
else
|
94
|
-
sh "tar xzvf #{EXAMPLES}.tar.gz"
|
95
|
-
end
|
95
|
+
sh "tar xzvf #{EXAMPLES}.tar.gz"
|
96
96
|
sh "rm -r #{HOME_DIR}/picrate_samples" if File.exist? "#{HOME_DIR}/picrate_samples"
|
97
97
|
sh "cp -r picrate-examples-#{EXAMPLES} #{HOME_DIR}/picrate_samples"
|
98
98
|
sh "rm -r picrate-examples-#{EXAMPLES}"
|
@@ -100,8 +100,6 @@ end
|
|
100
100
|
|
101
101
|
desc 'copy sound library'
|
102
102
|
task :copy_sound => SOUND do
|
103
|
-
directory "~/.picrate"
|
104
|
-
directory "~/.picrate/libraries"
|
105
103
|
sh "unzip #{SOUND}"
|
106
104
|
sh "rm -r #{HOME_DIR}/.picrate/libraries/sound" if File.exist? "#{HOME_DIR}/.picrate/libraries/sound"
|
107
105
|
sh "cp -r sound #{HOME_DIR}/.picrate/libraries"
|
@@ -0,0 +1,44 @@
|
|
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 -wc "%f"
|
43
|
+
RubyFT_00_WD=
|
44
|
+
filetypes=Ruby;
|
data/vendors/picrate.rb
ADDED
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: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- monkstone
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -58,8 +58,9 @@ dependencies:
|
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '1.0'
|
61
|
-
description:
|
62
|
-
|
61
|
+
description: |2
|
62
|
+
A batteries included version of processing in ruby, for raspberrypi and linux.
|
63
|
+
Install samples to configures geany ide.
|
63
64
|
email:
|
64
65
|
- mamba2928@yahoo.co.uk
|
65
66
|
executables:
|
@@ -170,7 +171,7 @@ files:
|
|
170
171
|
- lib/jogl-all-natives-linux-amd64.jar
|
171
172
|
- lib/jogl-all-natives-linux-armv6hf.jar
|
172
173
|
- lib/jogl-all.jar
|
173
|
-
- lib/picrate-0.
|
174
|
+
- lib/picrate-0.5.0.jar
|
174
175
|
- lib/picrate.rb
|
175
176
|
- lib/picrate/app.rb
|
176
177
|
- lib/picrate/creators/sketch_class.rb
|
@@ -320,6 +321,8 @@ files:
|
|
320
321
|
- test/test_helper.rb
|
321
322
|
- test/vecmath_spec_test.rb
|
322
323
|
- vendors/Rakefile
|
324
|
+
- vendors/picrate.geany
|
325
|
+
- vendors/picrate.rb
|
323
326
|
homepage: https://ruby-processing.github.io/PiCrate/
|
324
327
|
licenses:
|
325
328
|
- GPL-3.0
|