taps 0.2.24 → 0.2.25

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ begin
11
11
  s.add_dependency 'sinatra', '= 0.9.2'
12
12
  s.add_dependency 'activerecord', '= 2.2.2'
13
13
  s.add_dependency 'thor', '= 0.9.9'
14
- s.add_dependency 'rest-client', '~> 1.2.0'
14
+ s.add_dependency 'rest-client', '~> 1.3.0'
15
15
  s.add_dependency 'sequel', '>= 3.0.0', '< 3.1.0'
16
16
  s.add_dependency 'sqlite3-ruby', '~> 1.2.0'
17
17
 
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 2
4
- :patch: 24
4
+ :patch: 25
data/bin/taps CHANGED
@@ -3,7 +3,7 @@
3
3
  require 'rubygems'
4
4
  gem 'activerecord', '= 2.2.2'
5
5
  gem 'thor', '= 0.9.9'
6
- gem 'rest-client', '~> 1.2.0'
6
+ gem 'rest-client', '~> 1.3.0'
7
7
  gem 'sinatra', '= 0.9.2'
8
8
  gem 'sequel', '>= 3.0.0', '< 3.1.0'
9
9
  gem 'sqlite3-ruby', '~> 1.2.0'
@@ -1,7 +1,8 @@
1
1
  require 'thor'
2
+ require 'tempfile'
2
3
  require File.dirname(__FILE__) + '/config'
3
4
 
4
- Taps::Config.taps_database_url = ENV['TAPS_DATABASE_URL'] || 'sqlite://taps.db'
5
+ Taps::Config.taps_database_url = ENV['TAPS_DATABASE_URL'] || "sqlite://#{Tempfile.new('taps.db').path}"
5
6
 
6
7
  module Taps
7
8
  class Cli < Thor
@@ -79,7 +79,7 @@ class ClientSession
79
79
  rescue RestClient::Exception => e
80
80
  if e.respond_to?(:response)
81
81
  puts "!!! Caught Server Exception"
82
- puts "#{e.response.body}"
82
+ puts "#{e.response}"
83
83
  exit(1)
84
84
  else
85
85
  raise
@@ -2,6 +2,7 @@ require 'rubygems'
2
2
  require 'bacon'
3
3
  require 'mocha'
4
4
  require 'rack/test'
5
+ require 'tempfile'
5
6
 
6
7
  class Bacon::Context
7
8
  include Mocha::Standalone
@@ -19,5 +20,5 @@ class Bacon::Context
19
20
  end
20
21
 
21
22
  require File.dirname(__FILE__) + '/../lib/taps/config'
22
- Taps::Config.taps_database_url = 'sqlite://test.db'
23
+ Taps::Config.taps_database_url = "sqlite://#{Tempfile.new('test.db').path}"
23
24
  Sequel.connect(Taps::Config.taps_database_url)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.24
4
+ version: 0.2.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Chimal, Jr.
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-02-04 00:00:00 -08:00
13
+ date: 2010-02-11 00:00:00 -08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -51,7 +51,7 @@ dependencies:
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 1.2.0
54
+ version: 1.3.0
55
55
  version:
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: sequel
@@ -144,5 +144,5 @@ test_files:
144
144
  - spec/schema_spec.rb
145
145
  - spec/client_session_spec.rb
146
146
  - spec/utils_spec.rb
147
- - spec/base.rb
148
147
  - spec/server_spec.rb
148
+ - spec/base.rb