propane 2.0.2-java → 2.0.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
  SHA1:
3
- metadata.gz: 9f847eb7d415cbd0c0ee989ebf5c5da70a68de20
4
- data.tar.gz: cddade51d46516647451f40532d18e0d351bbe2a
3
+ metadata.gz: 1f3c6dc86329bbde3a56d284d72b1c6a3fe5775e
4
+ data.tar.gz: 0ad232d5e8538db5e81c43cec89afc4e340ce14c
5
5
  SHA512:
6
- metadata.gz: 9445e29c40600d55147c13434f253b517791d9ffd7dba8cdabca8b2ccb81128b4915cf773daf7fca3763104aec9c40d483ed280fa12d6d406ef7f7d018970f60
7
- data.tar.gz: 583bceb0eeeacdbf4e1b1d3cbdb18bde2fe5b08c3b67f7c7e5917bd626618d7a46c1606ee6ebecd299d78726052cb2949de9d908fc2d30a9b8fd3e18e74e3e4b
6
+ metadata.gz: 34c22b6d7512b91f33161501723f65f3409ab204b1ab5c6148740d8b83e4bb99e069d0ba5977ab3a74c4c6e1e4e2164b6b049af749452cea8f1a69058bb5adc5
7
+ data.tar.gz: daf9fe02b0423fae841cf8e05abfdd8453e30f6a390b0d7feebcf1f3a830bacaa8c81d0e23f73a6919d287b415aa21bb3d1a1757a6d1d99f2e211ac27dd0f84c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
- **v2.0.2** Using processing-3.2 core from local maven repository, refactored sketch creator
1
+ **v2.0.3** Suggest use of jruby-9.1.4.0, more about loading vanilla libraries
2
+
3
+ **v2.0.2** Refactor install to either install `samples\sound\video` or warn (update to use a local processing-3.2.1 core, this is why travis fails), fix some examples, hence `0.3`
2
4
 
3
- **v2.0.1** Refactored to work with processing-3.0, `--install samples` and/or vanilla processing `sound` and `video` libraries
5
+ **v2.0.1** Support processing-3.2.0
6
+
7
+ **v2.0.0** Refactored to work with processing-3.0, `--install samples` and/or vanilla processing `sound` and `video` libraries
4
8
 
5
9
  **v0.9.0** Implements `data_path` in ruby, you should use this method to return the absolute path to the `data` folder (read and write). Prefer JRubyArt methods, in the main.
6
10
 
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Propane
2
2
  [![Gem Version](https://badge.fury.io/rb/propane.svg)](https://badge.fury.io/rb/propane)
3
3
 
4
- A slim layer to communicate with Processing from JRuby, features a polyglot maven build, this started out as a non serious project by Phillip Cunningam called ribiprocessing. It has now morphed into an experimental project for ruby-processing so we can now "Cook with Gas". We have created a configuration free version of ruby processing, for processing-3.1+, where we get processing core from maven central (and opengl currently testing on linux64/mac). These jars are small enough to include in the gem distribution, and hence we should 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).
4
+ A slim layer to communicate with Processing from JRuby, features a polyglot maven build, this started out as a non serious project by Phillip Cunningam called ribiprocessing. It has now morphed into an experimental project for ruby-processing so we can now "Cook with Gas". We have created a configuration free version of ruby processing, for processing-3.2.1+, where we get processing core from maven central (and opengl currently testing on linux64/mac). These jars are small enough to include in the gem distribution, and hence we should 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).
5
5
  ## Requirements
6
6
 
7
7
  - jdk8+ since version 0.6.0
8
- - jruby-9.1.2.0+
8
+ - jruby-9.1.4.0+
9
9
  - mvn-3.3.1+ (development only)
10
10
 
11
11
  ## Building and testing
@@ -56,7 +56,7 @@ propane -c my_sketch 200 200 p2d # for opengl 2D renderer
56
56
  propane -c my_sketch 200 200 p3d # for opengl 3D renderer
57
57
  ```
58
58
 
59
- To run sketches (works just fine from atom editor)
59
+ To run sketches
60
60
 
61
61
  ```bash
62
62
  jruby -S propane --run my_sketch.rb # belt and braces version
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ def create_manifest
7
7
  File.open('MANIFEST.MF', 'w') do |f|
8
8
  f.puts(title)
9
9
  f.puts(version)
10
- f.puts('Class-Path: core-3.2.0.jar gluegen-rt-2.3.2.jar jog-all-2.3.2.jar')
10
+ f.puts('Class-Path: core-3.2.1.jar gluegen-rt-2.3.2.jar jog-all-2.3.2.jar')
11
11
  end
12
12
  end
13
13
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: false
2
2
  require 'optparse'
3
- require_relative 'version'
3
+ require_relative 'version'
4
4
 
5
5
  module Propane
6
6
  # Utility class to handle the different commands that the 'propane' offers
@@ -23,7 +23,7 @@ module Propane
23
23
  show_help if options.empty?
24
24
  show_version if options[:version]
25
25
  create if options[:create]
26
- install if options[:install]
26
+ install(filename) if options[:install]
27
27
  end
28
28
 
29
29
  # Parse the command-line options. Keep it simple.
@@ -71,14 +71,11 @@ module Propane
71
71
  puts format(v_format, Propane::VERSION, JRUBY_VERSION)
72
72
  end
73
73
 
74
- def install
75
- choice = filename.downcase
76
- samples = "cd #{PROPANE_ROOT}/vendors && rake"
77
- sound = "cd #{PROPANE_ROOT}/vendors && rake download_and_copy_sound"
78
- video = "cd #{PROPANE_ROOT}/vendors && rake download_and_copy_video"
79
- system samples if /samples/ =~ choice
80
- system video if /video/ =~ choice
81
- system sound if /sound/ =~ choice
74
+ def install(library)
75
+ choice = library.downcase
76
+ valid = Regexp.union('samples', 'sound', 'video')
77
+ return warn format('No installer for %s', choice) unless valid =~ choice
78
+ system "cd #{PROPANE_ROOT}/vendors && rake download_and_copy_#{choice}"
82
79
  end
83
80
  end # class Runner
84
81
  end # module Propane
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  # frozen_string_literal: true
3
3
  module Propane
4
- VERSION = '2.0.2'.freeze
4
+ VERSION = '2.0.3'.freeze
5
5
  end
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:rp5extras', '2.0.2'
4
+ id 'propane:rp5extras', '2.0.3'
5
5
  packaging 'jar'
6
6
  description 'rp5extras for propane'
7
7
  organization 'ruby-processing', 'https://ruby-processing.github.io'
@@ -32,8 +32,8 @@ project 'rp5extras', 'https://github.com/monkstone/propane' do
32
32
  'jogl.version' => '2.3.2'
33
33
  )
34
34
 
35
- pom 'org.jruby:jruby:9.1.2.0'
36
- jar 'org.processing:core:3.2.0'
35
+ pom 'org.jruby:jruby:9.1.4.0'
36
+ jar 'org.processing:core:3.2.1'
37
37
  jar 'org.processing:video:3.0.2'
38
38
  jar('org.jogamp.jogl:jogl-all:${jogl.version}')
39
39
  jar('org.jogamp.gluegen:gluegen-rt-main:${jogl.version}')
@@ -44,7 +44,7 @@ project 'rp5extras', 'https://github.com/monkstone/propane' do
44
44
  execute_goals( id: 'default-cli',
45
45
  artifactItems: [ { groupId: 'org.processing',
46
46
  artifactId: 'core',
47
- version: '3.2.0',
47
+ version: '3.2.1',
48
48
  type: 'jar',
49
49
  outputDirectory: '${propane.basedir}/lib'
50
50
  },
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>rp5extras</artifactId>
14
- <version>2.0.2</version>
14
+ <version>2.0.3</version>
15
15
  <name>rp5extras</name>
16
16
  <description>rp5extras for propane</description>
17
17
  <url>https://github.com/monkstone/propane</url>
@@ -58,13 +58,13 @@ DO NOT MODIFIY - GENERATED CODE
58
58
  <dependency>
59
59
  <groupId>org.jruby</groupId>
60
60
  <artifactId>jruby</artifactId>
61
- <version>9.1.2.0</version>
61
+ <version>9.1.4.0</version>
62
62
  <type>pom</type>
63
63
  </dependency>
64
64
  <dependency>
65
65
  <groupId>org.processing</groupId>
66
66
  <artifactId>core</artifactId>
67
- <version>3.2.0</version>
67
+ <version>3.2.1</version>
68
68
  </dependency>
69
69
  <dependency>
70
70
  <groupId>org.processing</groupId>
@@ -103,7 +103,7 @@ DO NOT MODIFIY - GENERATED CODE
103
103
  <artifactItem>
104
104
  <groupId>org.processing</groupId>
105
105
  <artifactId>core</artifactId>
106
- <version>3.2.0</version>
106
+ <version>3.2.1</version>
107
107
  <type>jar</type>
108
108
  <outputDirectory>${propane.basedir}/lib</outputDirectory>
109
109
  </artifactItem>
data/propane.gemspec CHANGED
@@ -10,11 +10,11 @@ Gem::Specification.new do |gem|
10
10
  gem.email = ['mamba2928@yahoo.co.uk']
11
11
  gem.licenses = %w(GPL-3.0 LGPL-2.0)
12
12
  gem.description = %q{A Standalone Ruby Processing implementation}
13
- gem.summary = %q{A really slim layer between Ruby and Processing-3.1.1.}
13
+ gem.summary = %q{A really slim layer between Ruby and Processing-3.2.1.}
14
14
  gem.homepage = 'https://ruby-processing.github.io/propane/'
15
15
  gem.files = `git ls-files`.split($/)
16
16
  gem.files << 'lib/propane.jar'
17
- gem.files << 'lib/core-3.2.0.jar'
17
+ gem.files << 'lib/core-3.2.1.jar'
18
18
  gem.files << 'lib/gluegen-rt-2.3.2.jar'
19
19
  gem.files << 'lib/jogl-all-2.3.2.jar'
20
20
  gem.files << 'lib/gluegen-rt-2.3.2-natives-linux-amd64.jar'
data/vendors/Rakefile CHANGED
@@ -9,13 +9,16 @@ SOUND = 'sound.zip'.freeze
9
9
  SOUND_VERSION = 'v1.3.2' # version 1.3.2
10
10
  VIDEO = 'video-2.zip'
11
11
  VIDEO_VERSION = '2' # version 1.0.1
12
- EXAMPLES = '0.2'.freeze
12
+ EXAMPLES = '0.3'.freeze
13
13
  HOME_DIR = ENV['HOME']
14
14
  MAC_OR_LINUX = /linux|mac|darwin/ =~ RbConfig::CONFIG['host_os']
15
15
 
16
16
  desc 'download, and copy propane examples'
17
- task default: [:download_examples, :copy_examples]
17
+ task default: [:download_and_copy_samples]
18
+
18
19
  desc 'download and copy examples to user home'
20
+ task download_and_copy_samples: [:download_examples, :copy_examples]
21
+
19
22
  task :download_examples
20
23
  file_name = MAC_OR_LINUX.nil? ? "#{EXAMPLES}.zip" : "#{EXAMPLES}.tar.gz"
21
24
  wget_base = 'wget https://github.com/ruby-processing/propane-examples'
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.0.2
4
+ version: 2.0.3
5
5
  platform: java
6
6
  authors:
7
7
  - monkstone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-19 00:00:00.000000000 Z
11
+ date: 2016-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: arcball
@@ -45,7 +45,7 @@ files:
45
45
  - Rakefile
46
46
  - bin/propane
47
47
  - lib/PROCESSING_LICENSE.txt
48
- - lib/core-3.2.0.jar
48
+ - lib/core-3.2.1.jar
49
49
  - lib/export.txt
50
50
  - lib/gluegen-rt-2.3.2-natives-linux-amd64.jar
51
51
  - lib/gluegen-rt-2.3.2-natives-macosx-universal.jar
@@ -125,7 +125,7 @@ rubyforge_project:
125
125
  rubygems_version: 2.6.3
126
126
  signing_key:
127
127
  specification_version: 4
128
- summary: A really slim layer between Ruby and Processing-3.1.1.
128
+ summary: A really slim layer between Ruby and Processing-3.2.1.
129
129
  test_files:
130
130
  - test/create_test.rb
131
131
  - test/respond_to_test.rb