Skip to content

Commit

Permalink
Add version methods
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasAapro committed Oct 8, 2024
1 parent 006c56e commit b489097
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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: "."
Expand Down
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -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)

Expand Down Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions decidim-locations.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ["[email protected]", "[email protected]"]
Expand All @@ -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
9 changes: 7 additions & 2 deletions lib/decidim/locations/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b489097

Please sign in to comment.