omniauth-myvr 0.0.4 → 0.0.5

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: 5628f6edef469d955e3dd28ac5489ad566fdb50d
4
- data.tar.gz: 9a5ca5ed3183d23ed78252b9c3f219625bf3ad26
3
+ metadata.gz: c1c83d612d11500b8eab232e27f04c0f2c9f4fda
4
+ data.tar.gz: cb1454846da86dad3df714b067a21f5d5e433087
5
5
  SHA512:
6
- metadata.gz: ed21c07fcc864aba84088561b3df7ff59fc3365f73ad2dbbd6d4ed5eb0ae2cae2814c4ba98cfac3bcc7d8970363c33f0852ae6010a8d096ffac2950031294bb4
7
- data.tar.gz: 6425e315fa6970f56a9913abb47484382f222dd6e833fd785f3e35ae438dcde6e3ed0ed5353a4d8bf805c041c47934bc626d27710cf4ed4e811d748367a00fd5
6
+ metadata.gz: 9c89e958da41a0cc76b945f328cf9ccd91cde42fde02f5e0064203eb0ff799acf031864c22a97dbc947bd05cf9fff3c729cf9f000601ac2057f272e2f8226d3d
7
+ data.tar.gz: 43ec194ad4b38884721bb6b32634106e2304657c7171c7c81fb21c7acd054c3de61d6e5696aa596a90120520bc1ba64b773750997acd4257ad990ca0bb781cb4
data/example/config.ru CHANGED
@@ -8,6 +8,9 @@ require 'sinatra'
8
8
  require 'omniauth'
9
9
  require '../lib/omniauth_myvr'
10
10
 
11
+ ENV['BASE_SCOPE_URL'] ||= 'http://local.api.myvr.com:8000/auth/'
12
+ ENV['MYVR_KEY'] ||= '811f088e585dd0e4beaba9e758059f02'
13
+ ENV['MYVR_SECRET'] ||= '6e33b7189bc37bdeb571f94c366b6ef5'
11
14
  # Do not use for production code.
12
15
  # This is only to make setup easier when running through the sample.
13
16
  #
@@ -6,7 +6,7 @@ require 'uri'
6
6
  module OmniAuth
7
7
  module Strategies
8
8
  class Myvr < OmniAuth::Strategies::OAuth2
9
- BASE_SCOPE_URL = "https://api.myvr.com/auth/"
9
+ BASE_SCOPE_URL = ENV.fetch('BASE_SCOPE_URL', "https://api.myvr.com/auth/")
10
10
  BASE_SCOPES = %w[profile email openid]
11
11
  DEFAULT_SCOPE = "email,profile"
12
12
 
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "omniauth-myvr"
6
- s.version = "0.0.4"
6
+ s.version = "0.0.5"
7
7
  s.authors = ["CJ Avilla"]
8
8
  s.email = ["cjavilla@gmail.com"]
9
9
  s.homepage = "https://github.com/w1zeman1p/omniauth-myvr"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-myvr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - CJ Avilla
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-18 00:00:00.000000000 Z
11
+ date: 2016-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth