conjur-api 2.1.6 → 2.1.7

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.
@@ -1,5 +1,5 @@
1
1
  module Conjur
2
2
  class API
3
- VERSION = "2.1.6"
3
+ VERSION = "2.1.7"
4
4
  end
5
5
  end
data/lib/conjur/base.rb CHANGED
@@ -25,7 +25,9 @@ module Conjur
25
25
  [ id['account'], 'roles', tokens[0], tokens[1..-1].join(':') ]
26
26
  elsif id.is_a?(String)
27
27
  paths = path_escape(id).split(':')
28
- raise "Expecting account:kind:id in role #{id}" unless paths.size >= 3
28
+ if paths.size == 2
29
+ paths.unshift Conjur.account
30
+ end
29
31
  [ paths[0], 'roles', paths[1], paths[2..-1].join(':') ]
30
32
  else
31
33
  raise "Unexpected class #{id.class} for #{id}"
@@ -4,7 +4,7 @@ module Conjur
4
4
 
5
5
  def add_value value
6
6
  log do |logger|
7
- logger << "Adding #{value} to variable #{id}"
7
+ logger << "Adding a value to variable #{id}"
8
8
  end
9
9
  invalidate do
10
10
  self['values'].post value: value
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjur-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.6
4
+ version: 2.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-04-30 00:00:00.000000000 Z
13
+ date: 2013-05-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -206,7 +206,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
206
206
  version: '0'
207
207
  segments:
208
208
  - 0
209
- hash: 294077507062460443
209
+ hash: -1531307827213414135
210
210
  required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  none: false
212
212
  requirements:
@@ -215,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
215
  version: '0'
216
216
  segments:
217
217
  - 0
218
- hash: 294077507062460443
218
+ hash: -1531307827213414135
219
219
  requirements: []
220
220
  rubyforge_project:
221
221
  rubygems_version: 1.8.24