omniauth-lokalise 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +10 -1
- data/lib/omniauth/lokalise/version.rb +1 -1
- metadata +48 -10
- data/spec/omniauth/strategies/lokalise_spec.rb +0 -33
- data/spec/spec_helper.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 488d39adc32c9d393c37a35a9667d57ad59c9f4a7d8072b97774ada4956a21e9
|
4
|
+
data.tar.gz: 1ec375fa20aceb5e702b0a658eb730d8c03064140e17dd5c1515bda6a73453e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcbcef2a711238f88638983c79745fb51422f492b32c240310156b1a2ff46f64fc3f19ecabe91be9a4a82a9aeb156f272bb010a530eb435d244bbdf0bbfce84f
|
7
|
+
data.tar.gz: 970e293151eea7b28c53ca42ca12c40f7e476c7da4b21d5a88a282637a027b9b4d416d3e75a9337f15374082eca4a74dac44eba2e4dc93332e4e99a379e4e966
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Omniauth Lokalise
|
2
2
|
|
3
|
+
![Gem](https://img.shields.io/gem/v/omniauth-lokalise)
|
4
|
+
![CI](https://github.com/bodrovis/omniauth-lokalise/actions/workflows/ci.yml/badge.svg)
|
5
|
+
|
3
6
|
This is an official OmniAuth strategy for [https://lokalise.com](Lokalise).
|
4
7
|
|
5
8
|
## Prerequisites
|
@@ -24,6 +27,12 @@ Add a new gem to your `Gemfile`:
|
|
24
27
|
gem 'omniauth-lokalise'
|
25
28
|
```
|
26
29
|
|
30
|
+
You will also probably require the following gem:
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
gem "omniauth-rails_csrf_protection"
|
34
|
+
```
|
35
|
+
|
27
36
|
Run:
|
28
37
|
|
29
38
|
```
|
@@ -84,4 +93,4 @@ token = response['access_token']
|
|
84
93
|
|
85
94
|
This gem is licensed under the [MIT license](./LICENSE).
|
86
95
|
|
87
|
-
(c) 2022 Ilya Krukowski
|
96
|
+
(c) 2022 Ilya Krukowski
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-lokalise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Krukowski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -30,14 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: '1.8'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: '1.8'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '13.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '13.0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rspec
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +80,34 @@ dependencies:
|
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '1.6'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop-performance
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.5'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.5'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop-rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.0'
|
69
111
|
description: Official Omniauth (OAuth 2) strategy for Lokalise TMS
|
70
112
|
email:
|
71
113
|
- golosizpru@gmail.com
|
@@ -86,8 +128,6 @@ files:
|
|
86
128
|
- lib/omniauth/lokalise.rb
|
87
129
|
- lib/omniauth/lokalise/version.rb
|
88
130
|
- lib/omniauth/strategies/lokalise.rb
|
89
|
-
- spec/omniauth/strategies/lokalise_spec.rb
|
90
|
-
- spec/spec_helper.rb
|
91
131
|
homepage: https://github.com/bodrovis/omniauth-lokalise
|
92
132
|
licenses:
|
93
133
|
- MIT
|
@@ -108,10 +148,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
148
|
- !ruby/object:Gem::Version
|
109
149
|
version: '0'
|
110
150
|
requirements: []
|
111
|
-
rubygems_version: 3.3.
|
151
|
+
rubygems_version: 3.3.21
|
112
152
|
signing_key:
|
113
153
|
specification_version: 4
|
114
154
|
summary: Omniauth strategy for Lokalise
|
115
|
-
test_files:
|
116
|
-
- spec/omniauth/strategies/lokalise_spec.rb
|
117
|
-
- spec/spec_helper.rb
|
155
|
+
test_files: []
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'spec_helper'
|
4
|
-
|
5
|
-
RSpec.describe OmniAuth::Strategies::Lokalise do
|
6
|
-
let(:access_token) { instance_double('AccessToken', :options => {}, :[] => 'user') }
|
7
|
-
|
8
|
-
let(:strat) do
|
9
|
-
described_class.new({})
|
10
|
-
end
|
11
|
-
|
12
|
-
before do
|
13
|
-
allow(strat).to receive(:access_token).and_return(access_token)
|
14
|
-
end
|
15
|
-
|
16
|
-
context 'client options' do
|
17
|
-
it 'has correct site' do
|
18
|
-
expect(strat.options.client_options.site).to eq('https://app.lokalise.com')
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'has correct authorize_url' do
|
22
|
-
expect(strat.options.client_options.authorize_url).to eq('oauth2/auth')
|
23
|
-
end
|
24
|
-
|
25
|
-
it 'has correct token_url' do
|
26
|
-
expect(strat.options.client_options.token_url).to eq('oauth2/token')
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'has correct grant_type' do
|
30
|
-
expect(strat.options.client_options.grant_type).to eq('authorization_code')
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|