omniauth-nuwe 1.0.1 → 1.0.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: 88b2cfbd0f18d63efee528dbb906e0d7a661bb22
4
- data.tar.gz: d2418179c7f64b77b71447f2580e4c8ade883941
3
+ metadata.gz: 425b40dcef2ecd0e60de1fd153d3cf99a1bf0450
4
+ data.tar.gz: 1a0aac953771b5665797852bb5bae1091057f224
5
5
  SHA512:
6
- metadata.gz: a15a80dbb79c11ff6adc2074b77ea474df2ce7453337fa8f861925fe2a7dbbe6c63c37dea6829c4892ff2c1c08deb2096b21e4db4fdb14763f752c913426d640
7
- data.tar.gz: 148b075e8be0be68acccda573615dd7dabd7da1da0af92661fc26481ecc513e95de6ca9c55ee0203c44a43c399fca1779a0d3ebf24e54da5399fced3ae98b11a
6
+ metadata.gz: 663b551c592eccb175248c3985b6571427418d720e4825a81cc8b0bcdede9d1ba1790a3b9fb818a236bef426dacdc0db442508b42feebce55265f0e3efb28b5f
7
+ data.tar.gz: 99949de0cd7ca6a14626fe86c19e23b5eefd5cb425dce7da5f61b86cfb83470fbc77bc03380108514a9ef341321c07fdbcf21b04b770b13d268dc69ccfd2760a
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.1.4
data/README.md CHANGED
@@ -19,7 +19,7 @@ Then `bundle install`.
19
19
 
20
20
  `OmniAuth::Strategies::Nuwe` is simply a Rack middleware. Read the OmniAuth docs for detailed instructions: https://github.com/intridea/omniauth.
21
21
 
22
- Nuwe uses the Doorkeeper gem to use NuAPI as an OAuth2 provider. This is necessary to gain access to the V3 endpoints of this API. Developers can sign up for a developer account at https://api.nuapi.co.
22
+ Nuwe uses the Doorkeeper gem to use NuAPI as an OAuth2 provider. This is necessary to gain access to the V3 endpoints of this API. Developers can sign up for a developer account at https://developer.nuwe.co.
23
23
 
24
24
  Here's a quick example, adding the middleware to a Rails app in `config/initializers/omniauth.rb`:
25
25
 
@@ -37,6 +37,6 @@ You can now access the OmniAuth Nuwe OAuth2 URL: `/auth/nuwe`.
37
37
  2. `bundle install`
38
38
  3. `cd example`
39
39
  4. Set ENV variables for APPLICATION_ID and CLIENT_SECRET
40
- 5. Set callback URI to `http://localhost:9292/auth/nuwe/callback` in your developer account at https://api.nuapi.co.
40
+ 5. Set callback URI to `http://localhost:9292/auth/nuwe/callback` in your developer account at https://developer.nuwe.co.
41
41
  6. `bundle exec rackup`
42
42
  7. Open http://localhost:9292 in your browser and follow links
data/example/Gemfile.lock CHANGED
@@ -17,7 +17,7 @@ GEM
17
17
  omniauth (1.2.2)
18
18
  hashie (>= 1.2, < 4)
19
19
  rack (~> 1.0)
20
- omniauth-nuwe (0.0.1)
20
+ omniauth-nuwe (1.0.1)
21
21
  omniauth (~> 1.0)
22
22
  omniauth-oauth2 (>= 1.1.1, < 2.0)
23
23
  omniauth-oauth2 (1.2.0)
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Nuwe
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
@@ -7,9 +7,9 @@ module OmniAuth
7
7
  option :name, "nuwe"
8
8
 
9
9
  option :client_options, {
10
- :site => "https://api.nuwe.co",
11
- :authorize_url => "https://api.nuapi.co/oauth/authorize",
12
- :token_url => "https://api.nuapi.co/oauth/token"
10
+ :site => "https://developer.nuwe.co",
11
+ :authorize_url => "https://developer.nuwe.co/oauth/authorize",
12
+ :token_url => "https://developer.nuwe.co/oauth/token"
13
13
  }
14
14
 
15
15
  uid { raw_info["user"]["id"] }
@@ -11,11 +11,11 @@ describe "OmniAuth::Strategies::Nuwe" do
11
11
  end
12
12
 
13
13
  it 'has correct OAuth endpoint' do
14
- expect(subject.options.client_options.site).to eq('https://api.nuwe.co')
14
+ expect(subject.options.client_options.site).to eq('https://developer.nuwe.co')
15
15
  end
16
16
 
17
17
  it 'has correct authorize url' do
18
- expect(subject.options.client_options.authorize_url).to eq('https://api.nuapi.co/oauth/authorize')
18
+ expect(subject.options.client_options.authorize_url).to eq('https://developer.nuwe.co/oauth/authorize')
19
19
  end
20
20
  end
21
21
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-nuwe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephanie Nemeth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-10 00:00:00.000000000 Z
11
+ date: 2015-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -94,6 +94,7 @@ extensions: []
94
94
  extra_rdoc_files: []
95
95
  files:
96
96
  - ".gitignore"
97
+ - ".ruby-version"
97
98
  - Gemfile
98
99
  - LICENSE.txt
99
100
  - README.md
@@ -127,10 +128,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
128
  version: '0'
128
129
  requirements: []
129
130
  rubyforge_project:
130
- rubygems_version: 2.4.4
131
+ rubygems_version: 2.2.2
131
132
  signing_key:
132
133
  specification_version: 4
133
134
  summary: OmniAuth strategy for Nuwe.
134
135
  test_files:
135
136
  - spec/omniauth/strategies/nuwe_spec.rb
136
137
  - spec/spec_helper.rb
138
+ has_rdoc: