ruby-processing 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ v1.0.8 Polishing the Windows...
2
+ * Windows Application exporting works again, merely by virtue of
3
+ not cluttering up the classpath.
4
+ * Safer Ruby Platform detection.
5
+
1
6
  v1.0.7 Stability...
2
7
  * Added preliminary support for embedding Ruby-Processing in the Processing
3
8
  IDE (see the ruby-processing-plugin project).
@@ -14,7 +14,7 @@ require 'ruby-processing/helpers/numeric'
14
14
 
15
15
  # The top-level namespace, a home for all Ruby-Processing classes.
16
16
  module Processing
17
- VERSION = [1,0,7] unless defined? Processing::VERSION
17
+ VERSION = [1,0,8] unless defined? Processing::VERSION
18
18
 
19
19
  # Returns the current version of Ruby-Processing.
20
20
  def self.version
@@ -52,7 +52,7 @@ module Processing
52
52
  end
53
53
 
54
54
  def calculate_substitutions
55
- file_list = Dir.glob(@dest + "{/**/*.{rb,jar},/data/*.*}").map {|f| f.sub(@dest + "/", "")}
55
+ file_list = ['lib/core/jruby-complete.jar']
56
56
  @class_path = file_list.map {|f| "$JAVAROOT/" + f.sub(@prefix+"/", "") }.join(":")
57
57
  @linux_class_path = file_list.map{|f| f.sub(@prefix+"/", "")}.join(":")
58
58
  @windows_class_path = file_list.map{|f| f.sub(@prefix+"/", "")}.join(",")
@@ -72,7 +72,7 @@ module Processing
72
72
  cd @dest + "/Contents/Resources"
73
73
  # Poor ol' windows can't symlink.
74
74
  # TODO...
75
- win = RUBY_PLATFORM.match(/mswin/)
75
+ win = RUBY_PLATFORM.match(/mswin/i) || (RUBY_PLATFORM == 'java' && ENV_JAVA['os.name'].match(/windows/i))
76
76
  puts "\n[warning] Applications exported from Windows won't run on Macs...\n" if win
77
77
  ln_s('../../lib', 'Java') unless win
78
78
  end
@@ -145,7 +145,7 @@ module Processing
145
145
 
146
146
  # On the Mac, we can display a fat, shiny ruby in the Dock.
147
147
  def dock_icon
148
- mac = RUBY_PLATFORM.match(/darwin/i)
148
+ mac = RUBY_PLATFORM.match(/darwin/i) || (RUBY_PLATFORM == 'java' && ENV_JAVA['os.name'].match(/mac/i))
149
149
  mac ? "-Xdock:name=Ruby-Processing -Xdock:icon=#{RP5_ROOT}/lib/templates/application/Contents/Resources/sketch.icns" : ""
150
150
  end
151
151
 
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: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Ashkenas
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2009-04-22 00:00:00 -04:00
20
+ date: 2009-04-29 00:00:00 -04:00
21
21
  default_executable: rp5
22
22
  dependencies: []
23
23