diff --git a/Gemfile b/Gemfile index 5f7d48804..3bc01751a 100644 --- a/Gemfile +++ b/Gemfile @@ -38,7 +38,7 @@ gem "emoji_regex", "~> 2.0" # A pair of Ruby regular expressions for matching Un gem "envied", "~> 0.9" # Ensure presence and type of your app's ENV-variables gem "fastly", "~> 1.15" # Client library for the Fastly acceleration system gem "fastly-rails", "~> 0.8" # Fastly dynamic caching integration for Rails -gem "feedjira", "~> 2.2" # A feed fetching and parsing library +gem "feedjira", "~> 3.0" # A feed fetching and parsing library gem "figaro", "~> 1.1" # Simple, Heroku-friendly Rails app configuration using ENV and a single YAML file gem "fog-aws", "~> 3.5" # 'fog' gem to support Amazon Web Services gem "front_matter_parser", "~> 0.2" # Parse a front matter from syntactically correct strings or files diff --git a/Gemfile.lock b/Gemfile.lock index efab441be..f17666c54 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -323,10 +323,8 @@ GEM fastly-rails (0.8.0) fastly (~> 1.6) railties (> 2, < 6) - feedjira (2.2.0) - faraday (>= 0.9) - faraday_middleware (>= 0.9) - loofah (>= 2.0) + feedjira (3.0.0) + loofah (>= 2.2.1) sax-machine (>= 1.0) ffi (1.10.0) figaro (1.1.1) @@ -875,7 +873,7 @@ DEPENDENCIES faker (~> 1.9) fastly (~> 1.15) fastly-rails (~> 0.8) - feedjira (~> 2.2) + feedjira (~> 3.0) figaro (~> 1.1) fix-db-schema-conflicts (~> 3.0) fog-aws (~> 3.5) diff --git a/app/services/rss_reader.rb b/app/services/rss_reader.rb index 750a39408..ebb90d393 100644 --- a/app/services/rss_reader.rb +++ b/app/services/rss_reader.rb @@ -63,7 +63,7 @@ class RssReader def fetch_rss(url) xml = HTTParty.get(url).body - Feedjira::Feed.parse xml + Feedjira.parse xml end def make_from_rss_item(item, user, feed)