Skip to content

Commit 6022151

Browse files
committed
Fix version path
1 parent d7f141b commit 6022151

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/cc/services/version.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
module CC
22
module Services
33
def version
4-
path = File.expand_path("../../../VERSION", __FILE__)
5-
@version ||= File.read(path)
4+
path = File.expand_path("../../../../VERSION", __FILE__)
5+
@version ||= File.read(path).strip
66
end
7+
module_function :version
78
end
89
end

0 commit comments

Comments
 (0)