jruby_art 1.0.2 → 1.0.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
  SHA1:
3
- metadata.gz: 48d37b040cb7e365cbf1d094c67d9d919842963e
4
- data.tar.gz: 166054a0b6e271e12fc13472f514dc3df6ddc875
3
+ metadata.gz: 96ea5bf6d9711bdc36b0aaf432aecfc58063f9bf
4
+ data.tar.gz: c8d61f759538b91eb39f0787d9385f6fc539674d
5
5
  SHA512:
6
- metadata.gz: 9f5e7ab20d51a274f5b6cb2b9261ab3ff6c1ab53efc7265d1ee915edfb5f3e1a64a846d3216232b762af2d7d6b7877218111c1ee02f766d4d4455ffa0540a428
7
- data.tar.gz: 9e789af265ac0219e29abd05a03f8d0e61e3867d78e993a5f10fe3b2ff34c26daa21333f04a6fe599d785c4608edd10e9cb55e57e0df11e04053f609c0dcb9e0
6
+ metadata.gz: a83c65f9b8d7c927c3aac436f58e51eea66bcc2105d39bc56269a95a174b22647301efcffaeded3fea88853e1b64a8442d1136f07086e1d169779f1da45a16e8
7
+ data.tar.gz: 9f378b5748571551737679735fda13c52c79cabf6b698472a81cbc40875ee40b798b0ec3e4d4399c35247ff57ac41eeee5cc1b42920a4116fd6c9c95028f6476
data/lib/jruby_art/app.rb CHANGED
@@ -8,7 +8,7 @@ require_relative '../jruby_art/config'
8
8
 
9
9
  # A wrapper module for the processing App
10
10
  module Processing
11
- Dir[format("%s/core/library/\*.jar", RP_CONFIG['PROCESSING_ROOT'])].each do |jar|
11
+ Dir[format("%s/core/library/\*.jar", RP_CONFIG['PROCESSING_ROOT'])].each do |jar|
12
12
  require jar unless jar =~ /native/
13
13
  end
14
14
  # Include some core processing classes that we'd like to use:
@@ -125,11 +125,11 @@ module Processing
125
125
  def sketch_title(title)
126
126
  surface.set_title(title)
127
127
  end
128
-
128
+
129
129
  def sketch_size(x, y)
130
130
  surface.set_size(x, y)
131
131
  end
132
-
132
+
133
133
  def resizable(arg = true)
134
134
  surface.set_resizable(arg)
135
135
  end
@@ -148,7 +148,7 @@ module Processing
148
148
  def close
149
149
  control_panel.remove if respond_to?(:control_panel)
150
150
  surface.stopThread
151
- surface.setVisible(false) if surface.isStopped()
151
+ surface.setVisible(false) if surface.isStopped
152
152
  dispose
153
153
  end
154
154
 
@@ -218,8 +218,8 @@ module Processing
218
218
  writer.save(template)
219
219
  end
220
220
  end
221
-
222
- # This class creates class wrapped sketches, with an optional render mode
221
+
222
+ # This class creates class wrapped sketches, with an optional render mode
223
223
  class EmacsSketch < Creator
224
224
  def emacs_template
225
225
  format(EMACS_BASIC, @name, @title, @width, @height, @name)
@@ -16,12 +16,12 @@ module Processing
16
16
  buf.end_draw
17
17
  buf
18
18
  end
19
-
19
+
20
20
  def kamera(
21
- eye: Vec3D.new(width / 2.0, height / 2.0, (height / 2.0) / tan(PI * 30.0 / 180.0)),
22
- center: Vec3D.new(width / 2.0, height / 2.0, 0),
23
- up: Vec3D.new(0, 1.0, 0))
24
- camera(eye.x, eye.y, eye.z, center.x, center.y, center.z, up.x, up.y, up.z)
21
+ eye: Vec3D.new(width / 2.0, height / 2.0, (height / 2.0) / tan(PI * 30.0 / 180.0)),
22
+ center: Vec3D.new(width / 2.0, height / 2.0, 0),
23
+ up: Vec3D.new(0, 1.0, 0))
24
+ camera(eye.x, eye.y, eye.z, center.x, center.y, center.z, up.x, up.y, up.z)
25
25
  end
26
26
 
27
27
  # A nice method to run a given block for a grid.
@@ -59,14 +59,14 @@ module Processing
59
59
  # to return a float:- a, b and c need to be floats
60
60
 
61
61
  def min(*args)
62
- args.min # { |a,b| a <=> b } optional block not reqd
62
+ args.min # { |a,b| a <=> b } optional block not reqd
63
63
  end
64
64
 
65
65
  # explicitly provide 'processing.org' max instance method
66
66
  # to return a float:- a, b and c need to be floats
67
67
 
68
68
  def max(*args)
69
- args.max # { |a, b| a <=> b } optional block not reqd
69
+ args.max # { |a, b| a <=> b } optional block not reqd
70
70
  end
71
71
 
72
72
  # explicitly provide 'processing.org' dist instance method
@@ -1,8 +1,7 @@
1
- # The processing wrapper module
2
1
  require_relative '../jruby_art'
3
2
 
3
+ # The processing wrapper module
4
4
  module Processing
5
-
6
5
  # Encapsulate library loader functionality as a class
7
6
  class LibraryLoader
8
7
  attr_reader :sketchbook_library_path
@@ -83,10 +82,10 @@ module Processing
83
82
  # for MacOSX, but does this even work, or does Mac return '64'?
84
83
  bits = 'universal'
85
84
  if java.lang.System.getProperty('sun.arch.data.model') == '32' ||
86
- java.lang.System.getProperty('java.vm.name').index('32')
85
+ java.lang.System.getProperty('java.vm.name').index('32')
87
86
  bits = '32'
88
87
  elsif java.lang.System.getProperty('sun.arch.data.model') == '64' ||
89
- java.lang.System.getProperty('java.vm.name').index('64')
88
+ java.lang.System.getProperty('java.vm.name').index('64')
90
89
  bits = '64' unless platform =~ /macosx/
91
90
  end
92
91
  [platform, platform + bits].map { |p| File.join(basename, p) }
@@ -64,7 +64,7 @@ module Processing
64
64
  def execute!
65
65
  case @options.action
66
66
  when 'run' then run(@options.path, @options.args)
67
- when 'live' then live(@options.path, @options.args)
67
+ when 'live' then live(@options.path, @options.args)
68
68
  when 'watch' then watch(@options.path, @options.args)
69
69
  when 'create' then create(@options.path, @options.args)
70
70
  when 'setup' then setup(@options.path)
@@ -103,7 +103,7 @@ module Processing
103
103
  ensure_exists(sketch)
104
104
  spin_up('run.rb', sketch, args)
105
105
  end
106
-
106
+
107
107
  # Just simply run a JRubyArt sketch.
108
108
  def live(sketch, args)
109
109
  ensure_exists(sketch)
@@ -221,11 +221,11 @@ module Processing
221
221
  warn "#{rcomplete} does not exist\nTry running `k9 setup install`"
222
222
  exit
223
223
  end
224
-
224
+
225
225
  def libraries
226
226
  %w(video sound).map { |library| sketchbook_library(library) }.flatten
227
227
  end
228
-
228
+
229
229
  def sketchbook_library(name)
230
230
  Dir["#{Processing::RP_CONFIG['sketchbook_path']}/libraries/#{name}/library/\*.jar"]
231
231
  end
@@ -252,7 +252,7 @@ module Processing
252
252
  if os == :mac
253
253
  data['PROCESSING_ROOT'] = '/Applications/Processing.app/Contents/Java'
254
254
  else
255
- root = "#{ENV['HOME']}/processing-3.0"
255
+ root = "#{ENV['HOME']}/processing-3.0.1"
256
256
  data['PROCESSING_ROOT'] = root
257
257
  end
258
258
  data['JRUBY'] = 'true'
@@ -1,3 +1,4 @@
1
+ # A wrapper for version
1
2
  module JRubyArt
2
- VERSION = '1.0.2'
3
+ VERSION = '1.0.3'
3
4
  end
data/lib/rpextras.jar CHANGED
Binary file
data/vendors/Rakefile CHANGED
@@ -9,7 +9,7 @@ WARNING = <<-EOS
9
9
  EOS
10
10
 
11
11
  JRUBYC_VERSION = '9.0.4.0'
12
- EXAMPLES = '1.2'
12
+ EXAMPLES = '1.3'
13
13
  HOME_DIR = ENV['HOME']
14
14
  MAC_OR_LINUX = /linux|mac|darwin/ =~ RbConfig::CONFIG['host_os']
15
15
 
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.0.2
4
+ version: 1.0.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: 2015-12-15 00:00:00.000000000 Z
13
+ date: 2016-01-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -40,29 +40,9 @@ dependencies:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '5.8'
43
- - !ruby/object:Gem::Dependency
44
- name: maven
45
- requirement: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '3.3'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 3.3.3
53
- type: :development
54
- prerelease: false
55
- version_requirements: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '3.3'
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: 3.3.3
63
43
  description: |2
64
44
  JRubyArt is a ruby wrapper for the processing art framework.
65
- The current version supports processing-3.0, and uses jruby-9.0.3.0
45
+ The current version supports processing-3.0.1, and uses jruby-9.0.4.0
66
46
  as the glue between ruby and java. You can use both processing libraries and ruby
67
47
  gems in your sketches. Features create/run/watch/live modes. The "watch" mode,
68
48
  provides a nice REPL-ish way to work on your processing sketches. Includes:-
@@ -123,7 +103,7 @@ requirements:
123
103
  - java runtime >= 1.8+
124
104
  - processing = 3.0.1+
125
105
  rubyforge_project:
126
- rubygems_version: 2.5.0
106
+ rubygems_version: 2.5.1
127
107
  signing_key:
128
108
  specification_version: 4
129
109
  summary: Code as Art, Art as Code. Processing and Ruby are meant for each other.