libconfigure 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ruby-gem/bin/libconfigure.dylib +0 -0
- data/ruby-gem/configure.rb +23 -0
- data/ruby-gem/version.rb +3 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28daa94903e33efd2969e6ea427cf78827975e723ab2c1becce8dab76d3d3ba5
|
4
|
+
data.tar.gz: 62c3b932280c7156c9aa8481ce9d326bb543d5fe90e358eff18e7c971369ad02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1361abcf699b5513286275f915807c203a68884c261154675b89c7006dc370dc4adf2522dfe2df34b1fc57127ba36bb886142d2649fa015f04d73b9674360b74
|
7
|
+
data.tar.gz: c80672dbc4fb4e85157085245d6164c72dc12d9b286073f615468a22dc96ce736191d0bc08aee599bcd581204ce25aff368a84299b751f54f2d0188be3597c87
|
Binary file
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'ffi'
|
2
|
+
|
3
|
+
module Configure
|
4
|
+
extend FFI::Library
|
5
|
+
|
6
|
+
puts "Loaded `Configure` module"
|
7
|
+
|
8
|
+
is_development_environment = File.basename(File.dirname((File.expand_path(__dir__)))) == "configure"
|
9
|
+
|
10
|
+
puts "Is Development?"
|
11
|
+
puts is_development_environment
|
12
|
+
|
13
|
+
lib_name = File.join(__dir__, "bin", "libconfigure.dylib")
|
14
|
+
|
15
|
+
# if is_development_environment
|
16
|
+
# lib_name = File.join(File.dirname(File.expand_path(__dir__)), "target", "debug", "libconfigure.dylib")
|
17
|
+
# end
|
18
|
+
|
19
|
+
ffi_lib File.expand_path(lib_name, __dir__)
|
20
|
+
attach_function :init, [], :void
|
21
|
+
attach_function :apply, [:bool, :string], :void
|
22
|
+
attach_function :update, [:bool, :string], :void
|
23
|
+
end
|
data/ruby-gem/version.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libconfigure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- automattic
|
@@ -37,6 +37,8 @@ files:
|
|
37
37
|
- ruby-gem/bin/configure_init
|
38
38
|
- ruby-gem/bin/configure_update
|
39
39
|
- ruby-gem/bin/libconfigure.dylib
|
40
|
+
- ruby-gem/configure.rb
|
41
|
+
- ruby-gem/version.rb
|
40
42
|
homepage: https://rubygems.org/gems/libconfigure
|
41
43
|
licenses:
|
42
44
|
- MIT
|