jruby_art 1.6.2 → 1.6.3

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: 443300fba760cfb50be5e64c0d6a0a0ff31189822f994d587f3ba0208850228c
4
- data.tar.gz: 4517ebb6f1340100d8e176c43b071658c2c729966074736a733ef5e006549317
3
+ metadata.gz: d3fce16d7ae699cd0405549cb031efa21dbf2e417edb1f775241eb295bd85c6a
4
+ data.tar.gz: 7791e73a66dcbfb6d49822263eeafd9d4329509a6d10608f2e7da8d884335411
5
5
  SHA512:
6
- metadata.gz: 6b7308d84b502727eba4abc7e593e8359794ea1837aea4f527497af9d9b34fdd318289879ea235c48220c8a8df125d275b9463f91244e99572404763435340ca
7
- data.tar.gz: 99fdc0eb2718da4cc5b78055e579713e5eee308974aa59c9c3926b3d554aff9e7635ef72c6ffef9f401afccee14e6a09f895aef634a404af6f2de5c753f3d30a
6
+ metadata.gz: e9874edf4dd007634b58e6c6027175360c1752d9107f6bc615f2ec3b41bb370d9b3c0c967b3bc1a1541961947e50f0cb1b2ef002f4fe1d177f28821bc01e0792
7
+ data.tar.gz: 1909fba27f21f5da2ebcbf799e3e16e2edb28fc9fc8ee0cb277654462414bcc7aa00bc0a4154b3900eaff2c8662d35d06d97d88dc93f7bf5f39b3a0f0d141059
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  require 'yaml'
4
- VERSION = '3.4'.freeze # processing version
4
+ VERSION = '3.5.3'.freeze # processing version
5
5
  HOME = ENV['HOME']
6
6
  # Abstract Installer class
7
7
  class Installer
@@ -151,7 +151,12 @@ module Processing
151
151
  end
152
152
 
153
153
  def show_version
154
- puts format('JRubyArt version %s', JRubyArt::VERSION)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # A wrapper for version
3
3
  module JRubyArt
4
- VERSION = '1.6.2'.freeze
4
+ VERSION = '1.6.3'.freeze
5
5
  end
Binary file
@@ -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-18 Martin Prout.
3
+ # Copyright (c) 2016-19 Martin Prout.
4
4
 
5
5
  java_import 'monkstone.slider.CustomHorizontalSlider'
6
6
  java_import 'monkstone.slider.CustomVerticalSlider'
@@ -1,17 +1,16 @@
1
1
  require 'rake/clean'
2
2
 
3
- WARNING = <<-EOS.freeze
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
- EOS
9
+ WARN
10
10
 
11
+ JRUBYC_VERSION = '9.2.6.0'.freeze
11
12
 
12
- JRUBYC_VERSION = '9.2.4.0'
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 "get sha256"
30
- task :get_sha256 => ["jruby-complete-#{JRUBYC_VERSION}.jar.sha256"]
28
+ desc 'get sha256'
29
+ task get_sha256: ["jruby-complete-#{JRUBYC_VERSION}.jar.sha256"]
31
30
 
32
- desc "download, and copy to jruby_art"
33
- task :default => [:get_sha256, :download, :copy_ruby]
31
+ desc 'download, and copy to jruby_art'
32
+ task default: %i[get_sha256 download copy_ruby]
34
33
 
35
- desc "download JRuby upstream sources"
36
- task :download => ["jruby-complete-#{JRUBYC_VERSION}.jar"]
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 "../lib/ruby"
47
+ directory '../lib/ruby'
49
48
 
50
- desc "copy jruby-complete"
51
- task :copy_ruby => ["../lib/ruby"] do
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 "digest"
55
+ require 'digest'
57
56
  sha256 = Digest::SHA256.new
58
- File.open(filename, "r") do |f|
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 != expected_hash
64
- raise "bad sha256 checksum for #{filename} (expected #{expected_hash} got #{sha256.hexdigest})"
65
- end
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 "download, and copy to jruby_art"
69
- task :unpack_samples => [:download_examples, :copy_examples]
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 = (MAC_OR_LINUX.nil?) ? "#{EXAMPLES}.zip" : "#{EXAMPLES}.tar.gz"
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 "copy examples"
87
- task :copy_examples => file_name do
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.2
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: 2018-11-16 00:00:00.000000000 Z
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
- rubyforge_project:
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.