taps2 0.6.1 → 0.6.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f33ad00f7467f12aeb539e59d454daa830a769a2
4
- data.tar.gz: ebc6a6ddd76245ad458cce1ecfcbfa1196c57389
3
+ metadata.gz: 3269014543ce71626233b86653548e88ffb2203d
4
+ data.tar.gz: '099399d46e0c8cf8836ccfa3e149f0c0515ddab8'
5
5
  SHA512:
6
- metadata.gz: 4c9687e6406aa14c42712546ade68b9ad4083b22b4d64431be2ce97d327abe52a2588cc1f6fcbeae297a3451c8c2b56571e62d85477161f20e6b24f813815514
7
- data.tar.gz: 2c696448904b2e53f3bf0512415454a83eea30ee8e0c14e1c2d467ecbae6fbe744ff81c6749269b7350f6e6f86e7846bf9905ef969be10d8cf16d8aab202e504
6
+ metadata.gz: b036656d30d8d062c5ccda4e885822c48a09608655481d930beea6002f02f994df05e85d85227aa3c1be0d9039681bf1ef1e139b214133f5f7a66f451abfb14d
7
+ data.tar.gz: ed19000dcb306a530a1bc771466aa8fb9e71bb07645d0d222ef37126316660d968c8a6639380bd0b2568d99dac20a9a6fce4ecc47e874bf4820f4c4692c6f810
@@ -66,7 +66,7 @@ module Taps
66
66
  end
67
67
 
68
68
  def version
69
- puts Taps.version
69
+ puts Taps::Version.current
70
70
  end
71
71
 
72
72
  def help
@@ -162,7 +162,7 @@ module Taps
162
162
  end
163
163
 
164
164
  def http_headers(extra = {})
165
- base = { taps_version: Taps.version }
165
+ base = { taps_version: Taps::Version.current }
166
166
  base[:accept_encoding] = if compression_disabled?
167
167
  ''
168
168
  else
@@ -2,7 +2,7 @@ module Taps
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 6
5
- PATCH = 1
5
+ PATCH = 2
6
6
  BUILD = 0
7
7
 
8
8
  def self.current
@@ -31,11 +31,11 @@ describe Taps::Operation do
31
31
  end
32
32
 
33
33
  it 'returns http headers with compression enabled' do
34
- @op.http_headers.should == { taps_version: Taps.version, accept_encoding: 'gzip, deflate' }
34
+ @op.http_headers.should == { taps_version: Taps::Version.current, accept_encoding: 'gzip, deflate' }
35
35
  end
36
36
 
37
37
  it 'returns http headers with compression disabled' do
38
38
  @op.stubs(:compression_disabled?).returns(true)
39
- @op.http_headers.should == { taps_version: Taps.version, accept_encoding: '' }
39
+ @op.http_headers.should == { taps_version: Taps::Version.current, accept_encoding: '' }
40
40
  end
41
41
  end
@@ -22,7 +22,7 @@ describe Taps::Server do
22
22
  end
23
23
 
24
24
  it 'verifies the client taps version' do
25
- get('/', {}, 'HTTP_AUTHORIZATION' => @auth_header, 'HTTP_TAPS_VERSION' => Taps.version)
25
+ get('/', {}, 'HTTP_AUTHORIZATION' => @auth_header, 'HTTP_TAPS_VERSION' => Taps::Version.current)
26
26
  last_response.status.should == 200
27
27
  end
28
28
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taps2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Chimal, Jr.