Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build #186

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions .travis.yml
@@ -1,12 +1,13 @@
sudo: false
language: ruby
before_script:
- mysql -e 'create database rla_test;'
- psql -c 'create database rla_test;' -U postgres
script: bundle exec rake
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- "2.0"
- "2.1"
- "2.2"
- ruby-head
- jruby-19mode
- jruby-head
Expand Down
1 change: 1 addition & 0 deletions lib/request_log_analyzer/tracker/timespan.rb
Expand Up @@ -45,6 +45,7 @@ def last_timestamp

# Difference between last and first timestamp.
def timespan
raise StandardError, "No requests tracked yet, cannot calculate timestamp" if @first == 99_999_999_999_999 && @last == 0
last_timestamp - first_timestamp
end

Expand Down
2 changes: 1 addition & 1 deletion request-log-analyzer.gemspec
Expand Up @@ -43,7 +43,7 @@ Gem::Specification.new do |gem|
gem.add_development_dependency('activerecord-jdbcpostgresql-adapter')
else
gem.add_development_dependency('sqlite3')
gem.add_development_dependency('mysql2')
gem.add_development_dependency('mysql2', '~> 0.3.10')
gem.add_development_dependency('pg')
end

Expand Down
2 changes: 1 addition & 1 deletion spec/unit/tracker/timespan_tracker_spec.rb
Expand Up @@ -37,7 +37,7 @@
end

it 'should raise an error when no timestamp is set' do
lambda { @tracker.timespan }.should raise_error
lambda { @tracker.timespan }.should raise_error(StandardError)
end
end

Expand Down