kynetx_am_api 0.1.24 → 0.1.25

Sign up to get free protection for your applications and to get access to all the features.
data/lib/kynetx_am_api.rb CHANGED
@@ -26,8 +26,8 @@ KRL
26
26
  DEFAULT_DISPATCH = <<-KRL
27
27
  dispatch {
28
28
  // Some example dispatch domains
29
- // www.exmple.com
30
- // other.example.com
29
+ // domain "exmple.com"
30
+ // domain "other.example.com"
31
31
  }
32
32
  KRL
33
33
 
@@ -209,7 +209,7 @@ module KynetxAmApi
209
209
 
210
210
  def set_krl(krl)
211
211
  # ensure that the ruleset_id is correct.
212
- krl.gsub!(/ruleset.*?\{/m, "ruleset #{@application_id} {")
212
+ krl.gsub!(/^ruleset.*?\{/m, "ruleset #{@application_id} {")
213
213
  puts "NEW KRL: #{krl}" if $DEBUG
214
214
  response = @api.post_app_source(@application_id, krl, "krl")
215
215
  response = JSON.parse(response)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 24
9
- version: 0.1.24
8
+ - 25
9
+ version: 0.1.25
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Farmer, Cid Dennis
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-07 00:00:00 -06:00
17
+ date: 2010-05-19 00:00:00 -06:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -65,8 +65,8 @@ dependencies:
65
65
  version: "0"
66
66
  type: :development
67
67
  version_requirements: *id004
68
- description: " Using this gem you can access the Kynetx Application API. This api allows developers a way\n to create,update, delete rulesets. This gem also helps with the required OAuth communcations with\n the api server.\n"
69
- email: cid@kynetx.com
68
+ description: " Using this gem you can access the Kynetx Application API. This api allows developers a way\n to create, update, delete rulesets. This gem also helps with the required OAuth communcations with\n the api server.\n"
69
+ email: oss@kynetx.com
70
70
  executables: []
71
71
 
72
72
  extensions: []
@@ -84,7 +84,7 @@ files:
84
84
  - Rakefile
85
85
  - LICENSE
86
86
  has_rdoc: true
87
- homepage: http://www.kynetx.com
87
+ homepage: http://github.com/kynetx/Kynetx-Application-Manager-API
88
88
  licenses: []
89
89
 
90
90
  post_install_message: