Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed to Bundler

  • Loading branch information...
commit 6fdbc5efaa27ecab41213904a21471b8c21b081f 1 parent 22bc40a
@peleteiro authored
View
27 .gitignore
@@ -1,24 +1,3 @@
-## MAC OS
-.DS_Store
-
-## TEXTMATE
-*.tmproj
-tmtags
-
-## EMACS
-*~
-\#*
-.\#*
-
-## VIM
-*.swp
-
-## PROJECT::GENERAL
-coverage
-rdoc
-pkg
-
-## PROJECT::SPECIFIC
-.document
-.yardoc
-doc
+pkg/*
+*.gem
+.bundle
View
4 Gemfile
@@ -0,0 +1,4 @@
+source :gemcutter
+
+# Specify your gem's dependencies in ruby-duration.gemspec
+gemspec
View
25 Gemfile.lock
@@ -0,0 +1,25 @@
+PATH
+ remote: .
+ specs:
+ ruby-duration (0.5.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ activesupport (3.0.1)
+ i18n (0.4.1)
+ minitest (1.7.2)
+ rake (0.8.7)
+ yard (0.6.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ activesupport (>= 3.0.0)
+ bundler (>= 1.0.0)
+ i18n
+ minitest
+ rake
+ ruby-duration!
+ yard
View
65 Rakefile
@@ -1,22 +1,7 @@
-require 'rubygems'
-require 'rake'
+require 'bundler'
+Bundler::GemHelper.install_tasks
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "ruby-duration"
- gem.summary = %Q{Duration type}
- gem.description = %Q{Duration type}
- gem.email = "jose@peleteiro.net"
- gem.homepage = "http://github.com/peleteiro/ruby-duration"
- gem.authors = ["Jose Peleteiro"]
- gem.add_development_dependency "minitest", ">= 0"
- 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
+task :default => :test
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
@@ -25,45 +10,5 @@ Rake::TestTask.new(:test) do |test|
test.verbose = true
end
-begin
- require 'rcov/rcovtask'
- Rcov::RcovTask.new do |test|
- test.libs << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.rcov_opts << %w{--exclude /Library,.bundle,test,gems,.rvm}
- test.verbose = true
- end
-rescue LoadError
- task :rcov do
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
- end
-end
-
-namespace(:test) do
- desc "Run tests on multiple ruby versions"
- task(:portability) do
- versions = %w{system 1.8.7 ree-1.8.7 1.9.2 jruby rubinius}
- versions.each do |version|
- system <<-BASH
- bash -c 'source ~/.rvm/scripts/rvm;
- rvm use #{version};
- echo "-------- `ruby -v` ---------\n";
- gem install jeweler activesupport minitest yard i18n
- rake -s test'
- BASH
- end
- end
-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
+require 'yard'
+YARD::Rake::YardocTask.new
View
1  VERSION
@@ -1 +0,0 @@
-0.3.0
View
3  lib/duration/version.rb
@@ -0,0 +1,3 @@
+class Duration
+ VERSION = "0.5.0"
+end
View
75 ruby-duration.gemspec
@@ -1,60 +1,29 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
+require File.expand_path("../lib/duration/version", __FILE__)
Gem::Specification.new do |s|
- s.name = %q{ruby-duration}
- s.version = "0.3.0"
+ s.name = "ruby-duration"
+ s.version = Duration::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Jose Peleteiro"]
+ s.email = ["jose@peleteiro.net"]
+ s.homepage = "http://github.com/peleteiro/ruby-duration"
+ s.summary = "Duration type"
+ s.description = "Duration type"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Jose Peleteiro"]
- s.date = %q{2010-09-22}
- s.description = %q{Duration type}
- s.email = %q{jose@peleteiro.net}
- s.extra_rdoc_files = [
- "LICENSE",
- "README.md"
- ]
- s.files = [
- ".gitignore",
- "LICENSE",
- "README.md",
- "Rakefile",
- "VERSION",
- "lib/duration.rb",
- "lib/duration/mongoid.rb",
- "lib/ruby-duration.rb",
- "ruby-duration.gemspec",
- "test/duration/test_mongoid.rb",
- "test/helper.rb",
- "test/test_duration.rb"
- ]
- s.homepage = %q{http://github.com/peleteiro/ruby-duration}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Duration type}
- s.test_files = [
- "test/duration/test_mongoid.rb",
- "test/helper.rb",
- "test/test_duration.rb"
- ]
+ s.required_rubygems_version = ">= 1.3.6"
+ s.rubyforge_project = "ruby-duration"
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ s.add_development_dependency "bundler", ">= 1.0.0"
+ s.add_development_dependency "minitest", ">= 0"
+ s.add_development_dependency "yard", ">= 0"
+ s.add_development_dependency "rake", ">= 0"
+ s.add_development_dependency "activesupport", ">= 3.0.0"
+ s.add_development_dependency "i18n", ">= 0"
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<minitest>, [">= 0"])
- s.add_development_dependency(%q<yard>, [">= 0"])
- else
- s.add_dependency(%q<minitest>, [">= 0"])
- s.add_dependency(%q<yard>, [">= 0"])
- end
- else
- s.add_dependency(%q<minitest>, [">= 0"])
- s.add_dependency(%q<yard>, [">= 0"])
- end
-end
+ s.files = `git ls-files`.split("\n")
+ s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
+ s.require_path = 'lib'
+ s.rdoc_options = ["--charset=UTF-8"]
+end
Please sign in to comment.
Something went wrong with that request. Please try again.