diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..740bb2d2 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: [pboling] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +patreon: galtzo # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: pboling # Replace with a single Ko-fi username +tidelift: rubygems/oauth # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: pboling # Replace with a single Liberapay username +issuehunt: pboling # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/CHANGELOG.md b/CHANGELOG.md index eb439afe..1b5e4bf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,26 +7,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added -* Setup Rubocop (#205, #208) +* Setup Rubocop (#205, #208 by @pboling) +* Added CODE_OF_CONDUCT.md (#217, #218 by @pboling) +* Added FUNDING.yml (#217, #218 by @pboling) ### Changed -* Switch from TravisCI to Github Actions (#202, #207, #176) -* Upgrade webmock to v3.14.0 (#196) -* Upgrade em-http-request to v1.1.7 (#173) -* Upgrade mocha to v1.13.0 (#193) +* Switch from TravisCI to Github Actions (#202, #207, #176 by @pboling) +* Upgrade webmock to v3.14.0 (#196 by @pboling) +* Upgrade em-http-request to v1.1.7 (#173 by @pboling) +* Upgrade mocha to v1.13.0 (#193 by @pboling) +* HISTORY renamed to CHANGELOG.md, and follows Keep a Changelog (#214, #215 by @pboling) +* CHANGELOG, LICENSE, and README now ship with packaged gem (#214, #215 by @pboling) +* README.rdoc renamed to README.md (#217, #218 by @pboling) ### Fixed -* Fixed Infinite Redirect in v0.5.5, v0.5.6 (#186, #210) -* Fixed NoMethodError on missing leading slash in path (#194, #211) -* Fixed NoMethodError on nil request object (#165, #212) -* Fixed Unsafe String Comparison (#156, #209) -* Fixed typos in Gemspec (#204, #203, #208) +* Fixed Infinite Redirect in v0.5.5, v0.5.6 (#186, #210 by @pboling) +* Fixed NoMethodError on missing leading slash in path (#194, #211 by @pboling) +* Fixed NoMethodError on nil request object (#165, #212 by @pboling) +* Fixed Unsafe String Comparison (#156, #209 by @pboling and @drosseau) +* Fixed typos in Gemspec (#204, #203, #208 by @pboling) +* Copyright Notice in LICENSE - added correct years (#217, #218 by @pboling) ### Removed -* Remove direct development dependency on nokogiri (#299) +* Remove direct development dependency on nokogiri (#299 by @pboling) ## [0.5.6] 2021-04-02 ### Added @@ -51,6 +57,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed * Fixes ssl-noverify +* Fixed README example (#158, #159, by @pboling) ## [0.5.4] 2017-12-08 ### Changed diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 00000000..c4880b6d --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,84 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience +* Focusing on what is best not just for us as individuals, but for the overall community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or + advances of any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email + address, without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at peter.boling@gmail.com. All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series of actions. + +**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within the community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, +available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. + +Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see the FAQ at +https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations. diff --git a/LICENSE b/LICENSE index c06cf4dd..7e49cdba 100644 --- a/LICENSE +++ b/LICENSE @@ -1,20 +1,21 @@ -Copyright (c) 2007 Blaine Cook, Larry Halff, Pelle Braendgaard +The MIT License (MIT) -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: +Copyright (c) 2007-2012, 2016-2017, 2020-2021 Blaine Cook, Larry Halff, Pelle Braendgaard, Peter Boling -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 00000000..20f43a10 --- /dev/null +++ b/README.md @@ -0,0 +1,211 @@ +# Ruby OAuth + +## Status + +| Project | Ruby Oauth | +|--------------------------- |--------------------------- | +| name, license, docs | [![RubyGems.org](https://img.shields.io/badge/name-oauth-brightgreen.svg?style=flat)][rubygems] [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)][license-ref] [![RubyDoc.info](https://img.shields.io/badge/documentation-rubydoc-brightgreen.svg?style=flat)][documentation] | +| version & downloads | [![Version](https://img.shields.io/gem/v/oauth.svg)][rubygems] [![Downloads Today](https://img.shields.io/gem/rd/oauth.svg)][rubygems] [![Homepage](https://img.shields.io/badge/source-github-brightgreen.svg?style=flat)][source] | +| dependencies & linting | [![Depfu](https://badges.depfu.com/badges/d570491bac0ad3b0b65deb3c82028327/count.svg)][depfu] [![lint status](https://github.com/oauth-xx/oauth-ruby/actions/workflows/style.yml/badge.svg)][actions] | +| unit tests | [![supported rubies](https://github.com/oauth-xx/oauth-ruby/actions/workflows/supported.yml/badge.svg)][actions] [![unsupported status](https://github.com/oauth-xx/oauth-ruby/actions/workflows/unsupported.yml/badge.svg)][actions] | +| coverage & maintainability | [![Test Coverage](https://api.codeclimate.com/v1/badges/3cf23270c21e8791d788/test_coverage)][climate_coverage] [![codecov](https://codecov.io/gh/oauth-xx/oauth-ruby/branch/master/graph/badge.svg?token=4ZNAWNxrf9)][codecov_coverage] [![Maintainability](https://api.codeclimate.com/v1/badges/3cf23270c21e8791d788/maintainability)][climate_maintainability] | +| resources | [![Discussion](https://img.shields.io/badge/discussions-github-brightgreen.svg?style=flat)][gh_discussions] [![Mailing List](https://img.shields.io/badge/group-mailinglist-violet.svg?style=social&logo=google)][mailinglist] [![Join the chat at https://gitter.im/oauth-xx/oauth-ruby](https://badges.gitter.im/Join%20Chat.svg)][chat] [![Blog](https://img.shields.io/badge/blog-railsbling-brightgreen.svg?style=flat)][blogpage] | +| Spread ~♡ⓛⓞⓥⓔ♡~ | [![Open Source Helpers](https://www.codetriage.com/oauth-xx/oauth-ruby/badges/users.svg)][code_triage] [![Liberapay Patrons](https://img.shields.io/liberapay/patrons/pboling.svg?logo=liberapay)][liberapay_donate] [🌏][aboutme] [👼][angelme] [💻][coderme] [🌹][politicme] [![Tweet @ Peter][followme-img]][tweetme] | + +## What + +This is a RubyGem for implementing both OAuth 1.0 clients and servers in Ruby +applications. + +See the OAuth 1.0 spec http://oauth.net/core/1.0/ + +See the sibling gem [oauth2](https://github.com/oauth-xx/oauth2) for OAuth 2.0 implementations in Ruby. + +## Installation + +Add this line to your application's Gemfile: + +```ruby +gem "oauth" +``` + +And then execute: + + $ bundle install + +Or install it yourself as: + + $ gem install oauth + +## Compatibility + +Targeted ruby compatibility is non-EOL versions of Ruby, currently 2.6, 2.7, and +3.0. Ruby is limited to 2.0+ in the gemspec, and this may change while the gem is +still at version 0.x. + +## Basics + +This is a ruby library which is intended to be used in creating Ruby Consumer +and Service Provider applications. It is NOT a Rails plugin, but could easily +be used for the foundation for such a Rails plugin. + +As a matter of fact it has been pulled out from an OAuth Rails GEM +(https://rubygems.org/gems/oauth-plugin https://github.com/pelle/oauth-plugin) +which now uses this gem as a dependency. + +## Usage + +We need to specify the oauth_callback url explicitly, otherwise it defaults to +"oob" (Out of Band) + + callback_url = "http://127.0.0.1:3000/oauth/callback" + +Create a new `OAuth::Consumer` instance by passing it a configuration hash: + + oauth_consumer = OAuth::Consumer.new("key", "secret", :site => "https://agree2") + +Start the process by requesting a token + + request_token = oauth_consumer.get_request_token(:oauth_callback => callback_url) + + session[:token] = request_token.token + session[:token_secret] = request_token.secret + redirect_to request_token.authorize_url(:oauth_callback => callback_url) + +When user returns create an access_token + + hash = { oauth_token: session[:token], oauth_token_secret: session[:token_secret]} + request_token = OAuth::RequestToken.from_hash(oauth_consumer, hash) + access_token = request_token.get_access_token + # For 3-legged authorization, flow oauth_verifier is passed as param in callback + # access_token = request_token.get_access_token(oauth_verifier: params[:oauth_verifier]) + @photos = access_token.get('/photos.xml') + +Now that you have an access token, you can use Typhoeus to interact with the +OAuth provider if you choose. + + require 'typhoeus' + require 'oauth/request_proxy/typhoeus_request' + oauth_params = {:consumer => oauth_consumer, :token => access_token} + hydra = Typhoeus::Hydra.new + req = Typhoeus::Request.new(uri, options) # :method needs to be specified in options + oauth_helper = OAuth::Client::Helper.new(req, oauth_params.merge(:request_uri => uri)) + req.options[:headers].merge!({"Authorization" => oauth_helper.header}) # Signs the request + hydra.queue(req) + hydra.run + @response = req.response + +## More Information + +* RubyDoc Documentation: [![RubyDoc.info](https://img.shields.io/badge/documentation-rubydoc-brightgreen.svg?style=flat)][documentation] +* Mailing List/Google Group: [![Mailing List](https://img.shields.io/badge/group-mailinglist-violet.svg?style=social&logo=google)][mailinglist] +* GitHub Discussions: [![Discussion](https://img.shields.io/badge/discussions-github-brightgreen.svg?style=flat)][gh_discussions] +* Live Chat on Gitter: [![Join the chat at https://gitter.im/oauth-xx/oauth-ruby](https://badges.gitter.im/Join%20Chat.svg)][chat] +* Maintainer's Blog: [![Blog](https://img.shields.io/badge/blog-railsbling-brightgreen.svg?style=flat)][blogpage] + +## Contributing + +Bug reports and pull requests are welcome on GitHub at [https://github.com/oauth-xx/oauth-ruby][source]. This project is +intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to +the [code of conduct][conduct]. + +To submit a patch, please fork the oauth project and create a patch with +tests. Once you're happy with it send a pull request and post a message to the +[google group][mailinglist]. + +## Contributors + +[![Contributors](https://contrib.rocks/image?repo=oauth-xx/oauth-ruby)]("https://github.com/oauth-xx/oauth-ruby/graphs/contributors") + +Made with [contributors-img](https://contrib.rocks). + +## Versioning + +This library aims to adhere to [Semantic Versioning 2.0.0][semver]. Violations of this scheme should be reported as +bugs. Specifically, if a minor or patch version is released that breaks backward compatibility, a new version should be +immediately released that restores compatibility. Breaking changes to the public API will only be introduced with new +major versions. + +As a result of this policy, you can (and should) specify a dependency on this gem using +the [Pessimistic Version Constraint][pvc] with two digits of precision. + +For example: + +```ruby +spec.add_dependency "oauth", "~> 0.5" +``` + +## License + +The gem is available as open source under the terms of +the [MIT License][license] [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)][license-ref]. +See [LICENSE][license] for the [Copyright Notice][copyright-notice-explainer]. + +## Contact + +OAuth Ruby has been created and maintained by a large number of talented +individuals. The current maintainer is Peter Boling ([@pboling][gh_sponsors]). + +Comments are welcome. Contact the [OAuth Ruby mailing list (Google Group)][mailinglist] or [GitHub Discussions][gh_discussions]. + +[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year + +[gh_discussions]: https://github.com/oauth-xx/oauth-ruby/discussions + +[mailinglist]: http://groups.google.com/group/oauth-ruby + +[conduct]: https://github.com/oauth-xx/oauth-ruby/blob/master/CODE_OF_CONDUCT.md + +[license]: LICENSE + +[license-ref]: https://opensource.org/licenses/MIT + +[semver]: http://semver.org/ + +[pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint + +[railsbling]: http://www.railsbling.com + +[peterboling]: http://www.peterboling.com + +[aboutme]: https://about.me/peter.boling + +[angelme]: https://angel.co/peter-boling + +[coderme]:http://coderwall.com/pboling + +[followme-img]: https://img.shields.io/twitter/follow/galtzo.svg?style=social&label=Follow + +[tweetme]: http://twitter.com/galtzo + +[politicme]: https://nationalprogressiveparty.org + +[documentation]: https://rubydoc.info/github/oauth-xx/oauth-ruby/main + +[source]: https://github.com/oauth-xx/oauth-ruby/ + +[actions]: https://github.com/oauth-xx/oauth-ruby/actions + +[issues]: https://github.com/oauth-xx/oauth-ruby/issues + +[climate_maintainability]: https://codeclimate.com/github/oauth-xx/oauth-ruby/maintainability + +[climate_coverage]: https://codeclimate.com/github/oauth-xx/oauth-ruby/test_coverage + +[codecov_coverage]: https://codecov.io/gh/oauth-xx/oauth-ruby + +[code_triage]: https://www.codetriage.com/oauth-xx/oauth-ruby + +[depfu]: https://depfu.com/github/oauth-xx/oauth-ruby?project_id=22868 + +[blogpage]: http://www.railsbling.com/tags/oauth/ + +[rubygems]: https://rubygems.org/gems/oauth + +[chat]: https://gitter.im/oauth-xx/oauth-ruby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge + +[maintenancee_policy]: https://guides.rubyonrails.org/maintenance_policy.html#security-issues + +[liberapay_donate]: https://liberapay.com/pboling/donate + +[gh_sponsors]: https://github.com/sponsors/pboling \ No newline at end of file diff --git a/README.rdoc b/README.rdoc deleted file mode 100644 index 56a32cad..00000000 --- a/README.rdoc +++ /dev/null @@ -1,88 +0,0 @@ -= Ruby OAuth - -== Status - -{Build Status}[https://travis-ci.com/github/oauth-xx/oauth-ruby] - - - -== What - -This is a RubyGem for implementing both OAuth clients and servers in Ruby applications. - -See the OAuth specs http://oauth.net/core/1.0/ - -== Installing - - sudo gem install oauth - -The source code is now hosted on the OAuth GitHub Project http://github.com/oauth-xx/oauth-ruby - -== The basics - -This is a ruby library which is intended to be used in creating Ruby Consumer and Service Provider applications. It is NOT a Rails plugin, but could easily be used for the foundation for such a Rails plugin. - -As a matter of fact it has been pulled out from an OAuth Rails GEM (https://rubygems.org/gems/oauth-plugin https://github.com/pelle/oauth-plugin) which now uses this gem as a dependency. - -== Demonstration of usage - -We need to specify the oauth_callback url explicitly, otherwise it defaults to "oob" (Out of Band) - - callback_url = "http://127.0.0.1:3000/oauth/callback" - -Create a new `OAuth::Consumer` instance by passing it a configuration hash: - - oauth_consumer = OAuth::Consumer.new("key", "secret", :site => "https://agree2") - -Start the process by requesting a token - - request_token = oauth_consumer.get_request_token(:oauth_callback => callback_url) - - session[:token] = request_token.token - session[:token_secret] = request_token.secret - redirect_to request_token.authorize_url(:oauth_callback => callback_url) - -When user returns create an access_token - - hash = { oauth_token: session[:token], oauth_token_secret: session[:token_secret]} - request_token = OAuth::RequestToken.from_hash(oauth_consumer, hash) - access_token = request_token.get_access_token - # For 3-legged authorization, flow oauth_verifier is passed as param in callback - # access_token = request_token.get_access_token(oauth_verifier: params[:oauth_verifier]) - @photos = access_token.get('/photos.xml') - -Now that you have an access token, you can use Typhoeus to interact with the OAuth provider if you choose. - - require 'typhoeus' - require 'oauth/request_proxy/typhoeus_request' - oauth_params = {:consumer => oauth_consumer, :token => access_token} - hydra = Typhoeus::Hydra.new - req = Typhoeus::Request.new(uri, options) # :method needs to be specified in options - oauth_helper = OAuth::Client::Helper.new(req, oauth_params.merge(:request_uri => uri)) - req.options[:headers].merge!({"Authorization" => oauth_helper.header}) # Signs the request - hydra.queue(req) - hydra.run - @response = req.response - - -== More Information - -* RDoc: http://rdoc.info/github/oauth-xx/oauth-ruby/master/frames -* Mailing List/Google Group: http://groups.google.com/group/oauth-ruby - -== How to submit patches - -The source code is now hosted on the OAuth GitHub Project http://github.com/oauth-xx/oauth-ruby - -To submit a patch, please fork the oauth project and create a patch with tests. Once you're happy with it send a pull request and post a message to the google group. - -== License - -This code is free to use under the terms of the MIT license. - -== Contact - -OAuth Ruby has been created and maintained by a large number of talented individuals. -The current maintainer is Aaron Quint (quirkey). - -Comments are welcome. Send an email to via the OAuth Ruby mailing list http://groups.google.com/group/oauth-ruby diff --git a/oauth.gemspec b/oauth.gemspec index 51a3f0a7..2158522b 100644 --- a/oauth.gemspec +++ b/oauth.gemspec @@ -10,7 +10,7 @@ Gem::Specification.new do |spec| spec.version = OAuth::VERSION spec.license = "MIT" - spec.authors = ["Pelle Braendgaard", "Blaine Cook", "Larry Halff", "Jesse Clark", "Jon Crosby", "Seth Fitzsimmons", "Matt Sanford", "Aaron Quint"] + spec.authors = ["Pelle Braendgaard", "Blaine Cook", "Larry Halff", "Jesse Clark", "Jon Crosby", "Seth Fitzsimmons", "Matt Sanford", "Aaron Quint", "Peter Boling"] spec.email = "oauth-ruby@googlegroups.com" spec.summary = "OAuth Core Ruby implementation" @@ -23,11 +23,10 @@ Gem::Specification.new do |spec| "homepage_uri" => spec.homepage, "source_code_uri" => spec.homepage } - spec.files = Dir.glob("lib/**/*.rb") + ["LICENSE", "README.rdoc", "CHANGELOG.md"] - #spec.test_files = Dir.glob("test/**/*.rb") + Dir.glob('test/keys/*') - spec.extra_rdoc_files = [ "LICENSE", "README.rdoc", "TODO" ] + spec.files = Dir.glob("lib/**/*.rb") + ["LICENSE", "README.md", "CHANGELOG.md", "CODE_OF_CONDUCT.md"] + spec.extra_rdoc_files = [ "TODO" ] - # This gem will work with 2.0 or greater... + # This gem will work with Ruby 2.0 or greater... spec.required_ruby_version = ">= 2.0" ruby_version = Gem::Version.new(RUBY_VERSION)