Skip to content

Commit

Permalink
Read gem version from code file (#506)
Browse files Browse the repository at this point in the history
Align with Factory Bot gem where gem version is read from a code file.
  • Loading branch information
unused authored Oct 31, 2024
1 parent 87b13a6 commit 8a30059
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion factory_bot_rails.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
$LOAD_PATH << File.expand_path("lib", __dir__)
require "factory_bot_rails/version"

Gem::Specification.new do |s|
s.name = "factory_bot_rails"
s.version = "6.4.4"
s.version = FactoryBotRails::VERSION
s.authors = ["Joe Ferris"]
s.email = "[email protected]"
s.homepage = "https://github.com/thoughtbot/factory_bot_rails"
Expand Down
3 changes: 3 additions & 0 deletions lib/factory_bot_rails/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module FactoryBotRails
VERSION = "6.4.4".freeze
end

0 comments on commit 8a30059

Please sign in to comment.