fast_woothee 1.4.8 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f2a57af2b6fd280f98d5dd6773866f5e8b276d46d47196600485fa9a2ec9755
4
- data.tar.gz: c1e1bd69028c37a7179b313229862173f2a45548cff693dcc9a055c114325459
3
+ metadata.gz: 0cbc109b84093b95f98926eb9f3c4367b79ea0c20fc31fd3a1443ea825fa85b6
4
+ data.tar.gz: 66bfcce35a87c40638273e14e4a6ceb5797ec40018ff0c30b96630f42d8d8e3e
5
5
  SHA512:
6
- metadata.gz: c3119c9b734a7bd3405a7ddc63fded0ffc29bb278964b98d2f9bb86937091e17bdf3bba89bacfc53b51a639a07f46305cce087a4e345ab6c070805c363576434
7
- data.tar.gz: bbad4ed03bd51dcce5e67f396d026781af645d053f1e91ff64b46f643dd4a467d4bcb7d76dd1d0b6b1f6f9ee9b98e6151b12d1ec0978fa34c965e6d36ef09a3b
6
+ metadata.gz: 640107f1b0e588f3f0f2dcd4e3a622fa22c824eb6402532c3b2058e6d386c7874c62286f3820f53d01231cbdb03b725990b87e2d6f46658b98a15ec65efefb8a
7
+ data.tar.gz: f1ec6f9f279e32cf5e65c2fb6a25c157ac8400f714876292c571ceac5b6c6f4933539004cde71b351872b34525f40476d45df007be9f1764aa2a2f068fc27cbb
@@ -1 +1 @@
1
- 2.6.2
1
+ 2.7.1
@@ -13,12 +13,17 @@ env:
13
13
  matrix:
14
14
  - FWOOTHEE_RUBY_VERSION: 2.4.6
15
15
  - FWOOTHEE_RUBY_VERSION: 2.5.2
16
- - FWOOTHEE_RUBY_VERSION: 2.6.2
16
+ - FWOOTHEE_RUBY_VERSION: 2.6.6
17
+ - FWOOTHEE_RUBY_VERSION: 2.7.1
18
+
17
19
  matrix:
18
20
  include:
19
21
  - os: linux
20
22
  dist: trusty
21
- env: FWOOTHEE_RUBY_VERSION=2.6.2 RUBY_STATIC=1
23
+ env: FWOOTHEE_RUBY_VERSION=2.7.1 RUBY_STATIC=1
24
+ - os: linux
25
+ dist: trusty
26
+ env: FWOOTHEE_RUBY_VERSION=2.6.6 RUBY_STATIC=1
22
27
  - os: linux
23
28
  dist: trusty
24
29
  env: FWOOTHEE_RUBY_VERSION=2.4.6 RUBY_STATIC=1
@@ -27,19 +32,19 @@ matrix:
27
32
  env: FWOOTHEE_RUBY_VERSION=2.5.2 RUBY_STATIC=1
28
33
  - os: osx
29
34
  osx_image: xcode8
30
- env: FWOOTHEE_RUBY_VERSION=2.6.2
35
+ env: FWOOTHEE_RUBY_VERSION=2.6.6
31
36
  - os: osx
32
37
  osx_image: xcode9.3beta
33
- env: FWOOTHEE_RUBY_VERSION=2.6.2
38
+ env: FWOOTHEE_RUBY_VERSION=2.6.6
34
39
  - os: osx
35
40
  osx_image: xcode8
36
- env: FWOOTHEE_RUBY_VERSION=2.6.2 RUBY_STATIC=1
41
+ env: FWOOTHEE_RUBY_VERSION=2.6.6 RUBY_STATIC=1
37
42
  - os: osx
38
43
  osx_image: xcode9.2
39
- env: FWOOTHEE_RUBY_VERSION=2.6.2 RUBY_STATIC=1
44
+ env: FWOOTHEE_RUBY_VERSION=2.6.6 RUBY_STATIC=1
40
45
  - os: osx
41
46
  osx_image: xcode9.3beta
42
- env: FWOOTHEE_RUBY_VERSION=2.6.2 RUBY_STATIC=1
47
+ env: FWOOTHEE_RUBY_VERSION=2.6.6 RUBY_STATIC=1
43
48
  - os: osx
44
49
  osx_image: xcode8
45
50
  env: FWOOTHEE_RUBY_VERSION=2.4.6
@@ -70,6 +75,21 @@ matrix:
70
75
  - os: osx
71
76
  osx_image: xcode9.3beta
72
77
  env: FWOOTHEE_RUBY_VERSION=2.5.2 RUBY_STATIC=1
78
+ - os: osx
79
+ osx_image: xcode8
80
+ env: FWOOTHEE_RUBY_VERSION=2.7.1
81
+ - os: osx
82
+ osx_image: xcode9.3beta
83
+ env: FWOOTHEE_RUBY_VERSION=2.7.1
84
+ - os: osx
85
+ osx_image: xcode8
86
+ env: FWOOTHEE_RUBY_VERSION=2.7.1 RUBY_STATIC=1
87
+ - os: osx
88
+ osx_image: xcode9.2
89
+ env: FWOOTHEE_RUBY_VERSION=2.7.1 RUBY_STATIC=1
90
+ - os: osx
91
+ osx_image: xcode9.3beta
92
+ env: FWOOTHEE_RUBY_VERSION=2.7.1 RUBY_STATIC=1
73
93
 
74
94
  cache:
75
95
  cargo: true
@@ -91,7 +111,7 @@ before_install:
91
111
  script:
92
112
  - bundle exec rake spec
93
113
  - bundle exec rake thermite:tarball
94
- - bundle exec rake build
114
+ - bundle exec rake install
95
115
  # - |
96
116
  # if [[ -z "$TRAVIS_TAG" ]]; then
97
117
  # gem uninstall fast_woothee
data/Cargo.lock CHANGED
@@ -1,114 +1,85 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
1
3
  [[package]]
2
4
  name = "aho-corasick"
3
- version = "0.7.3"
5
+ version = "0.7.14"
4
6
  source = "registry+https://github.com/rust-lang/crates.io-index"
5
7
  dependencies = [
6
- "memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
8
+ "memchr 2.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
7
9
  ]
8
10
 
9
11
  [[package]]
10
12
  name = "fast_woothee"
11
- version = "1.4.8"
13
+ version = "1.6.1"
12
14
  dependencies = [
13
- "ruru 0.9.3 (registry+https://github.com/rust-lang/crates.io-index)",
14
- "woothee 0.9.0 (git+https://github.com/woothee/woothee-rust)",
15
+ "rutie 0.8.1 (git+https://github.com/danielpclark/rutie)",
16
+ "woothee 0.11.0 (git+https://github.com/woothee/woothee-rust)",
15
17
  ]
16
18
 
17
19
  [[package]]
18
20
  name = "lazy_static"
19
- version = "0.2.11"
20
- source = "registry+https://github.com/rust-lang/crates.io-index"
21
-
22
- [[package]]
23
- name = "lazy_static"
24
- version = "1.3.0"
21
+ version = "1.4.0"
25
22
  source = "registry+https://github.com/rust-lang/crates.io-index"
26
23
 
27
24
  [[package]]
28
25
  name = "libc"
29
- version = "0.2.51"
26
+ version = "0.2.80"
30
27
  source = "registry+https://github.com/rust-lang/crates.io-index"
31
28
 
32
29
  [[package]]
33
30
  name = "memchr"
34
- version = "2.2.0"
31
+ version = "2.3.4"
35
32
  source = "registry+https://github.com/rust-lang/crates.io-index"
36
33
 
37
34
  [[package]]
38
35
  name = "regex"
39
- version = "1.1.5"
36
+ version = "1.4.1"
40
37
  source = "registry+https://github.com/rust-lang/crates.io-index"
41
38
  dependencies = [
42
- "aho-corasick 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
43
- "memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
44
- "regex-syntax 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)",
45
- "thread_local 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)",
46
- "utf8-ranges 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
39
+ "aho-corasick 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)",
40
+ "memchr 2.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
41
+ "regex-syntax 0.6.20 (registry+https://github.com/rust-lang/crates.io-index)",
42
+ "thread_local 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
47
43
  ]
48
44
 
49
45
  [[package]]
50
46
  name = "regex-syntax"
51
- version = "0.6.6"
52
- source = "registry+https://github.com/rust-lang/crates.io-index"
53
- dependencies = [
54
- "ucd-util 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
55
- ]
56
-
57
- [[package]]
58
- name = "ruby-sys"
59
- version = "0.2.20"
47
+ version = "0.6.20"
60
48
  source = "registry+https://github.com/rust-lang/crates.io-index"
61
- dependencies = [
62
- "libc 0.2.51 (registry+https://github.com/rust-lang/crates.io-index)",
63
- ]
64
49
 
65
50
  [[package]]
66
- name = "ruru"
67
- version = "0.9.3"
68
- source = "registry+https://github.com/rust-lang/crates.io-index"
51
+ name = "rutie"
52
+ version = "0.8.1"
53
+ source = "git+https://github.com/danielpclark/rutie#1e59f3751a5f2a841b18dbdd1f9f90cf1c993c17"
69
54
  dependencies = [
70
- "lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
71
- "ruby-sys 0.2.20 (registry+https://github.com/rust-lang/crates.io-index)",
55
+ "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
56
+ "libc 0.2.80 (registry+https://github.com/rust-lang/crates.io-index)",
72
57
  ]
73
58
 
74
59
  [[package]]
75
60
  name = "thread_local"
76
- version = "0.3.6"
61
+ version = "1.0.1"
77
62
  source = "registry+https://github.com/rust-lang/crates.io-index"
78
63
  dependencies = [
79
- "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
64
+ "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
80
65
  ]
81
66
 
82
- [[package]]
83
- name = "ucd-util"
84
- version = "0.1.3"
85
- source = "registry+https://github.com/rust-lang/crates.io-index"
86
-
87
- [[package]]
88
- name = "utf8-ranges"
89
- version = "1.0.2"
90
- source = "registry+https://github.com/rust-lang/crates.io-index"
91
-
92
67
  [[package]]
93
68
  name = "woothee"
94
- version = "0.9.0"
95
- source = "git+https://github.com/woothee/woothee-rust#f98a1c36365f733d7815eb28a3f5e175b30601bb"
69
+ version = "0.11.0"
70
+ source = "git+https://github.com/woothee/woothee-rust#3d6536fd67f3c7dda3f81f3b2e60a4187758ec61"
96
71
  dependencies = [
97
- "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
98
- "regex 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
72
+ "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
73
+ "regex 1.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
99
74
  ]
100
75
 
101
76
  [metadata]
102
- "checksum aho-corasick 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)" = "e6f484ae0c99fec2e858eb6134949117399f222608d84cadb3f58c1f97c2364c"
103
- "checksum lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "76f033c7ad61445c5b347c7382dd1237847eb1bce590fe50365dcb33d546be73"
104
- "checksum lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bc5729f27f159ddd61f4df6228e827e86643d4d3e7c32183cb30a1c08f604a14"
105
- "checksum libc 0.2.51 (registry+https://github.com/rust-lang/crates.io-index)" = "bedcc7a809076656486ffe045abeeac163da1b558e963a31e29fbfbeba916917"
106
- "checksum memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2efc7bc57c883d4a4d6e3246905283d8dae951bb3bd32f49d6ef297f546e1c39"
107
- "checksum regex 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "559008764a17de49a3146b234641644ed37d118d1ef641a0bb573d146edc6ce0"
108
- "checksum regex-syntax 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)" = "dcfd8681eebe297b81d98498869d4aae052137651ad7b96822f09ceb690d0a96"
109
- "checksum ruby-sys 0.2.20 (registry+https://github.com/rust-lang/crates.io-index)" = "e71509f17ce93733dc196258e168b58050490a156b04563816a8120a74ba04c7"
110
- "checksum ruru 0.9.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6486d6c50b7a08246a492a61893635c1977d41c138041d443eb603f6298e0273"
111
- "checksum thread_local 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "c6b53e329000edc2b34dbe8545fd20e55a333362d0a321909685a19bd28c3f1b"
112
- "checksum ucd-util 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "535c204ee4d8434478593480b8f86ab45ec9aae0e83c568ca81abf0fd0e88f86"
113
- "checksum utf8-ranges 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "796f7e48bef87609f7ade7e06495a87d5cd06c7866e6a5cbfceffc558a243737"
114
- "checksum woothee 0.9.0 (git+https://github.com/woothee/woothee-rust)" = "<none>"
77
+ "checksum aho-corasick 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)" = "b476ce7103678b0c6d3d395dbbae31d48ff910bd28be979ba5d48c6351131d0d"
78
+ "checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
79
+ "checksum libc 0.2.80 (registry+https://github.com/rust-lang/crates.io-index)" = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614"
80
+ "checksum memchr 2.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525"
81
+ "checksum regex 1.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8963b85b8ce3074fecffde43b4b0dded83ce2f367dc8d363afc56679f3ee820b"
82
+ "checksum regex-syntax 0.6.20 (registry+https://github.com/rust-lang/crates.io-index)" = "8cab7a364d15cde1e505267766a2d3c4e22a843e1a601f0fa7564c0f82ced11c"
83
+ "checksum rutie 0.8.1 (git+https://github.com/danielpclark/rutie)" = "<none>"
84
+ "checksum thread_local 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14"
85
+ "checksum woothee 0.11.0 (git+https://github.com/woothee/woothee-rust)" = "<none>"
data/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "fast_woothee"
3
- version = "1.4.8"
3
+ version = "1.6.1"
4
4
  authors = ["Ian Ker-Seymer <i.kerseymer@gmail.com>"]
5
5
  repository = "https://github.com/ianks/fast_woothee"
6
6
  publish = false
@@ -10,7 +10,7 @@ crate-type = ["dylib"]
10
10
 
11
11
  [dependencies]
12
12
  woothee = { git = "https://github.com/woothee/woothee-rust" }
13
- ruru = "^0.9"
13
+ rutie = { git = "https://github.com/danielpclark/rutie", feature = ["no-link"] }
14
14
 
15
15
  [package.metadata.thermite]
16
16
  github_releases = true
data/README.md CHANGED
@@ -41,6 +41,11 @@ FastWoothee.crawler?("Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google
41
41
  FastWoothee.ios?("Mozilla/5.0 (iPhone; CPU iPhone OS 8_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B411 Safari/600.1.4") # => true
42
42
  ```
43
43
 
44
+ ```ruby
45
+ # Is the user on Android?
46
+ FastWoothee.android?('Mozilla/5.0 (Linux; Android 9; SM-N960F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.105 Mobile Safari/537.36') # => true
47
+ ```
48
+
44
49
  ## Benchmarks
45
50
 
46
51
  ```
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'fast_woothee'
8
- spec.version = '1.4.8'
8
+ spec.version = '1.6.1'
9
9
  spec.authors = ['Ian Ker-Seymer']
10
10
  spec.email = ['i.kerseymer@gmail.com']
11
11
 
@@ -20,15 +20,15 @@ Gem::Specification.new do |spec|
20
20
  spec.bindir = 'exe'
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ['lib']
23
- spec.extensions = ['extconf.rb']
23
+ spec.extensions = ['Rakefile']
24
24
 
25
+ spec.add_runtime_dependency 'thermite', '~> 0.13.0'
25
26
 
26
27
  spec.add_development_dependency 'bundler', '~> 2.0'
27
28
  spec.add_development_dependency 'ffi', '~> 1.9'
28
29
  spec.add_development_dependency 'pry'
29
30
  spec.add_development_dependency 'pry-doc'
30
- spec.add_development_dependency 'rake', '~> 10.0'
31
+ spec.add_development_dependency 'rake', '~> 13.0'
31
32
  spec.add_development_dependency 'rake-compiler'
32
33
  spec.add_development_dependency 'rspec', '~> 3.0'
33
- spec.add_development_dependency 'thermite', '~> 0'
34
34
  end
data/src/lib.rs CHANGED
@@ -1,8 +1,8 @@
1
1
  #[macro_use]
2
- extern crate ruru;
2
+ extern crate rutie;
3
3
  extern crate woothee;
4
4
 
5
- use ruru::{Symbol, Boolean, RString, Class, Hash, Object};
5
+ use rutie::{Symbol, Boolean, RString, Class, Hash, Object};
6
6
 
7
7
  use woothee::parser::Parser;
8
8
 
@@ -15,16 +15,16 @@ methods!(
15
15
  let mut hash = Hash::new();
16
16
 
17
17
  let parser = Parser::new();
18
- match parser.parse(ua_string.unwrap_or(RString::new("")).to_str()) {
18
+ match parser.parse(ua_string.unwrap_or(RString::new_usascii_unchecked("")).to_str()) {
19
19
  None => hash,
20
20
  Some(result) => {
21
- hash.store(Symbol::new("name"), RString::new(&result.name));
22
- hash.store(Symbol::new("category"), RString::new(&result.category));
23
- hash.store(Symbol::new("os"), RString::new(&result.os));
24
- hash.store(Symbol::new("os_version"), RString::new(&*result.os_version));
25
- hash.store(Symbol::new("browser_type"), RString::new(&result.browser_type));
26
- hash.store(Symbol::new("version"), RString::new(&*result.version));
27
- hash.store(Symbol::new("vendor"), RString::new(&result.vendor));
21
+ hash.store(Symbol::new("name"), RString::new_usascii_unchecked(&result.name));
22
+ hash.store(Symbol::new("category"), RString::new_usascii_unchecked(&result.category));
23
+ hash.store(Symbol::new("os"), RString::new_usascii_unchecked(&result.os));
24
+ hash.store(Symbol::new("os_version"), RString::new_usascii_unchecked(&*result.os_version));
25
+ hash.store(Symbol::new("browser_type"), RString::new_usascii_unchecked(&result.browser_type));
26
+ hash.store(Symbol::new("version"), RString::new_usascii_unchecked(&*result.version));
27
+ hash.store(Symbol::new("vendor"), RString::new_usascii_unchecked(&result.vendor));
28
28
  hash
29
29
  }
30
30
  }
@@ -35,7 +35,7 @@ methods!(
35
35
  FastWoothee,
36
36
  _itself,
37
37
  fn is_crawler(ua_string: RString) -> Boolean {
38
- Boolean::new(woothee::is_crawler(ua_string.unwrap_or(RString::new("")).to_str()))
38
+ Boolean::new(woothee::is_crawler(ua_string.unwrap_or(RString::new_usascii_unchecked("")).to_str()))
39
39
  }
40
40
  );
41
41
 
@@ -45,13 +45,32 @@ methods!(
45
45
  fn is_ios(ua_string: RString) -> Boolean {
46
46
  let parser = Parser::new();
47
47
 
48
- match parser.parse(ua_string.unwrap_or(RString::new("")).to_str()) {
48
+ match parser.parse(ua_string.unwrap_or(RString::new_usascii_unchecked("")).to_str()) {
49
49
  None => Boolean::new(false),
50
50
  Some(result) => {
51
51
  match result.os {
52
52
  "iPod" => Boolean::new(true),
53
53
  "iPad" => Boolean::new(true),
54
54
  "iPhone" => Boolean::new(true),
55
+ "iOS" => Boolean::new(true),
56
+ _ => Boolean::new(false)
57
+ }
58
+ }
59
+ }
60
+ }
61
+ );
62
+
63
+ methods!(
64
+ FastWoothee,
65
+ _itself,
66
+ fn is_android(ua_string: RString) -> Boolean {
67
+ let parser = Parser::new();
68
+
69
+ match parser.parse(ua_string.unwrap_or(RString::new_usascii_unchecked("")).to_str()) {
70
+ None => Boolean::new(false),
71
+ Some(result) => {
72
+ match result.os {
73
+ "Android" => Boolean::new(true),
55
74
  _ => Boolean::new(false)
56
75
  }
57
76
  }
@@ -62,9 +81,10 @@ methods!(
62
81
  #[no_mangle]
63
82
  pub extern fn initialize_fast_woothee() {
64
83
  Class::new("FastWoothee", None).define(|itself| {
65
- itself.const_set("VERSION", &RString::new("1.4.8").freeze());
84
+ itself.const_set("VERSION", &RString::new_usascii_unchecked("1.6.0").freeze());
66
85
  itself.def_self("parse", parse);
67
86
  itself.def_self("crawler?", is_crawler);
68
87
  itself.def_self("ios?", is_ios);
88
+ itself.def_self("android?", is_android);
69
89
  });
70
90
  }
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_woothee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.8
4
+ version: 1.6.1
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: 2019-04-05 00:00:00.000000000 Z
11
+ date: 2020-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thermite
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.13.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.13.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +86,14 @@ dependencies:
72
86
  requirements:
73
87
  - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: '10.0'
89
+ version: '13.0'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
94
  - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: '10.0'
96
+ version: '13.0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rake-compiler
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -108,26 +122,12 @@ dependencies:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
124
  version: '3.0'
111
- - !ruby/object:Gem::Dependency
112
- name: thermite
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
125
  description: Ruby bindings to woothee-rust
126
126
  email:
127
127
  - i.kerseymer@gmail.com
128
128
  executables: []
129
129
  extensions:
130
- - extconf.rb
130
+ - Rakefile
131
131
  extra_rdoc_files: []
132
132
  files:
133
133
  - ".gitignore"
@@ -142,7 +142,6 @@ files:
142
142
  - Rakefile
143
143
  - bin/console
144
144
  - bin/setup
145
- - extconf.rb
146
145
  - fast_woothee.gemspec
147
146
  - lib/fast_woothee.rb
148
147
  - src/lib.rs
@@ -164,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
163
  - !ruby/object:Gem::Version
165
164
  version: '0'
166
165
  requirements: []
167
- rubygems_version: 3.0.3
166
+ rubygems_version: 3.1.4
168
167
  signing_key:
169
168
  specification_version: 4
170
169
  summary: Ruby bindings for woothee-rust
data/extconf.rb DELETED
@@ -1,16 +0,0 @@
1
- if ARGV.include?('--download-binary')
2
- ENV['CARGO'] = '/dev/null'
3
- ARGV.delete('--download-binary')
4
- end
5
-
6
- load File.expand_path('./Rakefile', __dir__)
7
-
8
- Rake::Task['thermite:build'].invoke
9
-
10
- File.open("Makefile", "wb") do |f|
11
- dummy_makefile(".").each do |line|
12
- f.puts(line)
13
- end
14
- end
15
-
16
- $makefile_created = true