feedjira 3.2.4 → 3.2.6

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: ca73bd8dd61cf4dde35246f10e5632830da4ea5a996b61767455ed4f62e7b4af
4
- data.tar.gz: a8707013a54705e161e3e1968bd99ed0125d87812928c45b331064af2d615514
3
+ metadata.gz: 500a297ef504526f5995d9e2f410723b328ed8a23ba68aaa4d54ce1fc85b6479
4
+ data.tar.gz: e69e151335dde76a9fec5772d47b608c7b1002e14b32eef00a5dfff89d6ef27e
5
5
  SHA512:
6
- metadata.gz: ce8991276f54810f067e930095558d640d885f242beb0030e7d8eec33f4fd64fdd786886514fb0711adfecb022f8ee47c429c77d03e52f7e72b721dbc7381359
7
- data.tar.gz: fb6c3596fd55cd2ac817881597f43f0ae98f1eb064a5513f573bc4dd03082877d4b48898c7798b5725ccc546f336155cce5df6cbc788515ca7cdc5630df936a5
6
+ metadata.gz: 80af957b5eab0e0411a7b257d1fb8bbcf01c5b6e61d524b33cefbb585007fb59d319d38781097dec38d47ac5caf5d1ad5fbd4446e17556e8d77ebb3988696351
7
+ data.tar.gz: 9ce8aa4c8a364b889c8761c563905250bbedf12c6950a5779e047fa543900b6b05321938acc3f0c1b1a5efe19958a58bb77e59818416d4c8057fccd88dbf1159
data/.rubocop.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
 
3
- require:
3
+ plugins:
4
4
  - rubocop-rake
5
5
  - rubocop-rspec
6
6
  - rubocop-performance
data/.rubocop_todo.yml CHANGED
@@ -1,11 +1,18 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 400`
3
- # on 2024-05-27 16:41:59 UTC using RuboCop version 1.64.0.
3
+ # on 2025-06-09 17:10:23 UTC using RuboCop version 1.76.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
+ # Offense count: 1
10
+ # Configuration parameters: Mode, AllowedMethods.
11
+ # AllowedMethods: call
12
+ Naming/PredicateMethod:
13
+ Exclude:
14
+ - 'lib/feedjira/feed_utilities.rb'
15
+
9
16
  # Offense count: 16
10
17
  # Configuration parameters: AllowedConstants.
11
18
  Style/Documentation:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Feedjira Changelog
2
2
 
3
+ ## 3.2.6
4
+
5
+ * Add explicit logger dependency in gemspec for ruby 3.5+ (#532)
6
+
7
+ ## 3.2.5
8
+
9
+ * Removing start_of_doc slice limit altogether (#525)
10
+
3
11
  ## 3.2.4
4
12
 
5
13
  * Increasing slice limit regarding able_to_parse? (#514)
data/Gemfile CHANGED
@@ -7,15 +7,15 @@ gemspec
7
7
  gem "faraday", "~> 2.8.1"
8
8
  gem "pry", "~> 0.15.0"
9
9
  gem "rspec", "~> 3.13.0"
10
- gem "rubocop", "~> 1.69.0"
11
- gem "rubocop-performance", "~> 1.23.0"
12
- gem "rubocop-rake", "~> 0.6.0"
13
- gem "rubocop-rspec", "~> 3.3.0"
10
+ gem "rubocop", "~> 1.79.0"
11
+ gem "rubocop-performance", "~> 1.25.0"
12
+ gem "rubocop-rake", "~> 0.7.1"
13
+ gem "rubocop-rspec", "~> 3.6.0"
14
14
  gem "simplecov", "~> 0.22.0"
15
15
  gem "yard", "~> 0.9.34"
16
16
 
17
17
  group :test do
18
18
  gem "oga", "~> 3.4"
19
19
  gem "ox", "~> 2.14.17", platforms: %i[mri rbx]
20
- gem "rake", "~> 13.2.1"
20
+ gem "rake", "~> 13.3.0"
21
21
  end
data/feedjira.gemspec CHANGED
@@ -31,6 +31,7 @@ Gem::Specification.new do |s|
31
31
 
32
32
  s.required_ruby_version = ">=2.7"
33
33
 
34
+ s.add_dependency "logger", ">= 1.0", "< 2"
34
35
  s.add_dependency "loofah", ">= 2.3.1", "< 3"
35
36
  s.add_dependency "sax-machine", ">= 1.0", "< 2"
36
37
  end
@@ -6,6 +6,7 @@ module Feedjira
6
6
  class AtomYoutube
7
7
  include SAXMachine
8
8
  include FeedUtilities
9
+
9
10
  element :title
10
11
  element :link, as: :url, value: :href, with: { rel: "alternate" }
11
12
  element :link, as: :feed_url, value: :href, with: { rel: "self" }
@@ -6,6 +6,7 @@ module Feedjira
6
6
  class GoogleDocsAtom
7
7
  include SAXMachine
8
8
  include FeedUtilities
9
+
9
10
  element :title
10
11
  element :subtitle, as: :description
11
12
  element :link, as: :url, value: :href, with: { type: "text/html" }
@@ -5,6 +5,7 @@ module Feedjira
5
5
  class PodloveChapter
6
6
  include SAXMachine
7
7
  include FeedEntryUtilities
8
+
8
9
  attribute :start, as: :start_ntp
9
10
  attribute :title
10
11
  attribute :href, as: :url
@@ -7,6 +7,7 @@ module Feedjira
7
7
  class RSS
8
8
  include SAXMachine
9
9
  include FeedUtilities
10
+
10
11
  element :description
11
12
  element :image, class: RSSImage
12
13
  element :language
@@ -6,6 +6,7 @@ module Feedjira
6
6
  class RSSFeedBurner
7
7
  include SAXMachine
8
8
  include FeedUtilities
9
+
9
10
  element :title
10
11
  element :description
11
12
  element :link, as: :url
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Feedjira
4
- VERSION = "3.2.4"
4
+ VERSION = "3.2.6"
5
5
  end
data/lib/feedjira.rb CHANGED
@@ -70,8 +70,7 @@ module Feedjira
70
70
  # parser = Feedjira.parser_for_xml(xml)
71
71
  # parser.parse(xml)
72
72
  def parser_for_xml(xml)
73
- start_of_doc = xml.slice(0, 4000)
74
- Feedjira.parsers.detect { |klass| klass.able_to_parse?(start_of_doc) }
73
+ Feedjira.parsers.detect { |klass| klass.able_to_parse?(xml) }
75
74
  end
76
75
  module_function :parser_for_xml
77
76
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feedjira
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.4
4
+ version: 3.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Hess
@@ -11,11 +11,30 @@ authors:
11
11
  - Julien Kirch
12
12
  - Michael Stock
13
13
  - Paul Dix
14
- autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
- date: 2025-01-09 00:00:00.000000000 Z
16
+ date: 1980-01-02 00:00:00.000000000 Z
18
17
  dependencies:
18
+ - !ruby/object:Gem::Dependency
19
+ name: logger
20
+ requirement: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: '1.0'
25
+ - - "<"
26
+ - !ruby/object:Gem::Version
27
+ version: '2'
28
+ type: :runtime
29
+ prerelease: false
30
+ version_requirements: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '1.0'
35
+ - - "<"
36
+ - !ruby/object:Gem::Version
37
+ version: '2'
19
38
  - !ruby/object:Gem::Dependency
20
39
  name: loofah
21
40
  requirement: !ruby/object:Gem::Requirement
@@ -56,8 +75,6 @@ dependencies:
56
75
  - - "<"
57
76
  - !ruby/object:Gem::Version
58
77
  version: '2'
59
- description:
60
- email:
61
78
  executables: []
62
79
  extensions: []
63
80
  extra_rdoc_files: []
@@ -194,7 +211,6 @@ metadata:
194
211
  source_code_uri: https://github.com/feedjira/feedjira
195
212
  changelog_uri: https://github.com/feedjira/feedjira/blob/main/CHANGELOG.md
196
213
  rubygems_mfa_required: 'true'
197
- post_install_message:
198
214
  rdoc_options: []
199
215
  require_paths:
200
216
  - lib
@@ -209,8 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
225
  - !ruby/object:Gem::Version
210
226
  version: '0'
211
227
  requirements: []
212
- rubygems_version: 3.4.10
213
- signing_key:
228
+ rubygems_version: 3.6.9
214
229
  specification_version: 4
215
230
  summary: A feed parsing library
216
231
  test_files: []