jruby-slick 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/jruby-slick/tasks/jruby-slick.rake +14 -4
- metadata +6 -10
@@ -27,7 +27,7 @@ task :setup_natives do
|
|
27
27
|
puts "Since you are using windows, please specify whether you are using 32 or 64 bit (32/64)"
|
28
28
|
bit = ''
|
29
29
|
until valid
|
30
|
-
bit = gets.chomp
|
30
|
+
bit = $stdin.gets.chomp
|
31
31
|
valid = /^(32|64)$/ =~ bit
|
32
32
|
puts "Please enter 32 or 64" if !valid
|
33
33
|
end
|
@@ -52,8 +52,18 @@ task :setup_natives do
|
|
52
52
|
if entry.file? && /^lwjgl-2.8.5\/native\/#{platform[0]}/ =~ entry.name
|
53
53
|
target = "bin/#{entry.name.split('/')[-1]}"
|
54
54
|
unless File.exists? target
|
55
|
-
|
56
|
-
|
55
|
+
if platform.index("windows")
|
56
|
+
if platform.index("64") && target.index("64")
|
57
|
+
entry.extract target.gsub("64", "")
|
58
|
+
puts "wrote file: #{target}"
|
59
|
+
elsif platform.index("32") && target.index("64").nil?
|
60
|
+
extry.extract target
|
61
|
+
puts "wrote file: #{target}"
|
62
|
+
end
|
63
|
+
else
|
64
|
+
entry.extract target
|
65
|
+
puts "wrote file: #{target}"
|
66
|
+
end
|
57
67
|
end
|
58
68
|
elsif entry.file? && entry.name == "lwjgl-2.8.5/jar/lwjgl.jar" || entry.name == "lwjgl-2.8.5/jar/jinput.jar"
|
59
69
|
target = "vendor/slick/#{entry.name.split('/')[-1]}"
|
@@ -93,4 +103,4 @@ task :generate_game_state, :file_name, :class_name do |t, args|
|
|
93
103
|
IO.write("lib/#{file_name}", text.gsub("ExampleGameState", class_name))
|
94
104
|
puts "Created file lib/#{file_name}"
|
95
105
|
end
|
96
|
-
end
|
106
|
+
end
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: jruby-slick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.1.
|
5
|
+
version: 1.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Aaron McLeod
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubyzip
|
@@ -55,14 +55,10 @@ executables:
|
|
55
55
|
extensions: []
|
56
56
|
extra_rdoc_files: []
|
57
57
|
files:
|
58
|
-
-
|
59
|
-
|
60
|
-
-
|
61
|
-
|
62
|
-
- !binary |-
|
63
|
-
anJ1Ynktc2xpY2svdGVtcGxhdGUvZXhhbXBsZV9nYW1lX3N0YXRlLnJi
|
64
|
-
- !binary |-
|
65
|
-
YmluL2pydWJ5LXNsaWNrLnJi
|
58
|
+
- jruby-slick/tasks/jruby-slick.rake
|
59
|
+
- jruby-slick/template/example.rb
|
60
|
+
- jruby-slick/template/example_game_state.rb
|
61
|
+
- bin/jruby-slick.rb
|
66
62
|
- .gitignore
|
67
63
|
- Rakefile
|
68
64
|
homepage: http://github.com/agmcleod/jruby-slick
|