xot 0.1.35 → 0.1.36

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog.md +14 -9
  3. data/VERSION +1 -1
  4. data/include/xot/pimpl.h +7 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af347a8f52c2017aab855762db2627f351f142c49d8427e4a1102cf9e8add4e1
4
- data.tar.gz: 401f915e2a34ec211998007e7b0ee439b5b73e02a479628aee758b072dafe167
3
+ metadata.gz: 3ac3215ececc08a9c021a72e168f8f862cfaf717517acaff6e5f17ed1b381120
4
+ data.tar.gz: e613e2d1714ecf82f8609aa106dbfa2d173dcfaad85c302a3be7bb49eb6da444
5
5
  SHA512:
6
- metadata.gz: e4c25971fc88c51e61abc93d414801dbd4c0a1d7f05c1b35dbfd28982517256e8c5251d54dc034326a96155245c8edd78d91a89e130c395525324903a4c6077b
7
- data.tar.gz: 34c3349e5a192ac6333d27a217356f425f93324dbf26ec5d24dd4f3d5061a2e8233c1a01a2c98e732d68b20c7405fcb04c9d15e3e59c6b0758c774fe6d05bc2b
6
+ metadata.gz: c842e0ab71cba977656c337b270c1c47adb46ea833b574eee0ec23c8a93c0cb2443940e6acf0d187fead3f9630b14f6fd44b5f5af8e1b47c9cf601f8e06ccbff
7
+ data.tar.gz: 85e4a192c7dbfac1b46e7129333b85a7a081937b44be075a635bca8e3f59d6e1331278857c15eda8978122082a9c0984b85845cd488949e23b413ec20c0c25c2
data/ChangeLog.md CHANGED
@@ -1,9 +1,14 @@
1
1
  # xot ChangeLog
2
2
 
3
3
 
4
+ ## [v0.1.36] - 2023-05-18
5
+
6
+ - Fix crash on copying to null pimpl
7
+
8
+
4
9
  ## [v0.1.35] - 2023-05-08
5
10
 
6
- - add xot/inspectable.rb
11
+ - Add xot/inspectable.rb
7
12
 
8
13
 
9
14
  ## [v0.1.34] - 2023-04-30
@@ -13,25 +18,25 @@
13
18
 
14
19
  ## [v0.1.33] - 2023-04-22
15
20
 
16
- - use '-isystem' option for vendor headers
17
- - disable warnings on compiling vendor sources
21
+ - Use '-isystem' option for vendor headers
22
+ - Disable warnings on compiling vendor sources
18
23
  - OSX: add '-Wl,-undefined,dynamic_lookup' to ldflags
19
- - add VENDOR_NOCOMPILE option
24
+ - Add VENDOR_NOCOMPILE option
20
25
  - Rakefile: add 'quiet' option
21
26
 
22
27
 
23
28
  ## [v0.1.32] - 2023-03-01
24
29
 
25
- - fix bugs
30
+ - Fix bugs
26
31
 
27
32
 
28
33
  ## [v0.1.31] - 2023-02-26
29
34
 
30
- - add ChangeLog.md file
31
- - add test.yml, tag.yaml, and release.yml
32
- - requires ruby 2.7.0 or later
35
+ - Add ChangeLog.md file
36
+ - Add test.yml, tag.yaml, and release.yml
37
+ - Requires ruby 2.7.0 or later
33
38
 
34
39
 
35
40
  ## [v0.1.30] - 2023-02-09
36
41
 
37
- - refactoring
42
+ - Refactoring
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.35
1
+ 0.1.36
data/include/xot/pimpl.h CHANGED
@@ -34,7 +34,13 @@ namespace Xot
34
34
  {
35
35
  if (&obj == this) return *this;
36
36
 
37
- this->reset(obj ? new T(*obj) : NULL);
37
+ if (!obj)
38
+ this->reset();
39
+ else if (!this->get())
40
+ this->reset(new T(*obj));
41
+ else
42
+ *this->get() = *obj.get();
43
+
38
44
  return *this;
39
45
  }
40
46
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.35
4
+ version: 0.1.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - xordog
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-08 00:00:00.000000000 Z
11
+ date: 2023-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake