extpp 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +13 -0
- data/ext/extpp/extconf.rb +1 -1
- data/lib/extpp/compiler.rb +9 -9
- data/lib/extpp/version.rb +1 -1
- metadata +23 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ad1ded05bdc3f935efd716bf7efca2248ff163e32ead6ad7fd2207d9c49e883
|
4
|
+
data.tar.gz: b8439db5e84748907e4f4e744ee3916e96ab70b1284a6f63a376678a6d3669fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d55f0224494159be0b951787bcf5e28990f7cbd2b5a17aabdce821dcc390ca9309c8f4eb7d04db755c1bd3defb6c45807592cfb672a41af45c060de7c497fccd
|
7
|
+
data.tar.gz: 3f9fb2d6a8e80e7087e5f45b8713fad57166fcfbd29e43c03c16bea3db62865def8413ea815022f02f7e08d896eebf40f5b9b6add4cb4d4f55ce334d3a8a54f2
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 0.0.9 - 2020-11-03
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* Improved `clang++` version detection.
|
8
|
+
[GitHub#10][Patch by Alex Neill]
|
9
|
+
|
10
|
+
* Improved `g++` version detection.
|
11
|
+
|
12
|
+
### Thanks
|
13
|
+
|
14
|
+
* Alex Neill
|
15
|
+
|
3
16
|
## 0.0.8 - 2019-09-25
|
4
17
|
|
5
18
|
### Improvements
|
data/ext/extpp/extconf.rb
CHANGED
@@ -53,7 +53,7 @@ HEADERS = #{headers.collect(&:quote).join(" ")}
|
|
53
53
|
|
54
54
|
INCLUDE_DIR = #{include_dir.quote}
|
55
55
|
|
56
|
-
CXX = #{RbConfig
|
56
|
+
CXX = #{RbConfig.expand("$(CXX)")}
|
57
57
|
|
58
58
|
RUBY = #{RbConfig.ruby.quote}
|
59
59
|
RUBY_HEADER_DIR = #{RbConfig::CONFIG["rubyhdrdir"].quote}
|
data/lib/extpp/compiler.rb
CHANGED
@@ -60,7 +60,7 @@ module ExtPP
|
|
60
60
|
std = nil
|
61
61
|
|
62
62
|
case `#{RbConfig.expand("$(CXX) --version")}`
|
63
|
-
when /g\+\+.+ (\d
|
63
|
+
when /g\+\+.+ (\d+\.\d+)\.\d/
|
64
64
|
version = Float($1)
|
65
65
|
if version < 5.1
|
66
66
|
std = "gnu++11"
|
@@ -69,26 +69,26 @@ module ExtPP
|
|
69
69
|
else
|
70
70
|
std = "gnu++17"
|
71
71
|
end
|
72
|
-
when /\
|
72
|
+
when /\AApple (?:LLVM|clang) version (\d+\.\d+)\.\d/
|
73
73
|
version = Float($1)
|
74
|
-
|
74
|
+
# TODO: Is it right?
|
75
|
+
if version < 9.0
|
75
76
|
std = "gnu++11"
|
76
|
-
elsif version <
|
77
|
+
elsif version < 9.1
|
77
78
|
std = "gnu++14"
|
78
79
|
else
|
79
80
|
std = "gnu++17"
|
80
81
|
end
|
81
|
-
|
82
|
+
cxx_flags = "-Wno-deprecated-register"
|
83
|
+
when /clang version (\d+\.\d+)\.\d/
|
82
84
|
version = Float($1)
|
83
|
-
|
84
|
-
if version < 9.0
|
85
|
+
if version < 3.5
|
85
86
|
std = "gnu++11"
|
86
|
-
elsif version <
|
87
|
+
elsif version < 5
|
87
88
|
std = "gnu++14"
|
88
89
|
else
|
89
90
|
std = "gnu++17"
|
90
91
|
end
|
91
|
-
cxx_flags = "-Wno-deprecated-register"
|
92
92
|
end
|
93
93
|
|
94
94
|
if std
|
data/lib/extpp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extpp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -135,39 +135,38 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
|
-
|
139
|
-
rubygems_version: 2.7.6.2
|
138
|
+
rubygems_version: 3.2.0.rc.2
|
140
139
|
signing_key:
|
141
140
|
specification_version: 4
|
142
141
|
summary: Ext++ is a Ruby extension that provides C++ API for writing Ruby extension.
|
143
142
|
test_files:
|
144
|
-
- test/
|
145
|
-
- test/
|
146
|
-
- test/
|
147
|
-
- test/
|
143
|
+
- test/fixtures/cast/Makefile
|
144
|
+
- test/fixtures/cast/cast.cpp
|
145
|
+
- test/fixtures/cast/cast.o
|
146
|
+
- test/fixtures/cast/cast.so
|
147
|
+
- test/fixtures/cast/extconf.rb
|
148
|
+
- test/fixtures/cast/mkmf.log
|
149
|
+
- test/fixtures/class/Makefile
|
148
150
|
- test/fixtures/class/class.cpp
|
149
|
-
- test/fixtures/class/mkmf.log
|
150
151
|
- test/fixtures/class/class.o
|
151
|
-
- test/fixtures/class/extconf.rb
|
152
152
|
- test/fixtures/class/class.so
|
153
|
-
- test/fixtures/class/
|
154
|
-
- test/fixtures/
|
153
|
+
- test/fixtures/class/extconf.rb
|
154
|
+
- test/fixtures/class/mkmf.log
|
155
|
+
- test/fixtures/object/Makefile
|
156
|
+
- test/fixtures/object/extconf.rb
|
155
157
|
- test/fixtures/object/mkmf.log
|
158
|
+
- test/fixtures/object/object.cpp
|
156
159
|
- test/fixtures/object/object.o
|
157
160
|
- test/fixtures/object/object.so
|
158
|
-
- test/fixtures/
|
159
|
-
- test/fixtures/
|
161
|
+
- test/fixtures/protect/Makefile
|
162
|
+
- test/fixtures/protect/extconf.rb
|
160
163
|
- test/fixtures/protect/mkmf.log
|
164
|
+
- test/fixtures/protect/protect.cpp
|
161
165
|
- test/fixtures/protect/protect.o
|
162
|
-
- test/fixtures/protect/extconf.rb
|
163
166
|
- test/fixtures/protect/protect.so
|
164
|
-
- test/
|
165
|
-
- test/
|
166
|
-
- test/fixtures/cast/cast.so
|
167
|
-
- test/fixtures/cast/mkmf.log
|
168
|
-
- test/fixtures/cast/extconf.rb
|
169
|
-
- test/fixtures/cast/cast.o
|
170
|
-
- test/fixtures/cast/Makefile
|
171
|
-
- test/fixtures/cast/cast.cpp
|
172
|
-
- test/test-object.rb
|
167
|
+
- test/helper.rb
|
168
|
+
- test/run-test.rb
|
173
169
|
- test/test-cast.rb
|
170
|
+
- test/test-class.rb
|
171
|
+
- test/test-object.rb
|
172
|
+
- test/test-protect.rb
|