rice 4.3.0 → 4.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +174 -169
- data/CONTRIBUTORS.md +1 -0
- data/README.md +4 -4
- data/include/rice/rice.hpp +8762 -8762
- data/lib/version.rb +3 -3
- data/rice/Data_Object.ipp +386 -386
- data/rice/Identifier.hpp +50 -50
- data/rice/Identifier.ipp +28 -28
- data/rice/detail/NativeFunction.hpp +119 -119
- data/rice/detail/NativeFunction.ipp +300 -300
- data/rice/detail/NativeIterator.ipp +101 -101
- data/test/test_Array.cpp +301 -301
- data/test/test_Iterator.cpp +356 -356
- data/test/test_Stl_String_View.cpp +88 -88
- data/test/test_Stl_Vector.cpp +871 -871
- data/test/test_Symbol.cpp +7 -0
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c1c38f3ecf4a82df0f710ebcddb90f42152a4329e375ff8ea7afaf1eddade33
|
4
|
+
data.tar.gz: 3ae4a9a648313b45f2efe37fd370aa6442bd6e042b72384f980ac2ae8ada6ddc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32208880275388fa976f4a848d483daa2190425e0b7272d09557af7a5ee1b28ef95fa45f3b280b4c2aff35daf9e745b2069bfcf7aa2e7827f81d36f15d1aaead
|
7
|
+
data.tar.gz: 81351aa2c5d1fca2f51bbdb519375623983c23a5fd10162aa6bcfe3b653110a59edfa5e8d56c8172dd8ef542e9bb223d428ddbd66c6a1787fcc9bfd241c0740b
|
data/CHANGELOG.md
CHANGED
@@ -1,169 +1,174 @@
|
|
1
|
-
## 4.3
|
2
|
-
|
3
|
-
*
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
*
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
*
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
*
|
30
|
-
*
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
* Add
|
35
|
-
*
|
36
|
-
*
|
37
|
-
*
|
38
|
-
*
|
39
|
-
*
|
40
|
-
*
|
41
|
-
*
|
42
|
-
*
|
43
|
-
* Add
|
44
|
-
*
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
Rice
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
*
|
68
|
-
*
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
*
|
76
|
-
*
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
*
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
*
|
91
|
-
|
92
|
-
## 2.1.
|
93
|
-
|
94
|
-
*
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
*
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
*
|
133
|
-
|
134
|
-
## 1.6.
|
135
|
-
|
136
|
-
*
|
137
|
-
*
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
*
|
143
|
-
*
|
144
|
-
|
145
|
-
## 1.5.
|
146
|
-
|
147
|
-
*
|
148
|
-
* Fix
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
*
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
*
|
159
|
-
|
160
|
-
## 1.
|
161
|
-
|
162
|
-
*
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
*
|
168
|
-
|
169
|
-
|
1
|
+
## 4.3.1
|
2
|
+
|
3
|
+
* Update links and related references to the new repo and docs location: ruby-rice.github.io.
|
4
|
+
|
5
|
+
## 4.3
|
6
|
+
|
7
|
+
* Add support for STL containers that contain pointers
|
8
|
+
* Add support for std::string_view
|
9
|
+
* Fix handling of std::shared_ptr that resulted in moving them instead of copying them
|
10
|
+
* Fix container iteration so elements are passed by reference and not copied
|
11
|
+
* Avoid unnecessary copies when creating Rice::Identifiers and Rice::Symbols
|
12
|
+
|
13
|
+
## 4.2.1
|
14
|
+
|
15
|
+
* Support systems who use `#include <experimental/filesystem>` over `#include<filesystem>`. See [#197](https://github.com/jasonroelofs/rice/issues/197) and [#201](https://github.com/jasonroelofs/rice/pull/201)
|
16
|
+
|
17
|
+
## 4.2
|
18
|
+
|
19
|
+
* Support Ruby 3.3.0.
|
20
|
+
* Split Object.call to an explicit Object.call_kw for calling methods expecting keyword arguments.
|
21
|
+
* Previously, if a wrapper used `keepAlive` on an argument or return value that was itself a Rice type, calling said method would segfault. We've now added an explicit exception to be thrown in this case, prevending the segfault and providing guidance on what was wrong and how to fix it. See [#193](https://github.com/jasonroelofs/rice/pull/193) and [#194](https://github.com/jasonroelofs/rice/pull/194)
|
22
|
+
* Fix wrapping of std::shared_ptr to properly take default arguments into account.
|
23
|
+
|
24
|
+
## 4.1
|
25
|
+
|
26
|
+
Rice 4.1 builds on the 4.0 release and has a number of improvements that both polish Rice and extend its functionality. However, there are three incompatibilities to know about:
|
27
|
+
|
28
|
+
* Exception handlers are now registered globally versus per module. This requires updating code that calls Class#add_handler to use register_handler instead.
|
29
|
+
* Rename Arg#isValue to Arg#setValue and then Arg#getIsValue to Arg#isValue
|
30
|
+
* Rename Return#isValue to Return#setValue and Return#getIsValue to Return#isValue
|
31
|
+
|
32
|
+
New or improved functionality includes:
|
33
|
+
|
34
|
+
* Add support for std::map, std::unordered_map, std::variant, std::monostate and std::reference_wrapper
|
35
|
+
* Enable calling of C++ member functions that are defined in ancestor classes
|
36
|
+
* Make it easy to wrap C++ iterators like std::vector begin and end
|
37
|
+
* Enable creating enumerators for C++ collections like std::vector and std::map
|
38
|
+
* Enable calling more Ruby API methods including those with a variable number of parameters such as rb_yield_values
|
39
|
+
* Add additional C++ to Ruby exception mappings (for example, std::system_error to SystemCallError)
|
40
|
+
* Updated documentation, including new pages for instance tracking, iterators, exceptions and newly supported STL classes
|
41
|
+
* Add support for calling Ruby methods with keywords from Rice::Object and its descendants
|
42
|
+
* Automatically translate C++ character arrays that start with colons to symbols (ie, ":mysymbol") when sending them to Ruby
|
43
|
+
* Add a constructor for Rice::Module that takes a name, to enable code like Module("Kernel")
|
44
|
+
* Fix comparison methods in Rice::Object, such as Object#is_equal, to return the correct result
|
45
|
+
* Fix various compiler warnings
|
46
|
+
* Remove deprecated APIs
|
47
|
+
* Remove support for Ruby 2.5 and 2.6 which are officially out of support
|
48
|
+
* Add support for building tests with CMake
|
49
|
+
* And lots of other fixes and code improvements
|
50
|
+
|
51
|
+
Rice also includes experimental support for instance tracking so that Rice maps the same C++ instance to the same Ruby instance each time it is passed to Ruby. See the documentation for more information.
|
52
|
+
|
53
|
+
|
54
|
+
## 4.0
|
55
|
+
|
56
|
+
Rice 4.0 is a significant change from 3.0 and has multiple backwards-incompatible
|
57
|
+
changes. Rice 4.0 no longer requires pre-compilation and is now a header-only library,
|
58
|
+
delivered as a combined header file.
|
59
|
+
|
60
|
+
For migrating from 3 to 4, see [the migration guide](https://ruby-rice.github.io/4.x/migration.html).
|
61
|
+
|
62
|
+
There are a ton of changes, but some of the most important ones:
|
63
|
+
|
64
|
+
* Header only! `#include <rice/rice.hpp>`
|
65
|
+
* Requires C++17 or later
|
66
|
+
* Brand new, expanded documentation
|
67
|
+
* [Built-in STL support](https://ruby-rice.github.io/4.x/stl/stl.html)
|
68
|
+
* And so much more. See the documentation for more details.
|
69
|
+
|
70
|
+
## 3.0
|
71
|
+
|
72
|
+
* Now requires a compiler supporting for C++14 or later
|
73
|
+
* Drop support for Ruby 2.4. Supported versions are now 2.5 through 3.0.
|
74
|
+
* Fix build issue on macOS Big Sur
|
75
|
+
* Fix a data corruption issue with `Rice::Exception::what`.
|
76
|
+
* Move CI from Travis to GitHub Actions. Now also able to verify Windows builds!
|
77
|
+
|
78
|
+
## 2.2.0
|
79
|
+
|
80
|
+
* Deprecate support for Rubies older than 2.4
|
81
|
+
* Provide a few more built-in to_ruby/from_ruby conversions
|
82
|
+
* Fix compilation error when building under Ruby 2.7.0
|
83
|
+
|
84
|
+
## 2.1.3
|
85
|
+
|
86
|
+
* Don't lock down HAVE_CXX11 on the Rice build itself.
|
87
|
+
|
88
|
+
## 2.1.2
|
89
|
+
|
90
|
+
* Fix defining custom `begin` and `end` methods on an `Iterator`
|
91
|
+
|
92
|
+
## 2.1.1
|
93
|
+
|
94
|
+
* Support Ruby 2.4
|
95
|
+
* Re-enable Rice::Enum#hash to support putting Enums in Hashes
|
96
|
+
|
97
|
+
## 2.1.0
|
98
|
+
|
99
|
+
* Fix compliation issues related to g++ and Ruby 2.3.0
|
100
|
+
To do this, I had to remove Array::to_c_array which was exposing the internals of a
|
101
|
+
Ruby RArray type to the system. This is not something that we should support going forward
|
102
|
+
as these internals are going to change.
|
103
|
+
|
104
|
+
# 2.0.0
|
105
|
+
|
106
|
+
* Deprecated all versions of Ruby < 2.0
|
107
|
+
* Removed Rice::VM.
|
108
|
+
Unsure if this class is even used anywhere and it felt strange to be
|
109
|
+
able to load up a Ruby interpreter inside of Ruby. If you need it, it's
|
110
|
+
two files that I can easily make available in a gist.
|
111
|
+
* Improve build process across architectures and future changes.
|
112
|
+
Included some extra warnings for XCode updates on Mac OS X.
|
113
|
+
* Confirmed that Rice definitely does not work on static Ruby builds,
|
114
|
+
but that seems to be more because newer Ruby versions don't have good static builds.
|
115
|
+
Thanks to @Kagetsuki for his help tracking down what's going on here.
|
116
|
+
|
117
|
+
## 1.7.0
|
118
|
+
|
119
|
+
* Ruby 2.2 support
|
120
|
+
Potential breaking changes. Ruby 2.2 removed RHash as a public accessible struct
|
121
|
+
and as such I changed all of the Builtin_Objects to work directly off of RObject
|
122
|
+
instead of the specifics (RArray, RStruct, RString, etc). If you've been using these
|
123
|
+
objects directly I recommend using either the Rice API or Ruby's CAPI instead for
|
124
|
+
future compatibility.
|
125
|
+
|
126
|
+
## 1.6.3
|
127
|
+
|
128
|
+
* Fix complication issue on some 64-bit *nix systems
|
129
|
+
|
130
|
+
## 1.6.2
|
131
|
+
|
132
|
+
* Oops! Missed new file in the gemspec
|
133
|
+
|
134
|
+
## 1.6.1
|
135
|
+
|
136
|
+
* Support C++x11 uniqe_ptr over auto_ptr
|
137
|
+
* Fix some warnings
|
138
|
+
|
139
|
+
## 1.6.0
|
140
|
+
|
141
|
+
* Ruby 2.1 support -- Thanks Chai Zhenhua
|
142
|
+
* Methods and Constructors have correct method access specifiers [#57]
|
143
|
+
* Clean up some 64-bit compiler warnings
|
144
|
+
|
145
|
+
## 1.5.3
|
146
|
+
|
147
|
+
* Fix signed / unsigned compiler warning with Hash#each
|
148
|
+
* Fix compilation on clang 5 (Xcode 5)
|
149
|
+
|
150
|
+
## 1.5.2
|
151
|
+
|
152
|
+
* Update build system to remove deprecation warnings and allow easier building
|
153
|
+
* Fix String to work as a parameter in a wrapped method (#59)
|
154
|
+
* Update documentation a bit
|
155
|
+
|
156
|
+
## 1.5.1
|
157
|
+
|
158
|
+
* Doc string fix
|
159
|
+
|
160
|
+
## 1.5.0
|
161
|
+
|
162
|
+
* Ruby 2.0 compatability
|
163
|
+
* Bug fixes
|
164
|
+
|
165
|
+
## 1.4.3
|
166
|
+
|
167
|
+
* Various build configuration fixes
|
168
|
+
|
169
|
+
## 1.4.0
|
170
|
+
|
171
|
+
* Fully compatible with Ruby 1.9.2
|
172
|
+
* Constructor supports default arguments
|
173
|
+
* Ability to define implicit casting through define_implicit_cast
|
174
|
+
* Fixed a few memory-related issues
|
data/CONTRIBUTORS.md
CHANGED
@@ -20,3 +20,4 @@ I'd like to thank the following people for their help in making Rice what it is
|
|
20
20
|
* [Maxim Samsonov (maxirmx)](https://github.com/maxirmx) for [#193](https://github.com/jasonroelofs/rice/issues/193) and [#194](https://github.com/jasonroelofs/rice/pull/194)
|
21
21
|
* [kvtb](https://github.com/kvtb) for [#191](https://github.com/jasonroelofs/rice/issues/191)
|
22
22
|
* [thekendalmiller](https://github.com/thekendalmiller) for [#201](https://github.com/jasonroelofs/rice/pull/201)
|
23
|
+
* [froydnj](https://github.com/froydnj) for [#205](https://github.com/jasonroelofs/rice/pull/205)
|
data/README.md
CHANGED
@@ -24,15 +24,15 @@ This documentation and the `master` branch are for Rice 4.x and later, which is
|
|
24
24
|
header-only version of this library. Use the `3.x` branch for the docs and code for that
|
25
25
|
line of releases.
|
26
26
|
|
27
|
-
The docs for the 3.x line of Rice is at https://
|
27
|
+
The docs for the 3.x line of Rice is at https://ruby-rice.github.io/3.x.
|
28
28
|
|
29
29
|
# Project Details
|
30
30
|
|
31
|
-
The source is hosted on GitHub: http://github.com/
|
31
|
+
The source is hosted on GitHub: http://github.com/ruby-rice/rice
|
32
32
|
|
33
|
-
Bug tracking: http://github.com/
|
33
|
+
Bug tracking: http://github.com/ruby-rice/rice/issues
|
34
34
|
|
35
|
-
API documentation: http://
|
35
|
+
API documentation: http://ruby-rice.github.io/
|
36
36
|
|
37
37
|
# Installation
|
38
38
|
|