propane 2.7.1-java → 2.7.2-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: 8e9d6379de6255f40524c6b647113c8c106e8ec2decbfe88f7adb73225a8d74d
4
- data.tar.gz: 38454f8850e0e2ab2c4fed609bc8521188a2e98e79451f774b3b4fb17308cc11
3
+ metadata.gz: 87afa3f24e268a3aa9eab9e2b3cb959c4d2dbc33c325448df204f9b7753df837
4
+ data.tar.gz: 8da556fe7fe8740b457a48700bace4b03771365a0ce1617521d1136a5506ff58
5
5
  SHA512:
6
- metadata.gz: ab65430ac2ac3ea8877a8552b71080d878a53c27d068927253d59e93e4078f4fb6eb3661078e0454dabd4f75875ca8230196a7dbeb65be763aa3c766c4de0090
7
- data.tar.gz: 27dca256dd36b656b10d07f8a770948441b517cccff56fd44454bf6f2e89dee90427d89086e2d2b4a7e38ab3fab55d0961c1db29defdac46454da5e808a47a7d
6
+ metadata.gz: 8e24abaf39356af107a65e0be6dbf1a285bff83eef646a1ea335c50b20fa10eb573c4f7369f821915dc441c78acaed5e65cabd43d3a92e2ec4849ee9566be215
7
+ data.tar.gz: a2d16dfea4115a1667cc7ce718918f8bae6db62729a4b405585e250eded261900f9fb839a0ccb00e7c0fbca09f3ad9e99f159f096367826fadcabed835a5a277
@@ -1,3 +1,5 @@
1
+ **v2.7.2** Slight re-factor of control_panel, fix virgin install of libraries folder, add grafica library examples suggest upgrade to jruby-9.1.17.0
2
+
1
3
  **v2.7.1** Avoid calling protected method in control_panel (ready for jdk9)
2
4
 
3
5
  **v2.7.0** Now using custom icons, nice blue ruby image
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Propane
2
2
  To build custom core see [processing-core][processing-core]
3
3
 
4
- A slim layer to communicate with Processing from JRuby, features a polyglot maven build. We have created a configuration free version of ruby processing, for processing-3.3.7, where we include a modified processing core (`public runPropane()` replaces `protected runSketch()`, not currently useable with jruby and jdk 9). These jars are small enough to include in a gem distribution, and hence we do not require configuration. This has created a scriptable version, ie files get run direct from jruby, but you could use jruby-complete if you used the propane script (avoids need to give the absolute data path for the data folder, but would also be needed for a watch mode). See guide to [building ruby-processing projects][building]. NB: this is a far from perfect solution and some sketches still fail to run with jdk9, but a least I get to diagnose those errors too.
4
+ A slim layer to communicate with Processing from JRuby, features a polyglot maven build. We have created a configuration free version of ruby processing, for processing-3.3.7, where we include a modified processing core (`public runPropane()` to replace `protected runSketch()`, (_runSketch not currently usable with jruby and jdk 9_). These jars are small enough to include in a gem distribution, and hence we do not require configuration. This has created a scriptable version, ie files get run direct from jruby, but you could use jruby-complete if you used the propane script (avoids need to give the absolute data path for the data folder, but would also be needed for a watch mode). See guide to [building ruby-processing projects][building]. NB: this is a far from perfect solution and javafx sketches and possibly a feew others still fail to run with jdk9, but a least I get to diagnose those errors too.
5
5
 
6
6
  adjust above for your OS/distro setup.
7
7
 
@@ -23,7 +23,7 @@ rake javadoc
23
23
  ## Installation
24
24
  ```bash
25
25
  jgem install propane # from rubygems
26
- jgem install propane-2.6.6-java.gem # local install requires a custom processing-core
26
+ jgem install propane-2.7.1-java.gem # local install requires a custom processing-core
27
27
  ```
28
28
 
29
29
  ## Usage
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Propane
3
- VERSION = '2.7.1'.freeze
3
+ VERSION = '2.7.2'.freeze
4
4
  end
@@ -15,7 +15,8 @@ module ControlPanel
15
15
  mx = range.end
16
16
  mx = range.max if range.exclude_end? && range.begin.respond_to?(:succ)
17
17
  max = mx * 100
18
- super(min, max)
18
+ val = range.cover?(initial) ? initial * 100 : (range.first + range.last) * 50
19
+ super(min, max, val)
19
20
  set_minor_tick_spacing((max - min).abs / 10)
20
21
  set_paint_ticks true
21
22
  # paint_labels = true
@@ -26,8 +27,6 @@ module ControlPanel
26
27
  ControlPanel.app_value(name, value)
27
28
  proc.call(value) if proc
28
29
  end
29
- val = initial.nil? ? (range.first + range.last) * 50 : initial * 100
30
- set_value(val)
31
30
  ControlPanel.app_value(name, val)
32
31
  end
33
32
 
data/pom.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'fileutils'
2
2
  project 'rp5extras', 'https://github.com/monkstone/propane' do
3
3
  model_version '4.0.0'
4
- id 'propane:propane', '2.7.1'
4
+ id 'propane:propane', '2.7.2'
5
5
  packaging 'jar'
6
6
  description 'rp5extras for propane'
7
7
  organization 'ruby-processing', 'https://ruby-processing.github.io'
data/pom.xml CHANGED
@@ -11,7 +11,7 @@ DO NOT MODIFIY - GENERATED CODE
11
11
  <modelVersion>4.0.0</modelVersion>
12
12
  <groupId>propane</groupId>
13
13
  <artifactId>propane</artifactId>
14
- <version>2.7.1</version>
14
+ <version>2.7.2</version>
15
15
  <name>rp5extras</name>
16
16
  <description>rp5extras for propane</description>
17
17
  <url>https://github.com/monkstone/propane</url>
@@ -10,10 +10,12 @@ SOUND_VERSION = 'v1.3.2' # version 1.3.2
10
10
  GLVIDEO = 'processing-glvideo.zip'
11
11
  VIDEO = 'video-2.zip'
12
12
  VIDEO_VERSION = '2' # version 1.0.1
13
- EXAMPLES = '2.1'.freeze
13
+ EXAMPLES = '2.3'.freeze
14
14
  HOME_DIR = ENV['HOME']
15
15
  MAC_OR_LINUX = /linux|mac|darwin/ =~ RbConfig::CONFIG['host_os']
16
16
 
17
+ CLOBBER.include(EXAMPLES, SOUND, GLVIDEO, VIDEO)
18
+
17
19
  desc 'download, and copy propane examples'
18
20
  task default: [:download_and_copy_samples]
19
21
 
@@ -33,13 +35,13 @@ file file_name do
33
35
  end
34
36
 
35
37
  desc 'download and copy sound library to ~/.propane'
36
- task download_and_copy_sound: [:download_sound, :copy_sound]
38
+ task download_and_copy_sound: [:init_dir, :download_sound, :copy_sound, :clobber]
37
39
 
38
40
  desc 'download and copy video library to ~/.propane'
39
- task download_and_copy_video: [:download_video, :copy_video]
41
+ task download_and_copy_video: [:init_dir, :download_video, :copy_video, :clobber]
40
42
 
41
43
  desc 'download and copy glvideo library to ~/.propane'
42
- task download_and_copy_glvideo: [:download_glvideo, :copy_glvideo]
44
+ task download_and_copy_glvideo: [:init_dir, :download_glvideo, :copy_glvideo, :clobber]
43
45
 
44
46
 
45
47
  desc 'download sound library'
@@ -75,6 +77,15 @@ task :download_video do
75
77
  end
76
78
  end
77
79
 
80
+ desc 'initialize ~/.propane directories'
81
+ task :init_dir do
82
+ unless File.exist? "#{HOME_DIR}/.propane/libraries"
83
+ sh "mkdir -p ~/.propane"
84
+ sh "mkdir -p ~/.propane/libraries"
85
+ end
86
+ end
87
+
88
+
78
89
  desc 'copy examples'
79
90
  task :copy_examples => file_name do
80
91
  if MAC_OR_LINUX.nil?
@@ -89,10 +100,13 @@ end
89
100
 
90
101
  desc 'copy sound library'
91
102
  task :copy_sound => SOUND do
103
+ directory "~/.propane"
104
+ directory "~/.propane/libraries"
92
105
  sh "unzip #{SOUND}"
93
106
  sh "rm -r #{HOME_DIR}/.propane/libraries/sound" if File.exist? "#{HOME_DIR}/.propane/libraries/sound"
94
- sh "cp -r sound #{HOME_DIR}/.propane/libraries/sound"
107
+ sh "cp -r sound #{HOME_DIR}/.propane/libraries"
95
108
  sh 'rm -r sound'
109
+ sh 'rm -r __MACOSX'
96
110
  end
97
111
 
98
112
  desc 'copy video library'
@@ -105,6 +119,7 @@ end
105
119
 
106
120
  desc 'copy glvideo library'
107
121
  task :copy_glvideo => GLVIDEO do
122
+ directory "~/.propane/libraries/glvideo"
108
123
  sh "unzip #{GLVIDEO}"
109
124
  sh "rm -r #{HOME_DIR}/.propane/libraries/glvideo" if File.exist? "#{HOME_DIR}/.propane/libraries/glvideo"
110
125
  sh "cp -r glvideo #{HOME_DIR}/.propane/libraries/glvideo"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: propane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.1
4
+ version: 2.7.2
5
5
  platform: java
6
6
  authors:
7
7
  - monkstone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-16 00:00:00.000000000 Z
11
+ date: 2018-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake