omniauth-dice 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa07835678245eda74c877a01bed7d6ead9fa23f
4
- data.tar.gz: b0ba3b5276a7b983f0c130c1c41c7d89ca9ee62d
3
+ metadata.gz: 4a097c63c5d4fb98081bba365012bf677121ef78
4
+ data.tar.gz: 9f377ee947be102ddaea762d9a33b15ef0ae309b
5
5
  SHA512:
6
- metadata.gz: a6d78332fde76300334e0c6203a3b57d3e39cb895307eac70a35639d8b6db08e38c004c7bf919ca81621f59019d2ba37de4b131cc1a9d294b07e734e06e6e148
7
- data.tar.gz: 6b48beb330e949e82c7b0f3bf9ba1ff3fd4a2d84381c4d7b97ef708f39ba2d1d798041ec612ad459280cde95985a90e80f300ee5106bfa2b8ee33823d0132352
6
+ metadata.gz: f782a5cff03a917ae079850dd909e07cc1b8f1336e9becafb2ddd46d0111d7575b7d2dff41e2bf4a2cf5d3b839f8e055b90e8f10cba72644f823d6c9d546518c
7
+ data.tar.gz: 4412b1988ab3f9979477195b41f947873d8891f86d7e606fdc057568e0cacfdb55e4d3c5b3d55644c4367d0958e9d29c7e880c8408e96a7b2f0dff4b74200d43
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -0,0 +1,8 @@
1
+ languages:
2
+ Ruby: true
3
+ engines:
4
+ rubocop:
5
+ enabled: true
6
+ exclude_paths:
7
+ - "test/*"
8
+ - "spec/*"
data/README.md CHANGED
@@ -11,7 +11,7 @@ a user's X509 certificate DN string to an Enterprise CAS server via REST.
11
11
 
12
12
  Add this line to your application's Gemfile:
13
13
 
14
- gem 'omniauth-dice', '~> 0.2.2'
14
+ gem 'omniauth-dice', '~> 0.2.3'
15
15
 
16
16
  And then execute:
17
17
 
@@ -2,6 +2,6 @@
2
2
  module Omniauth
3
3
  # Omniauth::Dice version
4
4
  module Dice
5
- VERSION = '0.2.3'
5
+ VERSION = '0.2.4'
6
6
  end
7
7
  end
@@ -63,7 +63,6 @@ module OmniAuth
63
63
 
64
64
  # Determine if required arguments are present or fail hard
65
65
  def validate_required_params
66
- log :debug, '.validate_required_params'
67
66
  required_params.each do |param|
68
67
  unless options.send(param)
69
68
  error_msg = "omniauth-dice error: #{param} is required"
@@ -307,8 +306,9 @@ module OmniAuth
307
306
  @conn ||= Faraday.new(url: options.cas_server, ssl: ssl_hash) do |conn|
308
307
  conn.headers = headers
309
308
  conn.response :logger # log requests to STDOUT
310
- conn.response :xml, content_type: /\bxml$/
311
- conn.response :json, content_type: /\bjson$/
309
+ format = options.format
310
+ conn.response(:xml, content_type: /\bxml$/) if format == 'xml'
311
+ conn.response(:json, content_type: /\bjson$/) if format == 'json'
312
312
  conn.adapter :excon
313
313
  end
314
314
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-dice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Haddox
@@ -30,7 +30,7 @@ cert_chain:
30
30
  42qdwEXvvkODZAD6KAIXPdmbMfBgPbcd+B/4eUA0PyKo+4dgL1NuqX4MPWToevIZ
31
31
  O8EKLF2X7NmC6FY1bOsSj/J8r1SOkx0rxgF+geRvY1P+hfNjDfxTsjU=
32
32
  -----END CERTIFICATE-----
33
- date: 2015-10-02 00:00:00.000000000 Z
33
+ date: 2015-10-21 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: awesome_print
@@ -364,6 +364,7 @@ executables: []
364
364
  extensions: []
365
365
  extra_rdoc_files: []
366
366
  files:
367
+ - ".codeclimate.yml"
367
368
  - ".coveralls.yml"
368
369
  - ".gitignore"
369
370
  - ".rubocop.yml"
metadata.gz.sig CHANGED
Binary file