upil_types 1.0.0 → 1.0.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/interface_file/upil_types_interface_file.rb +63 -0
- data/lib/upil_types/upil_types_1_9.so +0 -0
- data/lib/upil_types/upil_types_2_0.so +0 -0
- data/lib/upil_types/upil_types_2_1.so +0 -0
- data/lib/upil_types/upil_types_2_2.so +0 -0
- data/lib/upil_types/upil_types_2_3.so +0 -0
- data/lib/upil_types/upil_types_2_4.so +0 -0
- data/lib/upil_types.rb +18 -1
- metadata +8 -2
- data/lib/upil_types/upil_types.so +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ce7df6fe7d33f9845d86613b09aea11fbe076d5
|
4
|
+
data.tar.gz: 86ff72f05f7934db53c3cd10059a45159d952c7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a350faf89380c94a951be2db422d771fc4517f9432a7426d670bee41efd7b90ab14a83ed1697f53c1385e2f979ffae97b64462f282639d54e763be3eea61adb7
|
7
|
+
data.tar.gz: b652ea42c764a5d0fd2b2a0a396372f66d07e664e388fa419cabd4fbaa382a88680cd80a8b262431a2b025bd5a74820c48fc007274f9089fd5d9558b06bac62a
|
@@ -0,0 +1,63 @@
|
|
1
|
+
=begin
|
2
|
+
This interface file for the Ruby Wrapper serves as a reference for using the C Upil Types.
|
3
|
+
It is provided for information purposes only and must not be included in your source code.
|
4
|
+
=end
|
5
|
+
|
6
|
+
|
7
|
+
#define class UpilBoolean
|
8
|
+
class UpilBoolean
|
9
|
+
|
10
|
+
def initialize(value)
|
11
|
+
#Instance variables
|
12
|
+
@value = value
|
13
|
+
end
|
14
|
+
|
15
|
+
def get_value()
|
16
|
+
end
|
17
|
+
|
18
|
+
def set_value(value)
|
19
|
+
#Instance variables
|
20
|
+
@value = value
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
|
26
|
+
#define class UpilInteger32
|
27
|
+
class UpilInteger32
|
28
|
+
|
29
|
+
def initialize(value)
|
30
|
+
#Instance variables
|
31
|
+
@value = value
|
32
|
+
end
|
33
|
+
|
34
|
+
def get_value()
|
35
|
+
end
|
36
|
+
|
37
|
+
def set_value(value)
|
38
|
+
#Instance variables
|
39
|
+
@value = value
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
|
45
|
+
#define class UpilBuffer
|
46
|
+
class UpilBuffer
|
47
|
+
|
48
|
+
def initialize(string)
|
49
|
+
end
|
50
|
+
|
51
|
+
def to_string()
|
52
|
+
end
|
53
|
+
|
54
|
+
def [](index)
|
55
|
+
end
|
56
|
+
|
57
|
+
def []=(index, char)
|
58
|
+
end
|
59
|
+
|
60
|
+
def get_size()
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/upil_types.rb
CHANGED
@@ -4,4 +4,21 @@
|
|
4
4
|
Look at the interface file to get the API description.
|
5
5
|
=end
|
6
6
|
|
7
|
-
|
7
|
+
|
8
|
+
if (RUBY_VERSION < '1.9.0')
|
9
|
+
raise FatalError.new("This gem does not support the running Ruby Version (too old)")
|
10
|
+
elsif (RUBY_VERSION[0] == '2' && RUBY_VERSION[2] == '4')
|
11
|
+
require "upil_types/upil_types_2_4"
|
12
|
+
elsif (RUBY_VERSION[0] == '2' && RUBY_VERSION[2] == '3')
|
13
|
+
require "upil_types/upil_types_2_3"
|
14
|
+
elsif (RUBY_VERSION[0] == '2' && RUBY_VERSION[2] == '2')
|
15
|
+
require "upil_types/upil_types_2_2"
|
16
|
+
elsif (RUBY_VERSION[0] == '2' && RUBY_VERSION[2] == '1')
|
17
|
+
require "upil_types/upil_types_2_1"
|
18
|
+
elsif (RUBY_VERSION[0] == '2' && RUBY_VERSION[2] == '0')
|
19
|
+
require "upil_types/upil_types_2_0"
|
20
|
+
elsif (RUBY_VERSION[0] == '1' && RUBY_VERSION[2] == '9')
|
21
|
+
require "upil_types/upil_types_1_9"
|
22
|
+
else
|
23
|
+
raise FatalError.new("This gem does not support yet the running Ruby Version")
|
24
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: upil_types
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OP3FT
|
@@ -16,8 +16,14 @@ executables: []
|
|
16
16
|
extensions: []
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
|
+
- lib/interface_file/upil_types_interface_file.rb
|
19
20
|
- lib/upil_types.rb
|
20
|
-
- lib/upil_types/
|
21
|
+
- lib/upil_types/upil_types_1_9.so
|
22
|
+
- lib/upil_types/upil_types_2_0.so
|
23
|
+
- lib/upil_types/upil_types_2_1.so
|
24
|
+
- lib/upil_types/upil_types_2_2.so
|
25
|
+
- lib/upil_types/upil_types_2_3.so
|
26
|
+
- lib/upil_types/upil_types_2_4.so
|
21
27
|
homepage: http://www.frogans.org
|
22
28
|
licenses:
|
23
29
|
- Nonstandard
|
Binary file
|