omniauth-kit 0.0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0bf69f27c823a60d5d5626eb86ff0b71c66e7231
4
+ data.tar.gz: 4a35de0673a108fd2fd99f95278395bf19c1b5f2
5
+ SHA512:
6
+ metadata.gz: f3c377ebc1a5587c42ece960a9415f81a20fb06d37fb72dc03c11b1b0dd3b5e872c9dfedf0c42f5c0661a3f97a84f0fc6b0bee6c40063b9f6274c6754502f201
7
+ data.tar.gz: 64ff8a2dba1bf66201036ac4d16ea415f09bebb4dcb9177875bab44c1fc997d3818d6ca76c338eae89eecb18b0935e9a5f233a26fe902a445762422fc8e047a9
data/.DS_Store ADDED
Binary file
data/.gitignore ADDED
@@ -0,0 +1,34 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /test/tmp/
9
+ /test/version_tmp/
10
+ /tmp/
11
+
12
+ ## Specific to RubyMotion:
13
+ .dat*
14
+ .repl_history
15
+ build/
16
+
17
+ ## Documentation cache and generated files:
18
+ /.yardoc/
19
+ /_yardoc/
20
+ /doc/
21
+ /rdoc/
22
+
23
+ ## Environment normalisation:
24
+ /.bundle/
25
+ /lib/bundler/man/
26
+
27
+ # for a library or gem, you might want to ignore these files since the code is
28
+ # intended to run in multiple environments; otherwise, check them in:
29
+ # Gemfile.lock
30
+ # .ruby-version
31
+ # .ruby-gemset
32
+
33
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
34
+ .rvmrc
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in omniauth-kit.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,35 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ omniauth-kit (0.0.1)
5
+ faraday (~> 0.9)
6
+ multi_json (~> 1.10)
7
+ oauth2 (~> 1.0)
8
+ omniauth (~> 1.2)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ faraday (0.9.1)
14
+ multipart-post (>= 1.2, < 3)
15
+ hashie (3.4.0)
16
+ jwt (1.2.1)
17
+ multi_json (1.10.1)
18
+ multi_xml (0.5.5)
19
+ multipart-post (2.0.0)
20
+ oauth2 (1.0.0)
21
+ faraday (>= 0.8, < 0.10)
22
+ jwt (~> 1.0)
23
+ multi_json (~> 1.3)
24
+ multi_xml (~> 0.5)
25
+ rack (~> 1.2)
26
+ omniauth (1.2.2)
27
+ hashie (>= 1.2, < 4)
28
+ rack (~> 1.0)
29
+ rack (1.6.0)
30
+
31
+ PLATFORMS
32
+ ruby
33
+
34
+ DEPENDENCIES
35
+ omniauth-kit!
data/README.md ADDED
@@ -0,0 +1,2 @@
1
+ omniauth-kit
2
+ ===========
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -0,0 +1,28 @@
1
+ require 'omniauth-oauth2'
2
+
3
+ module OmniAuth
4
+ module Strategies
5
+ class Kit < OmniAuth::Strategies::OAuth2
6
+ # change the class name and the :name option to match your application name
7
+ option :name, :kit
8
+
9
+ option :client_options, {
10
+ :site => "https://www.kitcrm.com",
11
+ :authorize_url => "/oauth/authorize"
12
+ }
13
+
14
+ uid { raw_info["id"] }
15
+
16
+ info do
17
+ {
18
+ :email => raw_info["email"]
19
+ # and anything else you want to return to your API consumers
20
+ }
21
+ end
22
+
23
+ def raw_info
24
+ @raw_info ||= access_token.get('/api/v1/me.json').parsed
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,5 @@
1
+ module Omniauth
2
+ module Kit
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,2 @@
1
+ require "omniauth-kit/version"
2
+ require "omniauth/strategies/kit"
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/omniauth-kit/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Mike Taylor"]
6
+ gem.email = ["mike@kitcrm.com"]
7
+ gem.description = %q{OmniAuth strategy for Kit}
8
+ gem.summary = %q{OmniAuth strategy for Kit}
9
+ gem.homepage = "http://github.com/sealabcore/omniauth-kit"
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "omniauth-kit"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = Omniauth::Kit::VERSION
17
+
18
+ gem.add_dependency 'faraday', '~> 0.9'
19
+ gem.add_dependency 'multi_json', '~> 1.10'
20
+ gem.add_dependency 'oauth2', '~> 1.0'
21
+ gem.add_dependency 'omniauth', '~> 1.2'
22
+ end
metadata ADDED
@@ -0,0 +1,109 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: omniauth-kit
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Mike Taylor
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.9'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: multi_json
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.10'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: oauth2
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: omniauth
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.2'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.2'
69
+ description: OmniAuth strategy for Kit
70
+ email:
71
+ - mike@kitcrm.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".DS_Store"
77
+ - ".gitignore"
78
+ - Gemfile
79
+ - Gemfile.lock
80
+ - README.md
81
+ - Rakefile
82
+ - lib/omniauth-kit.rb
83
+ - lib/omniauth-kit/version.rb
84
+ - lib/omniauth/strategies/kit.rb
85
+ - omniauth-kit.gemspec
86
+ homepage: http://github.com/sealabcore/omniauth-kit
87
+ licenses: []
88
+ metadata: {}
89
+ post_install_message:
90
+ rdoc_options: []
91
+ require_paths:
92
+ - lib
93
+ required_ruby_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ requirements: []
104
+ rubyforge_project:
105
+ rubygems_version: 2.4.3
106
+ signing_key:
107
+ specification_version: 4
108
+ summary: OmniAuth strategy for Kit
109
+ test_files: []