Skip to content

Commit

Permalink
Adjust gemspec etc
Browse files Browse the repository at this point in the history
  • Loading branch information
monkstone committed May 27, 2018
1 parent 94d2cf2 commit 8bd34e1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions lib/picrate/native_folder.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require 'rbconfig'

# Utility to load native binaries on Java CLASSPATH
#HACK until jruby returns a more specific 'host_os' than 'linux'
class NativeFolder
attr_reader :os, :bit

Expand All @@ -14,12 +15,14 @@ def initialize
end

def name
return format(LINUX_FORMAT, '64') if /linux/.match?(os) && /amd64/.match?(bit)
format(LINUX_FORMAT, ARM32)
if /linux/.match?(os)
return format(LINUX_FORMAT, '64') if /amd64/.match?(bit)
return format(LINUX_FORMAT, ARM32) if /arm/.match?(bit)
end
raise RuntimeError, "Unsupported Archicture"
end

def extension
return '*.so' if /linux/.match?(os)
raise RuntimeError, "Unsupported Archicture"
'*.so'
end
end
2 changes: 1 addition & 1 deletion lib/picrate/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true
module PiCrate
VERSION = '0.1.0.pre'.freeze
VERSION = '0.1.0'.freeze
end
2 changes: 1 addition & 1 deletion picrate.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
gem.summary = %q{ruby wrapper for processing-3.3.7 on raspberrypi and linux64}
gem.homepage = 'https://ruby-processing.github.io/PiCrate/'
gem.files = `git ls-files`.split($/)
gem.files << 'lib/picrate-0.0.3.jar'
gem.files << 'lib/picrate-0.1.0.jar'
gem.files << 'lib/gluegen-rt-2.3.2.jar'
gem.files << 'lib/jogl-all-2.3.2.jar'
gem.files << 'lib/gluegen-rt-2.3.2-natives-linux-amd64.jar'
Expand Down

0 comments on commit 8bd34e1

Please sign in to comment.