Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Threw bundler into the mix.

  • Loading branch information...
commit 9229c29a38c254a74ab08fc2f0ab40700d6f519d 1 parent 53c769d
@jnunemaker jnunemaker authored
View
1  .gitignore
@@ -9,3 +9,4 @@ tmp
log
.yardoc
doc
+.bundle
View
7 Gemfile
@@ -0,0 +1,7 @@
+gemspec
+
+gem 'bson_ext', '~> 1.1'
+
+gem 'i18n'
+gem 'tzinfo'
+gem 'activemodel'
View
53 Gemfile.lock
@@ -0,0 +1,53 @@
+PATH
+ remote: .
+ specs:
+ mongo_mapper (0.8.4)
+ activesupport (>= 2.3.4)
+ jnunemaker-validatable (~> 1.8.4)
+ plucky (~> 0.3.6)
+
+GEM
+ specs:
+ activemodel (3.0.0)
+ activesupport (= 3.0.0)
+ builder (~> 2.1.2)
+ i18n (~> 0.4.1)
+ activesupport (3.0.0)
+ bson (1.1)
+ bson_ext (1.1)
+ builder (2.1.2)
+ i18n (0.4.1)
+ jnunemaker-matchy (0.4.0)
+ jnunemaker-validatable (1.8.4)
+ activesupport (>= 2.3.4)
+ json (1.4.6)
+ log_buddy (0.5.0)
+ mocha (0.9.8)
+ rake
+ mongo (1.1)
+ bson (>= 1.0.5)
+ plucky (0.3.6)
+ mongo (~> 1.1)
+ rake (0.8.7)
+ shoulda (2.11.3)
+ timecop (0.3.5)
+ tzinfo (0.3.23)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ activemodel
+ activesupport (>= 2.3.4)
+ bson_ext (~> 1.1)
+ i18n
+ jnunemaker-matchy (~> 0.4.0)
+ jnunemaker-validatable (~> 1.8.4)
+ json
+ log_buddy
+ mocha (~> 0.9.8)
+ mongo_mapper!
+ plucky (~> 0.3.6)
+ shoulda (~> 2.11)
+ timecop (~> 0.3.1)
+ tzinfo
View
10 README.rdoc
@@ -2,6 +2,10 @@
A Ruby Object Mapper for Mongo.
+== Install
+
+ $ gem install mongo_mapper
+
== Note on Patches/Pull Requests
* Fork the project.
@@ -10,9 +14,11 @@ A Ruby Object Mapper for Mongo.
* Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself in another branch so I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.
-== Install
+== Development
- $ gem install mongo_mapper
+ $ gem install bundler (if you don't have it)
+ $ bundle install
+ $ bundle exec rake
== Problems or Questions?
View
13 Rakefile
@@ -13,22 +13,11 @@ namespace :test do
task :am_lint do
sh 'ruby -Itest -rubygems test/test_active_model_lint.rb'
end
-
- desc "Run tests against Active Support 2"
- task :as2 do
- sh 'ACTIVE_SUPPORT_VERSION="<= 2.3.8" rake test:all'
- end
-
- desc "Run tests against Active Support 3"
- task :as3 do
- sh 'ACTIVE_SUPPORT_VERSION=">= 3.0.0.beta3" rake test:all'
- end
end
desc 'Runs all tests against ActiveSupport 2 and 3'
task :test do
- Rake::Task['test:as2'].invoke
- Rake::Task['test:as3'].invoke
+ Rake::Task['test:all'].invoke
Rake::Task['test:am_lint'].invoke
end
View
9 test/test_helper.rb
@@ -1,10 +1,5 @@
require 'rubygems'
-gem 'activesupport', ENV['ACTIVE_SUPPORT_VERSION']
-gem 'json'
-gem 'jnunemaker-matchy', '~> 0.4.0'
-gem 'shoulda', '~> 2.11'
-gem 'timecop', '~> 0.3.5'
-gem 'mocha', '~> 0.9.8'
+require 'bundler/setup'
$:.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
require 'mongo_mapper'
@@ -55,7 +50,7 @@ def drop_indexes(klass)
klass.collection.drop_indexes
end
end
-
+
custom_matcher :be_true do |receiver, matcher, args|
matcher.positive_failure_message = "Expected #{receiver} to be true but it wasn't"
matcher.negative_failure_message = "Expected #{receiver} not to be true but it was"

0 comments on commit 9229c29

Please sign in to comment.
Something went wrong with that request. Please try again.