omniauth-campus 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de319a8f2340e6e3097997c56a5b359199ccab24
4
- data.tar.gz: d22a844895cf9b233504d7569fdca2d55c38f687
3
+ metadata.gz: 4cfdadfbc4b58130e3db95db421cab97813b55aa
4
+ data.tar.gz: 4c95fd26b5659ebe49710058a0a96e85b6a9c1b8
5
5
  SHA512:
6
- metadata.gz: 9acab6dffe9995ec7acbde7b13b82a7523dddad8d8b15d075a6bc9ba9a145a81af8ab05fc8fd92781861b57b69e526ffd33bd1f66bf1081e07c1abb165d81c8b
7
- data.tar.gz: c3d430fc8fc8a0232cd2f795ceaf48324b520fe3cc0ac4dcc394e927bd34e9054b69cddcb59f79aa9802b1ca9ecbd69f5282b3e1846bb4c43084f77d407b5a92
6
+ metadata.gz: 5027610d753962e76e1905ebb1d6451b1ae6d846e0aa02300f3f54da46a18edee4a3b55b3555fad360886f495dfd42e52702146d4c6a52d14f7196295b738434
7
+ data.tar.gz: 470b5fc84f6c52166d98066e4c9809b4258f2904e373f85d0fb50eee97dcb475ed6428663cc60be2dc75b0c3418732a1d056f04c22ac2fc6e83dd5f041f5d177
Binary file
@@ -19,10 +19,11 @@ module OmniAuth
19
19
  option :consumer_secret, nil
20
20
  option :callback_url, nil
21
21
  option :client_options, {}
22
+ option :fields, [:username, :password]
22
23
 
23
24
  #site: 'http://community3dev.devcloud.acquia-sites.com/api'
24
25
 
25
- #option :client_options, {
26
+ #option :client_options, {]
26
27
  # :site => 'http://community3dev.devcloud.acquia-sites.com/api',
27
28
  # :authorize_url => 'https://www.vistacampus.org/login/oauth/authorize',
28
29
  # :token_url => 'https://www.vistacampus.org/login/oauth/access_token'
@@ -34,8 +35,9 @@ module OmniAuth
34
35
 
35
36
  def request_phase
36
37
  form = OmniAuth::Form.new(:title => options.title, :url => callback_path)
37
- text_field 'Username', 'username'
38
- password_field 'Password', 'password'
38
+ options.fields.each do |field|
39
+ form.text_field field.to_s.capitalize.gsub("_", " "), field.to_s
40
+ end
39
41
  form.button "Sign In"
40
42
  form.to_response
41
43
  end
Binary file
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-campus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr