fast_woothee 1.2.0 → 1.3.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: dceb01e868c83e7958f956cea5d564d71618c1ad
4
- data.tar.gz: 653c0352571bcc817eca3ca239029eb3da62bf64
3
+ metadata.gz: ee1555bcedeb0f91225ab560fa17eb9887ec3cbd
4
+ data.tar.gz: b917c2a9c357744bfb8b0d76c24413a944305b0e
5
5
  SHA512:
6
- metadata.gz: 0f693689297a68e0544ef1e027eb382f9f25f471ae813877596f1dafef171b99e8284a23611f67ffc996e7cbde2eb60371473277f939e403c8077fcec8bd3c11
7
- data.tar.gz: 97ea6132e667ebf256bebc0d63bd6fc0dd172abf1ed35e55e375a1ac79c8a10f6c253babeb64737ea091c85b1badc4817c1f9329a342a960254c7cef77be6f45
6
+ metadata.gz: ddf04c0b09b7b9dc837295259cade2298593e5edecf54c6c149a10b15d546ae32fff3521cd2e47afa06509796cfa14f8e793dbf4bdabda0ffd0a52c7b9eb51dc
7
+ data.tar.gz: 7b47c7feaf769614422e8064723ebb65e6f67183a6ebc509f706ca3be744ad78d6b1615ca7d078dea0451753a0d773bf699393e8e28e3087d762a66f7da92fe2
data/.travis.yml CHANGED
@@ -1,51 +1,98 @@
1
1
  ---
2
- sudo: required
2
+ sudo: false
3
3
  language: rust
4
4
  os:
5
5
  - linux
6
6
  - osx
7
7
  dist: trusty
8
- osx_image: xcode8.2
8
+ osx_image: xcode9.2
9
9
  rust: stable
10
10
  env:
11
11
  global:
12
- - THERMITE_DEBUG_FILENAME: "/tmp/thermite-debug.log"
12
+ - THERMITE_DEBUG_FILENAME: /tmp/thermite-debug.log
13
13
  matrix:
14
- - WOOTHEE_RUBY_VERSION: 2.3.4
15
- - WOOTHEE_RUBY_VERSION: 2.4.1
14
+ - FWOOTHEE_RUBY_VERSION: 2.3.5
15
+ - FWOOTHEE_RUBY_VERSION: 2.4.2
16
+ - FWOOTHEE_RUBY_VERSION: 2.5.0
16
17
  matrix:
17
18
  include:
19
+ - os: linux
20
+ dist: trusty
21
+ env: FWOOTHEE_RUBY_VERSION=2.3.5 RUBY_STATIC=1
22
+ - os: linux
23
+ dist: trusty
24
+ env: FWOOTHEE_RUBY_VERSION=2.4.2 RUBY_STATIC=1
25
+ - os: linux
26
+ dist: trusty
27
+ env: FWOOTHEE_RUBY_VERSION=2.5.0 RUBY_STATIC=1
18
28
  - os: osx
19
- env: WOOTHEE_RUBY_VERSION=2.3.4
29
+ osx_image: xcode8
30
+ env: FWOOTHEE_RUBY_VERSION=2.3.5
20
31
  - os: osx
21
- env: WOOTHEE_RUBY_VERSION=2.4.1
32
+ osx_image: xcode9.3beta
33
+ env: FWOOTHEE_RUBY_VERSION=2.3.5
34
+ - os: osx
35
+ osx_image: xcode8
36
+ env: FWOOTHEE_RUBY_VERSION=2.3.5 RUBY_STATIC=1
37
+ - os: osx
38
+ osx_image: xcode9.2
39
+ env: FWOOTHEE_RUBY_VERSION=2.3.5 RUBY_STATIC=1
40
+ - os: osx
41
+ osx_image: xcode9.3beta
42
+ env: FWOOTHEE_RUBY_VERSION=2.3.5 RUBY_STATIC=1
43
+ - os: osx
44
+ osx_image: xcode8
45
+ env: FWOOTHEE_RUBY_VERSION=2.4.2
46
+ - os: osx
47
+ osx_image: xcode9.3beta
48
+ env: FWOOTHEE_RUBY_VERSION=2.4.2
49
+ - os: osx
50
+ osx_image: xcode8
51
+ env: FWOOTHEE_RUBY_VERSION=2.4.2 RUBY_STATIC=1
52
+ - os: osx
53
+ osx_image: xcode9.2
54
+ env: FWOOTHEE_RUBY_VERSION=2.4.2 RUBY_STATIC=1
55
+ - os: osx
56
+ osx_image: xcode9.3beta
57
+ env: FWOOTHEE_RUBY_VERSION=2.4.2 RUBY_STATIC=1
58
+ - os: osx
59
+ osx_image: xcode8
60
+ env: FWOOTHEE_RUBY_VERSION=2.5.0
61
+ - os: osx
62
+ osx_image: xcode9.3beta
63
+ env: FWOOTHEE_RUBY_VERSION=2.5.0
64
+ - os: osx
65
+ osx_image: xcode8
66
+ env: FWOOTHEE_RUBY_VERSION=2.5.0 RUBY_STATIC=1
67
+ - os: osx
68
+ osx_image: xcode9.2
69
+ env: FWOOTHEE_RUBY_VERSION=2.5.0 RUBY_STATIC=1
70
+ - os: osx
71
+ osx_image: xcode9.3beta
72
+ env: FWOOTHEE_RUBY_VERSION=2.5.0 RUBY_STATIC=1
73
+
22
74
  cache:
23
75
  cargo: true
24
76
  directories:
25
- - "$TRAVIS_BUILD_DIR/vendor/bundle"
26
- - "$HOME/.cache/pip"
77
+ - $TRAVIS_BUILD_DIR/vendor/bundle
78
+
27
79
  before_install:
28
80
  - |
29
- rvm reinstall "$WOOTHEE_RUBY_VERSION"
30
- rvm use "$WOOTHEE_RUBY_VERSION"
81
+ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
82
+ brew update
83
+ fi
84
+ rvm install "$FWOOTHEE_RUBY_VERSION"
85
+ rvm use "$FWOOTHEE_RUBY_VERSION"
31
86
  ruby --version
32
87
  if [[ "$TRAVIS_OS_NAME" == "osx" ]] && ! which bundle > /dev/null; then
33
88
  gem install bundler
34
89
  fi
35
90
  - bundle install --jobs=3 --retry=3 --path=$TRAVIS_BUILD_DIR/vendor/bundle
36
- before_script:
37
- - |
38
- export PATH=$HOME/Library/Python/2.7/bin:$HOME/.local/bin:$PATH
39
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && ! which pip > /dev/null; then
40
- wget https://bootstrap.pypa.io/get-pip.py
41
- python get-pip.py --user
42
- fi
43
- pip install 'travis-cargo<0.2' --user
91
+
44
92
  script:
45
- - travis-cargo build
46
93
  - bundle exec rake spec
47
94
  - bundle exec rake thermite:tarball
48
- # - bundle exec rake install
95
+ - bundle exec rake install
49
96
  # - |
50
97
  # if [[ -z "$TRAVIS_TAG" ]]; then
51
98
  # gem uninstall fast_woothee
@@ -54,21 +101,28 @@ script:
54
101
  # - |
55
102
  # if [[ -z "$TRAVIS_TAG" ]]; then
56
103
  # gem uninstall fast_woothee
57
- # gem install minitest
58
104
  # CARGO=fake gem install pkg/*.gem
59
- # rspec spec
60
- # fi
61
- # - |
62
- # if [[ -f "$THERMITE_DEBUG_FILENAME" ]]; then
63
- # cat $THERMITE_DEBUG_FILENAME;
105
+ # bundle exec rake spec
64
106
  # fi
107
+ - if [[ -f "$THERMITE_DEBUG_FILENAME" ]]; then cat $THERMITE_DEBUG_FILENAME; fi
108
+
65
109
  deploy:
66
- provider: releases
67
- api_key:
68
- secure: 3sPpXpRZ5FzEL3wYaGDD9jSXiPl9SLA4F0GME8JMnN69UyNPmqN5Dy5FHEN0HzQSn+RQ5hxkN3GFJgIZ1v7acJ66cgBJL5SCuol3qCeXg8dEYssOREeM5VFAwb4+y3gUNgD/nNmYJVHKZezVaLE/VOwCQyRj3BDqnlG0bVCzc9yjE81SmjUy9/ABBWRBrlC+tyrwAg+qaZLFg537RrAy4wFngr7xrilvnFxh4M+UCB1o7xzQbGBaunFf7K3+bG9mENBUdsr5fkMIr3HfXilBERpVbGXbMAhseprPQBlbTz1u96uQFuf892hIxQOtJxTAMlvOBOchFjnd/B4mm1oLEwLKJkPBC/hiGwXbM5MvWJxLnH1T6P9Hz9Vv7M3qLv7k3+/sNxnQ048AyH+IAVYXT85QGcRXlNQoQFUs6NBl4MC/izfcfLLcLbt5FBWWWofFguzgrGqJYdLk00QL+V8aQ/5kqwsOjaJTx46fLABBTfRmQTPZWOcJWta/ZCLK+MKpvVPbjInQyh9pLkfQrmjRNyNvdYpI8zGkd25EvUSo5fjLpx0pqHmptiyP6EmuD1PKPPR/lLuDknPZoh9l1kGseYYIzLPd164rfhrgtwSVArUusp/ZV1aUDUufIZGJSwz/AJwnX9h2hEQOQElr0f6PUA3a9MTvS6r+jMasASysm1I=
69
- file: fast_woothee-*.tar.gz
70
- file_glob: true
71
- skip_cleanup: true
72
- on:
73
- repo: ianks/fast_woothee
74
- tags: true
110
+ - provider: releases
111
+ api_key:
112
+ secure: Dy3Ljq0N023aRdLbJOGB9zp7+JNlN0w4Bg07OKOBj6RSGWjSgzTQbHT5xY2ZRaSeo0gmgiSxjePdo0GL4k3hL3k7SiHBwE17dUHURYY9PV+Cszy8ygV1Jqr5z7KUmSJrmBEZ9rK/Dg9ZJgsMVHfLZZJYM5QYxAwWrPhXdTFQltZB/b6PwEID7/kyug+jWo8DqH4iyoqLEyNPB8LdS/ksqg/VvMAWNvHlnDlvHTO5Cq1BAzvtzxxY5GjOfhzBGuPLYjeQZiEJ4Ljcg3JJSU3W2rU7El3Yew2PCnV1U5AdUdG0Lm9TecUQ+WK7Zfz/dSsOdzQWWp1x37BqnNmPh9KQqrhP18X795foKm6wDWcEs6ABq5uxmWtDN9/x5l2t8OY5VmqlfoBgyntISpOIXxJB2PA/hJGiw5tMAXNw6jUonG5xYa93Av+NopcC5FJd+NQRv6knTPEtRS5ZY8XY2fNldIqY2vRGlpOmk8EQDnbsPbyqH9dDc7eJWSPZV3FEdgxTUe5EbGUvO47jWZFhRe2aj/9y/uy6yTLNTvO9B1zoC2/MGq9Y3/Tacd9Stf8LTWnze11Y3SQT/xhFm+QMk10N7aHT58KwLYlC+rcH76C2w7avGAX0rEpkVg3iIMCL246O9iWktxwHkmjXlF04ME4wO9VzGYUva6tQt6wIxle6Z+s=
113
+ file: fast_woothee-*.tar.gz
114
+ file_glob: true
115
+ skip_cleanup: true
116
+ on:
117
+ repo: ianks/fast_woothee
118
+ branch: master
119
+ tags: true
120
+
121
+ - provider: rubygems
122
+ api_key:
123
+ secure: ffojlgGkfjcxCHf5kW7sfDB2I+K2g/YvqzIz/sOaTHcTbYjIVJHzgYkIXqqsqdGOFe8zSS/wi6Ax6N7fEqmSdanL9+U552/5Lodgoj0GdulV1dGeDt8Q71t+RJ2rbK5xdIkXcMcA0HL5LW7eQ6pzIjXryJ5Ro+sBGY8ZqCPtEal6mmUh3c8rXZICxmR69Z6IAhX2hipQIQ258ZzzWVoWjSYez7eSWtjMjrXqPokqfVmJRF26lQJdUO0UPdp6wsfY4a6Xxms/PUXimTas7WusgCPtHb4ygHJY5iRTjFQX/fDwnynDF3GlNfXufIn1qF6b9Hq10yDN3SHIdeIDrDmXJqnbqaWmyKzeorEonGX/GzXO8qaTS5zwuYjDYwpBQ266HPdFR82uPY+dDiJk+k3lTs3NBq+FHmzWUm1bFAKkzzsu8CytCKsl6SOuXWzuhwBWWNh82N3aGcAzhVz8dzcugWNCnt0SqjfyhuaeW+bgvQ7XmHE20Ocea8DD66fP8S5r2gb3NWBhwe4l5cd9eHGbekgyF4ZIIU4Sj8QuMW7M5dHU9gp+ZJkCJnREtrH1JSLILSoNJkd1dy75AofrK+GmpkVzbPmcZzet5g6Be5F32zQ/WRe1ZR1ytebUUr37FOCePWHgRmqGNYQ4ui+UBUHxjgJBxr+8Z8efLG/ZzJ4YxEo=
124
+ gem: fast_woothee
125
+ on:
126
+ repo: ianks/fast_woothee
127
+ branch: master
128
+ tags: true
data/Cargo.lock CHANGED
@@ -1,11 +1,3 @@
1
- [root]
2
- name = "fast_woothee"
3
- version = "1.2.0"
4
- dependencies = [
5
- "ruru 0.9.3 (registry+https://github.com/rust-lang/crates.io-index)",
6
- "woothee 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
7
- ]
8
-
9
1
  [[package]]
10
2
  name = "aho-corasick"
11
3
  version = "0.6.3"
@@ -14,6 +6,14 @@ dependencies = [
14
6
  "memchr 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
15
7
  ]
16
8
 
9
+ [[package]]
10
+ name = "fast_woothee"
11
+ version = "1.3.0"
12
+ dependencies = [
13
+ "ruru 0.9.3 (registry+https://github.com/rust-lang/crates.io-index)",
14
+ "woothee 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
15
+ ]
16
+
17
17
  [[package]]
18
18
  name = "lazy_static"
19
19
  version = "0.2.8"
data/Cargo.toml CHANGED
@@ -1,12 +1,12 @@
1
1
  [package]
2
2
  name = "fast_woothee"
3
- version = "1.2.0"
3
+ version = "1.3.0"
4
4
  authors = ["Ian Ker-Seymer <i.kerseymer@gmail.com>"]
5
5
  repository = "https://github.com/ianks/fast_woothee"
6
6
  publish = false
7
7
 
8
8
  [lib]
9
- crate-type = ["dylib"]
9
+ crate-type = ["cdylib"]
10
10
 
11
11
  [dependencies]
12
12
  woothee = "^0.7"
@@ -15,4 +15,8 @@ ruru = "^0.9"
15
15
 
16
16
  [package.metadata.thermite]
17
17
  github_releases = true
18
- optional_rust_extension = true
18
+ github_release_type = "latest"
19
+ # Only for github_release_type = "cargo"
20
+ # git_tag_format = "v%s-rust"
21
+ git_tag_regex = "^v(\\d+\\.\\d+\\.\\d+)$"
22
+
data/Rakefile CHANGED
@@ -6,20 +6,23 @@ rescue LoadError => _e
6
6
  nil
7
7
  end
8
8
 
9
+ require 'thermite/tasks'
10
+
11
+ project_dir = File.dirname(__FILE__)
12
+ Thermite::Tasks.new(cargo_project_path: project_dir,
13
+ ruby_project_path: project_dir)
14
+
9
15
  begin
10
16
  require 'rspec/core/rake_task'
11
17
 
12
18
  RSpec::Core::RakeTask.new(:rspec)
13
19
 
14
20
  desc 'Run Rust & Ruby testsuites'
15
- task spec: ['thermite:build', 'thermite:test'] do
21
+ task spec: ['thermite:build'] do
16
22
  Rake::Task[:rspec].invoke
17
23
  end
18
24
  rescue LoadError => _e
19
25
  nil
20
26
  end
21
27
 
22
- require 'thermite/tasks'
23
- Thermite::Tasks.new
24
-
25
- task default: %w(thermite:build)
28
+ task default: %w[thermite:build]
data/fast_woothee.gemspec CHANGED
@@ -1,35 +1,34 @@
1
- # coding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
- lib = File.expand_path('../lib', __FILE__)
3
+ lib = File.expand_path('lib', __dir__)
5
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
5
 
7
6
  Gem::Specification.new do |spec|
8
- spec.name = "fast_woothee"
9
- spec.version = "1.2.0"
10
- spec.authors = ["Ian Ker-Seymer"]
11
- spec.email = ["i.kerseymer@gmail.com"]
7
+ spec.name = 'fast_woothee'
8
+ spec.version = '1.3.0'
9
+ spec.authors = ['Ian Ker-Seymer']
10
+ spec.email = ['i.kerseymer@gmail.com']
12
11
 
13
12
  spec.summary = 'Ruby bindings for woothee-rust'
14
13
  spec.description = 'Ruby bindings to woothee-rust'
15
- spec.homepage = "https://github.com/ianks/fast_woothee"
14
+ spec.homepage = 'https://github.com/ianks/fast_woothee'
16
15
 
17
16
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
17
  f.match(%r{^(test|spec|features)/})
19
18
  end
20
19
 
21
- spec.bindir = "exe"
20
+ spec.bindir = 'exe'
22
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
- spec.require_paths = ["lib"]
22
+ spec.require_paths = ['lib']
24
23
  spec.extensions = ['Rakefile']
25
24
 
26
25
  spec.add_runtime_dependency 'thermite', '~> 0'
27
26
 
28
- spec.add_development_dependency "bundler", "~> 1.13"
29
- spec.add_development_dependency "rake", "~> 10.0"
30
- spec.add_development_dependency "rake-compiler"
31
- spec.add_development_dependency "rspec", "~> 3.0"
32
- spec.add_development_dependency "ffi", "~> 1.9"
33
- spec.add_development_dependency "pry"
34
- spec.add_development_dependency "pry-doc"
27
+ spec.add_development_dependency 'bundler', '~> 1.13'
28
+ spec.add_development_dependency 'ffi', '~> 1.9'
29
+ spec.add_development_dependency 'pry'
30
+ spec.add_development_dependency 'pry-doc'
31
+ spec.add_development_dependency 'rake', '~> 10.0'
32
+ spec.add_development_dependency 'rake-compiler'
33
+ spec.add_development_dependency 'rspec', '~> 3.0'
35
34
  end
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.2.0").freeze());
45
+ itself.const_set("VERSION", &RString::new("1.3.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.2.0
4
+ version: 1.3.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-08-22 00:00:00.000000000 Z
11
+ date: 2018-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thermite
@@ -39,21 +39,21 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.13'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rake
42
+ name: ffi
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '1.9'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: '1.9'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rake-compiler
56
+ name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,35 +67,35 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rspec
70
+ name: pry-doc
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '3.0'
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '3.0'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: ffi
84
+ name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.9'
89
+ version: '10.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.9'
96
+ version: '10.0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: pry
98
+ name: rake-compiler
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -109,19 +109,19 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: pry-doc
112
+ name: rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: '3.0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: '3.0'
125
125
  description: Ruby bindings to woothee-rust
126
126
  email:
127
127
  - i.kerseymer@gmail.com
@@ -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.6.12
166
+ rubygems_version: 2.6.14
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: Ruby bindings for woothee-rust