sirportly 1.2.1 → 1.2.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.
@@ -27,7 +27,7 @@ require 'sirportly/data_objects/ticket_update'
27
27
  require 'sirportly/data_objects/user'
28
28
 
29
29
  module Sirportly
30
- VERSION = '1.2.1'
30
+ VERSION = '1.2.2'
31
31
 
32
32
  class << self
33
33
 
@@ -36,6 +36,10 @@ module Sirportly
36
36
  ## tokens.
37
37
  attr_accessor :application
38
38
 
39
+ ## Specifies whether or not to execute rules when running API calls. By default,
40
+ ## all rules will be run. Set to false to stop execution.
41
+ attr_accessor :execute_rules
42
+
39
43
  ## Allow the domain to be changed
40
44
  attr_writer :domain
41
45
 
@@ -30,6 +30,7 @@ module Sirportly
30
30
  http_request.initialize_http_header({"User-Agent" => "SirportlyRubyClient/#{Sirportly::VERSION}"})
31
31
  http_request.add_field("X-Auth-Token", @client.token)
32
32
  http_request.add_field("X-Auth-Secret", @client.secret)
33
+ http_request.add_field("X-Sirportly-Rules", "disabled") if Sirportly.execute_rules == false
33
34
 
34
35
  if Sirportly.application
35
36
  http_request.add_field("X-Auth-Application", Sirportly.application)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sirportly
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-26 00:00:00.000000000Z
12
+ date: 2012-11-27 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: A Ruby library for interacting with the Sirportly API.
15
15
  email: adam@atechmedia.com