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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbcc8434378681a4cb30e911d9d1af4e4f121c300e1a291db7b33eeb5505a4f3
4
- data.tar.gz: b96b64b299432b39f088a2dbbfd064e77858b1fb57b7b220f89cc5f2f503e39f
3
+ metadata.gz: 2bcd3ab3b0b48a77141fcca550db3b1a0c09e11d29e9773c9ac223886e971305
4
+ data.tar.gz: fe10826a06846cfa142957074c9fcf823007523d911ebbce5c1f6257d17bb75d
5
5
  SHA512:
6
- metadata.gz: 01faa35b8bd2b50520ff54924f1d22442a0ec3f3de319597ef4e9a8cda3b549a8160bad6b04af87ea2e16c90394fdfd51e8589b0ab2a12eec84867715cd900dd
7
- data.tar.gz: 0ea9d9f48aff7874d1986ef2075b0ce6084f29d27e7fc2bc391e2e8ae706a0e9f8b58d3d99c10b820e44347a821e6a4b625d76a122ba62942fc8325b11833064
6
+ metadata.gz: ce225e878f58bae458104edeebff01eb714ee08c2453c67fdf0a23840790d2b2435f41dbe80e27421b97dda72e3b76855c24fabac68c0be56711b8ffb8ad8939
7
+ data.tar.gz: f11837adcbb954dff506566c4bd7845224768246907c375d6061a4eaa45ed6352ea91bd612ca9a2771cca9bd741126adb03bf423edac84a537e01144ee4ff89f
@@ -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 =~ /x86/
38
+ if RUBY_PLATFORM =~ /64/
39
39
 
40
- # puts "You have a 32-bit Architecture ruby"
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 = 'stbDLL_x86.dll', "#{__dir__}/../dlls"
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 = 'libstb_x86.so', "#{__dir__}/../dlls"
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-bit Architecture ruby"
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 = 'stbDLL_x64.dll', "#{__dir__}/../dlls"
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 = 'libstb_x64.so', "#{__dir__}/../dlls"
70
+ lib, path = 'libstb_x86.so', "#{__dir__}/../dlls"
71
71
  elsif RUBY_PLATFORM =~ /darwin/
72
72
  # puts "With macOS"
73
73
  else
@@ -1,14 +1,14 @@
1
1
  RUBY_PLATFORM = x86-mingw32
2
2
 
3
- if RUBY_PLATFORM =~ /x86/
3
+ if RUBY_PLATFORM =~ /64/
4
4
 
5
- puts "You have a 32-bit Architecture ruby"
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 = 'stbDLL_x86.dll', "#{__dir__}/../dlls"
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 = 'libstb_x86.so', "#{__dir__}/../dlls"
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 64-bit Architecture ruby"
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 = 'stbDLL_x64.dll', "#{__dir__}/../dlls"
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 = 'libstb_x64.so', "#{__dir__}/../dlls"
35
+ lib, path = 'libstb_x32.so', "#{__dir__}/../dlls"
36
36
  elsif RUBY_PLATFORM =~ /darwin/
37
37
  puts "With macOS"
38
38
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stbimage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Keresztes