hyperbuild 0.0.27

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.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/lib/hyperbuild.rb +18 -0
  3. data/lib/linux +0 -0
  4. data/lib/macos +0 -0
  5. metadata +62 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e2ecb04d69e6820cb386fea2c8a3bf2bd282418b26c7e1044429118797956ce5
4
+ data.tar.gz: fd2c1cba2d79d3efdf0ff6e4dea0d0d6491b3fe240f2a4604632ebac6271290a
5
+ SHA512:
6
+ metadata.gz: 193453d84c4e68f7b1c9ee24bccf159918b6c97add863a0a296c10531c57419c61755e94284a0cca2c1c8bffae12eb3575f2fbeeb7ddc3b95109d44d61543200
7
+ data.tar.gz: 45f6654248824035e3ee196240bb273d8252c95fe046a1b1c0bb2c754e9ad1c189c148f63a07bc5c69f5d0fc8199bec2a78bc705e8ffe3ac9bf5e462470af1ef
@@ -0,0 +1,18 @@
1
+ require 'fiddle'
2
+
3
+ class HyperbuildLoader
4
+ def self.operating_system
5
+ case RbConfig::CONFIG['host_os'].downcase
6
+ when /linux|bsd|solaris/ then 'linux'
7
+ when /darwin/ then 'macos'
8
+ when /mingw|mswin/ then 'windows'
9
+ else 'unknown'
10
+ end
11
+ end
12
+
13
+ def self.lib_path
14
+ File.join(__dir__, operating_system)
15
+ end
16
+ end
17
+
18
+ Fiddle::Function.new(Fiddle.dlopen(HyperbuildLoader.lib_path)['Init_hyperbuild'], [], Fiddle::TYPE_VOIDP).call
Binary file
Binary file
metadata ADDED
@@ -0,0 +1,62 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hyperbuild
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.27
5
+ platform: ruby
6
+ authors:
7
+ - Wilson Lin
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-01-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: fiddle
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description:
28
+ email:
29
+ - code@wilsonl.in
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - lib/hyperbuild.rb
35
+ - lib/linux
36
+ - lib/macos
37
+ homepage: https://github.com/wilsonzlin/hyperbuild
38
+ licenses:
39
+ - MIT
40
+ metadata: {}
41
+ post_install_message:
42
+ rdoc_options: []
43
+ require_paths:
44
+ - lib
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ requirements: []
56
+ rubyforge_project:
57
+ rubygems_version: 2.7.6.2
58
+ signing_key:
59
+ specification_version: 4
60
+ summary: Fast one-pass in-place HTML minifier written in Rust with context-aware whitespace
61
+ handling
62
+ test_files: []