Skip to content

Commit

Permalink
Update to make it run on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Sutto committed Apr 5, 2012
1 parent e2da111 commit a39945b
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 79 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -12,3 +12,4 @@ pkg
*.gem
coverage
metrics/*
Gemfile.lock
17 changes: 17 additions & 0 deletions .travis.yml
@@ -0,0 +1,17 @@
---
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
# - jruby-18mode
# - jruby-19mode
- ree
env:
- RAILS_VERSION=""
- RAILS_VERSION="~>3.2.0"
- RAILS_VERSION="~>3.1.0"
- RAILS_VERSION="~>3.0.0"
notifications:
email:
- sutto@sutto.net
9 changes: 9 additions & 0 deletions Gemfile
@@ -1,3 +1,12 @@
source :gemcutter

# Allow testing multiple versions with Travis.
rails_version = ENV['RAILS_VERSION']
if rails_version && rails_version.length > 0
puts "Testing Rails Version = #{rails_version}"
# Override the specific versions
gem 'activesupport', rails_version
gem 'activerecord', rails_version
end

gemspec
58 changes: 0 additions & 58 deletions Gemfile.lock

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# Slugged #
# Slugged [![Build Status](https://secure.travis-ci.org/sutto/slugged.png?branch=master)](http://travis-ci.org/sutto/slugged)

## About ###

Expand Down
4 changes: 2 additions & 2 deletions lib/slugged/version.rb
@@ -1,8 +1,8 @@
module Slugged
module Version
MAJOR = 1
MINOR = 0
PATCH = 1
MINOR = 1
PATCH = 0
STRING = [MAJOR, MINOR, PATCH].join(".")
end

Expand Down
31 changes: 13 additions & 18 deletions slugged.gemspec
Expand Up @@ -4,25 +4,20 @@ $:.push File.expand_path("../lib", __FILE__)
require 'slugged/version'

Gem::Specification.new do |s|
s.name = %q{slugged}
s.version = Slugged::VERSION

s.name = "slugged"
s.version = Slugged::VERSION
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Darcy Laycock"]
s.date = %q{2011-01-01}
s.description = %q{Super simple slugs for ActiveRecord 3.0 and higher, with support for slug history}
s.email = %q{sutto@sutto.net}
s.extra_rdoc_files = [
"LICENSE",
"README.md"
]
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.require_paths = ["lib"]

s.homepage = %q{http://github.com/Sutto/slugged}
s.rdoc_options = ["--charset=UTF-8"]
s.summary = %q{Super simple slugs for ActiveRecord 3.0 and higher, with support for slug history}
s.authors = ["Darcy Laycock"]
s.date = %q{2011-01-01}
s.description = %q{Super simple slugs for ActiveRecord 3.0 and higher, with support for slug history}
s.email = %q{sutto@sutto.net}
s.extra_rdoc_files = ["LICENSE", "README.md"]
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.require_paths = ["lib"]
s.homepage = %q{http://github.com/Sutto/slugged}
s.rdoc_options = ["--charset=UTF-8"]
s.summary = %q{Super simple slugs for ActiveRecord 3.0 and higher, with support for slug history}

s.add_runtime_dependency "activerecord", "~> 3.0"
s.add_runtime_dependency "activesupport", "~> 3.0"
Expand Down

0 comments on commit a39945b

Please sign in to comment.