Permalink
Browse files

- Version of gem stored in the library

- Rakefile updated
- Packages stored in pkg directory
  • Loading branch information...
apohllo committed May 12, 2011
1 parent 236167a commit 17d7ab9eb278408ba7487c3fcb8595e238b77349
Showing with 15 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +7 −2 Rakefile
  3. +3 −0 lib/rod.rb
  4. +4 −1 rod.gemspec
View
@@ -4,3 +4,4 @@ work
*.gem
Gemfile.lock
.bundle
+pkg
View
@@ -1,15 +1,20 @@
+$:.unshift "lib"
+require 'rod'
+
task :default => [:install]
$gem_name = "rod"
desc "Build the gem"
-task :build => :test do
+task :build => :all_tests do
sh "gem build #$gem_name.gemspec"
+ FileUtils.mkdir("pkg") unless File.exist?("pkg")
+ sh "mv '#$gem_name-#{Rod::VERSION}.gem' pkg"
end
desc "Install the library at local machnie"
task :install => :build do
- sh "sudo gem install #$gem_name"
+ sh "sudo gem install pkg/#$gem_name-#{Rod::VERSION}.gem"
end
desc "Uninstall the library from local machnie"
View
@@ -9,6 +9,9 @@
# See #21
ActiveSupport::Dependencies.mechanism = :require
+module Rod
+ VERSION = "0.5.2"
+end
files = Dir.glob(File.join(File.dirname(__FILE__), 'rod/**.rb'))
files.each{ |f| require f }
View
@@ -1,6 +1,9 @@
+$:.unshift "lib"
+require 'rod'
+
Gem::Specification.new do |s|
s.name = "rod"
- s.version = "0.5.1"
+ s.version = Rod::VERSION
s.date = "#{Time.now}"
s.summary = "Ruby read-only object database"
s.email = "apohllo@o2.pl"

0 comments on commit 17d7ab9

Please sign in to comment.