omnibucket 0.2.0 → 0.2.1
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 +4 -4
- data/README.md +37 -2
- data/lib/omniauth-bitbucket/version.rb +1 -1
- data/omnibucket.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 690ea30a126f7be550a15a8a09984a63cc9bac631adc42bf1ddbd8217f51f5c9
|
4
|
+
data.tar.gz: 5f8cddfc8969c1d1c258c05d6c5166d7baa1459adf03c9c1ea21d337b458dc1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 380e363277fae53054c04d1d09af9b5739f9c2f10ad02b7ac95bc0abcb680edea295cfc741b10b19320e5c39c41a13066489170400c050571f404411a98fc187
|
7
|
+
data.tar.gz: 433a4cea4777b07220c6c555bc2897ca97bae93163f8755936cab875521d9db62591d005c67e37f03870f9ddb1c0ee44b1ae61720d9fe3c63f3de5036d923f72
|
data/README.md
CHANGED
@@ -1,7 +1,42 @@
|
|
1
1
|
[](https://travis-ci.org/ylaguna/omnibucket)
|
2
2
|
[](https://coveralls.io/github/ylaguna/omnibucket?branch=master)
|
3
3
|
|
4
|
+
#Omnibucket
|
4
5
|
|
5
|
-
|
6
|
+
## Installation
|
6
7
|
|
7
|
-
|
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
|
data/omnibucket.gemspec
CHANGED
@@ -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/
|
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.
|
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/
|
148
|
+
homepage: https://github.com/ylaguna/omnibucket
|
149
149
|
licenses:
|
150
150
|
- MIT
|
151
151
|
metadata: {}
|