stbimage 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stbimage.rb +7 -7
- data/utils/system_check.rb +7 -7
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2bcd3ab3b0b48a77141fcca550db3b1a0c09e11d29e9773c9ac223886e971305
|
|
4
|
+
data.tar.gz: fe10826a06846cfa142957074c9fcf823007523d911ebbce5c1f6257d17bb75d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce225e878f58bae458104edeebff01eb714ee08c2453c67fdf0a23840790d2b2435f41dbe80e27421b97dda72e3b76855c24fabac68c0be56711b8ffb8ad8939
|
|
7
|
+
data.tar.gz: f11837adcbb954dff506566c4bd7845224768246907c375d6061a4eaa45ed6352ea91bd612ca9a2771cca9bd741126adb03bf423edac84a537e01144ee4ff89f
|
data/lib/stbimage.rb
CHANGED
|
@@ -35,15 +35,15 @@ module STBIMAGE
|
|
|
35
35
|
def self.load_lib(lib = nil, path = nil, output_error = false)
|
|
36
36
|
if lib == nil && path == nil
|
|
37
37
|
|
|
38
|
-
if RUBY_PLATFORM =~ /
|
|
38
|
+
if RUBY_PLATFORM =~ /64/
|
|
39
39
|
|
|
40
|
-
# puts "You have a
|
|
40
|
+
# puts "You have a 64-bit Architecture ruby"
|
|
41
41
|
if RUBY_PLATFORM =~ /mswin/ || RUBY_PLATFORM =~ /mingw/
|
|
42
42
|
# puts "With Windows"
|
|
43
|
-
lib, path = '
|
|
43
|
+
lib, path = 'stbDLL_x64.dll', "#{__dir__}/../dlls"
|
|
44
44
|
elsif RUBY_PLATFORM =~ /linux/ || RUBY_PLATFORM =~ /cygwin/
|
|
45
45
|
# puts "With Linux"
|
|
46
|
-
lib, path = '
|
|
46
|
+
lib, path = 'libstb_x64.so', "#{__dir__}/../dlls"
|
|
47
47
|
elsif RUBY_PLATFORM =~ /darwin/
|
|
48
48
|
# puts "With macOS"
|
|
49
49
|
else
|
|
@@ -61,13 +61,13 @@ module STBIMAGE
|
|
|
61
61
|
|
|
62
62
|
else
|
|
63
63
|
|
|
64
|
-
# puts "You have a
|
|
64
|
+
# puts "You have a 32-bit Architecture ruby"
|
|
65
65
|
if RUBY_PLATFORM =~ /mswin/ || RUBY_PLATFORM =~ /mingw/
|
|
66
66
|
# puts "With Windows"
|
|
67
|
-
lib, path = '
|
|
67
|
+
lib, path = 'stbDLL_x86.dll', "#{__dir__}/../dlls"
|
|
68
68
|
elsif RUBY_PLATFORM =~ /linux/ || RUBY_PLATFORM =~ /cygwin/
|
|
69
69
|
# puts "With Linux"
|
|
70
|
-
lib, path = '
|
|
70
|
+
lib, path = 'libstb_x86.so', "#{__dir__}/../dlls"
|
|
71
71
|
elsif RUBY_PLATFORM =~ /darwin/
|
|
72
72
|
# puts "With macOS"
|
|
73
73
|
else
|
data/utils/system_check.rb
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
RUBY_PLATFORM = x86-mingw32
|
|
2
2
|
|
|
3
|
-
if RUBY_PLATFORM =~ /
|
|
3
|
+
if RUBY_PLATFORM =~ /64/
|
|
4
4
|
|
|
5
|
-
puts "You have a
|
|
5
|
+
puts "You have a 64-bit Architecture ruby"
|
|
6
6
|
if RUBY_PLATFORM =~ /mswin/ || RUBY_PLATFORM =~ /mingw/
|
|
7
7
|
puts "With Windows"
|
|
8
|
-
lib, path = '
|
|
8
|
+
lib, path = 'stbDLL_x64.dll', "#{__dir__}/../dlls"
|
|
9
9
|
elsif RUBY_PLATFORM =~ /linux/ || RUBY_PLATFORM =~ /cygwin/
|
|
10
10
|
puts "With Linux"
|
|
11
|
-
lib, path = '
|
|
11
|
+
lib, path = 'libstb_x64.so', "#{__dir__}/../dlls"
|
|
12
12
|
elsif RUBY_PLATFORM =~ /darwin/
|
|
13
13
|
puts "With macOS"
|
|
14
14
|
else
|
|
@@ -26,13 +26,13 @@ elsif RUBY_PLATFORM =~ /java/
|
|
|
26
26
|
|
|
27
27
|
else
|
|
28
28
|
|
|
29
|
-
puts "You have a
|
|
29
|
+
puts "You have a 32-bit Architecture ruby"
|
|
30
30
|
if RUBY_PLATFORM =~ /mswin/ || RUBY_PLATFORM =~ /mingw/
|
|
31
31
|
puts "With Windows"
|
|
32
|
-
lib, path = '
|
|
32
|
+
lib, path = 'stbDLL_x32.dll', "#{__dir__}/../dlls"
|
|
33
33
|
elsif RUBY_PLATFORM =~ /linux/ || RUBY_PLATFORM =~ /cygwin/
|
|
34
34
|
puts "With Linux"
|
|
35
|
-
lib, path = '
|
|
35
|
+
lib, path = 'libstb_x32.so', "#{__dir__}/../dlls"
|
|
36
36
|
elsif RUBY_PLATFORM =~ /darwin/
|
|
37
37
|
puts "With macOS"
|
|
38
38
|
else
|