ffi-hydrogen 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: 4b354f8b31c13a98f4e2b428460c3e500b69ad7950d262c3f52289ce7be980e2
4
- data.tar.gz: c514a4652a44f06e7f9ce0b05dafe0e9e4af77d35eb74c3510aaf7ad17d5df3e
3
+ metadata.gz: be2df25de67fed6151c89b7d8a3647f22f5ac976cf79fa7626c233fc39690105
4
+ data.tar.gz: 5095d0818bb994b2869797e8e98fc68aca3be9d2d593d0b0de7674037836caf3
5
5
  SHA512:
6
- metadata.gz: 7f4b4c58a020a134abb56fd2ac9560696e4e0ab2a51e1e49568d107f3bc539632e3ac8652e511bf7dba6e4137663ab636e006c766a875b3c5367f2b2e4a41865
7
- data.tar.gz: 7a9fcb191ff8304d783c01aeb263f1e81e8f05ae69097ad8e853f5e36b442faca9d49cb3344ebe79395052687bf93fd6ab406ebdfd5751b3369ce2d8bb1c3122
6
+ metadata.gz: 6a1eaf762bd83870e62c306c88ba5684a81b949e1dc9e3fdceeeb204abded6c0c268ea6be32ec7a2109a606fdceb8e4d7e5be081fb354422a800efdd634e8cf8
7
+ data.tar.gz: fa26df83d0b1d69a4fe5237e7ec8d3a8a3da539673deb25de624e690fb59757b928e2c067e671b01ae72756a00f3932fe092b7e6faecee513415bbe6d6de88b2
@@ -15,7 +15,13 @@ task :compile_shared do
15
15
  " -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wswitch-enum"\
16
16
  " -Wno-type-limits"
17
17
 
18
- cflags = "-O3 -march=native -fPIC -fno-exceptions #{wflags}"
18
+ cpuflag = if RUBY_PLATFORM =~ /arm64/ && RUBY_PLATFORM =~ /darwin/
19
+ "-mcpu=apple-m1"
20
+ else
21
+ "-march=native"
22
+ end
23
+
24
+ cflags = "-O3 #{cpuflag} -fPIC -fno-exceptions #{wflags}"
19
25
  cwd = ::File.expand_path(::File.dirname(__FILE__))
20
26
 
21
27
  ::Dir.chdir(cwd) do
@@ -24,7 +30,7 @@ task :compile_shared do
24
30
  sys("cc -c #{cflags} main.c -o main.o")
25
31
 
26
32
  # main.dylib: main.o
27
- # $(CC) $< -shared -o $@
33
+ # $(CC) $< -shared -o $@
28
34
  sys("cc main.o -shared -o main.#{::FFI::Platform::LIBSUFFIX}")
29
35
  end
30
36
  end
data/ffi-hydrogen.gemspec CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "ffi-hydrogen"
6
- spec.version = "0.1.3"
6
+ spec.version = "0.1.4"
7
7
  spec.authors = ["Marcos Minond"]
8
8
  spec.email = ["marcos.minond@mx.com"]
9
9
 
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_dependency "ffi"
24
24
 
25
25
  spec.add_development_dependency "benchmark-ips", "~> 2.7.2"
26
- spec.add_development_dependency "bundler", "~> 1.16"
26
+ spec.add_development_dependency "bundler"
27
27
  spec.add_development_dependency "mad_rubocop"
28
28
  spec.add_development_dependency "pry"
29
29
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-hydrogen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcos Minond
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-03 00:00:00.000000000 Z
11
+ date: 2022-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '1.16'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '1.16'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mad_rubocop
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -136,7 +136,7 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
- description:
139
+ description:
140
140
  email:
141
141
  - marcos.minond@mx.com
142
142
  executables: []
@@ -304,7 +304,7 @@ files:
304
304
  homepage: https://github.com/minond/ffi-hydrogen
305
305
  licenses: []
306
306
  metadata: {}
307
- post_install_message:
307
+ post_install_message:
308
308
  rdoc_options: []
309
309
  require_paths:
310
310
  - lib
@@ -319,9 +319,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
319
319
  - !ruby/object:Gem::Version
320
320
  version: '0'
321
321
  requirements: []
322
- rubyforge_project:
323
- rubygems_version: 2.7.8
324
- signing_key:
322
+ rubygems_version: 3.0.1
323
+ signing_key:
325
324
  specification_version: 4
326
325
  summary: libhydrogen + encoding = cryptographically sound, URL safe string = libhydrogen
327
326
  + encoding