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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ac671f53f6d4a908e9f1f5118694601325caf4c
4
- data.tar.gz: a16cfd5cb912090fd6b751358b1d0e918ac91879
3
+ metadata.gz: dceb01e868c83e7958f956cea5d564d71618c1ad
4
+ data.tar.gz: 653c0352571bcc817eca3ca239029eb3da62bf64
5
5
  SHA512:
6
- metadata.gz: e23b0ebc3eea82661df5946134e371f235a1495a7e91fc4b97cab66fb71344b2833ea7d8a38aee24365b4f7750d4c4e6a4ff39c766a485cafa682ec5edffcec9
7
- data.tar.gz: e0415a131b3b00f43bd7c633b7d2b2ca783b310e1173439583fd48bfeb1a7eba92cf33bbd0a370b05b6a59423b147b47b21ecc0d2664eb5aedcf8052e6d31cab
6
+ metadata.gz: 0f693689297a68e0544ef1e027eb382f9f25f471ae813877596f1dafef171b99e8284a23611f67ffc996e7cbde2eb60371473277f939e403c8077fcec8bd3c11
7
+ data.tar.gz: 97ea6132e667ebf256bebc0d63bd6fc0dd172abf1ed35e55e375a1ac79c8a10f6c253babeb64737ea091c85b1badc4817c1f9329a342a960254c7cef77be6f45
data/.travis.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- sudo: false
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.3
15
- - WOOTHEE_RUBY_VERSION: 2.4.0
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.3
19
+ env: WOOTHEE_RUBY_VERSION=2.3.4
20
20
  - os: osx
21
- env: WOOTHEE_RUBY_VERSION=2.4.0
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 install "$WOOTHEE_RUBY_VERSION"
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.4"
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.0 (registry+https://github.com/rust-lang/crates.io-index)",
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.2"
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.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.21"
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.21 (registry+https://github.com/rust-lang/crates.io-index)",
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.1"
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.2 (registry+https://github.com/rust-lang/crates.io-index)",
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.0 (registry+https://github.com/rust-lang/crates.io-index)",
52
- "thread_local 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
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.0"
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.21 (registry+https://github.com/rust-lang/crates.io-index)",
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.2 (registry+https://github.com/rust-lang/crates.io-index)",
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.3"
71
+ version = "0.3.4"
90
72
  source = "registry+https://github.com/rust-lang/crates.io-index"
91
73
  dependencies = [
92
- "thread-id 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
93
- "unreachable 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
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.1.1"
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.6.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.2 (registry+https://github.com/rust-lang/crates.io-index)",
130
- "regex 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
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.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0638fd549427caa90c499814196d1b9e3725eb4d15d7339d6de073a680ed0ca2"
135
- "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
136
- "checksum lazy_static 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6abe0ee2e758cd6bc8a2cd56726359007748fbf4128da998b65d0b70f881e19b"
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.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4278c17d0f6d62dfef0ab00028feb45bd7d2102843f80763474eeb1be8a10c01"
140
- "checksum regex-syntax 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2f9191b1f57603095f105d317e375d19b1c9c5c3185ea9633a99a6dcbed04457"
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 thread-id 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "4437c97558c70d129e40629a5b385b3fb1ffac301e63941335e4d354081ec14a"
144
- "checksum thread_local 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "c85048c6260d17cf486ceae3282d9fb6b90be220bf5b28c400f5485ffc29f0c7"
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 winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
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.4"
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.6"
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
@@ -6,7 +6,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = "fast_woothee"
9
- spec.version = "1.0.4"
9
+ spec.version = "1.2.0"
10
10
  spec.authors = ["Ian Ker-Seymer"]
11
11
  spec.email = ["i.kerseymer@gmail.com"]
12
12
 
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.4").freeze());
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
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-03-03 00:00:00.000000000 Z
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.5.1
166
+ rubygems_version: 2.6.12
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: Ruby bindings for woothee-rust