conjur-asset-proxy 0.4.1 → 0.5.0

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: 22cb7fc4a8a4c3d9683e1c4492a23e6d5538f4b2
4
- data.tar.gz: 1e6ca5fafafc2bdfd277a4f4eaf27b1dd220df3c
3
+ metadata.gz: 2dbe27b9c41faa0fa5061346f8fd058902785795
4
+ data.tar.gz: 4950bf397cec00ea6962f80c45c36496831e45bc
5
5
  SHA512:
6
- metadata.gz: fef2b41dbbe72ad4cc70df1336768d48d18d2bc1caafb519ac95d0dbf1b0b2d01195463dacf6d9efde344ca68d092c7db9a7bf1bac257cb6f565d1618940cd28
7
- data.tar.gz: eb4ee9ce72e0b66040c85164a2605e32312b89e1187b027b1fe4ac7613ead21e29a7ed63cd286bfdf4af6ae1bd9f09d21e2f08bba7f9145fb45e1b8cfe13134f
6
+ metadata.gz: d757c08524294a263cd2f8489590bd13171c92c50dd9e757c0bff1717951d3d06a0d7d6805c1b63734a7498a69a5b05af37a2442d1aee4ca0ef794df80b9387a
7
+ data.tar.gz: 597b51790a44ef67f20a528eb45fecae79d70b266c34f382804f8c7eb26fd32e4cb6bca7eace02d2b7226d60685740562942052b0079c642ca1f067715f2d36b
@@ -21,7 +21,7 @@
21
21
  module Conjur
22
22
  module Asset
23
23
  module Proxy
24
- VERSION = "0.4.1"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -59,8 +59,8 @@ module Conjur
59
59
 
60
60
  ret
61
61
  end
62
-
63
- def start options
62
+
63
+ def configure options = {}
64
64
  if options[:insecure]
65
65
  Net::HTTP.class_eval do
66
66
  def use_ssl=(flag)
@@ -87,8 +87,16 @@ module Conjur
87
87
  @piper.parent { parent }
88
88
  end
89
89
  end
90
+ end
91
+
92
+ def start options = {}
93
+ configure options
94
+
95
+ rack_options = { app: self }
96
+ rack_options[:Port] = options[:port] if options[:port]
97
+ rack_options[:Host] = options[:address] if options[:address]
90
98
 
91
- Rack::Server.start app: self, Port: options[:port] || 8080, Host: options[:address] || '127.0.0.1'
99
+ Rack::Server.start rack_options
92
100
  end
93
101
  end
94
102
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjur-asset-proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafał Rzepecki
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-27 00:00:00.000000000 Z
12
+ date: 2015-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gli