conjur-asset-environment-api 0.2.4 → 0.2.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f147fb8c7c5ea1d88ca1e857d85b311e500fb9a
4
- data.tar.gz: 68f1dd33e5a68ab3f5fe78c7f6b682b1c50f88c1
3
+ metadata.gz: 8009c2fd407865150b195ad5d41ff866fb377c23
4
+ data.tar.gz: 044843145b1be13e21facd94a9aabf40f8e6f70f
5
5
  SHA512:
6
- metadata.gz: 0e35a3e3c2e2a320be19511084d5e430089ef4d04e5726ae4eddfc4e96b9e9f110f92059c3f738b3713d8546ed7838577dc7ef23fdcb2ee7a2d4f9cbc9ba6f0a
7
- data.tar.gz: a2182aab614893b42b8e7a1d88d6a9eb860bb501f8c7de1e2d222a873a6487e66ba1e096f08b0f3f5b5b57bd5a250251d1b35ecd7c3be3721ef15087d749cdf0
6
+ metadata.gz: 7c113be320f49eb8e46f8c521f6923f080c92c3209a001837f1ae41b49072c1726fc2a37ba8ab22b546e953622e700d71becf0615caf0217c9b006d8af5d7817
7
+ data.tar.gz: d51aa2c8ade610693fc899749c45614c6281e7d14520fedebb10c03f4af298836ef67c1576520b734e65ecb234734e25cfc051ff942343dd8228d84bdd8c8aa2
@@ -1,7 +1,7 @@
1
1
  module Conjur
2
2
  module Asset
3
3
  module Environment
4
- VERSION = "0.2.4"
4
+ VERSION = "0.2.6"
5
5
  end
6
6
  end
7
7
  end
@@ -3,15 +3,15 @@ require 'conjur/environment'
3
3
  module Conjur
4
4
  class API
5
5
  def create_environment(id, options = {})
6
- standard_create Conjur::Env::API.host, :environment, id, options
6
+ standard_create Conjur::API.environment_asset_host, :environment, id, options
7
7
  end
8
8
 
9
9
  def environments(options = {})
10
- standard_list Conjur::Env::API.host, :environment, options
10
+ standard_list Conjur::API.environment_asset_host, :environment, options
11
11
  end
12
12
 
13
13
  def environment id
14
- standard_show Conjur::Env::API.host, :environment, id
14
+ standard_show Conjur::API.environment_asset_host, :environment, id
15
15
  end
16
16
  end
17
17
  end
@@ -1,11 +1,7 @@
1
- module Conjur
2
- module Env
3
- class API < Conjur::API
4
- class << self
5
- def host
6
- ENV['CONJUR_ENVIRONMENT_URL'] || Conjur::Core::API.host
7
- end
8
- end
1
+ class Conjur::API
2
+ class << self
3
+ def environment_asset_host
4
+ ENV["CONJUR_ENVIRONMENT_ASSET_URL"] || Conjur::Core::API.host
9
5
  end
10
6
  end
11
7
  end
@@ -16,7 +16,7 @@ module Conjur
16
16
  logger << "Removing variable #{name} from enviroment #{id}"
17
17
  end
18
18
  invalidate do
19
- RestClient::Resource.new(self["variables/#{path_escape name}"].url, self.options).delete
19
+ RestClient::Resource.new(self["variables/#{fully_escape name}"].url, self.options).delete
20
20
  end
21
21
  end
22
22
 
@@ -29,7 +29,7 @@ module Conjur
29
29
  def variables
30
30
  {}.tap do |result|
31
31
  attributes['variables'].inject(result) do |memo,v|
32
- memo[v[0]] = Conjur::Variable.new(Conjur::Core::API.host, self.options)["variables/#{path_escape v[1]}"]
32
+ memo[v[0]] = Conjur::Variable.new(Conjur::Core::API.host, self.options)["variables/#{fully_escape v[1]}"]
33
33
  memo
34
34
  end
35
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjur-asset-environment-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Gilpin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-17 00:00:00.000000000 Z
11
+ date: 2013-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: conjur-api