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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fedec944a0fedaeb36ac93f055bc02a592e2492413225048bbee1a59e02229a5
4
- data.tar.gz: 6c39ddaae6141e587f89b66481189b1f192c5e4305fdd354cae11311cc4c113e
3
+ metadata.gz: 28daa94903e33efd2969e6ea427cf78827975e723ab2c1becce8dab76d3d3ba5
4
+ data.tar.gz: 62c3b932280c7156c9aa8481ce9d326bb543d5fe90e358eff18e7c971369ad02
5
5
  SHA512:
6
- metadata.gz: 61d8e057f0d62b1f5333dded602b7a7bb51aaebcb353e03cb78cf6c21108c4c36950258a0639c76737ff7b124f407dd007583415c5c6b5acb6e4898c6bd3e30a
7
- data.tar.gz: '09f02475796388ba976a2db309c364ff64d4989c15d6037b820b10be46da986f4dd1dff76042e807169709e2cb30c62d279f223f438c6c93cdc94cfcaea3e87a'
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
@@ -0,0 +1,3 @@
1
+ module Configure
2
+ VERSION = "0.3.3"
3
+ end
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.2
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