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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3c9d43d033e3982308a62d9b24441d384d4356689bf76c267816792162241ab
4
- data.tar.gz: 9aaf7a3db4f29025c768d9d0ea0b630e10fcef65ec6990e2495c9f3dd2db4d35
3
+ metadata.gz: 69f965460e585f0969e5365e8b8d774e437fedf421c7e95e1fabfb1c51f03578
4
+ data.tar.gz: ccc029c85a4e901b4da67a56d44d1819c312554ba533780dce3b261e158ecfbb
5
5
  SHA512:
6
- metadata.gz: f00ddf5c9bd4c4d7027edd995d1d7e6b7c4257f6df68178783d619696dbf8281208869dd5d93738b8f389020cd4aa46e17a0f62f70a6a09264119f56bffd46a5
7
- data.tar.gz: 3122cb24192e3101425ec52ed2bb2cc767cf34e5c6ba794a045b671979b89473c7d5514cf3139a86bd97ad878c5d5692e63defd66300d33650b397b3db8dc3b3
6
+ metadata.gz: ec5076a7c966860094d980937c197c4b7477b12d77515bedaa2a7cf8848bd9ce59098b22ede31f99c9c386b51aa41e5325ad352734f43df5c1a7bcb1a37e0dec
7
+ data.tar.gz: d2d04dc4b71e23ad97285548a6aec6700f97993122c9d7b306181042fc722e408888dbf2b7ec086254a8c91a09dca78e9283b8f025a0fc0c1aeb42c1b86bb15a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ v0.5.0 Do geany configuration when installing samples
2
+
1
3
  v0.4.3 Update to jruby-9.2.4.0
2
4
 
3
5
  v0.4.2 Update to jruby-9.2.4.0
data/Rakefile CHANGED
@@ -29,7 +29,7 @@ end
29
29
 
30
30
  desc 'Install'
31
31
  task :install do
32
- sh 'mv target/picrate-0.4.3.jar lib'
32
+ sh 'mv target/picrate-0.5.0.jar lib'
33
33
  end
34
34
 
35
35
  desc 'Gem'
@@ -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/d8617b32e5b83f33e077d48b862a79b46bcdbbbc.zip)
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, currently downloads gems and installs using downloaded copies (currently there is an issue with jgem downloads from rubygems on raspberryPI).
15
+ Adjust script to suit needs if required, now installs `gems` with `jgem` from `rubygems`.
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module PiCrate
3
- VERSION = '0.4.3'.freeze
3
+ VERSION = '0.5.0'.freeze
4
4
  end
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.4.3.jar'
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.3'
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.4.3</version>
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 = <<-EOS
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 = PI_OR_LINUX.nil? ? "#{EXAMPLES}.zip" : "#{EXAMPLES}.tar.gz"
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 ~/.picrate"
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
- if PI_OR_LINUX.nil?
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;
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env jruby
2
+ require 'picrate'
3
+ # Sketch class
4
+ class MySketch < Processing::App
5
+ def settings
6
+ size 200, 200
7
+ end
8
+
9
+ def setup
10
+ background 0
11
+ end
12
+
13
+ def draw
14
+ # animation loop
15
+ end
16
+ end
17
+
18
+ MySketch.new
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.3
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-14 00:00:00.000000000 Z
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: " A batteries included version of processing in ruby, for raspberrypi
62
- and linux.\n"
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.4.3.jar
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