taps 0.2.22 → 0.2.23

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.0.1', '< 1.1.0'
14
+ s.add_dependency 'rest-client', '>= 1.2.0', '< 2.0.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
 
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 22
3
- :major: 0
4
2
  :minor: 2
3
+ :patch: 23
4
+ :major: 0
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.0.1', '< 1.1.0'
6
+ gem 'rest-client', '>= 1.2.0', '<= 2.0.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'
data/spec/base.rb CHANGED
@@ -1,9 +1,11 @@
1
1
  require 'rubygems'
2
2
  require 'bacon'
3
3
  require 'mocha'
4
+ require 'rack/test'
4
5
 
5
6
  class Bacon::Context
6
7
  include Mocha::Standalone
8
+ include Rack::Test::Methods
7
9
 
8
10
  alias_method :old_it, :it
9
11
  def it(description)
data/spec/server_spec.rb CHANGED
@@ -1,12 +1,14 @@
1
1
  require File.dirname(__FILE__) + '/base'
2
- require 'sinatra'
3
- require 'sinatra/test/bacon'
4
2
 
5
3
  require File.dirname(__FILE__) + '/../lib/taps/server'
6
4
 
7
5
  require 'pp'
8
6
 
9
7
  describe Taps::Server do
8
+ def app
9
+ Taps::Server.new
10
+ end
11
+
10
12
  before do
11
13
  Taps::Config.login = 'taps'
12
14
  Taps::Config.password = 'tpass'
@@ -17,17 +19,17 @@ describe Taps::Server do
17
19
 
18
20
  it "asks for http basic authentication" do
19
21
  get '/'
20
- status.should == 401
22
+ last_response.status.should == 401
21
23
  end
22
24
 
23
25
  it "verifies the client taps version" do
24
26
  get('/', { }, { 'HTTP_AUTHORIZATION' => @auth_header, 'HTTP_TAPS_VERSION' => Taps.compatible_version })
25
- status.should == 200
27
+ last_response.status.should == 200
26
28
  end
27
29
 
28
30
  it "yells loudly if the client taps version doesn't match" do
29
31
  get('/', { }, { 'HTTP_AUTHORIZATION' => @auth_header, 'HTTP_TAPS_VERSION' => '0.0.1' })
30
- status.should == 417
32
+ last_response.status.should == 417
31
33
  end
32
34
  end
33
35
 
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.22
4
+ version: 0.2.23
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: 2009-11-24 00:00:00 -08:00
13
+ date: 2010-01-07 00:00:00 -08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -51,10 +51,10 @@ dependencies:
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 1.0.1
54
+ version: 1.2.0
55
55
  - - <
56
56
  - !ruby/object:Gem::Version
57
- version: 1.1.0
57
+ version: 2.0.0
58
58
  version:
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: sequel
@@ -144,8 +144,8 @@ signing_key:
144
144
  specification_version: 3
145
145
  summary: simple database import/export app
146
146
  test_files:
147
- - spec/base.rb
148
147
  - spec/schema_spec.rb
149
- - spec/server_spec.rb
150
148
  - spec/client_session_spec.rb
151
149
  - spec/utils_spec.rb
150
+ - spec/base.rb
151
+ - spec/server_spec.rb