extpp 0.0.8 → 0.0.9

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: e649f9a68f45b42e1c0232ac0e3fdf03fce59c6cd33037ae3b45c106dac9079f
4
- data.tar.gz: 2ddc7ba05c591b3d0ed5be71d2c35baaa43575eba1d5f553515038e4c6406dac
3
+ metadata.gz: 3ad1ded05bdc3f935efd716bf7efca2248ff163e32ead6ad7fd2207d9c49e883
4
+ data.tar.gz: b8439db5e84748907e4f4e744ee3916e96ab70b1284a6f63a376678a6d3669fb
5
5
  SHA512:
6
- metadata.gz: 5d015c70ec16938f40f232b3cd7d944df366d64794dc071eb8580be4b015ed3d1b4c656b76078783add9eab25dd66a6eb4f49fd571a925367dc14af4274af603
7
- data.tar.gz: 563ec4a1d2ea5be0445051ca4250f7701fc879a49e651632deb7c85ec2e6be21e700dddc15991d04f2e946c7b10447276c983d40d9d91c0608fba0a6269b5489
6
+ metadata.gz: d55f0224494159be0b951787bcf5e28990f7cbd2b5a17aabdce821dcc390ca9309c8f4eb7d04db755c1bd3defb6c45807592cfb672a41af45c060de7c497fccd
7
+ data.tar.gz: 3f9fb2d6a8e80e7087e5f45b8713fad57166fcfbd29e43c03c16bea3db62865def8413ea815022f02f7e08d896eebf40f5b9b6add4cb4d4f55ce334d3a8a54f2
@@ -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
@@ -53,7 +53,7 @@ HEADERS = #{headers.collect(&:quote).join(" ")}
53
53
 
54
54
  INCLUDE_DIR = #{include_dir.quote}
55
55
 
56
- CXX = #{RbConfig::CONFIG["CXX"].quote}
56
+ CXX = #{RbConfig.expand("$(CXX)")}
57
57
 
58
58
  RUBY = #{RbConfig.ruby.quote}
59
59
  RUBY_HEADER_DIR = #{RbConfig::CONFIG["rubyhdrdir"].quote}
@@ -60,7 +60,7 @@ module ExtPP
60
60
  std = nil
61
61
 
62
62
  case `#{RbConfig.expand("$(CXX) --version")}`
63
- when /g\+\+.+ (\d\.\d)\.\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 /\A.+ clang version (\d\.\d)\.\d/
72
+ when /\AApple (?:LLVM|clang) version (\d+\.\d+)\.\d/
73
73
  version = Float($1)
74
- if version < 3.5
74
+ # TODO: Is it right?
75
+ if version < 9.0
75
76
  std = "gnu++11"
76
- elsif version < 5
77
+ elsif version < 9.1
77
78
  std = "gnu++14"
78
79
  else
79
80
  std = "gnu++17"
80
81
  end
81
- when /\AApple (?:LLVM|clang) version (\d+\.\d+)\.\d/
82
+ cxx_flags = "-Wno-deprecated-register"
83
+ when /clang version (\d+\.\d+)\.\d/
82
84
  version = Float($1)
83
- # TODO: Is it right?
84
- if version < 9.0
85
+ if version < 3.5
85
86
  std = "gnu++11"
86
- elsif version < 9.1
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
@@ -1,3 +1,3 @@
1
1
  module ExtPP
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
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.8
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: 2019-09-25 00:00:00.000000000 Z
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
- rubyforge_project:
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/test-class.rb
145
- - test/helper.rb
146
- - test/run-test.rb
147
- - test/test-protect.rb
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/Makefile
154
- - test/fixtures/object/object.cpp
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/object/extconf.rb
159
- - test/fixtures/object/Makefile
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/fixtures/protect/protect.cpp
165
- - test/fixtures/protect/Makefile
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