Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switch to bundler for gem management.

  • Loading branch information...
commit 0fd7395f228a0b42c7c95485450b16ded13fab7b 1 parent 36faf97
@jnunemaker authored
View
4 .gitignore
@@ -19,4 +19,6 @@ rdoc
pkg
## PROJECT::SPECIFIC
-tmp
+tmp
+
+Gemfile.lock
View
8 Gemfile
@@ -0,0 +1,8 @@
+source 'http://rubygems.org'
+gemspec
+
+gem 'shoulda', '~> 2.10.2'
+gem 'mocha', '~> 0.9.8'
+gem 'yard', '>= 0'
+gem 'rake', '0.8.7'
+gem 'mongo_mapper', '0.9.2'
View
36 Rakefile
@@ -1,27 +1,5 @@
-require 'rubygems'
-require 'rake'
-
-require File.dirname(__FILE__) + '/lib/canable'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "canable"
- gem.summary = %Q{Simple permissions that I have used on my last several projects so I figured it was time to abstract and wrap up into something more easily reusable.}
- gem.description = %Q{Simple permissions that I have used on my last several projects so I figured it was time to abstract and wrap up into something more easily reusable.}
- gem.email = "nunemaker@gmail.com"
- gem.homepage = "http://github.com/jnunemaker/canable"
- gem.authors = ["John Nunemaker"]
- gem.version = Canable::Version
- gem.add_development_dependency "shoulda", "~> 2.10.2"
- gem.add_development_dependency "mocha", "~> 0.9.8"
- gem.add_development_dependency "mongo_mapper"
- gem.add_development_dependency "yard", ">= 0"
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
-end
+require 'bundler'
+Bundler::GemHelper.install_tasks
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
@@ -31,14 +9,4 @@ Rake::TestTask.new(:test) do |test|
test.verbose = true
end
-task :test => :check_dependencies
task :default => :test
-
-begin
- require 'yard'
- YARD::Rake::YardocTask.new
-rescue LoadError
- task :yardoc do
- abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
- end
-end
View
72 canable.gemspec
@@ -1,65 +1,19 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "canable/version"
Gem::Specification.new do |s|
- s.name = %q{canable}
- s.version = "0.2.0"
+ s.name = "canable"
+ s.version = Canable::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["John Nunemaker"]
+ s.email = ["nunemaker@gmail.com"]
+ s.homepage = "http://github.com/jnunemaker/canable"
+ s.summary = %Q{Simple permissions that I have used on my last several projects so I figured it was time to abstract and wrap up into something more easily reusable.}
+ s.description = %Q{Simple permissions that I have used on my last several projects so I figured it was time to abstract and wrap up into something more easily reusable.}
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["John Nunemaker"]
- s.date = %q{2011-06-30}
- s.description = %q{Simple permissions that I have used on my last several projects so I figured it was time to abstract and wrap up into something more easily reusable.}
- s.email = %q{nunemaker@gmail.com}
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- ".document",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "lib/canable.rb",
- "specs.watchr",
- "test/helper.rb",
- "test/test_ables.rb",
- "test/test_canable.rb",
- "test/test_cans.rb",
- "test/test_enforcers.rb"
- ]
- s.homepage = %q{http://github.com/jnunemaker/canable}
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
- s.rubygems_version = %q{1.7.2}
- s.summary = %q{Simple permissions that I have used on my last several projects so I figured it was time to abstract and wrap up into something more easily reusable.}
- s.test_files = [
- "test/helper.rb",
- "test/test_ables.rb",
- "test/test_canable.rb",
- "test/test_cans.rb",
- "test/test_enforcers.rb"
- ]
-
- if s.respond_to? :specification_version then
- s.specification_version = 3
-
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<shoulda>, ["~> 2.10.2"])
- s.add_development_dependency(%q<mocha>, ["~> 0.9.8"])
- s.add_development_dependency(%q<mongo_mapper>, [">= 0"])
- s.add_development_dependency(%q<yard>, [">= 0"])
- else
- s.add_dependency(%q<shoulda>, ["~> 2.10.2"])
- s.add_dependency(%q<mocha>, ["~> 0.9.8"])
- s.add_dependency(%q<mongo_mapper>, [">= 0"])
- s.add_dependency(%q<yard>, [">= 0"])
- end
- else
- s.add_dependency(%q<shoulda>, ["~> 2.10.2"])
- s.add_dependency(%q<mocha>, ["~> 0.9.8"])
- s.add_dependency(%q<mongo_mapper>, [">= 0"])
- s.add_dependency(%q<yard>, [">= 0"])
- end
end
-
View
2  lib/canable.rb
@@ -1,6 +1,4 @@
module Canable
- Version = '0.2.0'
-
# Module that holds all the can_action? methods.
module Cans; end
View
3  lib/canable/version.rb
@@ -0,0 +1,3 @@
+module Canable
+ VERSION = '0.2.0'
+end
Please sign in to comment.
Something went wrong with that request. Please try again.