Skip to content
Browse files

Update to make it run on travis

  • Loading branch information...
1 parent e2da111 commit a39945b2d0fc496e415e1e138ca9fcd682811441 @Sutto committed Apr 5, 2012
Showing with 43 additions and 79 deletions.
  1. +1 −0 .gitignore
  2. +17 −0 .travis.yml
  3. +9 −0 Gemfile
  4. +0 −58 Gemfile.lock
  5. +1 −1 README.md
  6. +2 −2 lib/slugged/version.rb
  7. +13 −18 slugged.gemspec
View
1 .gitignore
@@ -12,3 +12,4 @@ pkg
*.gem
coverage
metrics/*
+Gemfile.lock
View
17 .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
View
9 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
View
58 Gemfile.lock
@@ -1,58 +0,0 @@
-PATH
- remote: .
- specs:
- slugged (1.0.1)
- activerecord (~> 3.0)
- activesupport (~> 3.0)
- uuid
-
-GEM
- remote: http://rubygems.org/
- specs:
- activemodel (3.2.3)
- activesupport (= 3.2.3)
- builder (~> 3.0.0)
- activerecord (3.2.3)
- activemodel (= 3.2.3)
- activesupport (= 3.2.3)
- arel (~> 3.0.2)
- tzinfo (~> 0.3.29)
- activesupport (3.2.3)
- i18n (~> 0.6)
- multi_json (~> 1.0)
- arel (3.0.2)
- builder (3.0.0)
- i18n (0.6.0)
- json (1.6.6)
- macaddr (1.5.0)
- systemu (>= 2.4.0)
- multi_json (1.2.0)
- rake (0.9.2.2)
- rdoc (3.12)
- json (~> 1.4)
- redgreen (1.2.2)
- reversible_data (0.1.0)
- shoulda (3.0.1)
- shoulda-context (~> 1.0.0)
- shoulda-matchers (~> 1.0.0)
- shoulda-context (1.0.0)
- shoulda-matchers (1.0.0)
- sqlite3 (1.3.5)
- sqlite3-ruby (1.3.3)
- sqlite3 (>= 1.3.3)
- systemu (2.5.0)
- tzinfo (0.3.32)
- uuid (2.3.5)
- macaddr (~> 1.0)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- rake
- rdoc
- redgreen
- reversible_data
- shoulda
- slugged!
- sqlite3-ruby
View
2 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 ###
View
4 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
View
31 slugged.gemspec
@@ -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"

0 comments on commit a39945b

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