weneedfeed 0.19.3 → 0.20.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
  SHA256:
3
- metadata.gz: 000a213e575858330b55a18d94739be1c2a541eb6066c498513d79d8ced83be1
4
- data.tar.gz: 524ecd8eb36bfcfbae378cc4aa784c46b404d5c2a60c96c67d357d349e9a850b
3
+ metadata.gz: 49bca8b2cd6c5cd0b36e209ed918c3ca74e0a2c19b15bb70d37486f52421c8e5
4
+ data.tar.gz: ca4069838e5828096bc8a28442e05fac8dccd20a2ced312775e1f34b3a2846a9
5
5
  SHA512:
6
- metadata.gz: b1d7dd8cbe3b566056848cdcaaee638b5d592255d62b7e71437bd0ca67ec07b4eafbfbf3ab1c23886a75ef263b1c42b3bb17f2c7bd0a0f160cc499cdd96993cf
7
- data.tar.gz: 39edaa98fc6c8bf80c8177256e70163a6ea84ad0ff347d9531536334daa636dfce4daca0beda6498200bd4deb9531f40b343ef2ac2f2a0171c511b3a4f54aff2
6
+ metadata.gz: 9cba9fb2b63ec0e9733a05fa4845d936b4a51bb08cd5370e4b17265e68b7ad70dcb30f1b8d510173382a73f966442598848e1210aa843872ff36eba11bb3815b
7
+ data.tar.gz: 3a4a4d0081aacad8a6da7c32a4f979331c593b9fb5d93e2f171294721b7199cb904cf5b0e8b43975e2a42d81bb68cd127dcae74597384732021edad23270e1b2
@@ -0,0 +1,26 @@
1
+ name: bump-request
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ version:
7
+ description: Version to change to.
8
+ required: true
9
+ type: string
10
+
11
+ jobs:
12
+ run:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v3
16
+ - name: Set up Ruby
17
+ uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: 3.1.2
20
+ bundler-cache: true
21
+ - uses: r7kamura/bump-request@v0
22
+ with:
23
+ command: |
24
+ sed -i -r 's/([0-9]+\.[0-9]+\.[0-9]+)/${{ inputs.version }}/' lib/*/version.rb
25
+ bundle install
26
+ version: ${{ inputs.version }}
@@ -0,0 +1,18 @@
1
+ name: github-label-sync
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ paths:
8
+ - .github/workflows/github-label-sync.yml
9
+ workflow_dispatch:
10
+
11
+ jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: r7kamura/github-label-sync-action@v0
16
+ with:
17
+ source_path: labels-keepachangelog.yml
18
+ source_repository: r7kamura/github-label-presets
data/.rubocop.yml CHANGED
@@ -6,6 +6,9 @@ AllCops:
6
6
  NewCops: enable
7
7
  TargetRubyVersion: 2.5
8
8
 
9
+ Gemspec/RequireMFA:
10
+ Enabled: false
11
+
9
12
  Lint/SuppressedException:
10
13
  Enabled: false
11
14
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- weneedfeed (0.19.3)
4
+ weneedfeed (0.20.0)
5
5
  activesupport
6
6
  addressable
7
7
  builder
@@ -17,7 +17,7 @@ PATH
17
17
  GEM
18
18
  remote: https://rubygems.org/
19
19
  specs:
20
- activesupport (7.0.3.1)
20
+ activesupport (7.0.4)
21
21
  concurrent-ruby (~> 1.0, >= 1.0.2)
22
22
  i18n (>= 1.6, < 2)
23
23
  minitest (>= 5.1)
@@ -30,7 +30,7 @@ GEM
30
30
  crack (0.4.5)
31
31
  rexml
32
32
  diff-lcs (1.5.0)
33
- faraday (1.10.0)
33
+ faraday (1.10.2)
34
34
  faraday-em_http (~> 1.0)
35
35
  faraday-em_synchrony (~> 1.0)
36
36
  faraday-excon (~> 1.1)
@@ -69,20 +69,20 @@ GEM
69
69
  concurrent-ruby (~> 1.0)
70
70
  marcel (1.0.2)
71
71
  mini_portile2 (2.8.0)
72
- minitest (5.16.2)
72
+ minitest (5.16.3)
73
73
  multipart-post (2.2.3)
74
74
  mustermann (1.1.2)
75
75
  ruby2_keywords (~> 0.0.1)
76
76
  mustermann-contrib (1.1.2)
77
77
  hansi (~> 0.2.0)
78
78
  mustermann (= 1.1.2)
79
- nokogiri (1.13.8)
79
+ nokogiri (1.13.9)
80
80
  mini_portile2 (~> 2.8.0)
81
81
  racc (~> 1.4)
82
82
  parallel (1.22.1)
83
83
  parser (3.1.2.0)
84
84
  ast (~> 2.4.1)
85
- psych (4.0.4)
85
+ psych (4.0.6)
86
86
  stringio
87
87
  public_suffix (4.0.7)
88
88
  racc (1.6.0)
data/README.md CHANGED
@@ -171,24 +171,8 @@ Run HTTP server.
171
171
 
172
172
  Use [weneedfeed-action](https://github.com/r7kamura/weneedfeed-action) for invoking weneedfeed on GitHub Actions.
173
173
 
174
- ## Development
174
+ ### Examples
175
175
 
176
- ### Setup
177
-
178
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
179
-
180
- ### Local installation
181
-
182
- To install this gem onto your local machine, run `bundle exec rake install`.
183
-
184
- ### Release
185
-
186
- To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
187
-
188
- ## Contributing
189
-
190
- Bug reports and pull requests are welcome on GitHub at https://github.com/r7kamura/weneedfeed.
191
-
192
- ## License
193
-
194
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
176
+ - https://github.com/r7kamura/weneedfeed-comic-newtype
177
+ - https://github.com/r7kamura/weneedfeed-mangacross
178
+ - https://github.com/r7kamura/weneedfeed-webace
@@ -5,10 +5,14 @@ require 'nokogiri'
5
5
 
6
6
  module Weneedfeed
7
7
  class Scraping
8
+ DEFAULT_HEADERS = {
9
+ 'User-Agent' => 'Weneedfeed'
10
+ }.freeze
11
+
8
12
  class << self
9
13
  # @return [Faraday::Connection]
10
14
  def faraday_connection
11
- @faraday_connection ||= ::Faraday.new do |connection|
15
+ @faraday_connection ||= ::Faraday.new(headers: DEFAULT_HEADERS) do |connection|
12
16
  connection.use ::Weneedfeed::FaradayResponseMiddleware
13
17
  end
14
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Weneedfeed
4
- VERSION = '0.19.3'
4
+ VERSION = '0.20.0'
5
5
  end
data/weneedfeed.gemspec CHANGED
@@ -16,8 +16,6 @@ Gem::Specification.new do |spec|
16
16
  spec.metadata['homepage_uri'] = spec.homepage
17
17
  spec.metadata['source_code_uri'] = spec.homepage
18
18
 
19
- spec.metadata['rubygems_mfa_required'] = 'true'
20
-
21
19
  # Specify which files should be added to the gem when it is released.
22
20
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
21
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weneedfeed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.3
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-01 00:00:00.000000000 Z
11
+ date: 2022-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -172,6 +172,8 @@ executables:
172
172
  extensions: []
173
173
  extra_rdoc_files: []
174
174
  files:
175
+ - ".github/workflows/bump-request.yml"
176
+ - ".github/workflows/github-label-sync.yml"
175
177
  - ".github/workflows/test.yml"
176
178
  - ".gitignore"
177
179
  - ".rspec"
@@ -218,7 +220,6 @@ licenses:
218
220
  metadata:
219
221
  homepage_uri: https://github.com/r7kamura/weneedfeed
220
222
  source_code_uri: https://github.com/r7kamura/weneedfeed
221
- rubygems_mfa_required: 'true'
222
223
  post_install_message:
223
224
  rdoc_options: []
224
225
  require_paths: