Skip to content

Commit 8a30059

Browse files
authored
Read gem version from code file (#506)
Align with Factory Bot gem where gem version is read from a code file.
1 parent 87b13a6 commit 8a30059

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

factory_bot_rails.gemspec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
$LOAD_PATH << File.expand_path("lib", __dir__)
2+
require "factory_bot_rails/version"
3+
14
Gem::Specification.new do |s|
25
s.name = "factory_bot_rails"
3-
s.version = "6.4.4"
6+
s.version = FactoryBotRails::VERSION
47
s.authors = ["Joe Ferris"]
58
s.email = "jferris@thoughtbot.com"
69
s.homepage = "https://github.com/thoughtbot/factory_bot_rails"

lib/factory_bot_rails/version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module FactoryBotRails
2+
VERSION = "6.4.4".freeze
3+
end

0 commit comments

Comments
 (0)