omniauth-bike-index 0.0.3 → 0.1.0

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: 509ba75c1d01e9e1d081dbd1cb93b21eb7f2b096
4
- data.tar.gz: 7d2d56b8868aa2520ecebcdccdcdd54b48dd3dcf
3
+ metadata.gz: df30b257d96047b03e1d60869233c69ee293bbb0
4
+ data.tar.gz: ff7734850c1f426614774c7d798a7e54dde7d1c3
5
5
  SHA512:
6
- metadata.gz: 95307afd2d1044df19940fe18d29d7a24595e086f4fccf4f0ee2032e1804bf5fe774a702b0082c86cc321adf750b266e99ceddb488f088e2ece19dd355845932
7
- data.tar.gz: e63efadffafba5bd584d413780d3afe37c9c299193ce9d4ee0b8fccb1a4f1d74a19df4b45e609f9c77bd8b1126b2547cbf084d659bdfc992139f64df0290d2fc
6
+ metadata.gz: 747feadbb1ed8d937b44f583119d338186e66f4182d319b32691ecc28d67ca8eb3b9e8c0d14d93dc9a5a71ee8a279f4202ecf0c903c1c84c460d11069108d6cd
7
+ data.tar.gz: 7693d9b2c71430dee0dde1c7ea011c1d21f7751be888acaf62052ba7439f79416307f629e619b7245f4cad1133d70839b69deccb120b74d7851d4780c02ea365
data/.gitignore CHANGED
@@ -17,4 +17,6 @@ test/version_tmp
17
17
  tmp
18
18
  .env
19
19
  .rspec
20
- .ruby-*
20
+ .ruby-*
21
+
22
+ info.markdown
data/README.md CHANGED
@@ -61,7 +61,7 @@ Devise.setup do |config|
61
61
  end
62
62
  ```
63
63
 
64
- Available scopes: `read_user`, `write_user`, `read_bikes`, `write_bikes`, `read_bikewise`, `write_bikewise`
64
+ Available scopes: `read_user`, `write_user`, `read_bikes`, `write_bikes`
65
65
 
66
66
 
67
67
  ## Credentials
@@ -72,11 +72,8 @@ If you include the `read_bikes` scope, the response will include an array of the
72
72
 
73
73
  You can use these IDs to access information about the bikes - e.g. [BikeIndex.org/api/v1/bikes/3414](https://bikeindex.org/api/v1/bikes/3414) & [/api/v1/bikes/29367](https://bikeindex.org/api/v1/bikes/29367)
74
74
 
75
- _currently, you should use the v1 of the API ([documentation](https://bikeindex.org/documentation))_
76
-
77
-
78
- If you include the `read_user` scope, the response will include the user's username, email and name. You will also see their twitter handle and avatar if they have added them. The keys for these items -
79
- `username`, `email`, `name`, `twitter` & `image` - all accessible in the `request.env['omniauth.auth']`, e.g. `request.env['omniauth.auth'].info.email`
75
+ If you include the `read_user` scope, the response will include the user's nickname, email and name. You will also see their twitter handle and avatar if they have added them. The keys for these items -
76
+ `nickname`, `email`, `name`, `twitter` & `image` - all accessible in the `request.env['omniauth.auth']`, e.g. `request.env['omniauth.auth'].info.email`
80
77
 
81
78
 
82
79
  ## Auth Hash
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module BikeIndex
3
- VERSION = '0.0.3'
3
+ VERSION = '0.1.0'
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@ module OmniAuth
12
12
 
13
13
  info do
14
14
  prune!(
15
- 'username' => raw_info['user']['username'],
15
+ 'nickname' => raw_info['user']['username'],
16
16
  'bike_ids' => raw_info['bike_ids'],
17
17
  'email' => raw_info['user']['email'],
18
18
  'name' => raw_info['user']['name'],
@@ -33,8 +33,6 @@ module OmniAuth
33
33
 
34
34
  def request_phase
35
35
  options[:authorize_params] = {
36
- # :client_id => options['client_id'],
37
- # :response_type => 'code',
38
36
  :scope => (options['scope'] || DEFAULT_SCOPE)
39
37
  }
40
38
 
@@ -20,7 +20,7 @@ end
20
20
 
21
21
  get '/' do
22
22
  <<-HTML
23
- <a href='/auth/venmo'>Sign in with Venmo</a>
23
+ <a href='/auth/venmo'>Sign in with Bike Index</a>
24
24
  HTML
25
25
  end
26
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-bike-index
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Herr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-02 00:00:00.000000000 Z
11
+ date: 2015-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 2.2.2
109
+ rubygems_version: 2.4.6
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Bike Index strategy for OmniAuth