jruby_art 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jruby_art/installer.rb +1 -1
- data/lib/jruby_art/runner.rb +6 -1
- data/lib/jruby_art/version.rb +1 -1
- data/lib/rpextras.jar +0 -0
- data/library/slider/slider.rb +1 -1
- data/vendors/Rakefile +25 -26
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3fce16d7ae699cd0405549cb031efa21dbf2e417edb1f775241eb295bd85c6a
|
4
|
+
data.tar.gz: 7791e73a66dcbfb6d49822263eeafd9d4329509a6d10608f2e7da8d884335411
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9874edf4dd007634b58e6c6027175360c1752d9107f6bc615f2ec3b41bb370d9b3c0c967b3bc1a1541961947e50f0cb1b2ef002f4fe1d177f28821bc01e0792
|
7
|
+
data.tar.gz: 1909fba27f21f5da2ebcbf799e3e16e2edb28fc9fc8ee0cb277654462414bcc7aa00bc0a4154b3900eaff2c8662d35d06d97d88dc93f7bf5f39b3a0f0d141059
|
data/lib/jruby_art/installer.rb
CHANGED
data/lib/jruby_art/runner.rb
CHANGED
@@ -151,7 +151,12 @@ module Processing
|
|
151
151
|
end
|
152
152
|
|
153
153
|
def show_version
|
154
|
-
|
154
|
+
require 'erb'
|
155
|
+
template = ERB.new <<-EOF
|
156
|
+
JRubyArt version <%= JRubyArt::VERSION %>
|
157
|
+
Ruby version <%= RUBY_VERSION %>
|
158
|
+
EOF
|
159
|
+
puts template.result(binding)
|
155
160
|
end
|
156
161
|
|
157
162
|
private
|
data/lib/jruby_art/version.rb
CHANGED
data/lib/rpextras.jar
CHANGED
Binary file
|
data/library/slider/slider.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
# Here's a little library for quickly hooking up in sketch sliders.
|
3
|
-
# Copyright (c) 2016-
|
3
|
+
# Copyright (c) 2016-19 Martin Prout.
|
4
4
|
|
5
5
|
java_import 'monkstone.slider.CustomHorizontalSlider'
|
6
6
|
java_import 'monkstone.slider.CustomVerticalSlider'
|
data/vendors/Rakefile
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
require 'rake/clean'
|
2
2
|
|
3
|
-
WARNING = <<-
|
3
|
+
WARNING = <<-WARN.freeze
|
4
4
|
WARNING: you may not have wget installed, you could just download
|
5
5
|
the correct version of jruby-complete to the vendors folder, and
|
6
6
|
re-run k9 setup install instead of installing wget. Some systems
|
7
7
|
may also require 'sudo' access to install, NB: this is untested....
|
8
8
|
|
9
|
-
|
9
|
+
WARN
|
10
10
|
|
11
|
+
JRUBYC_VERSION = '9.2.6.0'.freeze
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
EXAMPLES = '3.2'
|
13
|
+
EXAMPLES = '3.2'.freeze
|
15
14
|
HOME_DIR = ENV['HOME']
|
16
15
|
MAC_OR_LINUX = /linux|mac|darwin/ =~ RbConfig::CONFIG['host_os']
|
17
16
|
|
@@ -26,14 +25,14 @@ file "jruby-complete-#{JRUBYC_VERSION}.jar.sha256" do
|
|
26
25
|
end
|
27
26
|
end
|
28
27
|
|
29
|
-
desc
|
30
|
-
task :
|
28
|
+
desc 'get sha256'
|
29
|
+
task get_sha256: ["jruby-complete-#{JRUBYC_VERSION}.jar.sha256"]
|
31
30
|
|
32
|
-
desc
|
33
|
-
task :
|
31
|
+
desc 'download, and copy to jruby_art'
|
32
|
+
task default: %i[get_sha256 download copy_ruby]
|
34
33
|
|
35
|
-
desc
|
36
|
-
task :
|
34
|
+
desc 'download JRuby upstream sources'
|
35
|
+
task download: ["jruby-complete-#{JRUBYC_VERSION}.jar"]
|
37
36
|
|
38
37
|
file "jruby-complete-#{JRUBYC_VERSION}.jar" do
|
39
38
|
begin
|
@@ -41,36 +40,36 @@ file "jruby-complete-#{JRUBYC_VERSION}.jar" do
|
|
41
40
|
rescue
|
42
41
|
warn(WARNING)
|
43
42
|
end
|
44
|
-
value=File.read("jruby-complete-#{JRUBYC_VERSION}.jar.sha256")
|
43
|
+
value = File.read("jruby-complete-#{JRUBYC_VERSION}.jar.sha256")
|
45
44
|
check_sha256("jruby-complete-#{JRUBYC_VERSION}.jar", value)
|
46
45
|
end
|
47
46
|
|
48
|
-
directory
|
47
|
+
directory '../lib/ruby'
|
49
48
|
|
50
|
-
desc
|
51
|
-
task :
|
49
|
+
desc 'copy jruby-complete'
|
50
|
+
task copy_ruby: ['../lib/ruby'] do
|
52
51
|
sh "cp -v jruby-complete-#{JRUBYC_VERSION}.jar ../lib/ruby/jruby-complete.jar"
|
53
52
|
end
|
54
53
|
|
55
54
|
def check_sha256(filename, expected_hash)
|
56
|
-
require
|
55
|
+
require 'digest'
|
57
56
|
sha256 = Digest::SHA256.new
|
58
|
-
File.open(filename,
|
59
|
-
while buf = f.read(4096)
|
57
|
+
File.open(filename, 'r') do |f|
|
58
|
+
while (buf = f.read(4096))
|
60
59
|
sha256.update(buf)
|
61
60
|
end
|
62
61
|
end
|
63
|
-
if sha256.hexdigest
|
64
|
-
|
65
|
-
|
62
|
+
next if sha256.hexdigest == expected_hash
|
63
|
+
|
64
|
+
raise "bad sha256 checksum for #{filename} (expected #{expected_hash} got #{sha256.hexdigest})"
|
66
65
|
end
|
67
66
|
|
68
|
-
desc
|
69
|
-
task :
|
67
|
+
desc 'download, and copy to jruby_art'
|
68
|
+
task unpack_samples: %i[download_examples copy_examples]
|
70
69
|
|
71
70
|
desc 'download and copy examples to user home'
|
72
71
|
task :download_examples
|
73
|
-
file_name =
|
72
|
+
file_name = MAC_OR_LINUX.nil? ? "#{EXAMPLES}.zip" : "#{EXAMPLES}.tar.gz"
|
74
73
|
file file_name do
|
75
74
|
begin
|
76
75
|
if MAC_OR_LINUX.nil?
|
@@ -83,8 +82,8 @@ file file_name do
|
|
83
82
|
end
|
84
83
|
end
|
85
84
|
|
86
|
-
desc
|
87
|
-
task :
|
85
|
+
desc 'copy examples'
|
86
|
+
task copy_examples: file_name do
|
88
87
|
if MAC_OR_LINUX.nil?
|
89
88
|
sh "unzip #{EXAMPLES}.zip"
|
90
89
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jruby_art
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Ashkenas
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2019-02-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -107,8 +107,7 @@ requirements:
|
|
107
107
|
- A decent graphics card
|
108
108
|
- java runtime >= 1.8.0_171+
|
109
109
|
- processing = 3.4
|
110
|
-
|
111
|
-
rubygems_version: 2.7.8
|
110
|
+
rubygems_version: 3.0.1
|
112
111
|
signing_key:
|
113
112
|
specification_version: 4
|
114
113
|
summary: Code as Art, Art as Code. Processing and Ruby are meant for each other.
|