Commit graph

72 commits

Author SHA1 Message Date
75e22840a6
Make rubocop happy 2026-01-01 18:34:36 -08:00
4de5a572c2
Use cgi/escape for Ruby 4 compatibility 2026-01-01 18:31:16 -08:00
3b1e253972
Replace simple_oauth dependency with built-in OAuth implementation
The simple_oauth gem had deprecation warnings with Ruby 3.4's URI module.
Since we only use basic OAuth 1.0a HMAC-SHA1 signing, implemented a minimal
OAuth module directly in the gem. This removes an external dependency and
fixes the deprecation warnings.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-22 09:13:26 -07:00
3fda2e49a0
Change times to Time instances, not Unix timestamps 2025-06-29 14:07:15 -07:00
07303c9be5
Replace Virtus with dry-struct for attributes and type coercion
- Convert all model classes to Dry::Struct

- Add Types module with StringOrInteger and BooleanFlag
2025-06-08 16:54:19 -07:00
f23b579417
Update gems 2025-06-08 10:41:47 -07:00
382764bb44
Update dependencies 2024-09-02 13:25:49 -07:00
Steve Agalloco
b069aed352
Bump version to 1.0.1 2022-01-09 14:36:05 -05:00
Steve Agalloco
1edfbecac6
Setup CI with GitHub actions (#8) 2021-01-15 17:34:38 -05:00
Steve Agalloco
b5ef4469d5
fix warnings 2017-05-25 13:45:54 -04:00
stve
ad7769f54a
version 1.0.0 2017-02-17 16:16:35 -05:00
stve
ec295145a2
ignore rubcop Style/GuardClause violation 2017-02-17 15:40:29 -05:00
stve
5bb9084f93 fix rubocop regression 2016-08-02 16:25:38 -04:00
Vesa Vänskä
546d4ca55b Coerce BookmarkList bookmarks to correct format
Previously fetching all bookmarks caused the
`instapaper_hash` not being set.
2016-08-02 22:57:06 +03:00
stve
19304cc274 fix rubocop regressions 2016-02-04 13:12:12 -05:00
stve
9def2d016a remove unused requires 2016-02-04 12:25:39 -05:00
stve
3138d00398 refactor of error handling 2016-01-27 14:08:55 -05:00
stve
298239a144 version 1.0.0.pre3 2016-01-14 23:52:38 -05:00
stve
ff211c7700 fix rubocop warnings 2016-01-14 23:51:37 -05:00
stve
cc49e06d87 remove unused attributes from Instapaper::HTTP::Request 2016-01-14 23:00:17 -05:00
stve
cb1d2348a6 handle 401's 2016-01-14 22:42:34 -05:00
stve
658bd54f49 fix rubocop warnings 2016-01-14 21:29:42 -05:00
stve
3a0ca00e53 update header implementation for http.rb 1.x 2016-01-14 21:29:26 -05:00
stve
f4cd48a42a version 1.0.0.pre2 2015-10-10 10:14:32 -04:00
stve
e3f3f74d64 implement Instapaper::BookmarkList#each 2015-10-10 08:41:04 -04:00
stve
96490cc9db always parse as JSON 2015-10-10 08:32:08 -04:00
stve
954b777f67 update bookmark endpoints to 1.1 paths 2015-10-06 23:42:52 -04:00
stve
51125c7e71 update folder endpoints to 1.1 paths 2015-10-06 23:41:34 -04:00
stve
ef7d4458d0 update oauth endpoints to 1.1 paths 2015-10-06 23:24:54 -04:00
stve
0b2e842dcf update account endpoints to 1.1 paths 2015-10-06 23:23:51 -04:00
stve
45c110f96d highlights return successfully with a GET request
NOTE: This is undocumented and unconfirmed by Instapaper, but was
discovered through trial and error.
2015-10-06 10:15:34 -04:00
stve
770a722c09 update attribute types for bookmark model
the `hash` attribute has been renamed to `instapaper_hash` as the use of
`hash` collides with equalizer's implementation and results in a
StackLevelError
2015-08-30 22:52:35 -04:00
stve
26288c458b update attribute types for folder model 2015-08-30 22:50:39 -04:00
stve
97441310c6 update attribute types for user model 2015-08-30 22:50:03 -04:00
stve
d64dfa1085 rename Instapaper::API::Highlights#highlight to add_highlight 2015-08-30 22:46:53 -04:00
stve
09f39c2715 keys don't need to be symbolized 2015-08-30 22:44:34 -04:00
stve
4c9319b67c improve error handling on generic errors 2015-03-03 01:00:43 -05:00
stve
1c9a381fff prioritize response body errors over response codes 2015-03-03 01:00:21 -05:00
stve
f6fca37fd9 separate out error handling methods 2015-03-01 22:59:00 -05:00
stve
6509837fc1 improved error handling on responses 2015-03-01 22:52:10 -05:00
stve
dab3c0d9de reimplement bookmarks/list now that it returns a different response 2015-02-25 23:13:40 -05:00
stve
26f526fe07 return Instapaper::Credentials instead of a hash from oauth 2015-02-25 22:34:57 -05:00
stve
9c2babc55f fix error handling
errors are passed in the response body, not by response code
2015-02-25 22:22:16 -05:00
stve
f745e5bc73 configure params should be called oauth_token/secret 2015-02-17 23:32:34 -05:00
stve
d57d1883f3 switch from values to virtus objects 2015-02-17 13:39:49 -05:00
stve
1bd5ce1728 move oauth token response parsing to QLineParser 2015-02-16 00:40:13 -05:00
stve
b254d2fd90 fix rubocop warnings 2015-02-15 23:57:49 -05:00
stve
e3bc6d384e only pass consumer credentials for oauth requests 2015-02-15 23:38:38 -05:00
stve
c078efccdf reimplement error handling 2015-02-15 23:02:52 -05:00
stve
de1196717d remove text alias to get_text 2015-02-15 20:31:01 -05:00