Skip to content

Commit

Permalink
Add version rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasv committed Apr 5, 2024
1 parent 42892b4 commit ef2af1e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
memcached (1.9.0)
vinted-memcached (1.8.5)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -38,13 +38,13 @@ DEPENDENCIES
activesupport
dalli
memcache-client
memcached!
mocha
rake
rake-compiler
remix-stash (~> 1.1.3)
stackprof
test-unit
vinted-memcached!

BUNDLED WITH
2.1.4
5 changes: 5 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,8 @@ def run(cmd, reason)
puts cmd
raise "'#{cmd}' failed" unless system(cmd)
end

task :version do
require 'memcached/version'
puts Memcached::VERSION
end
3 changes: 3 additions & 0 deletions lib/memcached/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Memcached
VERSION = '1.8.5'
end
6 changes: 4 additions & 2 deletions memcached.gemspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# -*- encoding: utf-8 -*-

require_relative 'lib/memcached/version'

Gem::Specification.new do |s|
s.name = "memcached"
s.version = "1.9.0"
s.name = "vinted-memcached"
s.version = Memcached::VERSION

s.authors = ["Arthur Neves", "Evan Weaver"]
s.email = "[email protected]"
Expand Down

0 comments on commit ef2af1e

Please sign in to comment.