Skip to content

Commit

Permalink
Merge pull request #18 from nfarring/ruby-version
Browse files Browse the repository at this point in the history
Ruby: Moved version number into top-level VERSION file
  • Loading branch information
Nathan Farrington committed Jun 15, 2014
2 parents 6519d77 + 06b5953 commit 49fe999
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ README.html
# Ruby
.rvmrc
*.gem
ruby/lib/redisrpc/version.rb
# PHP
composer.lock
composer.phar
Expand Down
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
VERSION:=$(shell cat VERSION)

BASIC_TARGETS:=\
README.html

RUBY_TARGETS:=
RUBY_TARGETS:=\
ruby/lib/redisrpc/version.rb

PHP_TARGETS:=\
composer.phar\
Expand Down Expand Up @@ -86,6 +89,15 @@ README.html: README.markdown
# Rules for Ruby Targets
########################

ruby/lib/redisrpc:
mkdir $@

ruby/lib/redisrpc/version.rb: ruby/lib/redisrpc
printf "module RedisRPC\n" >$@
printf " #Ref: http://semver.org/\n" >>$@
printf " VERSION = '%s'\n" $(VERSION) >>$@
printf "end\n" >>$@

#######################
# Rules for PHP Targets
#######################
Expand Down
4 changes: 0 additions & 4 deletions ruby/lib/redisrpc/version.rb

This file was deleted.

2 changes: 1 addition & 1 deletion ruby/redisrpc.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.version = RedisRPC::VERSION
s.license = 'GPLv3'
s.authors = ['Nathan Farrington']
s.email = ['nfarring@gmail.com']
s.email = ['nathan@nathanfarrington.com']

s.homepage = 'http://github.com/nfarring/redisrpc'
s.summary = 'Lightweight RPC for Redis'
Expand Down

0 comments on commit 49fe999

Please sign in to comment.