omniauth-decidim 0.1.0 → 0.2.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
  SHA256:
3
- metadata.gz: f454e90a3b713d1c17eecbb0384e03af5bcb1c261ae7d4f5ce6f17746011823d
4
- data.tar.gz: 4f66539c1642e168e9e93ab3f2e1a9ff9b3d5ecfc5947540883abdf45546022f
3
+ metadata.gz: b7cb99e90b41326c6af2343960544e17e5698fa0728492ad78f8698faebf9f45
4
+ data.tar.gz: ad4827ce5f1c5b5446b5c54c32ed9c57ca93f441e269a9a08990e3dbaaa08bee
5
5
  SHA512:
6
- metadata.gz: fa2ab9123689475d2fd4624af1c14f6bd3c7a84b626477e75384bac4bcde9b59076dde7d563a6dc07255fc64d296cff50420c80f4e32cb351f1afb83d60da266
7
- data.tar.gz: 1fc5d95cbac11c74b7b9cbeeda682b95b4259e84cace2fea3cb4d14e23ae96a689527e312091de98d456f19e62b9a8cdd4202738a2c76e7e48fabf335e805ed8
6
+ metadata.gz: e180268101724adf4e926c46dfe6cd92ccdeb2aee301b7aaed8fe6a7774663111b854d46f9b2a0afae6fbeffdddbc73903a40b7e54201b60c039221fba1979e3
7
+ data.tar.gz: 03a279b6109bab4aaa97e80623b73e6b91959b77f4e0f374a20ce518e7fc933342bbf159fad9e8355e932c039d863c448e8b5a99fe157e057a8ecf04a46328ea
@@ -0,0 +1,35 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Ruby
9
+
10
+ on:
11
+ push:
12
+ branches: [ master ]
13
+ pull_request:
14
+ branches: [ master ]
15
+
16
+ jobs:
17
+ test:
18
+
19
+ runs-on: ubuntu-latest
20
+ strategy:
21
+ matrix:
22
+ ruby-version: ['2.6', '2.7', '3.0']
23
+
24
+ steps:
25
+ - uses: actions/checkout@v2
26
+ - name: Set up Ruby
27
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
28
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
29
+ # uses: ruby/setup-ruby@v1
30
+ uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
31
+ with:
32
+ ruby-version: ${{ matrix.ruby-version }}
33
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
34
+ - name: Run tests
35
+ run: bundle exec rspec
data/.gitignore CHANGED
@@ -1,12 +1,12 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
7
6
  /pkg/
8
7
  /spec/reports/
9
8
  /tmp/
9
+ *.gem
10
10
 
11
11
  # rspec failure tracking
12
12
  .rspec_status
data/Gemfile.lock ADDED
@@ -0,0 +1,81 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ omniauth-decidim (0.2.0)
5
+ omniauth (~> 1.5)
6
+ omniauth-oauth2 (>= 1.4.0, < 2.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ byebug (11.1.3)
12
+ diff-lcs (1.4.4)
13
+ faraday (1.8.0)
14
+ faraday-em_http (~> 1.0)
15
+ faraday-em_synchrony (~> 1.0)
16
+ faraday-excon (~> 1.1)
17
+ faraday-httpclient (~> 1.0.1)
18
+ faraday-net_http (~> 1.0)
19
+ faraday-net_http_persistent (~> 1.1)
20
+ faraday-patron (~> 1.0)
21
+ faraday-rack (~> 1.0)
22
+ multipart-post (>= 1.2, < 3)
23
+ ruby2_keywords (>= 0.0.4)
24
+ faraday-em_http (1.0.0)
25
+ faraday-em_synchrony (1.0.0)
26
+ faraday-excon (1.1.0)
27
+ faraday-httpclient (1.0.1)
28
+ faraday-net_http (1.0.1)
29
+ faraday-net_http_persistent (1.2.0)
30
+ faraday-patron (1.0.0)
31
+ faraday-rack (1.0.0)
32
+ hashie (5.0.0)
33
+ jwt (2.3.0)
34
+ multi_json (1.15.0)
35
+ multi_xml (0.6.0)
36
+ multipart-post (2.1.1)
37
+ oauth2 (1.4.7)
38
+ faraday (>= 0.8, < 2.0)
39
+ jwt (>= 1.0, < 3.0)
40
+ multi_json (~> 1.3)
41
+ multi_xml (~> 0.5)
42
+ rack (>= 1.2, < 3)
43
+ omniauth (1.9.1)
44
+ hashie (>= 3.4.6)
45
+ rack (>= 1.6.2, < 3)
46
+ omniauth-oauth2 (1.7.2)
47
+ oauth2 (~> 1.4)
48
+ omniauth (>= 1.9, < 3)
49
+ rack (2.2.3)
50
+ rack-test (1.1.0)
51
+ rack (>= 1.0, < 3)
52
+ rake (10.5.0)
53
+ rspec (3.10.0)
54
+ rspec-core (~> 3.10.0)
55
+ rspec-expectations (~> 3.10.0)
56
+ rspec-mocks (~> 3.10.0)
57
+ rspec-core (3.10.1)
58
+ rspec-support (~> 3.10.0)
59
+ rspec-expectations (3.10.1)
60
+ diff-lcs (>= 1.2.0, < 2.0)
61
+ rspec-support (~> 3.10.0)
62
+ rspec-mocks (3.10.2)
63
+ diff-lcs (>= 1.2.0, < 2.0)
64
+ rspec-support (~> 3.10.0)
65
+ rspec-support (3.10.3)
66
+ ruby2_keywords (0.0.5)
67
+
68
+ PLATFORMS
69
+ ruby
70
+
71
+ DEPENDENCIES
72
+ bundler (~> 2.2)
73
+ byebug
74
+ omniauth-decidim!
75
+ rack (>= 1.6.2)
76
+ rack-test
77
+ rake (~> 10.0)
78
+ rspec (~> 3.0)
79
+
80
+ BUNDLED WITH
81
+ 2.2.19
data/README.md CHANGED
@@ -7,13 +7,22 @@ This is the [Decidim](https://github.com/decidim/decim) strategy for OmniAuth. I
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'omniauth-decidim', git: 'https://github.com/decidim/omniauth-decidim'
10
+ gem 'omniauth-decidim'
11
11
  ```
12
12
 
13
13
  And then execute:
14
14
 
15
15
  $ bundle
16
16
 
17
+ ## Version compatiblity
18
+
19
+ Depending in which Decidim version it's being used in the application is necessary to use differents versions of omniauth-decidim for compatibility reasons.
20
+
21
+ |omniauth-decidim version | decidim version |
22
+ |-------------------------|-----------------|
23
+ | 0.1 | < 0.25.2 |
24
+ | 0.2 | >= 0.25.2 |
25
+
17
26
  ## Usage
18
27
 
19
28
  ### Configure the Decidim application which acts as the OAuth provider
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Omniauth
4
4
  module Decidim
5
- VERSION = "0.1.0"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
@@ -25,6 +25,6 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.add_dependency "omniauth", "~> 1.5"
27
27
  spec.add_dependency "omniauth-oauth2", ">= 1.4.0", "< 2.0"
28
- spec.add_development_dependency "bundler", "~> 1.14"
28
+ spec.add_development_dependency "bundler", "~> 2.2"
29
29
  spec.add_development_dependency "rake", "~> 10.0"
30
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-decidim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oriol Gual
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '1.14'
53
+ version: '2.2'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '1.14'
60
+ version: '2.2'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rake
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -79,12 +79,14 @@ executables: []
79
79
  extensions: []
80
80
  extra_rdoc_files: []
81
81
  files:
82
+ - ".github/workflows/ruby.yml"
82
83
  - ".gitignore"
83
84
  - ".rspec"
84
85
  - ".rubocop.yml"
85
86
  - ".ruby-version"
86
87
  - CODE_OF_CONDUCT.md
87
88
  - Gemfile
89
+ - Gemfile.lock
88
90
  - LICENSE-AGPLv3.txt
89
91
  - README.md
90
92
  - Rakefile