jruby_art 0.5.0 → 0.6.0

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: e332b6721afc72be284cccd025b766e6be4e3708
4
- data.tar.gz: 32c62377c9263fc52c0d67efcb88e831cd33a3b5
3
+ metadata.gz: fceab1142374ca38acb379dbe9043eef90365fda
4
+ data.tar.gz: 7a92e754bc8abaea389f0ac47e1ae155e654644b
5
5
  SHA512:
6
- metadata.gz: b6933e91fc6f1d3dfc963ff792a0dc6b402b02e734c2d662127c890ef2478276b5c7a273321f05c3ed4654ba1d9fcc08484a33424c156cd17d8a82a3140d5b3f
7
- data.tar.gz: f9d69826c96c98aef1f591abaff889dc76dd0e7dfa631ba208031a2a061878ce6f455eac14b79ceba33ea34613dccf7fa35122aa4bbf0adbdb7c541d76408c99
6
+ metadata.gz: 0db75b6d6c937604447b9b5cb014ad930d220157b3dee2f2684788f9b1e3ba98b000fa5fdc7d32948fa6db4666a94b04e9d3e6fe1edf5ce56328e895f58b401d
7
+ data.tar.gz: a3add7d033e0f273b8d738c49fd8076307a3cc926088004efc9f9a3c3fba8f4353e1f2bc3f99ee6da815bfa4b1798e89da1cc2927eabd8c6102c71d9be66a16b
data/lib/jruby_art.rb CHANGED
@@ -10,7 +10,6 @@ SKETCH_ROOT ||= Dir.pwd
10
10
 
11
11
  require 'jruby_art/version'
12
12
  require 'jruby_art/helpers/numeric'
13
- require 'jruby_art/helpers/range'
14
13
 
15
14
  # The top-level namespace, a home for all JRubyArt classes.
16
15
  module Processing
data/lib/jruby_art/app.rb CHANGED
@@ -122,7 +122,15 @@ module Processing
122
122
  end
123
123
 
124
124
  def sketch_title(title)
125
- surface.setTitle(title)
125
+ surface.set_title(title)
126
+ end
127
+
128
+ def sketch_size(x, y)
129
+ surface.set_size(x, y)
130
+ end
131
+
132
+ def resizable(arg = true)
133
+ surface.set_resizable(arg)
126
134
  end
127
135
 
128
136
  def post_initialize(_args)
@@ -80,12 +80,6 @@ module Processing
80
80
  fail ArgumentError, 'takes 4 or 6 parameters'
81
81
  end
82
82
 
83
- # explicitly provide 'processing.org' constrain instance method
84
- # to return a float:- amt, low and high need to be floats
85
- def constrain(amt, low, high)
86
- (low..high).clip(amt)
87
- end
88
-
89
83
  # Uses PImage class method under hood
90
84
  def blend_color(c1, c2, mode)
91
85
  Java::ProcessingCore::PImage.blendColor(c1, c2, mode)
@@ -1,5 +1,5 @@
1
- # Axis aligned bounding box
2
- class AABB
1
+ # Axis aligned bounding box class (AABB would clash with Toxicgem)
2
+ class AaBb
3
3
  attr_reader :center, :extent
4
4
 
5
5
  def initialize(center:, extent:)
@@ -1,3 +1,3 @@
1
1
  module JRubyArt
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
data/lib/rpextras.jar CHANGED
Binary file
data/vendors/Rakefile CHANGED
@@ -8,7 +8,7 @@ WARNING = <<-EOS
8
8
 
9
9
  EOS
10
10
 
11
- JRUBYC_VERSION = '9.0.0.0'
11
+ JRUBYC_VERSION = '9.0.1.0'
12
12
  EXAMPLES = '0.6'
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", "2479278bdd92d85ca37c5d45a4ec4745c50dfccb")
30
+ check_sha1("jruby-complete-#{JRUBYC_VERSION}.jar", "523f0054455d85cdfc53af6eb8e925228feb9777")
31
31
  end
32
32
 
33
33
  directory "../lib/ruby"
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.5.0
4
+ version: 0.6.0
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-08-22 00:00:00.000000000 Z
13
+ date: 2015-09-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  requirement: !ruby/object:Gem::Requirement
@@ -84,7 +84,7 @@ dependencies:
84
84
  version: '3.3'
85
85
  description: |2
86
86
  JRubyArt is a ruby wrapper for the processing art framework.
87
- The current version supports processing-3.0b4, and uses jruby-9.0.0.0
87
+ The current version supports processing-3.0b5, and uses jruby-9.0.1.0
88
88
  as the glue between ruby and java. You can use both processing libraries and ruby
89
89
  gems in your sketches. Features create/run/watch/live modes. The "watch" mode,
90
90
  provides a nice REPL-ish way to work on your processing sketches. Includes:-
@@ -106,7 +106,6 @@ files:
106
106
  - lib/jruby_art/helpers/aabb.rb
107
107
  - lib/jruby_art/helpers/camel_string.rb
108
108
  - lib/jruby_art/helpers/numeric.rb
109
- - lib/jruby_art/helpers/range.rb
110
109
  - lib/jruby_art/helpers/string_extra.rb
111
110
  - lib/jruby_art/library_loader.rb
112
111
  - lib/jruby_art/runner.rb
@@ -143,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
142
  requirements:
144
143
  - A decent graphics card
145
144
  - java runtime >= 1.8+
146
- - processing = 3.0b4+
145
+ - processing = 3.0b5+
147
146
  rubyforge_project:
148
147
  rubygems_version: 2.4.8
149
148
  signing_key:
@@ -1,7 +0,0 @@
1
- # Extend Range class to include clip (used to implement processing constrain)
2
- class Range #:nodoc:
3
- def clip(n)
4
- return n if cover?(n)
5
- (n < min) ? min : max
6
- end
7
- end