Skip to content

Commit

Permalink
Switched to the bundler gem way, rebooted to 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
David Padilla committed Apr 26, 2011
1 parent c460ff4 commit b095009
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 107 deletions.
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source "http://rubygems.org"

# Specify your gem's dependencies in ajax-nested-fields.gemspec
gemspec
16 changes: 16 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,16 @@
PATH
remote: .
specs:
ajax-nested-fields (0.0.1)

GEM
remote: http://rubygems.org/
specs:
minitest (2.1.0)

PLATFORMS
ruby

DEPENDENCIES
ajax-nested-fields!
minitest
55 changes: 2 additions & 53 deletions Rakefile
@@ -1,53 +1,2 @@
require 'rubygems'
require 'rake'

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "nested-fields"
gem.summary = %Q{Use nested attributes to add nested fields}
gem.description = %Q{Use nested attributes to add nested fields}
gem.email = "roberto.sanchez@crowdint.com"
gem.homepage = "https://github.com/crowdint/robert"
gem.authors = ["Roberto Sanchez Sanchez"]
# gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end

begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/test_*.rb'
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

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 = "nested-fields #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
require 'bundler'
Bundler::GemHelper.install_tasks
23 changes: 23 additions & 0 deletions ajax-nested-fields.gemspec
@@ -0,0 +1,23 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "ajax-nested-fields/version"

Gem::Specification.new do |s|
s.name = "ajax-nested-fields"
s.version = Ajax::Nested::Fields::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Roberto Sanchez", "David Padilla"]
s.email = ["roberto.sanchez@crowdint.com", "david@crowdint.com"]
s.homepage = ""
s.summary = %q{Easy implementation of AJAX Nested fields"}
s.description = %q{Easy implementation of AJAX Nested fields"}

s.rubyforge_project = "ajax-nested-fields"

s.add_development_dependency "minitest"

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"]
end
File renamed without changes.
3 changes: 3 additions & 0 deletions lib/ajax-nested-fields/version.rb
@@ -0,0 +1,3 @@
module AjaxNestedFields
VERSION = "0.0.1"
end
54 changes: 0 additions & 54 deletions nested-fields.gemspec

This file was deleted.

0 comments on commit b095009

Please sign in to comment.