fast_woothee 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Cargo.lock +1 -1
- data/Cargo.toml +1 -1
- data/README.md +3 -1
- data/fast_woothee.gemspec +1 -1
- data/lib/fast_woothee.rb +4 -2
- data/src/lib.rs +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcc736c5e16150f8ce62f83869851d35ace417ce
|
4
|
+
data.tar.gz: 58d112dee618ed6bc92f602032dfcff4198c32d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c71d397758f21728344927620db4959d3dd6a7c3e18efbe92cb4e444166301395111f87a8d6e41580c7d8155a8dfbf0273ba5ec0f39d20ca1518ac6085110a0
|
7
|
+
data.tar.gz: d247256a12ab3fdccf7f95d689fe3c23e9946145bdae180c915e3429aaf0e6d03073628ad7389185d2d950b3a17db510f306d278517923772cb7fd31a0620444
|
data/Cargo.lock
CHANGED
data/Cargo.toml
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,9 @@ performant, and safe user-agent parsing.
|
|
7
7
|
|
8
8
|
## Installation
|
9
9
|
|
10
|
-
|
10
|
+
Having Rust/Cargo installed is _optional_. If it is not installed, the gem will
|
11
|
+
download the libs binary automatically. Simply add this line to your
|
12
|
+
application's Gemfile:
|
11
13
|
|
12
14
|
```ruby
|
13
15
|
gem 'fast_woothee'
|
data/fast_woothee.gemspec
CHANGED
data/lib/fast_woothee.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
require 'thermite/fiddle'
|
3
3
|
|
4
|
+
gem_root = File.dirname(File.dirname(__FILE__))
|
5
|
+
|
4
6
|
Thermite::Fiddle.load_module 'initialize_fast_woothee',
|
5
|
-
cargo_project_path:
|
6
|
-
ruby_project_path:
|
7
|
+
cargo_project_path: gem_root,
|
8
|
+
ruby_project_path: gem_root
|
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.0.3").freeze());
|
46
46
|
itself.def_self("parse", parse);
|
47
47
|
itself.def_self("crawler?", crawler);
|
48
48
|
});
|