decidim-odoo 0.1.0 → 0.2.1
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/app/forms/decidim/odoo/verifications/odoo_member.rb +1 -1
- data/lib/decidim/odoo/version.rb +3 -3
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb57473dff29ca7c35838584604241bcb68f0f0bda98ff7944567d3f58903e7e
|
4
|
+
data.tar.gz: eddc481a6bb34baa00dd26389f15c64af780f0f20d0c33e67036ee8525bb6c77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74799a15c9e73b25b892fdfbe3deddaaa059e38e1b9a7459e59f583c8381471895a8f1c0e6d4b9c15adf920bc4215d533bf32b4cdf8fbab36d81167b112e5fbe
|
7
|
+
data.tar.gz: a224bc3406b3dea819b05f63c67b11d9a84f2e72d2916d5e5898e207e0bb8264d6114d11e87de81b47cb7c87c17da9529785c22b0fad3c02e577359cf26a4fa3
|
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.1
|
7
|
-
DECIDIM_VERSION = "0.
|
8
|
-
COMPAT_DECIDIM_VERSION = [">= 0.
|
6
|
+
VERSION = "0.2.1"
|
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,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-odoo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francisco Bolívar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-core
|
@@ -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,14 +121,14 @@ 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
|
- - ">="
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
|
-
rubygems_version: 3.
|
131
|
+
rubygems_version: 3.4.19
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: A decidim odoo module
|