numo-binrw 0.1.1 → 0.2.1

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: cf41199c5af14099ee31afa8f08bc194880451320c7b2b05c39aaed153ccf651
4
- data.tar.gz: 700a883d63d7be30f37ad68f53f33e7618a8111dc2462bec0a9cb0c564c58f33
3
+ metadata.gz: 04561a668e470a67c2c7c2a4e6dcf23116c78f081b9d38f51bd58ae77d6621a3
4
+ data.tar.gz: 17674a6650b171920a5bfc6656752f07f4fe3a3a0974f6c2886df60cdae6eefa
5
5
  SHA512:
6
- metadata.gz: 86673a6f2efe0703b0d5f2ecb493f98cd6def384c6d9254afe4a4c8bb1574608d40d7e691e628c6207512fff6e3c25eb4f75a9675bf33a0780268dd14c8c81ce
7
- data.tar.gz: 5c4ffda35b20d9a908df1ca629d957cd99c992c1877c102c9860c184ae9632fce2268ec3672bca6ea82cd8fd91309b9af2692f7d1cd8424f45f86424985f246b
6
+ metadata.gz: 258179d7c04edd978e3aef700c48fb38289d59d586294adf6410fd1af26c6a17fc01f349641f4225802c099cafad9537a10f0eb3323d79254aa4a1e85675d310
7
+ data.tar.gz: 127f2fa687a4a271a3e0333a7f833a5da8a323b67c246043777932021bae728e668c8f24a2ff1cee2c7afd6ec98c1c7f26c4709a39273af8c3030a66072bf962
@@ -27,6 +27,7 @@ void bin_write(struct bin_write_arg_ret* st){
27
27
 
28
28
  VALUE nrw_bin_write(VALUE self, VALUE obj, VALUE filename){
29
29
  char* cfilename;
30
+ obj = rb_funcall(obj, rb_intern("copy"), 0);
30
31
  void* data = na_get_pointer(obj);
31
32
  long size = NUM2LONG(rb_funcall(obj, rb_intern("size"), 0));
32
33
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Numo
4
4
  module Binrw
5
- VERSION = "0.1.1"
5
+ VERSION = "0.2.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numo-binrw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Murata Mitsuharu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-30 00:00:00.000000000 Z
11
+ date: 2021-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  requirements: []
104
- rubygems_version: 3.1.6
104
+ rubygems_version: 3.2.22
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Read binary files and handle them with `NArray`.