pycall 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3989138be85724905ddd029fb3f74a7168070c02
4
- data.tar.gz: 8ab3173bf2d1c2f92deec6b98241cc28d9768a03
3
+ metadata.gz: f55fc9d9a1eb95adf30ecec437c5fe5aa459e4a5
4
+ data.tar.gz: c49a974635e8e4fe7c9fc9fc98c6afbc47bc9c5d
5
5
  SHA512:
6
- metadata.gz: 574f866b421b1010e907ff83ca9ce45725cd642af94004a1ab979a2b24f1605dfdeaa29c6090a159a6ac713d97cb9be4f20dc343e8edc21156e143b3845e8b95
7
- data.tar.gz: fb03c20e8e60bc674c484f871848106ffe2ab5722ac1ba2331ea6f77075743320eef7d0bc9d320744486b1698a00a9c801182b4442d0e2f85905822d5f83818f
6
+ metadata.gz: '09f4f8fa2e3d9353ba31791ba3e689f5b36271ed0170685b82d7580ba3c1afa69f3acd0c39488313c5908143d52cce6a78d2f496b99c0c3975c17a9a2d9f70eb'
7
+ data.tar.gz: '028d50abd8e1dc5e39eb7161b3f384ac6f4918107dab120c95341a0011f071a63b9fee0feffc1d11b8acce5bff81c9e9ca040625bc1238e8ab71c6b50ccd307b'
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # The change history of PyCall
2
2
 
3
+ ## 1.0.1
4
+
5
+ * Add PyTypeObject#===.
6
+
3
7
  ## 1.0.0
4
8
 
5
9
  * `#[]` and `#[]=` accept a `Range` and an `Enumerable`, which is genated by
@@ -38,6 +38,17 @@ module PyCall
38
38
  end
39
39
  end
40
40
 
41
+ def ===(other)
42
+ case other
43
+ when PyObjectWrapper
44
+ __pyptr__ === other.__pyptr__
45
+ when PyPtr
46
+ __pyptr__ === other
47
+ else
48
+ super
49
+ end
50
+ end
51
+
41
52
  private
42
53
 
43
54
  def register_python_type_mapping
@@ -1,3 +1,3 @@
1
1
  module PyCall
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pycall
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Murata
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-07 00:00:00.000000000 Z
11
+ date: 2017-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -215,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
215
  version: '0'
216
216
  requirements: []
217
217
  rubyforge_project:
218
- rubygems_version: 2.6.13
218
+ rubygems_version: 2.6.12
219
219
  signing_key:
220
220
  specification_version: 4
221
221
  summary: pycall