xot 0.1.35 → 0.1.37

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: af347a8f52c2017aab855762db2627f351f142c49d8427e4a1102cf9e8add4e1
4
- data.tar.gz: 401f915e2a34ec211998007e7b0ee439b5b73e02a479628aee758b072dafe167
3
+ metadata.gz: c387920c5f034e30d6efa3e4cf34b90b673231df23c77542f4a745e004fc89d3
4
+ data.tar.gz: 5bc4ed56c3bbc96d9bc732d6278feb0ff713bd3efd6668214f6bcbd927c19826
5
5
  SHA512:
6
- metadata.gz: e4c25971fc88c51e61abc93d414801dbd4c0a1d7f05c1b35dbfd28982517256e8c5251d54dc034326a96155245c8edd78d91a89e130c395525324903a4c6077b
7
- data.tar.gz: 34c3349e5a192ac6333d27a217356f425f93324dbf26ec5d24dd4f3d5061a2e8233c1a01a2c98e732d68b20c7405fcb04c9d15e3e59c6b0758c774fe6d05bc2b
6
+ metadata.gz: ff6ecdd8b589c9ca5a6033a310f7cce29d42393b3db39895797880b3acaf911c50afd9ad0a7109fae177dfd308e826cb64a0477e6ee398a2bd5bae1ee14d4a31
7
+ data.tar.gz: 39c88511227999cf5de84b79cdd587d732adaac3d4b6205faeb097d1fbd6bc6fbc4ef30684aebb95912c3b8eb3dbe0deaf146f678b1a1ee9691d83406c6ce4d0
data/ChangeLog.md CHANGED
@@ -1,9 +1,20 @@
1
1
  # xot ChangeLog
2
2
 
3
3
 
4
+ ## [v0.1.37] - 2023-05-27
5
+
6
+ - required_ruby_version >= 3.0.0
7
+ - Add spec.license
8
+
9
+
10
+ ## [v0.1.36] - 2023-05-18
11
+
12
+ - Fix crash on copying to null pimpl
13
+
14
+
4
15
  ## [v0.1.35] - 2023-05-08
5
16
 
6
- - add xot/inspectable.rb
17
+ - Add xot/inspectable.rb
7
18
 
8
19
 
9
20
  ## [v0.1.34] - 2023-04-30
@@ -13,25 +24,25 @@
13
24
 
14
25
  ## [v0.1.33] - 2023-04-22
15
26
 
16
- - use '-isystem' option for vendor headers
17
- - disable warnings on compiling vendor sources
27
+ - Use '-isystem' option for vendor headers
28
+ - Disable warnings on compiling vendor sources
18
29
  - OSX: add '-Wl,-undefined,dynamic_lookup' to ldflags
19
- - add VENDOR_NOCOMPILE option
30
+ - Add VENDOR_NOCOMPILE option
20
31
  - Rakefile: add 'quiet' option
21
32
 
22
33
 
23
34
  ## [v0.1.32] - 2023-03-01
24
35
 
25
- - fix bugs
36
+ - Fix bugs
26
37
 
27
38
 
28
39
  ## [v0.1.31] - 2023-02-26
29
40
 
30
- - add ChangeLog.md file
31
- - add test.yml, tag.yaml, and release.yml
32
- - requires ruby 2.7.0 or later
41
+ - Add ChangeLog.md file
42
+ - Add test.yml, tag.yaml, and release.yml
43
+ - Requires ruby 2.7.0 or later
33
44
 
34
45
 
35
46
  ## [v0.1.30] - 2023-02-09
36
47
 
37
- - refactoring
48
+ - Refactoring
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.35
1
+ 0.1.37
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
 
data/xot.gemspec CHANGED
@@ -17,16 +17,16 @@ Gem::Specification.new do |s|
17
17
  rdocs = glob.call *%w[README]
18
18
 
19
19
  s.name = name
20
+ s.version = ext.version
21
+ s.license = 'MIT'
20
22
  s.summary = 'A Utility library for C++ developemt.'
21
23
  s.description = 'This library include some useful utility classes and functions for development with C++.'
22
- s.version = ext.version
23
-
24
- s.authors = %w[xordog]
25
- s.email = 'xordog@gmail.com'
26
- s.homepage = "https://github.com/xord/xot"
24
+ s.authors = %w[xordog]
25
+ s.email = 'xordog@gmail.com'
26
+ s.homepage = "https://github.com/xord/xot"
27
27
 
28
28
  s.platform = Gem::Platform::RUBY
29
- s.required_ruby_version = '>= 2.7.0'
29
+ s.required_ruby_version = '>= 3.0.0'
30
30
 
31
31
  s.add_development_dependency 'rake'
32
32
  s.add_development_dependency 'test-unit'
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.37
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-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -105,7 +105,8 @@ files:
105
105
  - test/test_universal_accessor.rb
106
106
  - xot.gemspec
107
107
  homepage: https://github.com/xord/xot
108
- licenses: []
108
+ licenses:
109
+ - MIT
109
110
  metadata: {}
110
111
  post_install_message:
111
112
  rdoc_options: []
@@ -115,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
116
  requirements:
116
117
  - - ">="
117
118
  - !ruby/object:Gem::Version
118
- version: 2.7.0
119
+ version: 3.0.0
119
120
  required_rubygems_version: !ruby/object:Gem::Requirement
120
121
  requirements:
121
122
  - - ">="