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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32c2ed6e69bf8a85003be68f8da6edb7041ee5c3
4
- data.tar.gz: 756f587895159b8728c4fc4a5197d3d5f421a274
3
+ metadata.gz: bcc736c5e16150f8ce62f83869851d35ace417ce
4
+ data.tar.gz: 58d112dee618ed6bc92f602032dfcff4198c32d1
5
5
  SHA512:
6
- metadata.gz: da917eb387622b237ab18d5dc126f562b753bb3ca8da1e1c735b1b85356407fcc1526ea9510482b24766381bb073469c0371e79bf2cfd18a938c2204886781f8
7
- data.tar.gz: f9c75fdb0d66b7a260483c4d9c93cdc0551afcc46cab85337f22219d2d89465f97c5b7c5b7778a2b10060dbc83e6bd743c9f73ac90d69ea12b43db8054ad3a00
6
+ metadata.gz: 9c71d397758f21728344927620db4959d3dd6a7c3e18efbe92cb4e444166301395111f87a8d6e41580c7d8155a8dfbf0273ba5ec0f39d20ca1518ac6085110a0
7
+ data.tar.gz: d247256a12ab3fdccf7f95d689fe3c23e9946145bdae180c915e3429aaf0e6d03073628ad7389185d2d950b3a17db510f306d278517923772cb7fd31a0620444
data/Cargo.lock CHANGED
@@ -1,6 +1,6 @@
1
1
  [root]
2
2
  name = "fast_woothee"
3
- version = "1.0.1"
3
+ version = "1.0.2"
4
4
  dependencies = [
5
5
  "ruru 0.9.3 (registry+https://github.com/rust-lang/crates.io-index)",
6
6
  "woothee 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
data/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "fast_woothee"
3
- version = "1.0.2"
3
+ version = "1.0.3"
4
4
  authors = ["Ian Ker-Seymer <i.kerseymer@gmail.com>"]
5
5
  repository = "https://github.com/ianks/fast_woothee"
6
6
  publish = false
data/README.md CHANGED
@@ -7,7 +7,9 @@ performant, and safe user-agent parsing.
7
7
 
8
8
  ## Installation
9
9
 
10
- Add this line to your application's Gemfile:
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
@@ -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.2"
9
+ spec.version = "1.0.3"
10
10
  spec.authors = ["Ian Ker-Seymer"]
11
11
  spec.email = ["i.kerseymer@gmail.com"]
12
12
 
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.2").freeze());
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
  });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_woothee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Ker-Seymer