libconfigure 0.3.1 → 0.3.2
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
- metadata +3 -5
- data/ruby-gem/configure.rb +0 -10
- data/ruby-gem/ext/configure/extconf.rb +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fedec944a0fedaeb36ac93f055bc02a592e2492413225048bbee1a59e02229a5
|
4
|
+
data.tar.gz: 6c39ddaae6141e587f89b66481189b1f192c5e4305fdd354cae11311cc4c113e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61d8e057f0d62b1f5333dded602b7a7bb51aaebcb353e03cb78cf6c21108c4c36950258a0639c76737ff7b124f407dd007583415c5c6b5acb6e4898c6bd3e30a
|
7
|
+
data.tar.gz: '09f02475796388ba976a2db309c364ff64d4989c15d6037b820b10be46da986f4dd1dff76042e807169709e2cb30c62d279f223f438c6c93cdc94cfcaea3e87a'
|
Binary file
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- automattic
|
@@ -30,15 +30,13 @@ executables:
|
|
30
30
|
- configure_init
|
31
31
|
- configure_apply
|
32
32
|
- configure_update
|
33
|
-
extensions:
|
34
|
-
- ruby-gem/ext/configure/extconf.rb
|
33
|
+
extensions: []
|
35
34
|
extra_rdoc_files: []
|
36
35
|
files:
|
37
36
|
- ruby-gem/bin/configure_apply
|
38
37
|
- ruby-gem/bin/configure_init
|
39
38
|
- ruby-gem/bin/configure_update
|
40
|
-
- ruby-gem/
|
41
|
-
- ruby-gem/ext/configure/extconf.rb
|
39
|
+
- ruby-gem/bin/libconfigure.dylib
|
42
40
|
homepage: https://rubygems.org/gems/libconfigure
|
43
41
|
licenses:
|
44
42
|
- MIT
|
data/ruby-gem/configure.rb
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
require 'ffi'
|
2
|
-
|
3
|
-
module Configure
|
4
|
-
extend FFI::Library
|
5
|
-
lib_name = File.join("ext", "configure", "configure.bundle")
|
6
|
-
ffi_lib File.expand_path(lib_name, __dir__)
|
7
|
-
attach_function :init, [], :void
|
8
|
-
attach_function :apply, [:bool, :string], :void
|
9
|
-
attach_function :update, [:bool, :string], :void
|
10
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
require 'mkmf'
|
2
|
-
require 'os'
|
3
|
-
require 'tempfile'
|
4
|
-
require_relative '../../version'
|
5
|
-
|
6
|
-
compilationDirectory = Dir.pwd
|
7
|
-
configureDirectory = File.dirname(File.absolute_path(__FILE__))
|
8
|
-
bundlePath = File.join(compilationDirectory, 'configure.' + RbConfig::CONFIG['DLEXT'])
|
9
|
-
|
10
|
-
puts "Downloading libconfigure"
|
11
|
-
|
12
|
-
FileUtils.cp(configureDirectory + "/makefile.example", compilationDirectory + "/Makefile")
|
13
|
-
|
14
|
-
if OS.mac? then
|
15
|
-
command = "curl https://github.com/Automattic/configure/releases/download/#{Configure::VERSION}/libconfigure.dylib -L --output #{bundlePath}"
|
16
|
-
system(command)
|
17
|
-
else
|
18
|
-
puts "Unsupported Operating System"
|
19
|
-
exit 1
|
20
|
-
end
|
21
|
-
|
22
|
-
puts "Done"
|
23
|
-
exit 0
|