omniauth-campus 0.5.1 → 0.5.2

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: 7c604d81c9d35be2bd92b8040474b621d7efd4ee
4
- data.tar.gz: 2fc7ec1172b60afcc79424e28512f97c4f318bde
3
+ metadata.gz: cde0977824e7c481e13d9e08bc23c65f2ddb2532
4
+ data.tar.gz: bee48dc0638f87972c6467aae33e591709d81ebb
5
5
  SHA512:
6
- metadata.gz: c989315adbcf6d3bd45aceec6d5bb6ddee05f6eacc6ca5c58047e2ed013a753ea96d5ba98693d6a52bb848e60ee2d00716de9f9a50a03d5eba8ddaf37f36759d
7
- data.tar.gz: 16f0e6e41bfb0dc58aba3d14c3d7af2903234cf28f52c184181d3187e257a47d1d5303a4d89c3eccfa2fc60d72fae36e154f3b15f913d410d249514c195bef19
6
+ metadata.gz: 030436211332d854ca7e21ace18b660d8448bfcc8d029b58dcbbf99dcfd9a1036cd7c8974f3022928503dd8ab67cbb1f80d21fea776bd3eb01744fde0520eed8
7
+ data.tar.gz: b34762744a69a10bbf6ee5edf13b8c94cf3c8c98f97b74f9ac13be48aa4a9decb10f4e64b386c7af170024d0fa21c1217b19b315d35c6da8d14a79929d27b44a
Binary file
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
5
5
  end
6
6
 
Binary file
@@ -28,7 +28,7 @@ module OmniAuth
28
28
  site: 'https://vistacampus.org'
29
29
  }
30
30
 
31
- #option :fields, [:name, :email]
31
+ option :fields, [:name, :email]
32
32
 
33
33
 
34
34
  #site' 'http://community3dev.devcloud.acquia-sites.com/api'
@@ -41,13 +41,15 @@ module OmniAuth
41
41
  # }
42
42
  #
43
43
 
44
- def request_phase
45
- super
46
- end
44
+ def request_phase
45
+ form = OmniAuth::Form.new(:title => "User Info", :url => callback_path)
46
+ options.fields.each do |field|
47
+ form.text_field field.to_s.capitalize.gsub("_", " "), field.to_s
48
+ end
49
+ form.button "Sign In"
50
+ form.to_response
51
+ end
47
52
 
48
- def callback_phase
49
- super
50
- end
51
53
 
52
54
 
53
55
  uid {raw_info['uid']}
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.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr