conjur-asset-proxy-api 0.0.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e71860f00dc95cf7ff5ae84eebe69de804645f2b
4
- data.tar.gz: 5296d0ece9076f58dc00fe9a8456d0824fa2dc8d
3
+ metadata.gz: 0a43051728b6a2b7842290083963ca7488815ab6
4
+ data.tar.gz: a96bef5fa6cb1ec8e83f505820ec11fe92ee739d
5
5
  SHA512:
6
- metadata.gz: 279fefd02e9d88162a156a2874f7c99fd568d38e711a8e3a5ec0bfe563a6a811673444b8b5e6828f7f135369918ca330d92425c55d705ae4a82c8e604e26800b
7
- data.tar.gz: fa2bf51219d058f70275b8512daf9aa690bfdb7c27d698762164f955d77ba82b465439281474e7ad23b48b2cfd293c278009efe32a99541fd62204375ce61f71
6
+ metadata.gz: 109fd05ecdf3ff633ece68788ee24037e3c302124b42ee66b96498fe9c40acb913c0138d890a2832cdc58a997539a416d239dd9b96d2079502be88ac3921f898
7
+ data.tar.gz: ae1bfbb975bdf39feca8dcfee3c863e17c62ffba025723378d7b309fe5a7681c24dc2bf2b396f591e35a45233a1c9ad8f6c699729e2c0b4b84e28c15c98789aa
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <projectDescription>
3
+ <name>conjur-asset-proxy</name>
4
+ <comment></comment>
5
+ <projects>
6
+ </projects>
7
+ <buildSpec>
8
+ <buildCommand>
9
+ <name>com.aptana.ide.core.unifiedBuilder</name>
10
+ <arguments>
11
+ </arguments>
12
+ </buildCommand>
13
+ </buildSpec>
14
+ <natures>
15
+ <nature>com.aptana.ruby.core.rubynature</nature>
16
+ <nature>com.aptana.projects.webnature</nature>
17
+ </natures>
18
+ </projectDescription>
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ #ruby-gemset=conjur-asset-proxy
4
+
3
5
  # Specify your gem's dependencies in conjur-asset-proxy.gemspec
4
6
  gemspec
@@ -17,6 +17,8 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
+ spec.add_dependency "gli", "~> 2.12.0"
21
+
20
22
  spec.add_runtime_dependency "conjur-cli", "~> 4.12"
21
23
  spec.add_runtime_dependency "rack", "~> 1.5"
22
24
  spec.add_runtime_dependency "rack-streaming-proxy", "~> 2.0"
@@ -21,7 +21,7 @@
21
21
  module Conjur
22
22
  module Asset
23
23
  module Proxy
24
- VERSION = "0.0.2"
24
+ VERSION = "0.2.1"
25
25
  end
26
26
  end
27
27
  end
@@ -38,8 +38,8 @@ module Conjur
38
38
  proxy.call env
39
39
  end
40
40
 
41
- def start port: 8080, address: '127.0.0.1'
42
- Rack::Server.start app: self, Port: port, Host: address
41
+ def start options
42
+ Rack::Server.start app: self, Port: options[:port] || 8080, Host: options[:address] || '127.0.0.1'
43
43
  end
44
44
  end
45
45
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjur-asset-proxy-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafał Rzepecki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-06 00:00:00.000000000 Z
11
+ date: 2014-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: gli
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 2.12.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 2.12.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: conjur-cli
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -116,13 +130,13 @@ extensions: []
116
130
  extra_rdoc_files: []
117
131
  files:
118
132
  - ".gitignore"
133
+ - ".project"
119
134
  - Gemfile
120
135
  - LICENSE.txt
121
136
  - README.md
122
137
  - Rakefile
123
138
  - conjur-asset-proxy.gemspec
124
139
  - lib/conjur-asset-proxy.rb
125
- - lib/conjur/asset/proxy.rb
126
140
  - lib/conjur/asset/proxy/version.rb
127
141
  - lib/conjur/command/proxy.rb
128
142
  - lib/conjur/proxy.rb
@@ -1,29 +0,0 @@
1
- #
2
- # Copyright (C) 2014 Conjur Inc.
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining a copy of
5
- # this software and associated documentation files (the "Software"), to deal in
6
- # the Software without restriction, including without limitation the rights to
7
- # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
- # the Software, and to permit persons to whom the Software is furnished to do so,
9
- # subject to the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be included in all
12
- # copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
- # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
- # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
- # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
- # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
- #
21
- require "conjur/asset/proxy/version"
22
-
23
- module Conjur
24
- module Asset
25
- module Proxy
26
- # Your code goes here...
27
- end
28
- end
29
- end