Quantcast
Channel: FeedBunch:7af115326a9f37683f4e5633f1eb7b97bb824798 commits
Browsing all 39 articles
Browse latest View live
↧

Explicitly indicate that we want Rails to raise an exception if the protectio...

Explicitly indicate that we want Rails to raise an exception if the protection from forgery validations fail for a request.

View Article


When deleting old entries, iterate using .each instead of .find_each

Unfortunately .find_each is not very flexible. Specifically it doesn't allow setting any other order than "id asc". In this case I want a more complex order, because ID fields are usually...

View Article


When exporting OPML subscriptions, do not attempt to order feeds and folders ...

The .order clauses was being ignored by the find_each anyway, removing them does not change how it was already working. As a result the exported OPML will be less nice to read for human eyes, but it's...

View Article

Make sure that a feed if valid utf-8 when fetching, before parsing.

To guarantee this: - after the http GET, if the response current encoding is not valid, look at the HTTP content-type header. It usually has a "charset=xxx" at the end that indicates the actual...

View Article

When encoding fetched feeds as utf-8, replace incorrect characters with "?"...

When encoding fetched feeds as utf-8, replace incorrect characters with "?" instead of rising an error.

View Article


Better control whether to touch user and folder subscriptions when unsubscrib...

View Article

When fetching a feed, assume response is in the charset reported in the HTTP...

When fetching a feed, assume response is in the charset reported in the HTTP content-type header, and convert to utf-8. This fixes an error in which sometimes a response with encoding different from...

View Article

Refined regex that extracts charset from HTTP content-type header, to account...

Refined regex that extracts charset from HTTP content-type header, to account for things like single or double quotes, extra whitespace or extra semicolons. Also if no valid charset can be extracted...

View Article


Better control the case in which no charset is present in the HTTP headers....

Better control the case in which no charset is present in the HTTP headers. UTF-8 is used by default in this case.

View Article


Better control the case in which no entry states are found when removing a...

Better control the case in which no entry states are found when removing a feed subscription, so that no error is raised. This could happen because of workers parallellism when destroying a user.

View Article

Replaced activerecord "first" queries with the equivalent "find" and "find_by...

Cleaner code is happier code.

View Article

When destroying a feed subscription, check that the feed actually exists...

When destroying a feed subscription, check that the feed actually exists before checking to delete folders, entry states and the like. During a user destruction the feed may already have been destroyed...

View Article

Fix bug in defaulting to utf-8 if a feed does not report a charset in the con...

View Article


Refined handling of encodings different from utf-8:

- when fetching a feed, an attempt is made to detect the encoding from the content-type HTTP header. If it's not possible, or the reported encoding is not valid, the response XML is parsed to attempt...

View Article

Change the way in which a feed response is checked to see if it's blank.

It seems the rails .blank? method has issues with some feeds related to charsets, perhaps when there is a character invalid for the reported charset. The new way is more verbose but has no such issues.

View Article


Control the case in which the encoding cannot be determined from the feed XML...

In this case utf-8 will be used by default.

View Article

Control the case in which user is already subscribed to feed, when...

Control the case in which user is already subscribed to feed, when autodiscovery determines that feed being fetched is a duplicate. When fetching a feed, it autodiscovery determines that the feed being...

View Article


When checking if the received feed response is HTML rather than a feed XML,...

When checking if the received feed response is HTML rather than a feed XML, use nil? instead of present? The rails present? method can cause trouble if there is an encoding issue, rising an error....

View Article

Show a small caret to the right of the entry currently being hovered.

This is a WIP to implement keyboard shortcuts. The caret will visually indicate the user which entry currently has the focus.

View Article
Browsing all 39 articles
Browse latest View live