Skip to content

Commit

Permalink
Improve use of gemspec groups
Browse files Browse the repository at this point in the history
  • Loading branch information
adacosta committed Jun 24, 2011
1 parent 9a4a1a7 commit 3994d38
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gemfile
@@ -1,6 +1,6 @@
source "http://rubygems.org" source "http://rubygems.org"


# Specify your gem's dependencies in gem_test.gemspec # Specify your gem's dependencies in gem_test.gemspec
gemspec :development_group => :dev_mongoid_rails_migrations gemspec :development_group => :development_mongoid_rails_migrations
gemspec :test_group => :test_mongoid_rails_migrations gemspec :test_group => :test_mongoid_rails_migrations
gemspec :name => 'mongoid_rails_migrations' gemspec :name => 'mongoid_rails_migrations'
2 changes: 1 addition & 1 deletion Gemfile.lock
@@ -1,7 +1,7 @@
PATH PATH
remote: . remote: .
specs: specs:
mongoid_rails_migrations (0.0.13) mongoid_rails_migrations (0.0.14)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
bundler (>= 1.0.0) bundler (>= 1.0.0)
rails (>= 3.0.0) rails (>= 3.0.0)
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
@@ -1,7 +1,7 @@
$:.unshift(File.dirname(__FILE__)) $:.unshift(File.dirname(__FILE__))
namespace :test do namespace :test do
require 'bundler/setup' require 'bundler/setup'
Bundler.require(:test) Bundler.require(:development_mongoid_rails_migrations)


namespace :mongoid do namespace :mongoid do
desc "Test mongoid rails migrations" desc "Test mongoid rails migrations"
Expand Down
2 changes: 1 addition & 1 deletion lib/mongoid_rails_migrations.rb
@@ -1,6 +1,6 @@
# encoding: utf-8 # encoding: utf-8
require 'bundler/setup' require 'bundler/setup'
Bundler.require(:dev_mongoid_rails_migrations) Bundler.require(:mongoid_rails_migrations)


# Add base to path incase not included as a gem # Add base to path incase not included as a gem
$:.unshift(File.dirname(__FILE__)) unless $:.unshift(File.dirname(__FILE__)) unless
Expand Down
2 changes: 1 addition & 1 deletion mongoid_rails_migrations.gemspec
@@ -1,7 +1,7 @@
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY s.platform = Gem::Platform::RUBY
s.name = 'mongoid_rails_migrations' s.name = 'mongoid_rails_migrations'
s.version = '0.0.13' s.version = '0.0.14'
s.summary = 'Data migrations for Mongoid in Active Record style, minus column input.' s.summary = 'Data migrations for Mongoid in Active Record style, minus column input.'
s.description = 'Migrations for the migrator.' s.description = 'Migrations for the migrator.'


Expand Down
5 changes: 2 additions & 3 deletions test/helper.rb
Expand Up @@ -2,15 +2,14 @@
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))


require 'bundler/setup' require 'bundler/setup'
Bundler.require(:default) Bundler.require(:development_mongoid_rails_migrations)
Bundler.require(:test)


require 'config' require 'config'
require 'test/unit' require 'test/unit'


require 'rake' require 'rake'
require 'rake/testtask' require 'rake/testtask'
require 'rake/rdoctask' require 'rdoc/task'


# leave out active_record, in favor of a monogo adapter # leave out active_record, in favor of a monogo adapter
%w( %w(
Expand Down

0 comments on commit 3994d38

Please sign in to comment.