malachite 0.1.1 → 0.2.0

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
  SHA1:
3
- metadata.gz: e0d4faf7414b1425c42837576a75715dfca7a4aa
4
- data.tar.gz: e7bb2a59c491e964db73a1dd53729ef5934a6b8a
3
+ metadata.gz: ff11dd59ffe0df5b7eae8be219e16a80cb1b9cb9
4
+ data.tar.gz: 2144f93b6a19ccf95aee1ed03fb7eaf5ea8ef695
5
5
  SHA512:
6
- metadata.gz: a769d603d81d78202515ba33efd0d84e13620af4da47928b26fc973c2200233b247039dc3812e80772d4ec39ffd91723c7a279458be07137cefaa652141b7cff
7
- data.tar.gz: e0d51bcb92b24efcd2d72d8b915b0f27f6ade99f7284400399673f377b691d5cffe095f7686e3c05500adb3bb6d2de494495f2a58927bd4a688444cdbd59c6e8
6
+ metadata.gz: fe530d87de0f816e1521b9bd1f88fec25b365718ac6d245699d920ff1daebb191258001855919bcc2d3ccc548723cb6ead49c585f37f4706d34edb1840b666ba
7
+ data.tar.gz: fc702af8ebe46dc39be318d12edee7b00aacbd57b106df2e911c00179924651b1826709dea6a287500b3c6d8f4fea001a76e4e54f6578b063b66d96e2c1885f0
@@ -2,7 +2,7 @@ package main
2
2
 
3
3
  // #cgo darwin LDFLAGS: -Wl,-undefined -Wl,dynamic_lookup
4
4
  // #cgo !darwin LDFLAGS: -Wl,-unresolved-symbols=ignore-all
5
+ // #cgo CFLAGS: -IHEADER/ -IARCH/
5
6
  // #include <stdlib.h>
6
7
  // #include "ruby/ruby.h"
7
- // VALUE rb_utf8_str_new(const char *str, long len);
8
8
  import "C"
@@ -20,7 +20,8 @@ module Malachite
20
20
  private
21
21
 
22
22
  def cgo_tmpl
23
- File.read(File.expand_path('../cgo.tmpl', __FILE__))
23
+ cgo = File.read(File.expand_path('../cgo.tmpl', __FILE__))
24
+ return cgo.gsub(/HEADER/, RbConfig::CONFIG['rubyhdrdir']).gsub(/ARCH/, RbConfig::CONFIG['rubyarchhdrdir'])
24
25
  end
25
26
 
26
27
  def source_file(f)
@@ -1,3 +1,3 @@
1
1
  module Malachite
2
- VERSION = '0.1.1'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: malachite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zack Hubert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-07 00:00:00.000000000 Z
11
+ date: 2016-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json