Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install decidim modules #2

Merged
merged 6 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

source "https://rubygems.org"

DECIDIM_VERSION = "0.28.1"

ruby RUBY_VERSION

gem "decidim", "0.28.1"
# gem "decidim-conferences", "0.28.1"
# gem "decidim-design", "0.28.1"
# gem "decidim-elections", "0.28.1"
# gem "decidim-initiatives", "0.28.1"
# gem "decidim-templates", "0.28.1"
gem "decidim", DECIDIM_VERSION

gem "decidim-decidim_awesome", git: "https://github.com/decidim-ice/decidim-module-decidim_awesome", branch: "develop"
gem "decidim-social_crowdfunding", git: "https://github.com/Platoniq/decidim-module-social_crowdfunding", branch: "main"
gem "decidim-term_customizer", git: "https://github.com/mainio/decidim-module-term_customizer", branch: "main"

gem "faraday", "~> 2.9.0"

gem "bootsnap", "~> 1.3"

Expand All @@ -21,7 +24,7 @@ group :development, :test do
gem "byebug", "~> 11.0", platform: :mri

gem "brakeman", "~> 5.4"
gem "decidim-dev", "0.28.1"
gem "decidim-dev", DECIDIM_VERSION
gem "mdl"
gem "net-imap", "~> 0.2.3"
gem "net-pop", "~> 0.1.1"
Expand Down
74 changes: 49 additions & 25 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
GIT
remote: https://github.com/Platoniq/decidim-module-social_crowdfunding
revision: 1a3d32004dc85a2e80881a00db8b4b99bfc8f8cb
branch: main
specs:
decidim-social_crowdfunding (0.3.0)
decidim-admin (>= 0.28.0, < 0.29)
decidim-core (>= 0.28.0, < 0.29)

GIT
remote: https://github.com/decidim-ice/decidim-module-decidim_awesome
revision: b2800256f5e147452438686029b3990c89fb21be
branch: develop
specs:
decidim-decidim_awesome (0.11.0)
decidim-admin (>= 0.28.0, < 0.29)
decidim-core (>= 0.28.0, < 0.29)
deface (>= 1.5)
sassc (~> 2.3)

GIT
remote: https://github.com/mainio/decidim-module-term_customizer
revision: 9133eea57ebfc4164b640efd1ac6b9ca1628c793
branch: main
specs:
decidim-term_customizer (0.28.0)
decidim-admin (~> 0.28.0)
decidim-core (~> 0.28.0)

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -341,6 +370,12 @@ GEM
declarative-builder (0.1.0)
declarative-option (< 0.2.0)
declarative-option (0.1.0)
deface (1.9.0)
actionview (>= 5.2)
nokogiri (>= 1.6)
polyglot
railties (>= 5.2)
rainbow (>= 2.1.0)
devise (4.9.3)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
Expand Down Expand Up @@ -383,29 +418,10 @@ GEM
railties (>= 5.0.0)
faker (3.2.0)
i18n (>= 1.8.11, < 2)
faraday (1.10.0)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
faraday-retry (~> 1.0)
ruby2_keywords (>= 0.0.4)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
faraday (2.9.1)
faraday-net_http (>= 2.0, < 3.2)
faraday-net_http (3.1.0)
net-http
ffi (1.15.5)
figaro (1.2.0)
thor (>= 0.14.0, < 2)
Expand Down Expand Up @@ -530,8 +546,9 @@ GEM
msgpack (1.4.5)
multi_json (1.15.0)
multi_xml (0.6.0)
multipart-post (2.2.3)
mutex_m (0.2.0)
net-http (0.4.1)
uri
net-imap (0.2.3)
digest
net-protocol
Expand Down Expand Up @@ -598,6 +615,7 @@ GEM
pg_search (2.3.6)
activerecord (>= 5.2)
activesupport (>= 5.2)
polyglot (0.3.5)
premailer (1.16.0)
addressable
css_parser (>= 1.6.0)
Expand Down Expand Up @@ -735,7 +753,6 @@ GEM
ruby-progressbar (1.11.0)
ruby-vips (2.1.4)
ffi (~> 1.12)
ruby2_keywords (0.0.5)
rubyXL (3.4.25)
nokogiri (>= 1.10.8)
rubyzip (>= 1.3.0)
Expand All @@ -745,6 +762,8 @@ GEM
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sassc (2.4.0)
ffi (~> 1.9)
selenium-webdriver (4.9.0)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
Expand Down Expand Up @@ -805,6 +824,7 @@ GEM
uber (0.1.0)
unicode-display_width (2.4.2)
uniform_notifier (1.16.0)
uri (0.13.0)
valid_email2 (4.0.6)
activemodel (>= 3.2)
mail (~> 2.5)
Expand Down Expand Up @@ -860,7 +880,11 @@ DEPENDENCIES
capistrano-rbenv
capistrano-sidekiq
decidim (= 0.28.1)
decidim-decidim_awesome!
decidim-dev (= 0.28.1)
decidim-social_crowdfunding!
decidim-term_customizer!
faraday (~> 2.9.0)
figaro (~> 1.2)
letter_opener_web (~> 2.0)
listen (~> 3.1)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true
# This migration comes from decidim_term_customizer (originally 20190217132503)

class CreateDecidimTermCustomizerTranslationSets < ActiveRecord::Migration[5.2]
def change
create_table :decidim_term_customizer_translation_sets do |t|
t.jsonb :name
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# frozen_string_literal: true
# This migration comes from decidim_term_customizer (originally 20190217132654)

class CreateDecidimTermCustomizerTranslations < ActiveRecord::Migration[5.2]
def change
create_table :decidim_term_customizer_translations do |t|
t.string :locale
t.string :key
t.text :value

t.references(
:translation_set,
null: false,
foreign_key: { to_table: :decidim_term_customizer_translation_sets },
index: { name: "decidim_term_customizer_translation_translation_set" }
)
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# frozen_string_literal: true
# This migration comes from decidim_term_customizer (originally 20190217132726)

class CreateDecidimTermCustomizerConstraints < ActiveRecord::Migration[5.2]
def change
create_table :decidim_term_customizer_constraints do |t|
t.references :decidim_organization, null: false, foreign_key: true, index: { name: "decidim_term_customizer_constraint_organization" }
t.references :subject, polymorphic: true, index: { name: "decidim_term_customizer_constraint_subject" }

t.references(
:translation_set,
null: false,
foreign_key: { to_table: :decidim_term_customizer_translation_sets },
index: { name: "decidim_term_customizer_constraint_translation_set" }
)
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# frozen_string_literal: true
# This migration comes from decidim_decidim_awesome (originally 20200324170000)

class CreateDecidimAwesomeConfig < ActiveRecord::Migration[5.2]
def change
create_table :decidim_awesome_config do |t|
t.jsonb :var
t.jsonb :value
t.integer :decidim_organization_id,
foreign_key: true,
index: { name: "index_decidim_awesome_on_decidim_organization_id" }

t.timestamps
t.index [:var, :decidim_organization_id], name: "index_decidim_awesome_organization_var", unique: true
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true
# This migration comes from decidim_decidim_awesome (originally 20200324230936)

class CreateAwesomeEditorImages < ActiveRecord::Migration[5.2]
def change
create_table :decidim_awesome_editor_images do |t|
t.string :image
t.string :path
t.references :decidim_author, null: false, foreign_key: { to_table: :decidim_users }, index: { name: "decidim_awesome_editor_images_author" }
t.references :decidim_organization, null: false, foreign_key: true, index: { name: "decidim_awesome_editor_images_constraint_organization" }

t.timestamps
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true
# This migration comes from decidim_decidim_awesome (originally 20200403142257)

class CreateDecidimAwesomeConfigConstraints < ActiveRecord::Migration[5.2]
def change
create_table :decidim_awesome_config_constraints do |t|
t.jsonb :settings

t.references :decidim_awesome_config, null: false, foreign_key: { to_table: :decidim_awesome_config }, index: { name: "decidim_awesome_config_constraints_config" }
t.timestamps
t.index [:settings, :decidim_awesome_config_id], name: "index_decidim_awesome_settings_awesome_config", unique: true
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true
# This migration comes from decidim_decidim_awesome (originally 20210628150825)

class ChangeAwesomeConfigVarType < ActiveRecord::Migration[5.2]
def change
change_column :decidim_awesome_config, :var, :string

Decidim::DecidimAwesome::AwesomeConfig.find_each do |config|
config.var.gsub!('"', "")
config.save!
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true
# This migration comes from decidim_decidim_awesome (originally 20231006113837)

class CreateDecidimAwesomeVoteWeights < ActiveRecord::Migration[6.0]
def change
create_table :decidim_awesome_vote_weights do |t|
# this might be polymorphic in the future (if other types of votes are supported)
t.references :proposal_vote, null: false, index: { name: "decidim_awesome_proposals_weights_vote" }

t.integer :weight, null: false, default: 1
t.timestamps
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true
# This migration comes from decidim_decidim_awesome (originally 20231006113841)

class CreateDecidimAwesomeProposalExtraFields < ActiveRecord::Migration[6.0]
def change
create_table :decidim_awesome_proposal_extra_fields do |t|
# this might be polymorphic in the future (if other types of votes are supported)
t.references :decidim_proposal, null: false, index: { name: "decidim_awesome_extra_fields_on_proposal" }

t.jsonb :vote_weight_totals
t.integer :weight_total, default: 0
t.timestamps
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# frozen_string_literal: true
# This migration comes from decidim_decidim_awesome (originally 20240306175331)

class RenameEditorImagesAwesomeConfig < ActiveRecord::Migration[6.1]
class AwesomeConfig < ApplicationRecord
self.table_name = :decidim_awesome_config
end

# rubocop:disable Rails/SkipsModelValidations
def up
AwesomeConfig.where(var: :allow_images_in_full_editor).update_all(var: :allow_images_in_editors)
AwesomeConfig.where(var: :allow_images_in_small_editor).destroy_all
end

def down
AwesomeConfig.where(var: :allow_images_in_editors).update_all(var: :allow_images_in_full_editor)
end
# rubocop:enable Rails/SkipsModelValidations
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# frozen_string_literal: true
# This migration comes from decidim_social_crowdfunding (originally 20211125195842)

class CreateDecidimSocialCrowdfundingCampaigns < ActiveRecord::Migration[5.2]
def change
create_table :decidim_social_crowdfunding_campaigns do |t|
t.references :decidim_organization, foreign_key: { to_table: :decidim_organizations }, index: { name: "index_social_crowdfunding_campaigns_on_organization" }

t.jsonb :name
t.jsonb :description

t.string :slug

t.string :url
t.string :lang

t.string :thumbnail_url

t.decimal :amount
t.decimal :minimum
t.decimal :optimum

t.jsonb :data

t.timestamps
end
end
end
Loading
Loading