Skip to content

Commit

Permalink
Create gh-pages branch via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
arunagw committed May 11, 2015
1 parent 2fbacaa commit 2b62771
Show file tree
Hide file tree
Showing 5 changed files with 798 additions and 503 deletions.
84 changes: 37 additions & 47 deletions index.html
@@ -1,40 +1,33 @@
<!DOCTYPE html>
<html>
<html lang="en-us">
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href='https://fonts.googleapis.com/css?family=Architects+Daughter' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />

<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<meta charset="UTF-8">
<title>Omniauth-twitter by arunagw</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="stylesheets/normalize.css" media="screen">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen">
</head>

<body>
<header>
<div class="inner">
<h1>Omniauth-twitter</h1>
<h2>OmniAuth strategy for Twitter</h2>
<a href="https://github.com/arunagw/omniauth-twitter" class="button"><small>View project on</small>GitHub</a>
</div>
</header>

<div id="content-wrapper">
<div class="inner clearfix">
<section id="main-content">
<h1>OmniAuth Twitter</h1>
<section class="page-header">
<h1 class="project-name">Omniauth-twitter</h1>
<h2 class="project-tagline">OmniAuth strategy for Twitter</h2>
<a href="https://github.com/arunagw/omniauth-twitter" class="btn">View on GitHub</a>
<a href="https://github.com/arunagw/omniauth-twitter/zipball/master" class="btn">Download .zip</a>
<a href="https://github.com/arunagw/omniauth-twitter/tarball/master" class="btn">Download .tar.gz</a>
</section>

<section class="main-content">
<h1>
<a id="omniauth-twitter" class="anchor" href="#omniauth-twitter" aria-hidden="true"><span class="octicon octicon-link"></span></a>OmniAuth Twitter</h1>

<p>This gem contains the Twitter strategy for OmniAuth.</p>

<p>Twitter uses the OAuth 1.0a flow, you can read about it here: <a href="https://dev.twitter.com/docs/auth/oauth">https://dev.twitter.com/docs/auth/oauth</a></p>

<h2>How To Use It</h2>
<h2>
<a id="how-to-use-it" class="anchor" href="#how-to-use-it" aria-hidden="true"><span class="octicon octicon-link"></span></a>How To Use It</h2>

<p>Usage is as per any other OmniAuth 1.0 strategy. So let's say you're using Rails, you need to add the strategy to your <code>Gemfile</code>:</p>

Expand Down Expand Up @@ -76,28 +69,34 @@ <h2>How To Use It</h2>

<p>Now just follow the README at: <a href="https://github.com/intridea/omniauth">https://github.com/intridea/omniauth</a></p>

<h2>Watch the RailsCast</h2>
<h2>
<a id="watch-the-railscast" class="anchor" href="#watch-the-railscast" aria-hidden="true"><span class="octicon octicon-link"></span></a>Watch the RailsCast</h2>

<p>Ryan Bates has put together an excellent RailsCast on OmniAuth:</p>

<p><a href="http://railscasts.com/episodes/241-simple-omniauth-revised"><img src="https://www.evernote.com/shard/s35/sh/479f2503-aefa-4542-a7b4-8f84fd22eafc/0571f5a3795a0be3d0b0814312a8d5b7/res/49b5478a-657c-4aff-ae58-dae08b9a46d5/Screen_Shot_2012-07-15_at_12.41.15_PM-20120715-125424.jpg.jpg" alt="RailsCast #241" title="RailsCast #241 - Simple OmniAuth (revised)"></a></p>

<h2>Supported Rubies</h2>
<h2>
<a id="supported-rubies" class="anchor" href="#supported-rubies" aria-hidden="true"><span class="octicon octicon-link"></span></a>Supported Rubies</h2>

<p>OmniAuth Twitter is tested under 1.8.7, 1.9.2, 1.9.3 and Ruby Enterprise Edition.</p>

<p><a href="http://travis-ci.org/arunagw/omniauth-twitter"><img src="https://secure.travis-ci.org/arunagw/omniauth-twitter.png" alt="CI Build
Status"></a></p>

<h2>Note on Patches/Pull Requests</h2>
<h2>
<a id="note-on-patchespull-requests" class="anchor" href="#note-on-patchespull-requests" aria-hidden="true"><span class="octicon octicon-link"></span></a>Note on Patches/Pull Requests</h2>

<ul>
<li>Fork the project.</li>
<li>Make your feature addition or bug fix.</li>
<li>Add tests for it. This is important so I don’t break it in a future version unintentionally.</li>
<li>Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)</li>
<li>Send me a pull request. Bonus points for topic branches.</li>
</ul><h2>License</h2>
</ul>

<h2>
<a id="license" class="anchor" href="#license" aria-hidden="true"><span class="octicon octicon-link"></span></a>License</h2>

<p>Copyright (c) 2011 by Arun Agrawal</p>

Expand All @@ -106,25 +105,16 @@ <h2>Note on Patches/Pull Requests</h2>
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>

<p>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.</p>
</section>

<aside id="sidebar">
<a href="https://github.com/arunagw/omniauth-twitter/zipball/master" class="button">
<small>Download</small>
.zip file
</a>
<a href="https://github.com/arunagw/omniauth-twitter/tarball/master" class="button">
<small>Download</small>
.tar.gz file
</a>
<footer class="site-footer">
<span class="site-footer-owner"><a href="https://github.com/arunagw/omniauth-twitter">Omniauth-twitter</a> is maintained by <a href="https://github.com/arunagw">arunagw</a>.</span>

<p class="repo-owner"><a href="https://github.com/arunagw/omniauth-twitter"></a> is maintained by <a href="https://github.com/arunagw">arunagw</a>.</p>
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the <a href="https://github.com/jasonlong/cayman-theme">Cayman theme</a> by <a href="https://twitter.com/jasonlong">Jason Long</a>.</span>
</footer>

<p>This page was generated by <a href="pages.github.com">GitHub Pages</a> using the Architect theme by <a href="http://twitter.com/jasonlong">Jason Long</a>.</p>
</aside>
</div>
</div>
</section>


</body>
</html>
</html>

2 changes: 1 addition & 1 deletion params.json
@@ -1 +1 @@
{"body":"# OmniAuth Twitter\r\n\r\nThis gem contains the Twitter strategy for OmniAuth.\r\n\r\nTwitter uses the OAuth 1.0a flow, you can read about it here: https://dev.twitter.com/docs/auth/oauth\r\n\r\n## How To Use It\r\n\r\nUsage is as per any other OmniAuth 1.0 strategy. So let's say you're using Rails, you need to add the strategy to your `Gemfile`:\r\n\r\n gem 'omniauth-twitter'\r\n\r\nYou can pull them in directly from github e.g.:\r\n\r\n gem 'omniauth-twitter', :git => 'https://github.com/arunagw/omniauth-twitter.git'\r\n\r\nOnce these are in, you need to add the following to your `config/initializers/omniauth.rb`:\r\n\r\n Rails.application.config.middleware.use OmniAuth::Builder do\r\n provider :twitter, \"consumer_key\", \"consumer_secret\" \r\n end\r\n\r\nYou will obviously have to put in your key and secret, which you get when you register your app with Twitter (they call them API Key and Secret Key). \r\n\r\nTwitter also optionally supports specifying a username when authenticating. This is handy when your application supports multiple twitter accounts since you can prompt the user to login to the correct account (and not defaulting to the current login). \r\n\r\nTo use this, just add a querystring for screen_name. \r\n\r\n\t/auth/twitter?screen_name=scottw\r\n\r\nYou can also specify ```force_login``` without specifying the screen_name to prompt the user to choose the twitter account they wish to use.\r\n\r\n /auth/twitter?force_login=true\r\n\r\nTwitter also optionally supports specifying a x_auth_access_type when authenticating. This is handy when you need to specify special permission in some cases.\r\n\r\nTo use this, just add a querystring for x_auth_access_type. \r\n\r\n\t/auth/twitter?x_auth_access_type=read\t\r\n\r\n\r\nNow just follow the README at: https://github.com/intridea/omniauth\r\n\r\n## Watch the RailsCast\r\n\r\nRyan Bates has put together an excellent RailsCast on OmniAuth:\r\n\r\n[![RailsCast #241](https://www.evernote.com/shard/s35/sh/479f2503-aefa-4542-a7b4-8f84fd22eafc/0571f5a3795a0be3d0b0814312a8d5b7/res/49b5478a-657c-4aff-ae58-dae08b9a46d5/Screen_Shot_2012-07-15_at_12.41.15_PM-20120715-125424.jpg.jpg \"RailsCast #241 - Simple OmniAuth (revised)\")](http://railscasts.com/episodes/241-simple-omniauth-revised)\r\n\r\n\r\n## Supported Rubies\r\n\r\nOmniAuth Twitter is tested under 1.8.7, 1.9.2, 1.9.3 and Ruby Enterprise Edition.\r\n\r\n[![CI Build\r\nStatus](https://secure.travis-ci.org/arunagw/omniauth-twitter.png)](http://travis-ci.org/arunagw/omniauth-twitter)\r\n\r\n## Note on Patches/Pull Requests\r\n\r\n- Fork the project.\r\n- Make your feature addition or bug fix.\r\n- Add tests for it. This is important so I don’t break it in a future version unintentionally.\r\n- Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)\r\n- Send me a pull request. Bonus points for topic branches.\r\n\r\n## License\r\n\r\nCopyright (c) 2011 by Arun Agrawal\r\n\r\nPermission 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:\r\n\r\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\nTHE 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.","note":"Don't delete this file! It's used internally to help with page regeneration.","tagline":"OmniAuth strategy for Twitter","google":"","name":"Omniauth-twitter"}
{"name":"Omniauth-twitter","tagline":"OmniAuth strategy for Twitter","body":"# OmniAuth Twitter\r\n\r\nThis gem contains the Twitter strategy for OmniAuth.\r\n\r\nTwitter uses the OAuth 1.0a flow, you can read about it here: https://dev.twitter.com/docs/auth/oauth\r\n\r\n## How To Use It\r\n\r\nUsage is as per any other OmniAuth 1.0 strategy. So let's say you're using Rails, you need to add the strategy to your `Gemfile`:\r\n\r\n gem 'omniauth-twitter'\r\n\r\nYou can pull them in directly from github e.g.:\r\n\r\n gem 'omniauth-twitter', :git => 'https://github.com/arunagw/omniauth-twitter.git'\r\n\r\nOnce these are in, you need to add the following to your `config/initializers/omniauth.rb`:\r\n\r\n Rails.application.config.middleware.use OmniAuth::Builder do\r\n provider :twitter, \"consumer_key\", \"consumer_secret\" \r\n end\r\n\r\nYou will obviously have to put in your key and secret, which you get when you register your app with Twitter (they call them API Key and Secret Key). \r\n\r\nTwitter also optionally supports specifying a username when authenticating. This is handy when your application supports multiple twitter accounts since you can prompt the user to login to the correct account (and not defaulting to the current login). \r\n\r\nTo use this, just add a querystring for screen_name. \r\n\r\n\t/auth/twitter?screen_name=scottw\r\n\r\nYou can also specify ```force_login``` without specifying the screen_name to prompt the user to choose the twitter account they wish to use.\r\n\r\n /auth/twitter?force_login=true\r\n\r\nTwitter also optionally supports specifying a x_auth_access_type when authenticating. This is handy when you need to specify special permission in some cases.\r\n\r\nTo use this, just add a querystring for x_auth_access_type. \r\n\r\n\t/auth/twitter?x_auth_access_type=read\t\r\n\r\n\r\nNow just follow the README at: https://github.com/intridea/omniauth\r\n\r\n## Watch the RailsCast\r\n\r\nRyan Bates has put together an excellent RailsCast on OmniAuth:\r\n\r\n[![RailsCast #241](https://www.evernote.com/shard/s35/sh/479f2503-aefa-4542-a7b4-8f84fd22eafc/0571f5a3795a0be3d0b0814312a8d5b7/res/49b5478a-657c-4aff-ae58-dae08b9a46d5/Screen_Shot_2012-07-15_at_12.41.15_PM-20120715-125424.jpg.jpg \"RailsCast #241 - Simple OmniAuth (revised)\")](http://railscasts.com/episodes/241-simple-omniauth-revised)\r\n\r\n\r\n## Supported Rubies\r\n\r\nOmniAuth Twitter is tested under 1.8.7, 1.9.2, 1.9.3 and Ruby Enterprise Edition.\r\n\r\n[![CI Build\r\nStatus](https://secure.travis-ci.org/arunagw/omniauth-twitter.png)](http://travis-ci.org/arunagw/omniauth-twitter)\r\n\r\n## Note on Patches/Pull Requests\r\n\r\n- Fork the project.\r\n- Make your feature addition or bug fix.\r\n- Add tests for it. This is important so I don’t break it in a future version unintentionally.\r\n- Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)\r\n- Send me a pull request. Bonus points for topic branches.\r\n\r\n## License\r\n\r\nCopyright (c) 2011 by Arun Agrawal\r\n\r\nPermission 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:\r\n\r\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\nTHE 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.","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
115 changes: 115 additions & 0 deletions stylesheets/github-light.css
@@ -0,0 +1,115 @@
/*
Copyright 2014 GitHub Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

.pl-c /* comment */ {
color: #969896;
}

.pl-c1 /* constant, markup.raw, meta.diff.header, meta.module-reference, meta.property-name, support, support.constant, support.variable, variable.other.constant */,
.pl-s .pl-v /* string variable */ {
color: #0086b3;
}

.pl-e /* entity */,
.pl-en /* entity.name */ {
color: #795da3;
}

.pl-s .pl-s1 /* string source */,
.pl-smi /* storage.modifier.import, storage.modifier.package, storage.type.java, variable.other, variable.parameter.function */ {
color: #333;
}

.pl-ent /* entity.name.tag */ {
color: #63a35c;
}

.pl-k /* keyword, storage, storage.type */ {
color: #a71d5d;
}

.pl-pds /* punctuation.definition.string, string.regexp.character-class */,
.pl-s /* string */,
.pl-s .pl-pse .pl-s1 /* string punctuation.section.embedded source */,
.pl-sr /* string.regexp */,
.pl-sr .pl-cce /* string.regexp constant.character.escape */,
.pl-sr .pl-sra /* string.regexp string.regexp.arbitrary-repitition */,
.pl-sr .pl-sre /* string.regexp source.ruby.embedded */ {
color: #183691;
}

.pl-v /* variable */ {
color: #ed6a43;
}

.pl-id /* invalid.deprecated */ {
color: #b52a1d;
}

.pl-ii /* invalid.illegal */ {
background-color: #b52a1d;
color: #f8f8f8;
}

.pl-sr .pl-cce /* string.regexp constant.character.escape */ {
color: #63a35c;
font-weight: bold;
}

.pl-ml /* markup.list */ {
color: #693a17;
}

.pl-mh /* markup.heading */,
.pl-mh .pl-en /* markup.heading entity.name */,
.pl-ms /* meta.separator */ {
color: #1d3e81;
font-weight: bold;
}

.pl-mq /* markup.quote */ {
color: #008080;
}

.pl-mi /* markup.italic */ {
color: #333;
font-style: italic;
}

.pl-mb /* markup.bold */ {
color: #333;
font-weight: bold;
}

.pl-md /* markup.deleted, meta.diff.header.from-file */ {
background-color: #ffecec;
color: #bd2c00;
}

.pl-mi1 /* markup.inserted, meta.diff.header.to-file */ {
background-color: #eaffea;
color: #55a532;
}

.pl-mdr /* meta.diff.range */ {
color: #795da3;
font-weight: bold;
}

.pl-mo /* meta.output */ {
color: #1d3e81;
}

0 comments on commit 2b62771

Please sign in to comment.