decidim-odoo 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -1
- data/Rakefile +16 -0
- data/app/commands/decidim/odoo/sync_user.rb +1 -1
- data/lib/decidim/odoo/version.rb +3 -3
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f22e1ba605d45b4764109e1a6db7b10f02d2787fe65241cab63a7737b351bd0
|
4
|
+
data.tar.gz: ef58ef40cbbe5edb8ec3588c5ddd26638c7719335890b29cf25b415eb1b91bfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af0fff432f616a526ec75285c2dbe9c696a000de18aa0adf7779111b887adacac320331b280581084c5a9b78e304e46a798ffa2a3dbb8b3049cca09531e2252f
|
7
|
+
data.tar.gz: 942907e5409c123abfba68bdba4b16194ca1312d87f945faacbc9338f4dfbdfd1f4d219da1fcf10435573d492b4dcaafff81870a56eaa17943e95beb29e4876c
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# Decidim::Odoo
|
2
2
|
|
3
|
+
[![Gem Version](https://img.shields.io/gem/v/decidim-odoo.svg)](https://badge.fury.io/rb/decidim-odoo)
|
3
4
|
[![[CI] Lint](https://github.com/Platoniq/decidim-module-odoo/actions/workflows/lint.yml/badge.svg)](https://github.com/Platoniq/decidim-module-odoo/actions/workflows/lint.yml)
|
4
5
|
[![[CI] Test](https://github.com/Platoniq/decidim-module-odoo/actions/workflows/test.yml/badge.svg)](https://github.com/Platoniq/decidim-module-odoo/actions/workflows/test.yml)
|
5
6
|
[![Maintainability](https://api.codeclimate.com/v1/badges/2dada53525dd5a944089/maintainability)](https://codeclimate.com/github/Platoniq/decidim-module-odoo/maintainability)
|
@@ -40,7 +41,7 @@ end
|
|
40
41
|
Add this line to your application's Gemfile:
|
41
42
|
|
42
43
|
```ruby
|
43
|
-
gem "decidim-odoo",
|
44
|
+
gem "decidim-odoo", "~> 0.2.0"
|
44
45
|
```
|
45
46
|
|
46
47
|
And then execute:
|
@@ -56,6 +57,13 @@ bundle exec rails decidim_odoo:install:migrations
|
|
56
57
|
bundle exec rails db:migrate
|
57
58
|
```
|
58
59
|
|
60
|
+
Depending on your Decidim version, choose the corresponding version to ensure compatibility:
|
61
|
+
|
62
|
+
| Version | Compatible decidim versions |
|
63
|
+
|---------|-----------------------------|
|
64
|
+
| 0.2.x | v0.27.x |
|
65
|
+
| 0.1.x | v0.25.x, v0.26.x |
|
66
|
+
|
59
67
|
## Configuration
|
60
68
|
|
61
69
|
In order to make the Odoo OAuth method with Keycloak available you need to add to your
|
data/Rakefile
CHANGED
@@ -16,11 +16,26 @@ def seed_db(path)
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
+
# Temporary fix to overcome the issue with babel plugin updates, see:
|
20
|
+
# https://github.com/decidim/decidim/pull/10916
|
21
|
+
def fix_babel_config(path)
|
22
|
+
Dir.chdir(path) do
|
23
|
+
babel_config = "#{Dir.pwd}/babel.config.json"
|
24
|
+
File.delete(babel_config) if File.exist?(babel_config)
|
25
|
+
FileUtils.cp("#{__dir__}/babel.config.json", Dir.pwd)
|
26
|
+
|
27
|
+
# Temporary fix to overcome the issue with sass-embedded, see:
|
28
|
+
# https://github.com/decidim/decidim/pull/11074
|
29
|
+
system("npm i sass-embedded@~1.62.0")
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
19
33
|
desc "Generates a dummy app for testing"
|
20
34
|
task test_app: "decidim:generate_external_test_app" do
|
21
35
|
ENV["RAILS_ENV"] = "test"
|
22
36
|
Decidim::Odoo::Generators::InstallGenerator.start
|
23
37
|
install_module("spec/decidim_dummy_app")
|
38
|
+
fix_babel_config("spec/decidim_dummy_app")
|
24
39
|
end
|
25
40
|
|
26
41
|
desc "Generates a development app."
|
@@ -39,5 +54,6 @@ task :development_app do
|
|
39
54
|
|
40
55
|
Decidim::Odoo::Generators::InstallGenerator.start
|
41
56
|
install_module("development_app")
|
57
|
+
fix_babel_config("development_app")
|
42
58
|
seed_db("development_app")
|
43
59
|
end
|
data/lib/decidim/odoo/version.rb
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
module Decidim
|
4
4
|
# This holds the decidim-meetings version.
|
5
5
|
module Odoo
|
6
|
-
VERSION = "0.
|
7
|
-
DECIDIM_VERSION = "0.
|
8
|
-
COMPAT_DECIDIM_VERSION = [">= 0.
|
6
|
+
VERSION = "0.2.0"
|
7
|
+
DECIDIM_VERSION = "0.27.3"
|
8
|
+
COMPAT_DECIDIM_VERSION = [">= 0.27.0", "< 0.28"].freeze
|
9
9
|
end
|
10
10
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-odoo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francisco Bolívar
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.27.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '0.
|
22
|
+
version: '0.28'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.27.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '0.
|
32
|
+
version: '0.28'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: omniauth-keycloak
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,20 +50,20 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.
|
53
|
+
version: 0.27.0
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '0.
|
56
|
+
version: '0.28'
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.
|
63
|
+
version: 0.27.0
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '0.
|
66
|
+
version: '0.28'
|
67
67
|
description: A Decidim module to sync Odoo users who connect to the platform using
|
68
68
|
Keycloak OpenID OAuth.
|
69
69
|
email:
|
@@ -121,7 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '3.0'
|
125
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
126
|
requirements:
|
127
127
|
- - ">="
|