Skip to content

Commit

Permalink
Add Travis and Gemnasium integration
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeltrix committed May 26, 2012
1 parent 50ab124 commit e6f3244
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 10 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
@@ -0,0 +1,7 @@
language: ruby
rvm:
- 1.8.7
- 1.9.3
before_script:
- mysql -e 'create database sortifiable;'
- psql -c 'create database sortifiable;' -U postgres
4 changes: 2 additions & 2 deletions Gemfile
@@ -1,6 +1,6 @@
source "http://rubygems.org"

gem 'rake', '~> 0.9.2'
gem 'rdoc', '~> 3.9.4'
gem 'rake', '>= 0.9.2'
gem 'rdoc', '>= 3.12'

gemspec
7 changes: 7 additions & 0 deletions README.md
@@ -1,6 +1,8 @@
Sortifiable
===========

[![Build Status][build]][travis] [![Dependency Status][depends]][gemnasium]

This gem provides an acts_as_list compatible capability for sorting
and reordering a number of objects in a list. The class that has this
specified needs to have a +position+ column defined as an integer on
Expand Down Expand Up @@ -41,3 +43,8 @@ Thanks to the following people for their contributions:
* Reinier de Lange

Copyright (c) 2011 Andrew White, released under the MIT license

[build]: https://secure.travis-ci.org/pixeltrix/sortifiable.png
[travis]: http://travis-ci.org/pixeltrix/sortifiable
[depends]: https://gemnasium.com/pixeltrix/sortifiable.png?travis
[gemnasium]: https://gemnasium.com/pixeltrix/sortifiable
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -3,7 +3,7 @@ require 'rdoc/task'
require "bundler/gem_tasks"

desc 'Default: run sortifiable unit tests.'
task :default => :test
task :default => "test:all"

desc 'Test the sortifiable gem.'
Rake::TestTask.new(:test) do |t|
Expand Down
1 change: 0 additions & 1 deletion sortifiable.gemspec
Expand Up @@ -37,7 +37,6 @@ EOF

s.add_dependency "activesupport", ">= 3.0"
s.add_dependency "activerecord", ">= 3.0"
s.add_development_dependency "bundler", ">= 1.0.18"
s.add_development_dependency "mysql", "~> 2.8.1"
s.add_development_dependency "mysql2", ">= 0.2.7"
s.add_development_dependency "pg", ">= 0.9.0"
Expand Down
3 changes: 1 addition & 2 deletions test/support/mysql.yml
@@ -1,5 +1,4 @@
adapter: mysql
database: sortifiable
username: sortifiable
host: 127.0.0.1
username: root
encoding: utf8
3 changes: 1 addition & 2 deletions test/support/mysql2.yml
@@ -1,5 +1,4 @@
adapter: mysql2
database: sortifiable
username: sortifiable
host: 127.0.0.1
username: root
encoding: utf8
3 changes: 1 addition & 2 deletions test/support/postgresql.yml
@@ -1,6 +1,5 @@
adapter: postgresql
database: sortifiable
username: sortifiable
host: 127.0.0.1
username: postgres
encoding: utf8
min_messages: warning

0 comments on commit e6f3244

Please sign in to comment.