tidy_ffi 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +5 -15
- data/CHANGELOG +1 -0
- data/lib/tidy_ffi/lib_tidy.rb +16 -2
- data/lib/tidy_ffi/version.rb +1 -1
- data/tidy_ffi.gemspec +0 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4d073b2cbdce80a19a33055f8910589a3b7841e7ffcf9ec27aafec4ea59b16bc
|
4
|
+
data.tar.gz: e4aa9a170bff9541231109e29001b41729199ff63cddc0c779c70751fe292230
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bce33000dd9c85a1fa4a3f83efdfc2d312bba2f21ccae213cca220695dd3433269a91b739e2bcc5eb3698ffc18fba2539ea887b54903333cff945c66dc2016b
|
7
|
+
data.tar.gz: ff9399989fafa44d46771d3b3bfeb70f6f99bf89541e8eaf81b262a4bf204a3e992fdbc0f614e7f9b60e907a873387acc7a6d216cfb7381ba3cd5ea620d033fe
|
data/.travis.yml
CHANGED
@@ -3,21 +3,11 @@ before_install:
|
|
3
3
|
- sudo apt-get update -qq
|
4
4
|
- sudo apt-get install -qq libtidy-dev
|
5
5
|
rvm:
|
6
|
-
- 1.8.7
|
7
|
-
- 1.9.3
|
8
6
|
- 2.1
|
9
7
|
- 2.2
|
10
|
-
- 2.3
|
11
|
-
- 2.4
|
12
|
-
- 2.5
|
8
|
+
- 2.3
|
9
|
+
- 2.4
|
10
|
+
- 2.5
|
13
11
|
- 2.6
|
14
|
-
-
|
15
|
-
-
|
16
|
-
- ruby-head
|
17
|
-
- jruby-head
|
18
|
-
matrix:
|
19
|
-
allow_failures:
|
20
|
-
- rvm: ree
|
21
|
-
- rvm: ruby-head
|
22
|
-
- rvm: jruby-head
|
23
|
-
fast_finish: true
|
12
|
+
- 2.7
|
13
|
+
- jruby
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
v1.0.1. Support Debian buster (and official ruby image) without development packages installed (thanks to Rodrigo Rosenfeld Rosas (@rosenfeld))
|
1
2
|
v1.0.0. Support Debian buster by delegating library lookup to FFI gem (thanks to Laurent Arnoud (@spk))
|
2
3
|
v0.1.6. Relax version constraint of the FFI gem dependency
|
3
4
|
v0.1.5. Fix JRuby issues.
|
data/lib/tidy_ffi/lib_tidy.rb
CHANGED
@@ -4,8 +4,22 @@
|
|
4
4
|
class TidyFFI::LibTidy #:nodoc:
|
5
5
|
extend FFI::Library
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
# Set paths to lib tidy library.
|
8
|
+
#
|
9
|
+
# There are 3 things to note here:
|
10
|
+
#
|
11
|
+
# 1. The best way to set the path is just specify tidy, that works if development
|
12
|
+
# packages are installed.
|
13
|
+
#
|
14
|
+
# 2. https://github.com/ffi/ffi/wiki/Loading-Libraries#linux-packages says that
|
15
|
+
# to support systems without development packages, by specifying the specific
|
16
|
+
# version. If it doesn't work on your system, please consider adding it here,
|
17
|
+
# and dropping the old versions, when become obsolete
|
18
|
+
#
|
19
|
+
# 3. Absolute paths (looking in a bunch of directories). I consider this
|
20
|
+
# deprecated way of setting the path. If you ever change the major version
|
21
|
+
# please remove it
|
22
|
+
PATHS = Array(['tidy', 'tidy.so.5deb1'] + Dir['/{opt,usr}/{,local/}lib{,64}/libtidy{,-*}.{dylib,so*}']).freeze
|
9
23
|
begin
|
10
24
|
ffi_lib(TidyFFI.library_path || PATHS)
|
11
25
|
rescue LoadError
|
data/lib/tidy_ffi/version.rb
CHANGED
data/tidy_ffi.gemspec
CHANGED
@@ -11,8 +11,6 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.email = %q{libc@libc.st}
|
12
12
|
s.homepage = %q{http://github.com/libc/tidy_ffi}
|
13
13
|
|
14
|
-
s.rubyforge_project = %q{tidy-ffi}
|
15
|
-
|
16
14
|
s.files = `git ls-files`.split("\n")
|
17
15
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tidy_ffi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugene Pimenov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -69,8 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
|
73
|
-
rubygems_version: 2.6.13
|
72
|
+
rubygems_version: 3.1.2
|
74
73
|
signing_key:
|
75
74
|
specification_version: 4
|
76
75
|
summary: Tidy library interface via FFI
|