jruby_art 1.0.4 → 1.0.5

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: 2b2acc334aa2bcb49c4c0ea1c80699bf8994d5bf
4
- data.tar.gz: 1b055e648c9ff3a3c5cc6411d014579b3d54337b
3
+ metadata.gz: bf8d21207bb2dfe22e678dca2a1fc520a63522ca
4
+ data.tar.gz: adf82b194889168470524499825b63f3e3f20ef8
5
5
  SHA512:
6
- metadata.gz: d6fd3f7733ba107fa41f292250b14daedbb259cb021b089d67c1c8c1f9573627d558d796c7f73a32b19348eac210c2e0acb19ed4408da1488aff65d1258bffea
7
- data.tar.gz: b87e7cc558472028e995a781df15e353e6c7f72b0a47476b36a2df0d012334202fe88dd15b7e528d4308c74ab76e2dd167546b9a687de174f4a579ce2d9e5dfd
6
+ metadata.gz: ac9e19615a363cb46559a1361935c1ba93ec4c015de899984777d41d562f166e10114d69983c2ae206f06ca8b23b94e5cd172603b5c4507a9d3e406236646c6a
7
+ data.tar.gz: 588994785d671d415d562f26499f71754ae28a49d7cbf44bfca40cd24e78cea1150d85fe7c588c3ad675ae1e9ccb9453f60dc9233d7afd46108906463970269f
data/lib/jruby_art.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: false
1
3
  # JRubyArt is for Code Art.
2
4
  # Send suggestions, ideas, and hate-mail to mamba2928 [at] gmail.com
3
5
  # Also, send samples and libraries.
data/lib/jruby_art/app.rb CHANGED
@@ -1,3 +1,6 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: false
3
+
1
4
  require 'java'
2
5
  require_relative '../rpextras'
3
6
  require_relative '../jruby_art/helper_methods'
@@ -14,11 +17,7 @@ module Processing
14
17
  # Include some core processing classes that we'd like to use:
15
18
  include_package 'processing.core'
16
19
  # Load vecmath, fastmath and mathtool modules
17
- Java::MonkstoneArcball::ArcballLibrary.load(JRuby.runtime)
18
- Java::MonkstoneVecmathVec2::Vec2Library.load(JRuby.runtime)
19
- Java::MonkstoneVecmathVec3::Vec3Library.load(JRuby.runtime)
20
- Java::MonkstoneFastmath::DeglutLibrary.load(JRuby.runtime)
21
- Java::Monkstone::MathToolLibrary.load(JRuby.runtime)
20
+ Java::Monkstone::JRLibrary.load(JRuby.runtime)
22
21
  module Render
23
22
  java_import 'monkstone.vecmath.AppRender'
24
23
  java_import 'monkstone.vecmath.ShapeRender'
@@ -1,3 +1,6 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: false
3
+
1
4
  require 'yaml'
2
5
 
3
6
  # The wrapper module
@@ -1,3 +1,6 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: false
3
+
1
4
  BASIC = <<-CODE
2
5
  def setup
3
6
  sketch_title '%s'
@@ -32,6 +35,8 @@ end
32
35
  CODE
33
36
 
34
37
  CLASS_BASIC = <<-CODE
38
+ # encoding: utf-8
39
+ # frozen_string_literal: false
35
40
  class %s < Processing::App
36
41
  def setup
37
42
  sketch_title '%s'
@@ -50,6 +55,8 @@ end
50
55
  CODE
51
56
 
52
57
  EMACS_BASIC = <<-CODE
58
+ # encoding: utf-8
59
+ # frozen_string_literal: false
53
60
  require 'jruby_art'
54
61
  require 'jruby_art/app'
55
62
 
@@ -74,6 +81,8 @@ end
74
81
  CODE
75
82
 
76
83
  CLASS_MODE = <<-CODE
84
+ # encoding: utf-8
85
+ # frozen_string_literal: false
77
86
  class %s < Processing::App
78
87
  def setup
79
88
  sketch_title '%s'
@@ -91,6 +100,8 @@ end
91
100
  CODE
92
101
 
93
102
  EMACS_MODE = <<-CODE
103
+ # encoding: utf-8
104
+ # frozen_string_literal: false
94
105
  require 'jruby_art'
95
106
  require 'jruby_art/app'
96
107
 
@@ -115,6 +126,8 @@ end
115
126
  CODE
116
127
 
117
128
  INNER = <<-CODE
129
+ # encoding: utf-8
130
+ # frozen_string_literal: false
118
131
  class %s
119
132
  include Processing::Proxy
120
133
 
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: false
1
3
  # processing module wrapper
2
4
  require_relative '../rpextras'
3
5
 
@@ -1,3 +1,6 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: false
3
+
1
4
  # Axis aligned bounding box class (AABB would clash with Toxicgem)
2
5
  class AaBb
3
6
  attr_reader :center, :extent
@@ -1,3 +1,6 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: false
3
+
1
4
  require 'forwardable'
2
5
 
3
6
  # Avoid the monkey patching of String for camelize
@@ -1,3 +1,6 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: false
3
+
1
4
  class Numeric #:nodoc:
2
5
  def degrees
3
6
  self * 180 / Math::PI
@@ -1,3 +1,6 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: false
3
+
1
4
  require 'forwardable'
2
5
 
3
6
  # Avoid the monkey patching of String for underscore/titleize/humanize
@@ -1,3 +1,6 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: false
3
+
1
4
  require_relative '../jruby_art'
2
5
 
3
6
  # The processing wrapper module
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: false
1
3
 
2
4
  require 'ostruct'
3
5
  require 'fileutils'
@@ -1,5 +1,5 @@
1
- # -*- encoding : utf-8 -*-
2
-
1
+ # encoding: utf-8
2
+ # frozen_string_literal: false
3
3
  SKETCH_PATH ||= ARGV.shift
4
4
  SKETCH_ROOT ||= File.dirname(SKETCH_PATH)
5
5
 
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: false
1
3
  # A pry shell for live coding.
2
4
  # Will start with your sketch.
3
5
  require_relative 'base'
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: false
1
3
  require_relative 'base'
2
4
 
3
5
  Processing.load_and_run_sketch
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: false
1
3
  require_relative 'base'
2
4
  require_relative '../config'
3
5
 
@@ -1,4 +1,6 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: true
1
3
  # A wrapper for version
2
4
  module JRubyArt
3
- VERSION = '1.0.4'
5
+ VERSION = '1.0.5'
4
6
  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.5.0'
12
- EXAMPLES = '1.3'
12
+ EXAMPLES = '1.4'
13
13
  HOME_DIR = ENV['HOME']
14
14
  MAC_OR_LINUX = /linux|mac|darwin/ =~ RbConfig::CONFIG['host_os']
15
15
 
@@ -38,7 +38,7 @@ task :copy_ruby => ["../lib/ruby"] do
38
38
  end
39
39
 
40
40
  def check_sha256(filename, expected_hash)
41
- require "digest/sha256"
41
+ require "digest"
42
42
  sha256 = Digest::SHA256.new
43
43
  File.open(filename, "r") do |f|
44
44
  while buf = f.read(4096)
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.4
4
+ version: 1.0.5
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: 2016-01-26 00:00:00.000000000 Z
13
+ date: 2016-03-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -42,7 +42,7 @@ dependencies:
42
42
  version: '5.8'
43
43
  description: |2
44
44
  JRubyArt is a ruby wrapper for the processing art framework.
45
- The current version supports processing-3.0.1, and uses jruby-9.0.5.0
45
+ The current version supports processing-3.0.2, and uses jruby-9.0.5.0
46
46
  as the glue between ruby and java. You can use both processing libraries and ruby
47
47
  gems in your sketches. Features create/run/watch/live modes. The "watch" mode,
48
48
  provides a nice REPL-ish way to work on your processing sketches. Includes:-
@@ -103,7 +103,7 @@ requirements:
103
103
  - java runtime >= 1.8+
104
104
  - processing = 3.0.1+
105
105
  rubyforge_project:
106
- rubygems_version: 2.5.1
106
+ rubygems_version: 2.5.2
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: Code as Art, Art as Code. Processing and Ruby are meant for each other.