jruby_art 0.3.0.pre → 0.3.1.pre

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: e2f18112ba5aae2c2dfdd271945d91c157242dce
4
- data.tar.gz: c917b6420da85b1e4c45b71de2a84b57dbc2712b
3
+ metadata.gz: 6310fd7a020ca5af0b1efd759a68402e64390c64
4
+ data.tar.gz: 27ee30134bbdad7cc47a31730a457b6d382a51a1
5
5
  SHA512:
6
- metadata.gz: 094e0e81bc65c61753fd6fb6b2c5bb2260496effb480670e6d8c75d818f36e0410abdba62899e7dcbc85f7d460cedd82e2696ac708c15a47450dc161aaddc430
7
- data.tar.gz: 5c673af5d1e65b84327be0fc5983cfea3d4ce4a0963e0082230b8755bb12aa4caf1fae516f4e6f01dc2bdf84f4c7f5df71d5d6789890334079cfd15c004379ca
6
+ metadata.gz: a76a9bf6a75eba08aa8a9a46e0add4188b515138fd265408ee4acd7af9b047efd14e7a2d4c1501e5582a13d0ac7d9e9f82c8bab4063eb9c760b9b72d57da81d9
7
+ data.tar.gz: 44c04ac82796deb2e411b27f2b2ccdb4872ee2e8052bec0ce7be1123a0720ef8e00fa3a3c1c8a370a44acfec65cec1921c41dadc115d2f4918076444b3c46e2a
@@ -31,8 +31,7 @@ module Processing
31
31
  }
32
32
  # All sketches extend this class
33
33
  class App < PApplet
34
- include Math
35
- include HelperMethods
34
+ include HelperMethods, Math
36
35
  # Alias some methods for familiarity for Shoes coders.
37
36
  # surface replaces :frame, but needs field_reader for access
38
37
  alias_method :oval, :ellipse
@@ -163,15 +162,10 @@ module Processing
163
162
  end
164
163
  end # Processing::App
165
164
 
166
- # Importing PConstants to access to processing constants,
167
- # to keep namespace clean use PConstants::TRIANGLE (for example)
168
- # or to use bare TRIANGLE also 'include PConstants'
169
- # Using :method_missing to mimic inner class methods
170
- # @HACK you should consider using 'forwardable' to avoid this
171
- # egregious hack...
165
+ # @HACK purists may prefer 'forwardable' to the use of Proxy
166
+ # Importing PConstants here to access the processing constants
172
167
  module Proxy
173
- include Math
174
- java_import 'processing.core.PConstants'
168
+ include Math, HelperMethods, Java::ProcessingCore::PConstants
175
169
 
176
170
  def method_missing(name, *args)
177
171
  return $app.send(name, *args) if $app && $app.respond_to?(name)
@@ -3,7 +3,7 @@ module Processing
3
3
  # Provides some convenience methods
4
4
  module HelperMethods
5
5
  # processings epsilon may not be defined yet
6
- EPSILON ||= 1.0e-04
6
+ EPSILON ||= 9.999999747378752e-05
7
7
  # Nice block method to draw to a buffer.
8
8
  # You can optionally pass it a width, a height, and a renderer.
9
9
  # Takes care of starting and ending the draw for you.
@@ -187,8 +187,11 @@ module Processing
187
187
  sketch,
188
188
  args].flatten
189
189
  end
190
- exec(*command)
191
- # exec replaces the Ruby process with the JRuby one.
190
+ begin
191
+ exec(*command)
192
+ # exec replaces the Ruby process with the JRuby one.
193
+ rescue Java::JavaLang::ClassNotFoundExcetion
194
+ end
192
195
  end
193
196
 
194
197
  def path_separator
@@ -1,3 +1,3 @@
1
1
  module JRubyArt
2
- VERSION = '0.3.0.pre'
2
+ VERSION = '0.3.1.pre'
3
3
  end
Binary file
@@ -8,7 +8,7 @@ WARNING = <<-EOS
8
8
 
9
9
  EOS
10
10
 
11
- JRUBYC_VERSION = '9.0.0.0.rc1'
11
+ JRUBYC_VERSION = '9.0.0.0.rc2'
12
12
  EXAMPLES = '0.2'
13
13
  HOME_DIR = ENV['HOME']
14
14
  MAC_OR_LINUX = /linux|mac|darwin/ =~ RbConfig::CONFIG['host_os']
@@ -27,7 +27,7 @@ file "jruby-complete-#{JRUBYC_VERSION}.jar" do
27
27
  rescue
28
28
  warn(WARNING)
29
29
  end
30
- check_sha1("jruby-complete-#{JRUBYC_VERSION}.jar", "18dac3f000fe8814cd2fb7708e32612f17c28edf")
30
+ check_sha1("jruby-complete-#{JRUBYC_VERSION}.jar", "3c490d1b621db41709e0d093ab36585a50604dfd")
31
31
  end
32
32
 
33
33
  directory "../lib/ruby"
@@ -77,5 +77,5 @@ task :copy_examples => file_name do
77
77
  end
78
78
  sh "rm -r #{HOME_DIR}/k9_samples" if File.exist? "#{HOME_DIR}/k9_samples"
79
79
  sh "cp -r samples4ruby-processing3-#{EXAMPLES} #{HOME_DIR}/k9_samples"
80
- sh "rm -r samples4ruby-processing3-#{EXAMPLvim lib/jruby_art/version.rb
81
- clean Xfn.pre
80
+ sh "rm -r samples4ruby-processing3-#{EXAMPLES} #{HOME_DIR}/k9_samples"
81
+ end
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: 0.3.0.pre
4
+ version: 0.3.1.pre
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: 2015-07-03 00:00:00.000000000 Z
13
+ date: 2015-07-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  requirement: !ruby/object:Gem::Requirement
@@ -99,13 +99,13 @@ files:
99
99
  - lib/jruby_art/runners/run.rb
100
100
  - lib/jruby_art/runners/watch.rb
101
101
  - lib/jruby_art/version.rb
102
+ - lib/rpextras.jar
102
103
  - library/boids/boids.rb
103
104
  - library/control_panel/control_panel.rb
104
105
  - library/library_proxy/README.md
105
106
  - library/library_proxy/library_proxy.rb
106
107
  - library/video_event/video_event.rb
107
108
  - vendors/Rakefile
108
- - lib/rpextras.jar
109
109
  homepage: https://github.com/ruby-processing/JRubyArt
110
110
  licenses:
111
111
  - MIT
@@ -129,7 +129,7 @@ requirements:
129
129
  - java runtime >= 1.8+
130
130
  - processing = 3.0a10+
131
131
  rubyforge_project:
132
- rubygems_version: 2.1.9
132
+ rubygems_version: 2.4.8
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: Code as Art, Art as Code. Processing and Ruby are meant for each other.