From b48909770dcfc3e509068ab45d54e5b54c7eab81 Mon Sep 17 00:00:00 2001 From: Joonas Date: Tue, 8 Oct 2024 08:35:43 +0300 Subject: [PATCH] Add version methods --- Gemfile | 2 +- Gemfile.lock | 8 ++++---- decidim-locations.gemspec | 6 +++--- lib/decidim/locations/version.rb | 9 +++++++-- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Gemfile b/Gemfile index 038fb62..8c76278 100644 --- a/Gemfile +++ b/Gemfile @@ -10,7 +10,7 @@ base_path = "" base_path = "../" if File.basename(__dir__) == "development_app" require_relative "#{base_path}lib/decidim/locations/version" -DECIDIM_VERSION = Decidim::Locations::DECIDIM_VERSION +DECIDIM_VERSION = Decidim::Locations.decidim_version gem "decidim", DECIDIM_VERSION gem "decidim-locations", path: "." diff --git a/Gemfile.lock b/Gemfile.lock index 1c55b57..86bc5cd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,8 +1,8 @@ PATH remote: . specs: - decidim-locations (0.27.4) - decidim-core (~> 0.27.4) + decidim-locations (0.27.0) + decidim-core (~> 0.27.0) rgeo (= 3.0.1) rgeo-geojson (= 2.1.1) @@ -812,8 +812,8 @@ PLATFORMS DEPENDENCIES bootsnap (~> 1.4) byebug (~> 11.0) - decidim (~> 0.27.4) - decidim-dev (~> 0.27.4) + decidim (~> 0.27.0) + decidim-dev (~> 0.27.0) decidim-locations! faker (~> 2.14) letter_opener_web (~> 2.0) diff --git a/decidim-locations.gemspec b/decidim-locations.gemspec index 8a73e44..b2785f3 100644 --- a/decidim-locations.gemspec +++ b/decidim-locations.gemspec @@ -6,7 +6,7 @@ require "decidim/locations/version" Gem::Specification.new do |spec| spec.name = "decidim-locations" - spec.version = Decidim::Locations::VERSION + spec.version = Decidim::Locations.version spec.required_ruby_version = ">= 2.7" spec.authors = ["Antti Hukkanen", "Joonas Aapro"] spec.email = ["antti.hukkanen@mainiotech.fi", "joonas.aapro@mainiotech.fi"] @@ -25,13 +25,13 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] - spec.add_dependency "decidim-core", Decidim::Locations::DECIDIM_VERSION + spec.add_dependency "decidim-core", Decidim::Locations.decidim_version spec.add_dependency "rgeo", "3.0.1" spec.add_dependency "rgeo-geojson", "2.1.1" - spec.add_development_dependency "decidim-dev", Decidim::Locations::DECIDIM_VERSION + spec.add_development_dependency "decidim-dev", Decidim::Locations.decidim_version spec.metadata["rubygems_mfa_required"] = "true" end diff --git a/lib/decidim/locations/version.rb b/lib/decidim/locations/version.rb index d2d86ec..5cff601 100644 --- a/lib/decidim/locations/version.rb +++ b/lib/decidim/locations/version.rb @@ -2,7 +2,12 @@ module Decidim module Locations - VERSION = "0.27.4" - DECIDIM_VERSION = "~> 0.27.4" + def self.decidim_version + "~> 0.27.0" + end + + def self.version + "0.27.0" + end end end