extpp 0.0.7 → 0.0.8

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: 6c22f302ed4a23deab1073040600c6b5fa9983718a9edf01e6fef951a899800a
4
- data.tar.gz: 7d112b2629ce251b7c27eaa3035181ef67943379f835def732b42042beaeed1b
3
+ metadata.gz: e649f9a68f45b42e1c0232ac0e3fdf03fce59c6cd33037ae3b45c106dac9079f
4
+ data.tar.gz: 2ddc7ba05c591b3d0ed5be71d2c35baaa43575eba1d5f553515038e4c6406dac
5
5
  SHA512:
6
- metadata.gz: ea4a26e4e6b0ba28549c79bd3dab29da154fea5456399f6b13c754362f8616a73b14eedb252b53fac76f0c1fcd3f9ee09a5b37ad2ed1683e4be7921a7d4c8d3d
7
- data.tar.gz: a609c6419db657678c4e2166d68a3d079d3f7d257a0323826a048ab9f592ae0aae02d6c46317c1ea7a1d6b18b170d5e1cfa934c355fd49fcf77c2f4bab5fc2e4
6
+ metadata.gz: 5d015c70ec16938f40f232b3cd7d944df366d64794dc071eb8580be4b015ed3d1b4c656b76078783add9eab25dd66a6eb4f49fd571a925367dc14af4274af603
7
+ data.tar.gz: 563ec4a1d2ea5be0445051ca4250f7701fc879a49e651632deb7c85ec2e6be21e700dddc15991d04f2e946c7b10447276c983d40d9d91c0608fba0a6269b5489
@@ -1,6 +1,24 @@
1
1
  # News
2
2
 
3
- ## 0.0.7 - 2019-03-021
3
+ ## 0.0.8 - 2019-09-25
4
+
5
+ ### Improvements
6
+
7
+ * Changed to use `RbConfig::CONFIG["SOEXT"]`.
8
+ [Suggested by Nobuyoshi Nakada]
9
+
10
+ * Added `ExtpPP::Platform#shared_library_extension`.
11
+
12
+ * Added support for macOS Majave.
13
+ [GitHub#8][Patch by Josh Huckabee]
14
+
15
+ ### Thanks
16
+
17
+ * Nobuyoshi Nakada
18
+
19
+ * Josh Huckabee
20
+
21
+ ## 0.0.7 - 2019-03-21
4
22
 
5
23
  ### Improvements
6
24
 
@@ -78,7 +78,7 @@ module ExtPP
78
78
  else
79
79
  std = "gnu++17"
80
80
  end
81
- when /\AApple LLVM version (\d+\.\d+)\.\d/
81
+ when /\AApple (?:LLVM|clang) version (\d+\.\d+)\.\d/
82
82
  version = Float($1)
83
83
  # TODO: Is it right?
84
84
  if version < 9.0
@@ -1,14 +1,8 @@
1
1
  module ExtPP
2
2
  class Platform
3
3
  def dynamic_library_extension
4
- case RUBY_PLATFORM
5
- when /windows/, /mingw/
6
- "dll"
7
- when /darwin/
8
- "dylib"
9
- else
10
- RbConfig::CONFIG["DLEXT"]
11
- end
4
+ RbConfig::CONFIG["SOEXT"]
12
5
  end
6
+ alias_method :shared_library_extension, :dynamic_library_extension
13
7
  end
14
8
  end
@@ -1,3 +1,3 @@
1
1
  module ExtPP
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
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.7
4
+ version: 0.0.8
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-03-20 00:00:00.000000000 Z
11
+ date: 2019-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -136,38 +136,38 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 2.7.6
139
+ rubygems_version: 2.7.6.2
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Ext++ is a Ruby extension that provides C++ API for writing Ruby extension.
143
143
  test_files:
144
- - test/test-object.rb
145
- - test/test-protect.rb
146
144
  - test/test-class.rb
147
- - test/fixtures/class/class.so
148
- - test/fixtures/class/mkmf.log
145
+ - test/helper.rb
146
+ - test/run-test.rb
147
+ - test/test-protect.rb
149
148
  - test/fixtures/class/class.cpp
149
+ - test/fixtures/class/mkmf.log
150
150
  - test/fixtures/class/class.o
151
- - test/fixtures/class/Makefile
152
151
  - test/fixtures/class/extconf.rb
152
+ - test/fixtures/class/class.so
153
+ - test/fixtures/class/Makefile
154
+ - test/fixtures/object/object.cpp
155
+ - test/fixtures/object/mkmf.log
156
+ - test/fixtures/object/object.o
157
+ - test/fixtures/object/object.so
158
+ - test/fixtures/object/extconf.rb
159
+ - test/fixtures/object/Makefile
153
160
  - test/fixtures/protect/mkmf.log
161
+ - test/fixtures/protect/protect.o
162
+ - test/fixtures/protect/extconf.rb
154
163
  - test/fixtures/protect/protect.so
155
164
  - test/fixtures/protect/protect.cpp
156
165
  - test/fixtures/protect/Makefile
157
- - test/fixtures/protect/protect.o
158
- - test/fixtures/protect/extconf.rb
159
- - test/fixtures/cast/mkmf.log
160
- - test/fixtures/cast/cast.cpp
161
166
  - test/fixtures/cast/cast.so
162
- - test/fixtures/cast/Makefile
163
- - test/fixtures/cast/cast.o
167
+ - test/fixtures/cast/mkmf.log
164
168
  - test/fixtures/cast/extconf.rb
165
- - test/fixtures/object/mkmf.log
166
- - test/fixtures/object/object.so
167
- - test/fixtures/object/Makefile
168
- - test/fixtures/object/object.cpp
169
- - test/fixtures/object/object.o
170
- - test/fixtures/object/extconf.rb
171
- - test/helper.rb
172
- - test/run-test.rb
169
+ - test/fixtures/cast/cast.o
170
+ - test/fixtures/cast/Makefile
171
+ - test/fixtures/cast/cast.cpp
172
+ - test/test-object.rb
173
173
  - test/test-cast.rb