Skip to content

Commit 38f19f7

Browse files
committed
Read the gem version from Facets::VERSION
The version was kept twice, in facets.gemspec and in lib/core/facets/version.rb. The gemspec now requires version.rb and uses Facets::VERSION, so a release changes one line. The Rakefile already reads it there too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E2Njj4j1r9twkVcXsMySLW
1 parent 6f9d0e1 commit 38f19f7

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎HISTORY.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ Changes:
7676
`Assembly` (Detroit), `.index`, `Indexfile` and `lib/core/facets.yml`.
7777
The Rakefile takes its version from `Facets::VERSION` (`.index` still said
7878
3.1.1), and `rake package` no longer needs the `mast` and `index` tools.
79+
* The gemspec reads its version from `Facets::VERSION`, so the version now
80+
lives in one place, `lib/core/facets/version.rb`.
7981
* Fix the qed demos, which had 8 failures and 2 errors. Most were stale
8082
expectations (`Array#from`, `#step`, `#arrange`, `String#similarity`)
8183
and the date demo held pasted irb output.

‎facets.gemspec‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
require_relative 'lib/core/facets/version'
2+
13
Gem::Specification.new do |s|
24
s.name = 'facets'
3-
s.version = '3.2.2'
5+
s.version = Facets::VERSION
46
s.summary = 'The premier collection of extension methods for Ruby.'
57
s.description = 'Facets is the premier collection of extension methods for the Ruby ' \
68
'programming language. Facets extensions are unique by virtue of their ' \

0 commit comments

Comments
 (0)