jruby_art 1.0.8 → 1.1.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: 0d4599fd8c0c7d899d61ea1e1ecca52d32121e98
4
- data.tar.gz: fe74a65d0f2eea372b0e21c3b907a36277dcec67
3
+ metadata.gz: 768acc0892155a89dc272b44555807360cf19e77
4
+ data.tar.gz: a84e604d5ebb6d7b8a74adfe4069a3ffa928bf3f
5
5
  SHA512:
6
- metadata.gz: 09f2e4a8f740b67d5b044cd7e9c4a22399c24aa58a974752c9f2f7acaabfbfe387cc7b7bcda901416492301c5306ca70f6d937dc359c39bbae1266925c1aca23
7
- data.tar.gz: e0dde3f5d1cc6ea6bcb24874df72ad5c4c7537c6c051c9821d543c77942742c1863c6e3078af1b58d278d5cd9cb8c709463b99a7724095158f7067e077d01c32
6
+ metadata.gz: 1b418995c7548f8b571f3b7e5435594ebcf27104f2256c6f042883950b75ca682d098f391dc38504a8dbf0ebd98405689d9bc7b6ef58e3d44ad8df21957c7936
7
+ data.tar.gz: 7e8c0b404e611976b384bde56e96e9bf73a3647c2dcb41c278a7aed5ef90e3c1e2499038b9697f694cd135be45ddf4a515b4a983afc78f9b9fc96cc47a1ef883
data/lib/jruby_art/app.rb CHANGED
@@ -125,11 +125,17 @@ module Processing
125
125
  surface.set_title(title)
126
126
  end
127
127
 
128
- def sketchPath(spath = nil)
128
+ def sketch_path(spath = nil)
129
129
  return super() if spath.nil?
130
130
  super(spath)
131
131
  end
132
132
 
133
+ def data_path(dat)
134
+ dat_root = File.join(SKETCH_ROOT, 'data')
135
+ Dir.mkdir(dat_root) unless File.exist?(dat_root)
136
+ File.join(dat_root, dat)
137
+ end
138
+
133
139
  def sketch_size(x, y)
134
140
  surface.set_size(x, y)
135
141
  end
@@ -136,11 +136,6 @@ module Processing
136
136
  @java_self ||= to_java(Java::ProcessingCore::PApplet)
137
137
  end
138
138
 
139
- # Get the sketch path
140
- def sketch_path
141
- @declared_fields['sketchPath'].value(java_self)
142
- end
143
-
144
139
  # Fields that should be made accessible as under_scored.
145
140
  define_method(:mouse_x) { mouseX }
146
141
 
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
  # A wrapper for version
4
4
  module JRubyArt
5
- VERSION = '1.0.8'
5
+ VERSION = '1.1.0'
6
6
  end
data/lib/rpextras.jar CHANGED
Binary file
data/vendors/Rakefile CHANGED
@@ -8,8 +8,8 @@ WARNING = <<-EOS
8
8
 
9
9
  EOS
10
10
 
11
- JRUBYC_VERSION = '9.1.0.0'
12
- EXAMPLES = '1.7'
11
+ JRUBYC_VERSION = '9.1.1.0'
12
+ EXAMPLES = '1.0'
13
13
  HOME_DIR = ENV['HOME']
14
14
  MAC_OR_LINUX = /linux|mac|darwin/ =~ RbConfig::CONFIG['host_os']
15
15
 
@@ -27,7 +27,7 @@ file "jruby-complete-#{JRUBYC_VERSION}.jar" do
27
27
  rescue
28
28
  warn(WARNING)
29
29
  end
30
- check_sha256("jruby-complete-#{JRUBYC_VERSION}.jar", "8a4b5f4cbdcfd43272002a543a59abfbf419577ef679273d4893a4f09594267e")
30
+ check_sha256("jruby-complete-#{JRUBYC_VERSION}.jar", "659a2b120a02e8df55dddf3836e34023c80313a1c08b159ba3882f7d25ff8ef2")
31
31
  end
32
32
 
33
33
  directory "../lib/ruby"
@@ -59,9 +59,9 @@ file_name = (MAC_OR_LINUX.nil?) ? "#{EXAMPLES}.zip" : "#{EXAMPLES}.tar.gz"
59
59
  file file_name do
60
60
  begin
61
61
  if MAC_OR_LINUX.nil?
62
- sh "wget https://github.com/ruby-processing/samples4ruby-processing3/archive/#{EXAMPLES}.zip"
62
+ sh "wget https://github.com/ruby-processing/JRubyArt-examples/archive/#{EXAMPLES}.zip"
63
63
  else
64
- sh "wget https://github.com/ruby-processing/samples4ruby-processing3/archive/#{EXAMPLES}.tar.gz"
64
+ sh "wget https://github.com/ruby-processing/JRubyArt-examples/archive/#{EXAMPLES}.tar.gz"
65
65
  end
66
66
  rescue
67
67
  warn(WARNING)
@@ -76,6 +76,6 @@ task :copy_examples => file_name do
76
76
  sh "tar xzvf #{EXAMPLES}.tar.gz"
77
77
  end
78
78
  sh "rm -r #{HOME_DIR}/k9_samples" if File.exist? "#{HOME_DIR}/k9_samples"
79
- sh "cp -r samples4ruby-processing3-#{EXAMPLES} #{HOME_DIR}/k9_samples"
80
- sh "rm -r samples4ruby-processing3-#{EXAMPLES}"
81
- end
79
+ sh "cp -r JRubyArt-examples-#{EXAMPLES} #{HOME_DIR}/k9_samples"
80
+ sh "rm -r JRubyArt-examples-#{EXAMPLES}"
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: 1.0.8
4
+ version: 1.1.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: 2016-05-19 00:00:00.000000000 Z
13
+ date: 2016-05-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -41,7 +41,7 @@ dependencies:
41
41
  - !ruby/object:Gem::Version
42
42
  version: '5.8'
43
43
  description: " JRubyArt is a ruby wrapper for the processing art framework.\n This
44
- version supports processing-3.1.1, and uses jruby-9.1.0.0 as the glue \n between
44
+ version supports processing-3.1.1, and uses jruby-9.1.1.0 as the glue \n between
45
45
  ruby and java. You can use both processing libraries and ruby gems \n in your sketches.
46
46
  Features create/run/watch/live modes. The \"watch\" mode,\n provides a nice REPL-ish
47
47
  way to work on your processing sketches. Includes:-\n A \"Control Panel\" library,