omniauth-feishu 0.1.2 → 0.1.3

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: e5ae720ac596d23897dbeb2406198b453ca8fbabef9da6249dfa8d74bc6def0d
4
- data.tar.gz: cfd5a799793ff75f5f982b669889b5019e655ecadb33ef0ce7fa3722198bb757
3
+ metadata.gz: 76be3c81fdbd541e9da9e81dba5942e65eb714b06e1f5c27db0cf556708548f4
4
+ data.tar.gz: 1268f8b4d8eb2d1fc05217a8a53943acb4c17449fbd7af3568c11105c764768e
5
5
  SHA512:
6
- metadata.gz: 3b73b6f6ce03ebb09534b815ce892731832501da4ecd2deacd2ec965e66ed9a660f4fb6db99acdcae511bfd05d43f4629ebf10cd881a5c96ae854544564ac03d
7
- data.tar.gz: ee8046761d77f31f11aad1b969d68375dd31dbde7ab4287124f5b07f71c55fb4f8b0856bee4699650bf59a13f5340ff7be0ace4f1cce19b55e4653c9c5f8bdc4
6
+ metadata.gz: 9864d5f6c7673da53341fbd4a5b63b9c9f57cca0e789f68e0c56526908ef6bd73ec652f0f143ff582b07124f53c4838af4d26c63ac31ade5b1d64afb5cf9ada0
7
+ data.tar.gz: bab0ebfc1733478d227a3fc736401d888a037cc71e7999623182c521783889d6fb3b331ec3b871bae61d0b2db64965ad73d1fa9a75f89c6097718ba01edebe5b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-feishu (0.1.0)
4
+ omniauth-feishu (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -72,11 +72,20 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
72
72
  end
73
73
 
74
74
  def failure
75
+ flash[:alert] = request.env["omniauth.error"]
75
76
  redirect_to root_path
76
77
  end
77
78
  end
78
79
  ```
79
80
 
81
+ Devise will create the following url methods:
82
+ - user_feishu_omniauth_authorize_path
83
+ - user_feishu_omniauth_callback_path
84
+
85
+ So you may add a button like this:
86
+ ```
87
+ <%= link_to "Sign in with feishu", user_feishu_omniauth_authorize_path, class: "btn" %>
88
+ ```
80
89
 
81
90
  ## Contributing
82
91
 
@@ -1 +1,2 @@
1
- theme: jekyll-theme-cayman
1
+ theme: jekyll-theme-cayman
2
+ show_downloads: true
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Feishu
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -11,6 +11,8 @@ Gem::Specification.new do |spec|
11
11
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
12
12
  spec.license = "MIT"
13
13
 
14
+ spec.add_dependency "omniauth-oauth2", "~> 1.6.0"
15
+
14
16
  # Specify which files should be added to the gem when it is released.
15
17
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
16
18
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-feishu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Renny
@@ -9,7 +9,21 @@ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2021-01-07 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: omniauth-oauth2
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.6.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.6.0
13
27
  description:
14
28
  email:
15
29
  - rennyallen@hotmail.com