omniauth-slc 0.0.1.3 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Omniauth::Slc
2
2
 
3
- TODO: Write a gem description
3
+ An Omniauth strategy for authorizing with the Shared Learning Collaborative.
4
4
 
5
5
  ## Installation
6
6
 
@@ -12,13 +12,23 @@ And then execute:
12
12
 
13
13
  $ bundle
14
14
 
15
- Or install it yourself as:
15
+ ## Usage
16
16
 
17
- $ gem install omniauth-slc
17
+ In your omniauth.rb initializer add the following:
18
18
 
19
- ## Usage
19
+ Rails.application.config.middleware.use OmniAuth::Builder do
20
+ provider :slc, ENV['SLC_KEY'], ENV['SLC_SECRET']
21
+ end
22
+
23
+ To set up the slc sandbox provider, you can configure the slc provider as follows:
24
+
25
+ provider :slc, ENV['SLC_KEY'], ENV['SLC_SECRET'], :setup => lambda{|env|
26
+ env['omniauth.strategy'].options[:client_options].site = 'https://api.sandbox.slcedu.org'
27
+ }
28
+
29
+ ## Examples
20
30
 
21
- TODO: Write usage instructions here
31
+ Please see https://github.com/khoffma4/slc-example for an example of how to use quickly get up and running with the Shared Learning Collaborative API.
22
32
 
23
33
  ## Contributing
24
34
 
@@ -26,4 +36,4 @@ TODO: Write usage instructions here
26
36
  2. Create your feature branch (`git checkout -b my-new-feature`)
27
37
  3. Commit your changes (`git commit -am 'Add some feature'`)
28
38
  4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
39
+ 5. Create a new Pull Request
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Slc
3
- VERSION = "0.0.1.3"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
data/omniauth-slc.gemspec CHANGED
@@ -17,6 +17,5 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency 'omniauth', '~> 1.1'
21
- gem.add_dependency 'omniauth-oauth2', '~> 1.1'
22
- end
20
+ gem.add_runtime_dependency 'omniauth-oauth2', '~> 1.1'
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-slc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.3
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,22 +11,6 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: omniauth
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '1.1'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- version: '1.1'
30
14
  - !ruby/object:Gem::Dependency
31
15
  name: omniauth-oauth2
32
16
  requirement: !ruby/object:Gem::Requirement
@@ -55,10 +39,8 @@ files:
55
39
  - LICENSE.txt
56
40
  - README.md
57
41
  - Rakefile
58
- - lib/omniauth-slc-sandbox.rb
59
42
  - lib/omniauth-slc.rb
60
43
  - lib/omniauth-slc/version.rb
61
- - lib/omniauth/strategies/slc-sandbox.rb
62
44
  - lib/omniauth/strategies/slc.rb
63
45
  - omniauth-slc.gemspec
64
46
  homepage: https://github.com/khoffma4/omniauth-slc
@@ -1,2 +0,0 @@
1
- require "omniauth-slc/version"
2
- require "omniauth/strategies/slc-sandbox"
@@ -1,17 +0,0 @@
1
- require "omniauth-slc/version"
2
- require 'omniauth-oauth2'
3
-
4
- module OmniAuth
5
- module Strategies
6
- class SlcSandbox < OmniAuth::Strategies::OAuth2
7
- option :name, "slc-sandbox"
8
-
9
- option :client_options, {:site => "https://api.sandbox.slcedu.org",
10
- :authorize_url => 'api/oauth/authorize',
11
- :token_url => 'api/oauth/token'}
12
-
13
- end
14
- end
15
- end
16
-
17
- OmniAuth.config.add_camelization 'slc-sandbox', 'SlcSandbox'