Skip to content

Commit

Permalink
Merge pull request #15 from CodiTramuntana/dep/upgrade_decidim-0_27
Browse files Browse the repository at this point in the history
Upgrade module to Decidim 0.27
  • Loading branch information
tramuntanal authored Jun 20, 2023
2 parents 54cd320 + 1e22e35 commit 8bef055
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.5
3.0.2
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog
Current version is defined at `lib/decidim/verify_wo_registration/version.rb`

## Version 0.1.0

- Upgrade min Decidim version to v0.27.
- The rectify gem has been removed from the Decidim v0.27 stack. Thus, also removed from this module.

## Version 0.0.4

Expand Down
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source 'https://rubygems.org'

ruby RUBY_VERSION

DECIDIM_VERSION = { git: 'https://github.com/decidim/decidim', branch: "release/0.26-stable" }.freeze
DECIDIM_VERSION = { git: 'https://github.com/decidim/decidim', branch: "release/0.27-stable" }.freeze
gem 'decidim-budgets', DECIDIM_VERSION
gem 'decidim-core', DECIDIM_VERSION
gem 'decidim-proposals', DECIDIM_VERSION
Expand All @@ -25,7 +25,7 @@ group :development do
gem 'faker', '~> 2.14'
gem 'letter_opener_web', '~> 1.3'
gem 'listen', '~> 3.1'
gem 'spring', '~> 2.0'
gem 'spring-watcher-listen', '~> 2.0'
gem 'spring', '~> 4.0'
gem 'spring-watcher-listen', '~> 2.1'
gem 'web-console', '~> 3.5'
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Decidim
module VerifyWoRegistration
# A command with all the business logic to verify and impersonate (managed user).
class DoVerifyWoRegistration < Rectify::Command
class DoVerifyWoRegistration < Decidim::Command
# Public: Initializes the command.
#
# form - The form with the authorization info
Expand Down
2 changes: 1 addition & 1 deletion decidim-verify_wo_registration.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Gem::Specification.new do |s|
s.email = ['[email protected]']
s.license = 'MIT'
s.homepage = 'https://github.com/CodiTramuntana/decidim-verify_wo_registration'
s.required_ruby_version = '>= 2.5'
s.required_ruby_version = '>= 3.0.2'

s.name = 'decidim-verify_wo_registration'
s.summary = 'Adds the hability for proposals and budgets components to allow users to give support without being registered.'
Expand Down
4 changes: 2 additions & 2 deletions lib/decidim/verify_wo_registration/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
module Decidim
# This holds the decidim-meetings version.
module VerifyWoRegistration
VERSION = '0.0.4'
DECIDIM_VER = '>= 0.26'
VERSION = '0.1.0'
DECIDIM_VER = '>= 0.27'

def self.version
VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

RSpec.shared_examples 'has global setting' do |attr_name, attr_type|
it 'has attribute' do
attribute = global_settings.schema.attribute_set.find { |a| a.name == attr_name }
attribute = global_settings.attributes[attr_name]
expect(attribute).to be_present
expect(attribute.type).to eq(attr_type)
end
Expand All @@ -15,13 +15,13 @@
let!(:component_manifest) { Decidim.find_component_manifest :budgets }
let(:global_settings) { component_manifest.settings(:global) }

it_behaves_like 'has global setting', :supports_without_registration, Axiom::Types::Boolean
it_behaves_like 'has global setting', :supports_without_registration, :boolean
end

context 'proposals settings' do
let!(:component_manifest) { Decidim.find_component_manifest :proposals }
let(:global_settings) { component_manifest.settings(:global) }

it_behaves_like 'has global setting', :supports_without_registration, Axiom::Types::Boolean
it_behaves_like 'has global setting', :supports_without_registration, :boolean
end
end

0 comments on commit 8bef055

Please sign in to comment.