ruby-processing 2.6.15 → 2.6.16

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: 384f354fac78ee142f0d968856d620c4834d5a55
4
- data.tar.gz: f1ea31f4103503196219832efd8a07334fe20033
3
+ metadata.gz: 0b25aa7d535a74156733c325416d10112cdf22c6
4
+ data.tar.gz: 0da10cc225670d1c857be68680113ca34e4c494d
5
5
  SHA512:
6
- metadata.gz: 853c17b72cd1fdcbef31abd6f88d59d389c1b41eca0867f5e02d4c1c19269e841294551d5a440666b3b84aab36be1db6496608b10a458830083036a4e9e24c39
7
- data.tar.gz: b15074265d45eb34e6e9b98c269b6632bc83a9f4f364196dd6948db117a84d13364cc9424bbc5759676967fcd38fe907acc6f5c213283f28ff998ff7b1fced57
6
+ metadata.gz: acf6e402dd26ef990c5aaab13fbbcc4962615defe1bbf3f123554d0319f4fe2ab4a7954686cd7fd9565d54263112d969764036302525658428f7a39f20b2df01
7
+ data.tar.gz: 4062689657e789121f59a40744d79361bf2de80752e4df70c26cce6863e78bb0aa4dee07488889bc92bc605f334228072494a64f20795c232040aef8e8f65f8d
Binary file
@@ -21,7 +21,7 @@ module Processing
21
21
  Dir["#{RP_CONFIG["PROCESSING_ROOT"]}/core/library/\*.jar"].each do |jar|
22
22
  require jar unless jar =~ /native/
23
23
  end
24
- Java::Monkstone::MathToolLibrary.new.load(JRuby.runtime, false)
24
+ Java::Monkstone::MathToolLibrary.load(JRuby.runtime)
25
25
  # Include some core processing classes that we'd like to use:
26
26
  include_package 'processing.core'
27
27
 
@@ -4,7 +4,7 @@ require_relative '../rpextras'
4
4
 
5
5
  module Processing
6
6
  # Provides some convenience methods available in vanilla processing
7
- Java::Monkstone::MathToolLibrary.new.load(JRuby.runtime, false)
7
+ Java::Monkstone::MathToolLibrary.load(JRuby.runtime)
8
8
  module HelperMethods
9
9
  # processings epsilon may not be defined yet
10
10
  EPSILON ||= 1.0e-04
@@ -50,20 +50,6 @@ module Processing
50
50
  end
51
51
  end
52
52
 
53
- # Explicitly provides 'processing.org' map instance method, in which
54
- # value is mapped from range 1, to range 2 (NB: values are not clamped to
55
- # range 1). It may be better to explicitly write your own interpolate
56
- # function
57
- # @param [float] value input
58
- # @param [range] start1, stop1
59
- # @param [range] start2, stop2
60
- # @return [float] mapped value
61
- def map(value, start1, stop1, start2, stop2)
62
- start2 + (stop2 - start2) * ((value - start1).to_f / (stop1 - start1))
63
- warn('map is deprecated use p5map or map1d instead')
64
- end
65
- # deprecate :map, :p5map, 2015, 12
66
-
67
53
  # explicitly provide 'processing.org' min instance method
68
54
  # to return a float:- a, b and c need to be floats
69
55
 
@@ -89,12 +75,6 @@ module Processing
89
75
  fail ArgumentError, 'takes 4 or 6 parameters'
90
76
  end
91
77
 
92
- # explicitly provide 'processing.org' constrain instance method
93
- # to return a float:- amt, low and high need to be floats
94
- def constrain(amt, low, high)
95
- (low..high).clip(amt)
96
- end
97
-
98
78
  # Uses PImage class method under hood
99
79
  def blend_color(c1, c2, mode)
100
80
  Java::ProcessingCore::PImage.blendColor(c1, c2, mode)
@@ -1,3 +1,3 @@
1
1
  module RubyProcessing
2
- VERSION = '2.6.15'
2
+ VERSION = '2.6.16'
3
3
  end
@@ -1,4 +1,4 @@
1
1
  require_relative '../../lib/ruby-processing'
2
2
  require "#{RP5_ROOT}/lib/rpextras"
3
3
 
4
- Java::MonkstoneFastmath::DeglutLibrary.new.load(JRuby.runtime, false)
4
+ Java::MonkstoneFastmath::DeglutLibrary.load(JRuby.runtime)
@@ -1,9 +1,9 @@
1
1
  require_relative '../../lib/ruby-processing'
2
2
  require "#{RP5_ROOT}/lib/rpextras"
3
3
 
4
- Java::MonkstoneArcball::ArcballLibrary.new.load(JRuby.runtime, false)
5
- Java::MonkstoneVecmathVec2::Vec2Library.new.load(JRuby.runtime, false)
6
- Java::MonkstoneVecmathVec3::Vec3Library.new.load(JRuby.runtime, false)
4
+ Java::MonkstoneArcball::ArcballLibrary.load(JRuby.runtime)
5
+ Java::MonkstoneVecmathVec2::Vec2Library.load(JRuby.runtime)
6
+ Java::MonkstoneVecmathVec3::Vec3Library.load(JRuby.runtime)
7
7
 
8
8
  AppRender ||= Java::MonkstoneVecmath::AppRender
9
9
  ShapeRender ||= Java::MonkstoneVecmath::ShapeRender
@@ -8,7 +8,7 @@ WARNING = <<-EOS
8
8
 
9
9
  EOS
10
10
 
11
- JRUBYC_VERSION = '1.7.22'
11
+ JRUBYC_VERSION = '1.7.23'
12
12
  EXAMPLES = '1.7'
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", "42dc9be2f706774c24ef61ec2981d05e2c79a9e2")
30
+ check_sha1("jruby-complete-#{JRUBYC_VERSION}.jar", "98150edb47ccc36917c1ef475d694b91a3356245")
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: ruby-processing
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.15
4
+ version: 2.6.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Ashkenas
@@ -16,80 +16,66 @@ authors:
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
- date: 2015-08-21 00:00:00.000000000 Z
19
+ date: 2015-11-25 00:00:00.000000000 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- requirement: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.10'
27
22
  name: bundler
28
- prerelease: false
29
- type: :development
30
23
  version_requirements: !ruby/object:Gem::Requirement
31
24
  requirements:
32
- - - "~>"
25
+ - - ~>
33
26
  - !ruby/object:Gem::Version
34
27
  version: '1.10'
35
- - !ruby/object:Gem::Dependency
36
28
  requirement: !ruby/object:Gem::Requirement
37
29
  requirements:
38
- - - "~>"
30
+ - - ~>
39
31
  - !ruby/object:Gem::Version
40
- version: '10.4'
41
- name: rake
32
+ version: '1.10'
42
33
  prerelease: false
43
34
  type: :development
35
+ - !ruby/object:Gem::Dependency
36
+ name: rake
44
37
  version_requirements: !ruby/object:Gem::Requirement
45
38
  requirements:
46
- - - "~>"
39
+ - - ~>
47
40
  - !ruby/object:Gem::Version
48
41
  version: '10.4'
49
- - !ruby/object:Gem::Dependency
50
42
  requirement: !ruby/object:Gem::Requirement
51
43
  requirements:
52
- - - "~>"
44
+ - - ~>
53
45
  - !ruby/object:Gem::Version
54
- version: '0.9'
55
- name: rake-compiler
46
+ version: '10.4'
56
47
  prerelease: false
57
48
  type: :development
49
+ - !ruby/object:Gem::Dependency
50
+ name: rake-compiler
58
51
  version_requirements: !ruby/object:Gem::Requirement
59
52
  requirements:
60
- - - "~>"
53
+ - - ~>
61
54
  - !ruby/object:Gem::Version
62
55
  version: '0.9'
63
- - !ruby/object:Gem::Dependency
64
56
  requirement: !ruby/object:Gem::Requirement
65
57
  requirements:
66
- - - "~>"
58
+ - - ~>
67
59
  - !ruby/object:Gem::Version
68
- version: '5.8'
69
- name: minitest
60
+ version: '0.9'
70
61
  prerelease: false
71
62
  type: :development
63
+ - !ruby/object:Gem::Dependency
64
+ name: minitest
72
65
  version_requirements: !ruby/object:Gem::Requirement
73
66
  requirements:
74
- - - "~>"
67
+ - - ~>
75
68
  - !ruby/object:Gem::Version
76
69
  version: '5.8'
77
- - !ruby/object:Gem::Dependency
78
70
  requirement: !ruby/object:Gem::Requirement
79
71
  requirements:
80
- - - "~>"
72
+ - - ~>
81
73
  - !ruby/object:Gem::Version
82
- version: '3.3'
83
- name: rspec
74
+ version: '5.8'
84
75
  prerelease: false
85
76
  type: :development
86
- version_requirements: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - "~>"
89
- - !ruby/object:Gem::Version
90
- version: '3.3'
91
77
  description: " Ruby-Processing is a ruby wrapper for the processing-2.0 art framework.\n\
92
- \ This version supports processing-2.2.1, and uses jruby-complete-1.7.22 or an\
78
+ \ This version supports processing-2.2.1, and uses jruby-complete-1.7.23 or an\
93
79
  \ \n installed jruby as the glue between ruby and java. Use both processing \n\
94
80
  \ libraries and ruby gems in your sketches. The \"watch\" mode, provides a \n \
95
81
  \ nice REPL-ish way to work on your processing sketches. \n"
@@ -149,12 +135,12 @@ require_paths:
149
135
  - lib
150
136
  required_ruby_version: !ruby/object:Gem::Requirement
151
137
  requirements:
152
- - - ">="
138
+ - - '>='
153
139
  - !ruby/object:Gem::Version
154
140
  version: 1.9.3
155
141
  required_rubygems_version: !ruby/object:Gem::Requirement
156
142
  requirements:
157
- - - ">="
143
+ - - '>='
158
144
  - !ruby/object:Gem::Version
159
145
  version: '0'
160
146
  requirements: