taps 0.2.22 → 0.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/VERSION.yml +2 -2
- data/bin/taps +1 -1
- data/spec/base.rb +2 -0
- data/spec/server_spec.rb +7 -5
- metadata +6 -6
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
|
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
data/bin/taps
CHANGED
data/spec/base.rb
CHANGED
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.
|
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:
|
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
|
54
|
+
version: 1.2.0
|
55
55
|
- - <
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
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
|