trumpet-trumpet 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -14,3 +14,7 @@ Then Install the gem:
14
14
  Also, feel free to grab the source:
15
15
 
16
16
  git clone git://github.com/trumpet/trumpet.git
17
+
18
+ = Use It
19
+
20
+
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 11
2
+ :patch: 12
3
3
  :major: 0
4
4
  :minor: 0
@@ -24,6 +24,9 @@ module Trumpet
24
24
  # HTTP 405 Error
25
25
  class MethodNotAllowed < StandardError; end
26
26
 
27
+ # HTTP 409 Error
28
+ class Conflict < StandardError; end
29
+
27
30
  # HTTP 500 Error
28
31
  class InternalServerError < StandardError; end
29
32
 
@@ -7,4 +7,8 @@ module Trumpet
7
7
  def self.set_server(uri, port=nil)
8
8
  Trumpet::Request.set_server(uri, port)
9
9
  end
10
+
11
+ def self.clear_credentials
12
+ Trumpet::Request.clear_credentials
13
+ end
10
14
  end
@@ -7,6 +7,10 @@ module Trumpet
7
7
  @@http_auth[:username] = username
8
8
  @@http_auth[:password] = password
9
9
  end
10
+
11
+ def self.clear_credentials
12
+ @@http_auth = {}
13
+ end
10
14
 
11
15
  def self.get(path, options={})
12
16
  do_request(Net::HTTP::Get, path, options)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trumpet-trumpet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Taras