From ec5f261e0dedf4350f47a1d4e8a9e35ab3386e21 Mon Sep 17 00:00:00 2001 From: Kevin Jalbert Date: Sat, 30 Mar 2013 15:07:23 -0400 Subject: [PATCH 1/2] Fix Travis CI builds (the specs fail, due to clone --depth=50) The specs depend on the `git log` by specifying a specific time range. Travis CI will limit the git clone to a depth of 50 commits, thus this causes some problems with our specs. An initial fix is to extend the depth on Travis CI. --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 47d86c2..dc59461 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,4 +13,6 @@ before_install: notifications: email: false +before_script: git pull -q --depth=1000000 + script: bundle exec rspec spec From c47886a218693a8c3e31b5411203b69655928cdc Mon Sep 17 00:00:00 2001 From: Kevin Jalbert Date: Sat, 30 Mar 2013 15:21:07 -0400 Subject: [PATCH 2/2] Remove version dependancies on charlock_holmes --- Gemfile | 2 +- git_statistics.gemspec | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 30b3b2e..98eb9cc 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,7 @@ source 'https://rubygems.org' gemspec -gem "charlock_holmes", "0.6.9.1" +gem "charlock_holmes" group :test do gem "simplecov" diff --git a/git_statistics.gemspec b/git_statistics.gemspec index e48db50..33dcff6 100644 --- a/git_statistics.gemspec +++ b/git_statistics.gemspec @@ -17,8 +17,8 @@ Gem::Specification.new do |gem| gem.required_ruby_version = '>= 1.9.1' gem.add_dependency('json') - gem.add_dependency('grit', '2.5.0') - gem.add_dependency('github-linguist', '2.4.0') + gem.add_dependency('grit') + gem.add_dependency('github-linguist') gem.add_development_dependency "rspec", "~> 2.12.0" gem.add_development_dependency "rake"