73c287fb4b
Update version to 0.3.1
2025-06-08 12:14:50 -07:00
3c5f590f95
Fix warnings in Ruby 3.4
...
- Update RuboCop config to use plugins instead of require for extensions
- Replace deprecated RSpec/FilePath with RSpec/SpecFilePathFormat and
RSpec/SpecFilePathSuffix
- Fix URI parser deprecation by using URI::RFC2396_PARSER instead of
URI::DEFAULT_PARSER
- Replace Hash#select with Hash#slice for better performance and clarity
- Add base64 dependency to gemspec for Ruby 3.4 compatibility
2025-06-08 10:30:40 -07:00
Erik Berlin
8d6792a74f
Update for 2023
2023-08-16 14:51:14 -07:00
Erik Michaels-Ober
987239fefe
Fix RuboCop offenses
2014-12-28 08:55:42 -06:00
Michal Papis
e772b6734c
add :signature to IGNORED_KEYS, improve tests
2014-11-05 15:58:46 +01:00
Michal Papis
234fd8793b
add IGNORED_KEYS for options used in signature calculations
2014-11-05 15:48:43 +01:00
Michal Papis
62147887a6
raise error when option keys not found in ATTRIBUTE_KEYS
2014-09-23 22:09:13 +02:00
Erik Michaels-Ober
e40b445be1
Use _ to indicate that block argument is unused
2014-05-02 12:54:41 +02:00
Erik Michaels-Ober
c19aab01f8
Fix RuboCop offenses
2014-03-24 11:18:17 +01:00
Erik Michaels-Ober
595ab454c1
Add RuboCop
2014-03-24 11:18:11 +01:00
Erik Michaels-Ober
3d340dd4c0
Use canonical method names in class
2012-12-01 18:26:38 -08:00
Erik Michaels-Ober
02d041d028
Alias encode to escape and decode to unescape
2012-12-01 18:18:29 -08:00
Erik Michaels-Ober
f67afa46fa
Fix "URI.escape is obsolete" warnings on Ruby >= 1.9
2012-12-01 18:09:58 -08:00
Erik Michaels-Ober
167b696eb5
Merge pull request #6 from Viximo/feature/callback
...
OAuth attributes should include optional OAuth 1.0a keys
2012-07-19 08:47:57 -07:00
Erik Michaels-Ober
27ce779af0
Merge pull request #4 from steeve/patch-1
...
Only put option when there is a value. (Causes errors with Netflix API).
2012-07-19 08:42:11 -07:00
Christopher Swasey
31fcd15bb2
Fix regex pattern in Header.parse to remove redundency and simplify
2012-05-09 12:11:53 -04:00
Christopher Swasey
ca16e1dfc4
Add support for optional 'linear white space' between header parameters as per OAuth spec and RFC2617
2012-05-09 11:43:54 -04:00
Steve Richert
8299b00951
Move from Test::Unit to RSpec
2012-04-23 16:29:01 -04:00
Steve Richert
cfe7c71660
Move core requires into header class
2012-04-23 13:31:57 -04:00
Steve Richert
e48aa4e141
Don't extend Ruby core
2012-04-23 13:30:11 -04:00
Steve Richert
4c7e836933
Scrap the version file
2012-04-23 13:27:01 -04:00
Erik Michaels-Ober
f92c8d61eb
Bump version to 0.1.6
2012-04-23 09:40:38 -07:00
Erik Michaels-Ober
302558c0b4
Convert URL to string (in case it's already a URI object) before parsing
2012-04-23 09:31:11 -07:00
Matt Griffin
02328a8f14
OAuth attributes should include optional OAuth 1.0a keys: oauth_callback and oauth_verifier
2012-03-08 16:48:45 -05:00
Steeve Morin
62a01b6d18
simple key/value presence test for attributes
2011-09-28 14:21:40 +03:00
Steeve Morin
c75b82d392
Only put option when there is a value. (Causes errors with Netflix API).
2011-09-27 18:32:38 +03:00
Erik Michaels-Ober
86d2a828dc
Bump version to 0.1.5
2011-05-06 13:19:11 -07:00
Erik Michaels-Ober
65f01e0c92
Apparently, Object#tap was added in 1.8.7, not 1.9
2011-05-06 13:00:41 -07:00
Erik Michaels-Ober
7aec6fe2ba
Trust the load path
2011-05-06 12:18:55 -07:00
Erik Michaels-Ober
ac7793ef74
Bump version to 0.1.4
2011-02-03 13:04:50 -05:00
Erik Michaels-Ober
db07b63469
Bump version to 0.1.3
2010-11-30 08:56:37 -08:00
Erik Michaels-Ober
3ddda07d91
Make compatible with Ruby versions < 1.9
2010-11-30 08:54:49 -08:00
Erik Michaels-Ober
3fb8d858ff
Organize SimpleOAuth classes and modules into separate files so they can be required separately
2010-11-30 08:51:54 -08:00
Erik Michaels-Ober
9b30fbc283
Bump version to 0.1.2
2010-11-15 08:31:44 -08:00
Erik Michaels-Ober
a39ceda4ba
Fix the reserved characters regex to be non-variant by KCODE
2010-11-15 08:31:03 -08:00
Mike Emery
c775850614
making signed attributes public so that it can be used with 3rd party http request libraries to use oauth through query string
2010-11-15 08:11:11 -08:00
laserlemon
23def39599
Bump version.
2010-10-13 10:09:12 -04:00
laserlemon
126b807e2d
Rearranged method definitions.
2010-10-13 09:37:22 -04:00
laserlemon
b413083e43
Implement proper RSA-SHA1 signing.
...
Need to find an OAuth service provider supporting the RSA-SHA1 signature method for verification.
2010-10-13 09:25:11 -04:00
laserlemon
cc7510f6a5
Updated parameter and attribute sorting during normalization to behave consistently across Ruby versions 1.8.7 and 1.9.2.
2010-10-13 08:18:19 -04:00
laserlemon
090f1de829
Header parsing and validation tests pass.
...
Private key behaves when nil and signature is never included in normalized parameters.
2010-10-11 23:54:37 -04:00
laserlemon
f61e2750dc
Add the ability to parse string OAuth headers into SimpleOAuth::Header options and to validate those headers against consumer and token secrets.
2010-10-11 23:52:56 -04:00
laserlemon
1f519dd45a
Add the SimpleOAuth::Version module.
2010-10-11 22:14:36 -04:00
laserlemon
c8790cf98e
Test HMAC-SHA1 signature generation against real-world, accepted signatures.
...
Also, stop memoizing the to_s and url instance methods.
2010-10-11 17:36:20 -04:00
laserlemon
bd1153df5d
Pass query parameter tests, changing the url_params method to return an array.
2010-10-11 15:52:24 -04:00
laserlemon
501f7d8cde
Properly normalize the parsed URI upon header initialization.
2010-10-11 14:49:58 -04:00
laserlemon
902fa3ed8c
Add initial OAuth header generation functionality.
2010-10-11 13:52:58 -04:00
laserlemon
a603697fa8
Initial import.
2010-10-11 13:45:52 -04:00