policymap_wrap 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/policymap_wrap/client.rb +6 -6
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -26,7 +26,7 @@ module PolicyMap
26
26
  class << self
27
27
 
28
28
  def set_credentials(client_id, username, password)
29
- @@default_options = { :id => client_id, :ty => 'data', :f => 'j' }
29
+ @@default_options = { :id => client_id, :ty => 'data', :f => 'j', :af => '1' }
30
30
  @@connection = Connection.new(client_id, username, password)
31
31
  @@connection.debug = @@debug
32
32
  true
@@ -111,11 +111,6 @@ module PolicyMap
111
111
  result = get(Endpoint.endpoint_url, options)
112
112
  HashUtils.recursively_symbolize_keys(result["ind"])
113
113
  end
114
-
115
- def get(endpoint, data=nil)
116
- raise NoConnectionEstablished if @@connection.nil?
117
- @@connection.get endpoint, data
118
- end
119
114
 
120
115
  def containment_search(*args)
121
116
  default_options = @@default_options
@@ -135,6 +130,11 @@ module PolicyMap
135
130
  result = get(Endpoint.endpoint_url, options)
136
131
  result['cnt'].first
137
132
  end
133
+
134
+ def get(endpoint, data=nil)
135
+ raise NoConnectionEstablished if @@connection.nil?
136
+ @@connection.get endpoint, data
137
+ end
138
138
 
139
139
  private
140
140
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: policymap_wrap
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 3
10
- version: 0.3.3
9
+ - 4
10
+ version: 0.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mauricio Gomes
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-18 00:00:00 -04:00
18
+ date: 2010-10-29 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency