stbimage 0.5.0 → 1.0.0
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/README.md +120 -31
- data/{dlls → lib/dlls}/libstb_arm.so +0 -0
- data/{dlls → lib/dlls}/libstb_x64.so +0 -0
- data/{dlls → lib/dlls}/libstb_x86.so +0 -0
- data/{dlls → lib/dlls}/stbDLL_x64.dll +0 -0
- data/{dlls → lib/dlls}/stbDLL_x86.dll +0 -0
- data/lib/stbimage.rb +10 -10
- data/stb-source/stb_image.c +7250 -0
- data/stb-source/stb_image.h +7739 -0
- data/utils/system_check.rb +9 -9
- metadata +14 -14
data/utils/system_check.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
RUBY_PLATFORM = x86-mingw32
|
2
1
|
|
3
|
-
if RUBY_PLATFORM =~ /x86/
|
4
2
|
|
5
|
-
|
3
|
+
if RUBY_PLATFORM =~ /64/
|
4
|
+
|
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
|
@@ -48,4 +48,4 @@ end
|
|
48
48
|
# lib, path = 'stbDLL_x86.dll', "#{__dir__}/../dlls"
|
49
49
|
# elsif RUBY_PLATFORM =~ /x86_linux/
|
50
50
|
# lib, path = 'libstd_x86.so', "#{__dir__}/../dlls"
|
51
|
-
# else
|
51
|
+
# else
|
metadata
CHANGED
@@ -1,32 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stbimage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Keresztes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
14
|
-
|
15
|
-
|
16
|
-
with linux so far, but for macOS, users have to include . Checkout the Homepage
|
17
|
-
for more info (installation, usage and other information)"
|
13
|
+
description: 'A practical image importer/loader. It wraps stb_image.h (ver:2.26 -2020.07.13-).
|
14
|
+
Supported image formats are: JPEG, PNG, TGA, BMP, PSD, GIF(not animation), HDR,
|
15
|
+
PIC, PNM. Checkout the Homepage for usage in Windows, MacOs, Linux or ARM'
|
18
16
|
email: ''
|
19
17
|
executables: []
|
20
18
|
extensions: []
|
21
19
|
extra_rdoc_files: []
|
22
20
|
files:
|
23
21
|
- README.md
|
24
|
-
- dlls/libstb_arm.so
|
25
|
-
- dlls/libstb_x64.so
|
26
|
-
- dlls/libstb_x86.so
|
27
|
-
- dlls/stbDLL_x64.dll
|
28
|
-
- dlls/stbDLL_x86.dll
|
22
|
+
- lib/dlls/libstb_arm.so
|
23
|
+
- lib/dlls/libstb_x64.so
|
24
|
+
- lib/dlls/libstb_x86.so
|
25
|
+
- lib/dlls/stbDLL_x64.dll
|
26
|
+
- lib/dlls/stbDLL_x86.dll
|
29
27
|
- lib/stbimage.rb
|
28
|
+
- stb-source/stb_image.c
|
29
|
+
- stb-source/stb_image.h
|
30
30
|
- utils/system_check.rb
|
31
31
|
homepage: https://github.com/fellowchap-samuel/stbimage-ruby
|
32
32
|
licenses:
|
@@ -47,8 +47,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
requirements: []
|
50
|
-
rubygems_version: 3.1.
|
50
|
+
rubygems_version: 3.1.6
|
51
51
|
signing_key:
|
52
52
|
specification_version: 4
|
53
|
-
summary: Bindings
|
53
|
+
summary: Bindings of the often used header stb_image.h
|
54
54
|
test_files: []
|