omniauth-pipedrive 0.0.1 → 1.0.0

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: c1bbd79aa4af0812720645671093218319d5c12a
4
- data.tar.gz: ed00a44962528b7fe2e48692ac8e17b3ccebe5ff
3
+ metadata.gz: 9d5e735caf353ba52de680ff1eb3856a0454f3eb
4
+ data.tar.gz: 4ba2d2d88069b1e2d3c734355aab31570fea2637
5
5
  SHA512:
6
- metadata.gz: e640b2bf14bb46e76584bd6969188410b4e1c1bcab53167c9601634d7f25f6bda2ac7c48e87feb79bc3e3a63bae863e840b2ab6c4caa95ceb6eaf24b5f04c6fa
7
- data.tar.gz: 6f8aca86cf1eabfcf83e3dd12848488f13b47ebc0b5540a9f858ee57d980129031a891b59f77b4552667c0266075f27f48982a53cb66d75cba913facf0d4f7d0
6
+ metadata.gz: 0ff71bd5a7bd29135edf31aa81d184faf1e3591b412f02184a53c4ab8149d807c53689e2e87354f0aae835df6927ddedaf405e344557aed6858a67a153060afc
7
+ data.tar.gz: 0307f2f2825eb39284ff6504f348ad75a63d31b1f872dc351f62eb56cff4de5e6ccd6a28e546c314b82234e3f32152e7bcaa1ff623b1b0a10683235f7edda864
data/.gitignore CHANGED
@@ -1 +1,3 @@
1
1
  *.gem
2
+ Gemfile.lock
3
+ vendor/bundle/
@@ -0,0 +1,7 @@
1
+ # 1.0.0
2
+
3
+ - Ensure `omniauth-pipedrive` is compatible with `omniauth-oauth2` 1.4.0 and above (https://github.com/SupportBee/omniauth-pipedrive/issues/5)
4
+
5
+ # v0.0.1
6
+
7
+ Initial version of the gem
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
@@ -1,20 +1,20 @@
1
- MIT Licene
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ MIT Licene
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,20 +1,28 @@
1
1
  # omniauth-pipedrive
2
2
 
3
- This is the OmniAuth strategy for authenticating to [Pipedrive](https://www.pipedrive.com). To use it, you'll need to create an Application and copy the Client ID and Client Secret. Get in touch with [Pipedrive](https://www.pipedrive.com) to get earlya access to their Marketplace.
3
+ This is the OmniAuth strategy for authenticating to [Pipedrive](https://www.pipedrive.com)
4
4
 
5
5
  ## Installation
6
6
 
7
- ```ruby
8
- gem 'omniauth-pipedrive', git: "https://github.com/SupportBee/omniauth-pipedrive"
9
- ```
7
+ 1. Obtain a Sandbox account from Pipedrive https://pipedrive.readme.io/docs/marketplace-creating-a-proper-app
10
8
 
11
- ## Basic Usage
9
+ 2. Sign into to your Pipedrive Sandbox account and create an Application. Provide a URL like https://mywebsite.com/auth/pipedrive/callback as the callback. Copy the Client ID and Client Secret after creating the Application
12
10
 
13
- ```ruby
14
- use OmniAuth::Builder do
15
- provider :pipedrive, ENV['client_id'], ENV['client_secret']
16
- end
17
- ```
11
+ 3. Add `omniauth-pipedrive` to your Gemfile
12
+
13
+ ```
14
+ gem 'omniauth-pipedrive', git: "https://github.com/SupportBee/omniauth-pipedrive"
15
+ ```
16
+
17
+ 4. Provide your Client ID and Client Secret to your gem in an initializer
18
+
19
+ ```ruby
20
+ # In config/initializers/omniauth.rb
21
+
22
+ use OmniAuth::Builder do
23
+ provider :pipedrive, ENV['client_id'], ENV['client_secret']
24
+ end
25
+ ```
18
26
 
19
27
  ## Credits
20
28
 
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.0
@@ -1,5 +1,13 @@
1
1
  module OmniAuth
2
2
  module Pipedrive
3
- VERSION = "0.0.1"
3
+ class << self
4
+ private
5
+
6
+ def read_version
7
+ File.read(File.join(File.dirname(__FILE__), "..", "..", "VERSION"))
8
+ end
9
+ end
10
+
11
+ VERSION = read_version
4
12
  end
5
13
  end
@@ -17,6 +17,10 @@ module OmniAuth
17
17
  super
18
18
  end
19
19
 
20
+ def callback_url
21
+ options[:redirect_uri] || (full_host + script_name + callback_path)
22
+ end
23
+
20
24
  uid { raw_info['id'].to_s }
21
25
 
22
26
  info do
@@ -1,23 +1,24 @@
1
- # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/omniauth-pipedrive/version', __FILE__)
3
-
4
- Gem::Specification.new do |gem|
5
- gem.authors = ["Pranav Singh"]
6
- gem.email = ["pranav@supportbee.com"]
7
- gem.description = %q{OmniAuth strategy for Pipedrive.}
8
- gem.summary = %q{OmniAuth strategy for Pipedrive.}
9
- gem.homepage = "https://github.com/SupportBee/omniauth-pipedrive"
10
- gem.license = "MIT"
11
-
12
- # gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
13
- gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
14
- gem.files = `git ls-files`.split("\n")
15
- gem.name = "omniauth-pipedrive"
16
- gem.require_paths = ["lib"]
17
- gem.version = OmniAuth::Pipedrive::VERSION
18
-
19
- gem.add_dependency 'omniauth', '~> 1.0'
20
- gem.add_dependency 'omniauth-oauth2', '~> 1.0'
21
-
22
- gem.add_development_dependency "bundler", "~> 1.0"
23
- end
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/omniauth-pipedrive/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Pranav Singh"]
6
+ gem.email = ["pranav@supportbee.com"]
7
+ gem.description = %q{OmniAuth strategy for Pipedrive.}
8
+ gem.summary = %q{OmniAuth strategy for Pipedrive.}
9
+ gem.homepage = "https://github.com/SupportBee/omniauth-pipedrive"
10
+ gem.license = "MIT"
11
+
12
+ # gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
13
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
14
+ gem.files = `git ls-files`.split("\n")
15
+ gem.name = "omniauth-pipedrive"
16
+ gem.require_paths = ["lib"]
17
+ gem.version = OmniAuth::Pipedrive::VERSION
18
+
19
+ gem.add_dependency 'omniauth', '~> 1.0'
20
+ gem.add_dependency 'omniauth-oauth2', '~> 1.0'
21
+
22
+ gem.add_development_dependency "bundler", "~> 1.0"
23
+ gem.add_development_dependency "pry", '~> 0'
24
+ end
@@ -0,0 +1,9 @@
1
+ #!/bin/bash
2
+
3
+ # Push a new version to rubygems
4
+ # ruby script/publish_to_ruby_gems.sh
5
+
6
+ mv ~/.gem/credentials ~/.gem/credentials.orig
7
+ gem build omniauth-pipedrive.gemspec
8
+ gem push omniauth-pipedrive-$(cat VERSION).gem
9
+ mv ~/.gem/credentials.orig ~/.gem/credentials
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-pipedrive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pranav Singh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-12 00:00:00.000000000 Z
11
+ date: 2019-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: OmniAuth strategy for Pipedrive.
56
70
  email:
57
71
  - pranav@supportbee.com
@@ -60,12 +74,16 @@ extensions: []
60
74
  extra_rdoc_files: []
61
75
  files:
62
76
  - ".gitignore"
77
+ - CHANGELOG.md
78
+ - Gemfile
63
79
  - LICENSE.txt
64
80
  - README.md
81
+ - VERSION
65
82
  - lib/omniauth-pipedrive.rb
66
83
  - lib/omniauth-pipedrive/version.rb
67
84
  - lib/omniauth/strategies/pipedrive.rb
68
85
  - omniauth-pipedrive.gemspec
86
+ - script/publish_to_ruby_gems.sh
69
87
  homepage: https://github.com/SupportBee/omniauth-pipedrive
70
88
  licenses:
71
89
  - MIT
@@ -86,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
104
  version: '0'
87
105
  requirements: []
88
106
  rubyforge_project:
89
- rubygems_version: 2.5.1
107
+ rubygems_version: 2.4.5.1
90
108
  signing_key:
91
109
  specification_version: 4
92
110
  summary: OmniAuth strategy for Pipedrive.