calc_test 0.1.2 → 0.1.3
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 +4 -4
- data/calc_test.gemspec +1 -1
- data/lib/calc_test.rb +8 -1
- data/lib/calc_test/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d3f6226b1b5a5a5dc72555503118b86f65c290d6b0a0b0a4364f845460b25ae
|
4
|
+
data.tar.gz: a1f42faa01560c316570f02e33d5a3fd0eda8884d1056d5756a5558b1a795499
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9a6e367f451408573380d64b274b7faec9078130e929f3d83c15b88b7920568ad4ac0f373bd4224846bec6e7c810c1e816c82fed24ea2a973fd9faf62411309
|
7
|
+
data.tar.gz: 582a7d752c6ca73eda4968cc9885b4a8de46dc4e15e6244bdd0d6d34dc9946a1ef0a8ff29d6a0014d1f8cf5152069f55bea6b7dca834e5cf847ee81a0fe025df
|
data/calc_test.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = %q{Simple calculate test}
|
12
12
|
spec.description = %q{Simple calculate test}
|
13
|
-
spec.homepage = "https://
|
13
|
+
spec.homepage = "https://github.com/maeda1150/calc_test"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
data/lib/calc_test.rb
CHANGED
@@ -3,7 +3,14 @@ require 'ffi'
|
|
3
3
|
|
4
4
|
module CalcTest
|
5
5
|
extend FFI::Library
|
6
|
-
|
6
|
+
|
7
|
+
if File.exist?('calc_test/calc_test.bundle')
|
8
|
+
ffi_lib File.expand_path('calc_test/calc_test.bundle', File.dirname(__FILE__))
|
9
|
+
else
|
10
|
+
ffi_lib File.expand_path('../ext/calc_test/calc_test.bundle', File.dirname(__FILE__))
|
11
|
+
end
|
12
|
+
|
7
13
|
attach_function :add, [:int, :int], :int
|
8
14
|
attach_function :sub, [:int, :int], :int
|
9
15
|
end
|
16
|
+
|
data/lib/calc_test/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: calc_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- maeda1150
|
@@ -92,7 +92,7 @@ files:
|
|
92
92
|
- ext/calc_test/extconf.rb
|
93
93
|
- lib/calc_test.rb
|
94
94
|
- lib/calc_test/version.rb
|
95
|
-
homepage: https://
|
95
|
+
homepage: https://github.com/maeda1150/calc_test
|
96
96
|
licenses:
|
97
97
|
- MIT
|
98
98
|
metadata: {}
|