omnibucket 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: 486ccabb2cb4cf5bc2da50ff5ee328e48fe2794fcfef2d00da9bf04447da32e0
4
- data.tar.gz: c9684c8cc04c7e8865fad2a693165a807c92d5062ebc766bdbc311ad2691fb6c
3
+ metadata.gz: 690ea30a126f7be550a15a8a09984a63cc9bac631adc42bf1ddbd8217f51f5c9
4
+ data.tar.gz: 5f8cddfc8969c1d1c258c05d6c5166d7baa1459adf03c9c1ea21d337b458dc1b
5
5
  SHA512:
6
- metadata.gz: c6509c0956f12a27caba2c6c18562e746238e582421913255fd5d7759d7c0d2a0fe18a8d0302f2371a5035b80dbe3d5d81c161668e7added06ef7ca553d2303a
7
- data.tar.gz: f1a60fc170c396528382a6f67ac5955ae561a77b5857ed2d2e1050e20c19adf0364a30b0960d166358f15ca591468d126dad7651f7dff526eaebeb23a32e446c
6
+ metadata.gz: 380e363277fae53054c04d1d09af9b5739f9c2f10ad02b7ac95bc0abcb680edea295cfc741b10b19320e5c39c41a13066489170400c050571f404411a98fc187
7
+ data.tar.gz: 433a4cea4777b07220c6c555bc2897ca97bae93163f8755936cab875521d9db62591d005c67e37f03870f9ddb1c0ee44b1ae61720d9fe3c63f3de5036d923f72
data/README.md CHANGED
@@ -1,7 +1,42 @@
1
1
  [![Build Status](https://travis-ci.org/ylaguna/omnibucket.svg?branch=master)](https://travis-ci.org/ylaguna/omnibucket)
2
2
  [![Coverage Status](https://coveralls.io/repos/github/ylaguna/omnibucket/badge.svg?branch=master)](https://coveralls.io/github/ylaguna/omnibucket?branch=master)
3
3
 
4
+ #Omnibucket
4
5
 
5
- # omnibucket
6
+ ## Installation
6
7
 
7
- Bitbucket's OAuth2 Strategy for OmniAuth. This strategy uses API 2.0 to retrieve user information.
8
+ Add this line to your application's Gemfile:
9
+
10
+ gem 'omnibucket'
11
+
12
+ And then execute:
13
+
14
+ $ bundle
15
+
16
+ ## Usage
17
+
18
+ `OmniAuth::Strategies::Bitbucket` is simply a Rack middleware. Read the OmniAuth docs for detailed instructions: <https://github.com/intridea/omniauth>.
19
+
20
+ First, create a new application at `https://bitbucket.org/account/user/<your username>/api`. Your callback URL must be something like `https://example.com/auth/bitbucket/callback`. For development you can use `http://127.0.0.1:3000/auth/bitbucket/callback`.
21
+
22
+ Here's a quick example, adding the middleware to a Rails app in `config/initializers/omniauth.rb`. This example assumes you're exporting your credentials as environment variables.
23
+
24
+ Notice that we'll always inject `account` and `emails` scopes, so we can retrieve the required information.
25
+
26
+ ```ruby
27
+ Rails.application.config.middleware.use OmniAuth::Builder do
28
+ provider :bitbucket,
29
+ ENV['BITBUCKET_CLIENT_ID'],
30
+ ENV['BITBUCKET_CLIENT_SECRET']
31
+ end
32
+ ```
33
+
34
+ Now visit `/auth/bitbucket` to start authentication against Bitbucket.
35
+
36
+ ## Contributing
37
+
38
+ 1. Fork [omnibucket](https://github.com/ylaguna/omnibucket/fork)
39
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
40
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
41
+ 4. Push to the branch (`git push origin my-new-feature`)
42
+ 5. Create a new Pull Request
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Bitbucket
3
- VERSION = "0.2.0".freeze
3
+ VERSION = "0.2.1".freeze
4
4
  end
5
5
  end
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.email = ["yan.laguna@gmail.com"]
8
8
  spec.summary = "A fork from Nando Vieira's omniauth-atlassian-bitbucket"
9
9
  spec.description = spec.summary
10
- spec.homepage = "https://github.com/ylaguna/omniauth-atlassian-bitbucket"
10
+ spec.homepage = "https://github.com/ylaguna/omnibucket"
11
11
  spec.license = "MIT"
12
12
 
13
13
  spec.files = `git ls-files -z`.split("\x0")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnibucket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yan Laguna
@@ -145,7 +145,7 @@ files:
145
145
  - test/omniauth/strategies/client_options_test.rb
146
146
  - test/omniauth/strategies/data_test.rb
147
147
  - test/test_helper.rb
148
- homepage: https://github.com/ylaguna/omniauth-atlassian-bitbucket
148
+ homepage: https://github.com/ylaguna/omnibucket
149
149
  licenses:
150
150
  - MIT
151
151
  metadata: {}