fast_woothee 1.0.4 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -6
- data/Cargo.lock +28 -60
- data/Cargo.toml +2 -2
- data/README.md +9 -0
- data/fast_woothee.gemspec +1 -1
- data/src/lib.rs +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dceb01e868c83e7958f956cea5d564d71618c1ad
|
4
|
+
data.tar.gz: 653c0352571bcc817eca3ca239029eb3da62bf64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f693689297a68e0544ef1e027eb382f9f25f471ae813877596f1dafef171b99e8284a23611f67ffc996e7cbde2eb60371473277f939e403c8077fcec8bd3c11
|
7
|
+
data.tar.gz: 97ea6132e667ebf256bebc0d63bd6fc0dd172abf1ed35e55e375a1ac79c8a10f6c253babeb64737ea091c85b1badc4817c1f9329a342a960254c7cef77be6f45
|
data/.travis.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
sudo:
|
2
|
+
sudo: required
|
3
3
|
language: rust
|
4
4
|
os:
|
5
5
|
- linux
|
@@ -11,14 +11,14 @@ env:
|
|
11
11
|
global:
|
12
12
|
- THERMITE_DEBUG_FILENAME: "/tmp/thermite-debug.log"
|
13
13
|
matrix:
|
14
|
-
- WOOTHEE_RUBY_VERSION: 2.3.
|
15
|
-
- WOOTHEE_RUBY_VERSION: 2.4.
|
14
|
+
- WOOTHEE_RUBY_VERSION: 2.3.4
|
15
|
+
- WOOTHEE_RUBY_VERSION: 2.4.1
|
16
16
|
matrix:
|
17
17
|
include:
|
18
18
|
- os: osx
|
19
|
-
env: WOOTHEE_RUBY_VERSION=2.3.
|
19
|
+
env: WOOTHEE_RUBY_VERSION=2.3.4
|
20
20
|
- os: osx
|
21
|
-
env: WOOTHEE_RUBY_VERSION=2.4.
|
21
|
+
env: WOOTHEE_RUBY_VERSION=2.4.1
|
22
22
|
cache:
|
23
23
|
cargo: true
|
24
24
|
directories:
|
@@ -26,7 +26,7 @@ cache:
|
|
26
26
|
- "$HOME/.cache/pip"
|
27
27
|
before_install:
|
28
28
|
- |
|
29
|
-
rvm
|
29
|
+
rvm reinstall "$WOOTHEE_RUBY_VERSION"
|
30
30
|
rvm use "$WOOTHEE_RUBY_VERSION"
|
31
31
|
ruby --version
|
32
32
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]] && ! which bundle > /dev/null; then
|
data/Cargo.lock
CHANGED
@@ -1,36 +1,27 @@
|
|
1
1
|
[root]
|
2
2
|
name = "fast_woothee"
|
3
|
-
version = "1.0
|
3
|
+
version = "1.2.0"
|
4
4
|
dependencies = [
|
5
5
|
"ruru 0.9.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
6
|
-
"woothee 0.
|
6
|
+
"woothee 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
7
7
|
]
|
8
8
|
|
9
9
|
[[package]]
|
10
10
|
name = "aho-corasick"
|
11
|
-
version = "0.6.
|
11
|
+
version = "0.6.3"
|
12
12
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
13
13
|
dependencies = [
|
14
14
|
"memchr 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
15
15
|
]
|
16
16
|
|
17
|
-
[[package]]
|
18
|
-
name = "kernel32-sys"
|
19
|
-
version = "0.2.2"
|
20
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
21
|
-
dependencies = [
|
22
|
-
"winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
23
|
-
"winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
24
|
-
]
|
25
|
-
|
26
17
|
[[package]]
|
27
18
|
name = "lazy_static"
|
28
|
-
version = "0.2.
|
19
|
+
version = "0.2.8"
|
29
20
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
30
21
|
|
31
22
|
[[package]]
|
32
23
|
name = "libc"
|
33
|
-
version = "0.2.
|
24
|
+
version = "0.2.29"
|
34
25
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
35
26
|
|
36
27
|
[[package]]
|
@@ -38,24 +29,24 @@ name = "memchr"
|
|
38
29
|
version = "1.0.1"
|
39
30
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
40
31
|
dependencies = [
|
41
|
-
"libc 0.2.
|
32
|
+
"libc 0.2.29 (registry+https://github.com/rust-lang/crates.io-index)",
|
42
33
|
]
|
43
34
|
|
44
35
|
[[package]]
|
45
36
|
name = "regex"
|
46
|
-
version = "0.2.
|
37
|
+
version = "0.2.2"
|
47
38
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
48
39
|
dependencies = [
|
49
|
-
"aho-corasick 0.6.
|
40
|
+
"aho-corasick 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
50
41
|
"memchr 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
51
|
-
"regex-syntax 0.4.
|
52
|
-
"thread_local 0.3.
|
42
|
+
"regex-syntax 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
43
|
+
"thread_local 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
53
44
|
"utf8-ranges 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
54
45
|
]
|
55
46
|
|
56
47
|
[[package]]
|
57
48
|
name = "regex-syntax"
|
58
|
-
version = "0.4.
|
49
|
+
version = "0.4.1"
|
59
50
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
60
51
|
|
61
52
|
[[package]]
|
@@ -63,7 +54,7 @@ name = "ruby-sys"
|
|
63
54
|
version = "0.2.20"
|
64
55
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
65
56
|
dependencies = [
|
66
|
-
"libc 0.2.
|
57
|
+
"libc 0.2.29 (registry+https://github.com/rust-lang/crates.io-index)",
|
67
58
|
]
|
68
59
|
|
69
60
|
[[package]]
|
@@ -71,31 +62,22 @@ name = "ruru"
|
|
71
62
|
version = "0.9.3"
|
72
63
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
73
64
|
dependencies = [
|
74
|
-
"lazy_static 0.2.
|
65
|
+
"lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
75
66
|
"ruby-sys 0.2.20 (registry+https://github.com/rust-lang/crates.io-index)",
|
76
67
|
]
|
77
68
|
|
78
|
-
[[package]]
|
79
|
-
name = "thread-id"
|
80
|
-
version = "3.0.0"
|
81
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
82
|
-
dependencies = [
|
83
|
-
"kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
84
|
-
"libc 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)",
|
85
|
-
]
|
86
|
-
|
87
69
|
[[package]]
|
88
70
|
name = "thread_local"
|
89
|
-
version = "0.3.
|
71
|
+
version = "0.3.4"
|
90
72
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
91
73
|
dependencies = [
|
92
|
-
"
|
93
|
-
"unreachable 0.
|
74
|
+
"lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
75
|
+
"unreachable 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
94
76
|
]
|
95
77
|
|
96
78
|
[[package]]
|
97
79
|
name = "unreachable"
|
98
|
-
version = "0.
|
80
|
+
version = "1.0.0"
|
99
81
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
100
82
|
dependencies = [
|
101
83
|
"void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
@@ -111,40 +93,26 @@ name = "void"
|
|
111
93
|
version = "1.0.2"
|
112
94
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
113
95
|
|
114
|
-
[[package]]
|
115
|
-
name = "winapi"
|
116
|
-
version = "0.2.8"
|
117
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
118
|
-
|
119
|
-
[[package]]
|
120
|
-
name = "winapi-build"
|
121
|
-
version = "0.1.1"
|
122
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
123
|
-
|
124
96
|
[[package]]
|
125
97
|
name = "woothee"
|
126
|
-
version = "0.
|
98
|
+
version = "0.7.3"
|
127
99
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
128
100
|
dependencies = [
|
129
|
-
"lazy_static 0.2.
|
130
|
-
"regex 0.2.
|
101
|
+
"lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
102
|
+
"regex 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
131
103
|
]
|
132
104
|
|
133
105
|
[metadata]
|
134
|
-
"checksum aho-corasick 0.6.
|
135
|
-
"checksum
|
136
|
-
"checksum
|
137
|
-
"checksum libc 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)" = "88ee81885f9f04bff991e306fea7c1c60a5f0f9e409e99f6b40e3311a3363135"
|
106
|
+
"checksum aho-corasick 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)" = "500909c4f87a9e52355b26626d890833e9e1d53ac566db76c36faa984b889699"
|
107
|
+
"checksum lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "3b37545ab726dd833ec6420aaba8231c5b320814b9029ad585555d2a03e94fbf"
|
108
|
+
"checksum libc 0.2.29 (registry+https://github.com/rust-lang/crates.io-index)" = "8a014d9226c2cc402676fbe9ea2e15dd5222cd1dd57f576b5b283178c944a264"
|
138
109
|
"checksum memchr 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1dbccc0e46f1ea47b9f17e6d67c5a96bd27030519c519c9c91327e31275a47b4"
|
139
|
-
"checksum regex 0.2.
|
140
|
-
"checksum regex-syntax 0.4.
|
110
|
+
"checksum regex 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1731164734096285ec2a5ec7fea5248ae2f5485b3feeb0115af4fda2183b2d1b"
|
111
|
+
"checksum regex-syntax 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ad890a5eef7953f55427c50575c680c42841653abd2b028b68cd223d157f62db"
|
141
112
|
"checksum ruby-sys 0.2.20 (registry+https://github.com/rust-lang/crates.io-index)" = "e71509f17ce93733dc196258e168b58050490a156b04563816a8120a74ba04c7"
|
142
113
|
"checksum ruru 0.9.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6486d6c50b7a08246a492a61893635c1977d41c138041d443eb603f6298e0273"
|
143
|
-
"checksum
|
144
|
-
"checksum
|
145
|
-
"checksum unreachable 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1f2ae5ddb18e1c92664717616dd9549dde73f539f01bd7b77c2edb2446bdff91"
|
114
|
+
"checksum thread_local 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "1697c4b57aeeb7a536b647165a2825faddffb1d3bad386d507709bd51a90bb14"
|
115
|
+
"checksum unreachable 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56"
|
146
116
|
"checksum utf8-ranges 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "662fab6525a98beff2921d7f61a39e7d59e0b425ebc7d0d9e66d316e55124122"
|
147
117
|
"checksum void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d"
|
148
|
-
"checksum
|
149
|
-
"checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
|
150
|
-
"checksum woothee 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5eff4904540e8ee3b18e107610397f48cd78983e7d327c9769814ae30b0d34a6"
|
118
|
+
"checksum woothee 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)" = "7e7c2cece51be2a2f25518a9efdd303d5ca8dfa619272f091e7dedbba95d1873"
|
data/Cargo.toml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
[package]
|
2
2
|
name = "fast_woothee"
|
3
|
-
version = "1.0
|
3
|
+
version = "1.2.0"
|
4
4
|
authors = ["Ian Ker-Seymer <i.kerseymer@gmail.com>"]
|
5
5
|
repository = "https://github.com/ianks/fast_woothee"
|
6
6
|
publish = false
|
@@ -9,7 +9,7 @@ publish = false
|
|
9
9
|
crate-type = ["dylib"]
|
10
10
|
|
11
11
|
[dependencies]
|
12
|
-
woothee = "^0.
|
12
|
+
woothee = "^0.7"
|
13
13
|
ruru = "^0.9"
|
14
14
|
|
15
15
|
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# FastWoothee
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/fast_woothee.svg)](https://badge.fury.io/rb/fast_woothee)
|
3
4
|
[![Build Status](https://travis-ci.org/ianks/fast_woothee.svg?branch=master)](https://travis-ci.org/ianks/fast_woothee)
|
4
5
|
|
5
6
|
Ruby Bindings to [woothee-rust](https://github.com/hhatto/woothee-rust) for
|
@@ -30,6 +31,14 @@ FastWoothee.parse 'Mozilla/5.0 (iPad; U; CPU OS 3_2_1 like Mac OS X; en-us) Appl
|
|
30
31
|
# {:name=>"Webview", :category=>"smartphone", :os=>"iPad", :os_version=>"3.2.1", :browser_type=>"browser", :version=>"UNKNOWN", :vendor=>"OS vendor"}
|
31
32
|
```
|
32
33
|
|
34
|
+
## Benchmarks
|
35
|
+
|
36
|
+
```
|
37
|
+
user system total real
|
38
|
+
woothee 2.240000 0.020000 2.260000 ( 2.261497)
|
39
|
+
fast-woothee 1.100000 0.010000 1.110000 ( 1.134596)
|
40
|
+
```
|
41
|
+
|
33
42
|
## Development
|
34
43
|
|
35
44
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
data/fast_woothee.gemspec
CHANGED
data/src/lib.rs
CHANGED
@@ -42,7 +42,7 @@ methods!(
|
|
42
42
|
#[no_mangle]
|
43
43
|
pub extern fn initialize_fast_woothee() {
|
44
44
|
Class::new("FastWoothee", None).define(|itself| {
|
45
|
-
itself.const_set("VERSION", &RString::new("1.0
|
45
|
+
itself.const_set("VERSION", &RString::new("1.2.0").freeze());
|
46
46
|
itself.def_self("parse", parse);
|
47
47
|
itself.def_self("crawler?", crawler);
|
48
48
|
});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fast_woothee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Ker-Seymer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thermite
|
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
163
|
version: '0'
|
164
164
|
requirements: []
|
165
165
|
rubyforge_project:
|
166
|
-
rubygems_version: 2.
|
166
|
+
rubygems_version: 2.6.12
|
167
167
|
signing_key:
|
168
168
|
specification_version: 4
|
169
169
|
summary: Ruby bindings for woothee-rust
|