Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use Bundler gem_tasks

Use the Bundler gem_tasks for building and releasingt the gem

- increment the gem version to reflect the changes
  • Loading branch information...
commit 04b22cb32dfb7c5e3dcd10d8c7ccd0c1453ae264 1 parent b2550c6
@sideshowbandana sideshowbandana authored
Showing with 4 additions and 25 deletions.
  1. +1 −1  Gemfile.lock
  2. +2 −23 Rakefile
  3. +1 −1  lib/vanity/version.rb
View
2  Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- lookout-vanity (1.8.1)
+ lookout-vanity (1.8.2)
redis (~> 2.0)
redis-namespace (~> 1.0.0)
View
25 Rakefile
@@ -3,29 +3,7 @@ require 'appraisal'
# -- Building stuff --
-spec = Gem::Specification.load(Dir["*.gemspec"].first)
-
-desc "Build the Gem"
-task :build do
- sh "gem build #{spec.name}.gemspec"
-end
-
-desc "Install #{spec.name} locally"
-task :install=>:build do
- sudo = "sudo" unless File.writable?( Gem::ConfigMap[:bindir])
- sh "#{sudo} gem install #{spec.name}-#{spec.version}.gem"
-end
-
-desc "Push new release to gemcutter and git tag"
-task :push=>["test:all", "build"] do
- sh "git push"
- puts "Tagging version #{spec.version} .."
- sh "git tag v#{spec.version}"
- sh "git push --tag"
- puts "Building and pushing gem .."
- sh "gem push #{spec.name}-#{spec.version}.gem"
-end
-
+require "bundler/gem_tasks"
# -- Testing stuff --
@@ -106,6 +84,7 @@ task(:clobber) { rm_rf "tmp" }
begin
require "yard"
+ spec = Gem::Specification.load(Dir["*.gemspec"].first)
YARD::Rake::YardocTask.new(:yardoc) do |task|
task.files = FileList["lib/**/*.rb"].exclude("lib/vanity/backport.rb")
task.options = "--output", "html/api", "--title", "Vanity #{spec.version}", "--main", "README.rdoc", "--files", "CHANGELOG"
View
2  lib/vanity/version.rb
@@ -1,5 +1,5 @@
module Vanity
- VERSION = "1.8.1"
+ VERSION = "1.8.2"
module Version
version = VERSION.to_s.split(".").map { |i| i.to_i }
Please sign in to comment.
Something went wrong with that request. Please try again.