oauth-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 31db7ac0c8ad14e98a8975de6cb6bbd7db6ee531
4
+ data.tar.gz: cb7964c772bac4f78a7f1f5d802352f44dcb1784
5
+ SHA512:
6
+ metadata.gz: 3ef8529121dae27809fb2e786d643d7f56a31f0de35af5e0f23238912ccd12113eec4fef09aa594c2deedc3b0e53cf46fd7f023ca74fff21cd47b322843ba421
7
+ data.tar.gz: d3c30850ea9e416adb5fcaab384e5c2fdf0b215062c8dccdabcc9702e9519ace85f4514818a708dbe7f70b15057dadf784eff554a53477d9a191a42e1abec65a
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 1.9.3
5
+ notifications:
6
+ email:
7
+ recipients:
8
+ - cowboyd@thefrontside.net
9
+
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in oauth-rails.gemspec
4
+ gemspec
5
+
6
+ gem "rake"
7
+ gem "combustion"
8
+ gem "cucumber"
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Charles Lowell
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,12 @@
1
+ # OAuth::Rails
2
+
3
+ Do the oauth dance like a pro, with small cognitive overhead.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'oauth-rails'
10
+
11
+
12
+
@@ -0,0 +1,8 @@
1
+ require "bundler/gem_tasks"
2
+ require "cucumber/rake/task"
3
+
4
+ Cucumber::Rake::Task.new(:cucumber) do |t|
5
+ t.cucumber_opts = "features --format pretty"
6
+ end
7
+
8
+ task :default => :cucumber
@@ -0,0 +1,7 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+
4
+ Bundler.require :default, :development
5
+
6
+ Combustion.initialize!
7
+ run Combustion::Application
@@ -0,0 +1,4 @@
1
+ Feature: Dealing with revoked access tokens
2
+ From time to time, users will revoke access to your application. Sadly, you won't know that this has happened until
3
+ you attempt a request on their behalf. Only at that point will you get an authentication failure because your access
4
+ token was revoked. Luckily, OAuth::Rails has got your back.
@@ -0,0 +1,2 @@
1
+ Feature: Starting a new dance when you already have a valid access token
2
+ I'm not sure why you would want to do this, but the system should perhaps behave sanely.
@@ -0,0 +1,4 @@
1
+ Feature: Initiating the Dance
2
+
3
+ OAuth::Rails allows you to associate one of your application's models with access tokens on a remote site
4
+ like Google or Twitter. You may have several access tokens associated with
@@ -0,0 +1,25 @@
1
+ Bundler.require :default, :development
2
+
3
+ $:.push(File.expand_path('../../../lib', __FILE__))
4
+ require 'oauth/rails'
5
+
6
+ module RouteProxy
7
+ # didn't find a cleaner way to get route helpers into my steps
8
+ def method_missing(sym, *args)
9
+ if route_helpers.respond_to?(sym)
10
+ route_helpers.send(sym, *args)
11
+ else
12
+ super
13
+ end
14
+ end
15
+
16
+ def route_helpers
17
+ MyEngine::Engine.routes.url_helpers
18
+ end
19
+ end
20
+
21
+ World(RouteProxy)
22
+
23
+ Before do
24
+ OAuth::Engine.routes.default_url_options[:host] = 'test.host'
25
+ end
@@ -0,0 +1,7 @@
1
+ require "oauth/rails/version"
2
+
3
+ module OAuth
4
+ module Rails
5
+ # Your code goes here...
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ module OAuth
2
+ module Rails
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,22 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'oauth/rails/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "oauth-rails"
8
+ spec.version = OAuth::Rails::VERSION
9
+ spec.authors = ["Charles Lowell"]
10
+ spec.email = ["cowboyd@thefrontside.net"]
11
+ spec.description = %q{Para bailar La OAuth, se necesita una poca de gracia.}
12
+ spec.summary = %q{Request Tokens, Access Tokens... When they dip, you dip, we dip.}
13
+ spec.homepage = "https://github.com/thefrontside/oauth-rails"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency "oauth"
22
+ end
@@ -0,0 +1,3 @@
1
+ test:
2
+ adapter: sqlite3
3
+ database: db/combustion_test.sqlite
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ #
3
+ end
@@ -0,0 +1,3 @@
1
+ ActiveRecord::Schema.define do
2
+ #
3
+ end
@@ -0,0 +1 @@
1
+ *.log
File without changes
metadata ADDED
@@ -0,0 +1,107 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: oauth-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Charles Lowell
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDPjCCAiagAwIBAgIBADANBgkqhkiG9w0BAQUFADBFMRAwDgYDVQQDDAdjb3di
14
+ b3lkMRwwGgYKCZImiZPyLGQBGRYMdGhlZnJvbnRzaWRlMRMwEQYKCZImiZPyLGQB
15
+ GRYDbmV0MB4XDTEzMDEzMDIxMDYwNFoXDTE0MDEzMDIxMDYwNFowRTEQMA4GA1UE
16
+ AwwHY293Ym95ZDEcMBoGCgmSJomT8ixkARkWDHRoZWZyb250c2lkZTETMBEGCgmS
17
+ JomT8ixkARkWA25ldDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAO45
18
+ CUxpETDGYXjCCy2dMg/aIrdrTqBqQW5ZrzhHxF9EkcdmWFr0z/qMz0JSpZ3pF11Z
19
+ KYaj5PaQQpjZfLPwbuiGGkuSWi+UAac//V18xo6S4lzRBjO+gpzG9f2AOzt9b+SR
20
+ Uc8UhO7QBZ5edUDxMxw9QstD+U0YBAlzsPJbHuUOqdtxXmNQCds3ZnqTgZaIpdUy
21
+ CSejtrukSmlthxFzwgMezYQhcYxmkl+Q475JUodnI6Pjc6nja/Or8Y6cEWiLgeUa
22
+ a+efcPGLDEbwJC7TGRrvk8yassMByBEJ3XueTMzeqWFd+665ptciojYo6BvIAR0N
23
+ iLwks0x567FZyS8SqTcCAwEAAaM5MDcwCQYDVR0TBAIwADAdBgNVHQ4EFgQUxVgR
24
+ 5TUqf7Hd24ICb3g4FNbM7oYwCwYDVR0PBAQDAgSwMA0GCSqGSIb3DQEBBQUAA4IB
25
+ AQDdJj+NzZhiYXA56z0wzRUA/Fcf6CYqKB+RFRlPssDEcHTor5SnwdWgQof/gNLi
26
+ Qel1Om4zO0Shcp89jxaUqtvEdYVhmyfc0vycHmemKttNBT734yMrEJtF8Hhy+Dnz
27
+ 9CzixXLvgGaRH+mf3M0+l+zIDJJr2L+39L8cyTSSRnp/srfI8aSmJKhGshudBKoC
28
+ Ty6Gi071pwoJXvdMaE/6iPy7bUzlndYdHyYuWSKaO9N47HqQ62oEnBraglw6ghoi
29
+ UgImJlChAzCoDP9zi9tdm6jAr7ttF25R9PPYr11ILb7dYe3qUzlNlM6zJx/nb31b
30
+ IhdyRVup4qLcqYSTPsm6u7VA
31
+ -----END CERTIFICATE-----
32
+ date: 2013-04-23 00:00:00.000000000 Z
33
+ dependencies:
34
+ - !ruby/object:Gem::Dependency
35
+ name: oauth
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ type: :runtime
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ description: Para bailar La OAuth, se necesita una poca de gracia.
49
+ email:
50
+ - cowboyd@thefrontside.net
51
+ executables: []
52
+ extensions: []
53
+ extra_rdoc_files: []
54
+ files:
55
+ - .gitignore
56
+ - .travis.yml
57
+ - Gemfile
58
+ - LICENSE.txt
59
+ - README.md
60
+ - Rakefile
61
+ - config.ru
62
+ - features/access-token-revocation.feature
63
+ - features/overwriting-a-valid-access-token.feature
64
+ - features/starting-the-dance.feature
65
+ - features/support/env.rb
66
+ - lib/oauth/rails.rb
67
+ - lib/oauth/rails/version.rb
68
+ - oauth-rails.gemspec
69
+ - spec/internal/config/database.yml
70
+ - spec/internal/config/routes.rb
71
+ - spec/internal/db/schema.rb
72
+ - spec/internal/log/.gitignore
73
+ - spec/internal/public/favicon.ico
74
+ homepage: https://github.com/thefrontside/oauth-rails
75
+ licenses:
76
+ - MIT
77
+ metadata: {}
78
+ post_install_message:
79
+ rdoc_options: []
80
+ require_paths:
81
+ - lib
82
+ required_ruby_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ requirements: []
93
+ rubyforge_project:
94
+ rubygems_version: 2.0.0
95
+ signing_key:
96
+ specification_version: 4
97
+ summary: Request Tokens, Access Tokens... When they dip, you dip, we dip.
98
+ test_files:
99
+ - features/access-token-revocation.feature
100
+ - features/overwriting-a-valid-access-token.feature
101
+ - features/starting-the-dance.feature
102
+ - features/support/env.rb
103
+ - spec/internal/config/database.yml
104
+ - spec/internal/config/routes.rb
105
+ - spec/internal/db/schema.rb
106
+ - spec/internal/log/.gitignore
107
+ - spec/internal/public/favicon.ico