Permalink
Browse files

Changed to Bundler.

  • Loading branch information...
1 parent c7a6c81 commit 15db096eea04fad027f85f8539a5f2b481d9dc5f @lailsonbm committed Dec 26, 2010
Showing with 36 additions and 94 deletions.
  1. +4 −3 .gitignore
  2. +4 −0 Gemfile
  3. +3 −32 Rakefile
  4. +0 −1 VERSION
  5. +4 −1 lib/time_of_day.rb
  6. +3 −0 lib/time_of_day/version.rb
  7. +18 −57 time_of_day.gemspec
View
@@ -14,9 +14,10 @@ tmtags
*.swp
## PROJECT::GENERAL
-coverage
-rdoc
-pkg
+pkg/*
+*.gem
+.bundle
+Gemfile.lock
## PROJECT::SPECIFIC
.rvmrc
View
@@ -0,0 +1,4 @@
+source :gemcutter
+
+# Specify your gem's dependencies in time_of_day.gemspec
+gemspec
View
@@ -1,41 +1,12 @@
-require 'rubygems'
-require 'rake'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "time_of_day"
- gem.summary = %Q{Handle correctly times without dates in Rails 3.}
- gem.description = %Q{Adds time-only capabilities to the Time class and maps the Rails time type correctly to a time without date.}
- gem.email = "lailson@guava.com.br"
- gem.homepage = "http://github.com/lailsonbm/time_of_day"
- gem.authors = ["Lailson Bandeira"]
- gem.add_dependency "activesupport", ">= 3.0.0"
- gem.add_dependency "activerecord", ">= 3.0.0"
- gem.add_development_dependency "shoulda", ">= 2.11.3"
- 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'
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
-task :test => :check_dependencies
-
task :default => :test
-
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
-
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "time_of_day #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
View
@@ -1 +0,0 @@
-0.1.0
View
@@ -1,2 +1,5 @@
require 'time_of_day/ext/time'
-require 'time_of_day/ext/active_record'
+require 'time_of_day/ext/active_record'
+
+module TimeOfDay
+end
@@ -0,0 +1,3 @@
+module TimeOfDay
+ VERSION = "0.1.0"
+end
View
@@ -1,64 +1,25 @@
-# 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/time_of_day/version', __FILE__)
Gem::Specification.new do |s|
- s.name = %q{time_of_day}
- s.version = "0.1.0"
+ s.name = 'time_of_day'
+ s.version = TimeOfDay::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = %q{'Lailson Bandeira'}
+ s.email = %q{lailson@guava.com.br}
+ s.homepage = 'http://rubygems.org/gems/time_of_day'
+ s.summary = 'Handle correctly times without dates in Rails 3.'
+ s.description = 'Adds time-only capabilities to the Time class and maps the Rails time type correctly to a time without date.'
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Lailson Bandeira"]
- s.date = %q{2010-09-01}
- s.description = %q{Adds time-only capabilities to the Time class and maps the Rails time type correctly to a time without date.}
- s.email = %q{lailson@guava.com.br}
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- ".document",
- ".gitignore",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "lib/time_of_day.rb",
- "lib/time_of_day/ext/active_record.rb",
- "lib/time_of_day/ext/time.rb",
- "test/helper.rb",
- "test/test_active_record_extensions.rb",
- "test/test_time_extensions.rb",
- "time_of_day.gemspec"
- ]
- s.homepage = %q{http://github.com/lailsonbm/time_of_day}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Handle correctly times without dates in Rails 3.}
- s.test_files = [
- "test/helper.rb",
- "test/test_active_record_extensions.rb",
- "test/test_time_extensions.rb"
- ]
+ s.required_rubygems_version = '>= 1.3.6'
+ s.rubyforge_project = 'time_of_day'
- 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 'shoulda', '>= 2.11.3'
+ s.add_runtime_dependency('activesupport', '>= 3.0.0')
+ s.add_runtime_dependency('activerecord', '>= 3.0.0')
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0"])
- s.add_runtime_dependency(%q<activerecord>, [">= 3.0.0"])
- s.add_development_dependency(%q<shoulda>, [">= 2.11.3"])
- else
- s.add_dependency(%q<activesupport>, [">= 3.0.0"])
- s.add_dependency(%q<activerecord>, [">= 3.0.0"])
- s.add_dependency(%q<shoulda>, [">= 2.11.3"])
- end
- else
- s.add_dependency(%q<activesupport>, [">= 3.0.0"])
- s.add_dependency(%q<activerecord>, [">= 3.0.0"])
- s.add_dependency(%q<shoulda>, [">= 2.11.3"])
- 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'
end
-

0 comments on commit 15db096

Please sign in to comment.