omniauth-procore 0.5.0 → 0.5.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: 8ff58559b87cb0f0e89063d03947d94790cf166222ad30e03ea617076b47c51d
4
- data.tar.gz: 6b1179e78d1ab5250b52377650256f521df6c9afe9d2af2956599473347447a9
3
+ metadata.gz: 5bafde17dcc769743361888e2d427d0cf09b2cb9f80ca295e5289a8754cdcbe1
4
+ data.tar.gz: 486e5c2474fb7239e9c75b1999aeb0e020f5406c47e7b6f42c8dbc9c1bad90f3
5
5
  SHA512:
6
- metadata.gz: f481b79df54460380d891ae87d92288d12ab4559872ad8a9cbf8904a328ac424602231a4fb725e4e65a0b8330c342ea5d6994dd755bc9339acb6f255cb1b11af
7
- data.tar.gz: 30cbb825b16c4b34bbc83111b9289dd0843ad58d169bbeb241e3181a6f4507749a67ce382407c601721152b966df19d6a213c3bf147073b246d5cf578ea4eb1b
6
+ metadata.gz: ab4d5905739d11de818a948d9cd1ab5f300c9e86d81ea5286fe58c38c5f9d7ede34fcfa7b47d7f8dc7f89a5003084189652af9018bcd2495d8c3aed248149fcd
7
+ data.tar.gz: 924ef2d480edeb536a22332bf8d0f94e274509c44274419b82071ebcc64d1990c5a554a04a0146ff4ce07bd3ec4a98c4f68a04b73b25d082132ef994ffdf9300
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.5.1 (November 05, 2018)
2
+
3
+ * Fix: Add api_site parameter to client options
4
+
5
+ PR #7 - https://github.com/procore/omniauth-procore/pull/7
6
+
7
+ Patrick Koperwas
8
+
1
9
  ## 0.5.0 (October 17, 2018)
2
10
 
3
11
  * Change default site to login.procore.com (from app.procore.com)
data/README.md CHANGED
@@ -30,11 +30,19 @@ end
30
30
 
31
31
  ## Development
32
32
 
33
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
33
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run
34
+ `rake spec` to run the tests. You can also run `bin/console` for an interactive
35
+ prompt that will allow you to experiment.
34
36
 
35
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
37
+ To install this gem onto your local machine, run `bundle exec rake install`. To
38
+ release a new version, update the version number in `version.rb`, and then run
39
+ `bundle exec rake release`, which will create a git tag for the version, push
40
+ git commits and tags, and push the `.gem` file to
41
+ [rubygems.org](https://rubygems.org).
36
42
 
37
43
  ## Contributing
38
44
 
39
- Bug reports and pull requests are welcome on GitHub at https://github.com/procore/omniauth-procore. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
40
-
45
+ Bug reports and pull requests are welcome on GitHub at
46
+ https://github.com/procore/omniauth-procore. This project is intended to be a
47
+ safe, welcoming space for collaboration, and contributors are expected to adhere
48
+ to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Procore
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
@@ -7,6 +7,7 @@ module OmniAuth
7
7
 
8
8
  option :client_options,
9
9
  site: 'https://login.procore.com',
10
+ api_site: 'https://api.procore.com',
10
11
  authorize_path: '/oauth/authorize'
11
12
 
12
13
  uid do
@@ -22,6 +23,7 @@ module OmniAuth
22
23
  end
23
24
 
24
25
  def raw_info
26
+ access_token.client.site = options[:client_options][:api_site]
25
27
  @raw_info ||= access_token.get('/vapid/me').parsed
26
28
  end
27
29
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-procore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Procore Engineering
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-17 00:00:00.000000000 Z
11
+ date: 2018-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2