kimurai 1.3.2 → 2.0.0
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 +4 -4
- data/.rubocop.yml +9 -0
- data/CHANGELOG.md +29 -0
- data/Gemfile +2 -2
- data/README.md +478 -649
- data/Rakefile +6 -6
- data/bin/console +3 -4
- data/exe/kimurai +0 -1
- data/kimurai.gemspec +38 -37
- data/lib/kimurai/base/saver.rb +15 -19
- data/lib/kimurai/base/storage.rb +1 -1
- data/lib/kimurai/base.rb +42 -38
- data/lib/kimurai/base_helper.rb +5 -4
- data/lib/kimurai/browser_builder/mechanize_builder.rb +44 -38
- data/lib/kimurai/browser_builder/selenium_chrome_builder.rb +63 -51
- data/lib/kimurai/browser_builder/selenium_firefox_builder.rb +61 -55
- data/lib/kimurai/browser_builder.rb +7 -31
- data/lib/kimurai/capybara_configuration.rb +1 -1
- data/lib/kimurai/capybara_ext/driver/base.rb +50 -46
- data/lib/kimurai/capybara_ext/mechanize/driver.rb +51 -50
- data/lib/kimurai/capybara_ext/selenium/driver.rb +33 -29
- data/lib/kimurai/capybara_ext/session/config.rb +1 -1
- data/lib/kimurai/capybara_ext/session.rb +40 -38
- data/lib/kimurai/cli/generator.rb +15 -15
- data/lib/kimurai/cli.rb +52 -85
- data/lib/kimurai/core_ext/array.rb +2 -2
- data/lib/kimurai/core_ext/hash.rb +1 -1
- data/lib/kimurai/core_ext/numeric.rb +4 -4
- data/lib/kimurai/pipeline.rb +2 -1
- data/lib/kimurai/runner.rb +6 -6
- data/lib/kimurai/template/Gemfile +2 -2
- data/lib/kimurai/template/config/boot.rb +4 -4
- data/lib/kimurai/template/config/schedule.rb +15 -15
- data/lib/kimurai/template/spiders/application_spider.rb +14 -14
- data/lib/kimurai/version.rb +1 -1
- data/lib/kimurai.rb +7 -3
- metadata +58 -65
- data/.travis.yml +0 -5
- data/lib/kimurai/automation/deploy.yml +0 -54
- data/lib/kimurai/automation/setup/chromium_chromedriver.yml +0 -26
- data/lib/kimurai/automation/setup/firefox_geckodriver.yml +0 -20
- data/lib/kimurai/automation/setup/phantomjs.yml +0 -33
- data/lib/kimurai/automation/setup/ruby_environment.yml +0 -124
- data/lib/kimurai/automation/setup.yml +0 -44
- data/lib/kimurai/browser_builder/poltergeist_phantomjs_builder.rb +0 -171
- data/lib/kimurai/capybara_ext/poltergeist/driver.rb +0 -13
- data/lib/kimurai/cli/ansible_command_builder.rb +0 -71
- data/lib/kimurai/template/config/automation.yml +0 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 35de9c5363f3ae93238061cbd7f7e454f6dec350bae9dd6558a3598cfe3b67ae
|
|
4
|
+
data.tar.gz: 89eb1f8e16c4c4b5fe0528ddaf4ce525a139d87c83d495c50845bcf720d3c22a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe1c3e4d3ef52507881fd9ea721f89e2970a14bfa8550336ca7c0dd0f8857485b623bdb536b23eb5b9eb79ff57568bb42f23bb9b92e7111cbc92103eb53aa1f4
|
|
7
|
+
data.tar.gz: 893726a773f5b5184dc91084f50e5c2f520ee7bafd7fbb3e9fe17c43daf5f76d6c8d414f0e3cd9e7acee06ae4211042c7f2a5ee9a837533f7ff2769cc79037b5
|
data/.rubocop.yml
ADDED
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,33 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
|
+
## 2.0.0
|
|
3
|
+
### Breaking changes 2.0.0
|
|
4
|
+
* **Minimum Ruby version is now 3.1+** (due to Ruby 3.0+ keyword argument changes and Ruby 3.4 compatibility requirements)
|
|
5
|
+
* **Removed poltergeist_phantomjs driver** - PhantomJS is no longer maintained. Use `:selenium_chrome`, `:selenium_firefox`, or `:mechanize` engines instead
|
|
6
|
+
* **Removed Ansible automation/deployment feature** - Removed all Ansible playbooks and CLI commands for server setup and deployment
|
|
7
|
+
|
|
8
|
+
### New
|
|
9
|
+
* **Selenium Manager support** - Selenium 4.6+ automatically downloads and manages webdrivers. No need to manually install chromedriver/geckodriver
|
|
10
|
+
|
|
11
|
+
### Fixes
|
|
12
|
+
* **Ruby 3.4 compatibility:** Fixed deprecated `Dir.exists?` and `File.exists?` methods (changed to `Dir.exist?` and `File.exist?`)
|
|
13
|
+
* **Ruby 3.4 compatibility:** Added bundled gem dependencies (`mutex_m`, `nkf`, `reline`) that were extracted from Ruby stdlib
|
|
14
|
+
* **Ruby 3.0+ compatibility:** Fixed keyword argument splatting in `Saver` initialization
|
|
15
|
+
* **Ruby 3.0+ compatibility:** Replaced deprecated `URI.escape` with `URI::DEFAULT_PARSER.escape`
|
|
16
|
+
* **Selenium 4.x compatibility:** Updated Chrome options initialization to match new Selenium WebDriver API
|
|
17
|
+
* Updated capybara-mechanize dependency with Ruby 3.4 bundled gems (`mutex_m`, `logger`, `base64`, `nkf`, `reline`)
|
|
18
|
+
|
|
19
|
+
### Improvements
|
|
20
|
+
* Simplified browser restart logic by removing poltergeist-specific code
|
|
21
|
+
* Updated project templates and documentation to reflect removed poltergeist driver
|
|
22
|
+
|
|
23
|
+
## 1.4.0
|
|
24
|
+
### New
|
|
25
|
+
* Add `encoding` config option (see [All available config options](https://github.com/vifreefly/kimuraframework#all-available-config-options))
|
|
26
|
+
* Validate url before processing a request (Base#request_to)
|
|
27
|
+
|
|
28
|
+
### Fixes
|
|
29
|
+
* Fix console command bug (see [issue 21](https://github.com/vifreefly/kimuraframework/issues/21))
|
|
30
|
+
|
|
2
31
|
## 1.3.2
|
|
3
32
|
### Fixes
|
|
4
33
|
* In the project template, set Ruby version as >= 2.5 (before was hard-coded to 2.5.1)
|
data/Gemfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
source
|
|
1
|
+
source 'https://rubygems.org'
|
|
2
2
|
|
|
3
|
-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
|
3
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
|
4
4
|
|
|
5
5
|
# Specify your gem's dependencies in kimurai.gemspec
|
|
6
6
|
gemspec
|