Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

version 0.3.0

  • Loading branch information...
commit 273a813080ae6a6d9df9d3bd3230b65d00925bdf 1 parent 00724b9
@adzap authored
View
44 Rakefile
@@ -1,30 +1,8 @@
-require 'rubygems'
+require 'bundler'
+Bundler::GemHelper.install_tasks
+
require 'rake/rdoctask'
-require 'rake/gempackagetask'
-require 'rubygems/specification'
require 'rspec/core/rake_task'
-require 'lib/grouped_validations/version'
-
-GEM_NAME = "grouped_validations"
-GEM_VERSION = GroupedValidations::VERSION
-
-spec = Gem::Specification.new do |s|
- s.name = GEM_NAME
- s.version = GEM_VERSION
- s.platform = Gem::Platform::RUBY
- s.rubyforge_project = GEM_NAME
- s.has_rdoc = true
- s.extra_rdoc_files = ["README.rdoc"]
- s.summary = "Define validation groups in a model for greater control over which validations are run."
- s.description = s.summary
- s.author = "Adam Meehan"
- s.email = "adam.meehan@gmail.com"
- s.homepage = "http://github.com/adzap/grouped_validations"
-
- s.require_path = 'lib'
- s.autorequire = GEM_NAME
- s.files = %w(MIT-LICENSE README.rdoc Rakefile) + Dir.glob("{lib,spec}/**/*")
-end
desc 'Default: run specs.'
task :default => :spec
@@ -46,19 +24,3 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
-
-Rake::GemPackageTask.new(spec) do |pkg|
- pkg.gem_spec = spec
-end
-
-desc "install the gem locally"
-task :install => [:package] do
- sh %{gem install pkg/#{GEM_NAME}-#{GEM_VERSION}}
-end
-
-desc "create a gemspec file"
-task :make_spec do
- File.open("#{GEM_NAME}.gemspec", "w") do |file|
- file.puts spec.to_ruby
- end
-end
View
39 grouped_validations.gemspec
@@ -1,30 +1,23 @@
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "grouped_validations/version"
+
Gem::Specification.new do |s|
- s.name = %q{grouped_validations}
- s.version = "0.2.2"
+ s.name = %q{grouped_validations}
+ s.version = GroupedValidations::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Adam Meehan"]
+ s.email = %q{adam.meehan@gmail.com}
+ s.homepage = %q{http://github.com/adzap/grouped_validations}
+ s.summary = %q{Define validation groups in a model for greater control over which validations are run.}
+ s.description = s.summary
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Adam Meehan"]
- s.autorequire = %q{grouped_validations}
- s.date = %q{2011-01-22}
- s.description = %q{Define validation groups in a model for greater control over which validations are run.}
- s.email = %q{adam.meehan@gmail.com}
- s.extra_rdoc_files = ["README.rdoc"]
- s.files = ["MIT-LICENSE", "README.rdoc", "Rakefile", "lib/grouped_validations", "lib/grouped_validations/active_model.rb", "lib/grouped_validations/version.rb", "lib/grouped_validations.rb", "spec/grouped_validations_spec.rb", "spec/spec_helper.rb"]
- s.homepage = %q{http://github.com/adzap/grouped_validations}
- s.require_paths = ["lib"]
s.rubyforge_project = %q{grouped_validations}
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Define validation groups in a model for greater control over which validations are run.}
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
-
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- else
- end
- else
- end
+ s.files = `git ls-files`.split("\n") - %w{ .gitignore .rspec autotest }
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.extra_rdoc_files = ["README.rdoc"]
+ s.require_paths = ["lib"]
+ s.autorequire = %q{grouped_validations}
end
View
2  lib/grouped_validations/version.rb
@@ -1,3 +1,3 @@
module GroupedValidations
- VERSION = '0.2.2'
+ VERSION = '0.3.0'
end
Please sign in to comment.
Something went wrong with that request. Please try again.