zeta 0.7.4 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +8 -2
- data/README.md +1 -1
- data/lib/zeta.rb +4 -1
- data/lib/zeta/local_or_remote_file.rb +3 -3
- data/lib/zeta/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bb0b15ff465a367dd3a3f41e6d01df8c20e9ce6
|
4
|
+
data.tar.gz: 6bbee27670bc83554c7fba07c1a700b3b4004b8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5fa86b752b1bccbee4ab73a22fc20d575a76c2bd0e07b75f9789185cd33b9c9c4d226a0ea334db67b5d4e23d98dbf2681c8c6bfd45628397e688790aaac6530
|
7
|
+
data.tar.gz: 11608be932e00e42a4a0f47a61e5050969e6bffd7ab91fac446d4805a1797bb8d3609835e7e353ccfc9a51b786099dca2e5a685f4b2209d6a86543a09c968f68
|
data/CHANGELOG.markdown
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# 0.9.0
|
2
|
+
- change http basic auth env vars to ZETA_HTTP_USER and ZETA_HTTP_PASSWORD
|
3
|
+
|
4
|
+
# 0.8.0
|
5
|
+
- the Zeta singleton will update its contracts after it's initialized
|
6
|
+
|
1
7
|
# 0.7.4
|
2
8
|
- hint to --trace option on error
|
3
9
|
- fix cache dir cleanup on refetch
|
@@ -6,7 +12,7 @@
|
|
6
12
|
- fix https://github.com/moviepilot/zeta/issues/13
|
7
13
|
|
8
14
|
# 0.7.2
|
9
|
-
- broken 😱
|
15
|
+
- broken 😱
|
10
16
|
|
11
17
|
# 0.7.1
|
12
18
|
- remove require 'pry'
|
@@ -40,7 +46,7 @@
|
|
40
46
|
# 0.3.0 (29-Oct-15)
|
41
47
|
- forward published/consume object validation method to the current service in the infrastructure
|
42
48
|
- forward wrapped consume object creation to the current service
|
43
|
-
- use
|
49
|
+
- use ZETA_HTTP_USER and ZETA_HTTP_PASSWORD instead of GITHUB_USER and GITHUB_TOKEN
|
44
50
|
|
45
51
|
# 0.2.5 (28-Oct-15)
|
46
52
|
- better CLI help
|
data/README.md
CHANGED
@@ -156,7 +156,7 @@ Whenever you add a service to the infrastructure, you just add it to this centra
|
|
156
156
|
|
157
157
|
### 3. Authentication
|
158
158
|
|
159
|
-
If your infrastruture configuration file is HTTP Basic auth protected, or in a private repository on github (that would be a good idea), make sure you `export
|
159
|
+
If your infrastruture configuration file is HTTP Basic auth protected, or in a private repository on github (that would be a good idea), make sure you `export ZETA_HTTP_USER=username` and `ZETA_HTTP_PASSWORD=secret` and *Zeta* will use that. If you host on github, then use your github username as `ZETA_HTTP_USER` and generate an API token to use as the `ZETA_HTTP_PASSWORD`.
|
160
160
|
|
161
161
|
### 4. Usage: Without ruby (CLI)
|
162
162
|
|
data/lib/zeta.rb
CHANGED
@@ -14,7 +14,10 @@ class Zeta
|
|
14
14
|
define_singleton_method method do |*args|
|
15
15
|
send_args = [method, args].flatten.compact
|
16
16
|
MUTEX.synchronize do
|
17
|
-
@singleton
|
17
|
+
unless @singleton
|
18
|
+
@singleton = new(verbose: true)
|
19
|
+
@singleton.update_contracts
|
20
|
+
end
|
18
21
|
@singleton.send(*send_args)
|
19
22
|
end
|
20
23
|
end
|
@@ -28,7 +28,7 @@ class Zeta::LocalOrRemoteFile
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.http_get(url, verbose)
|
31
|
-
masked_url = ENV['
|
31
|
+
masked_url = ENV['ZETA_HTTP_PASSWORD'].blank? ? url : url.sub(ENV['ZETA_HTTP_PASSWORD'], '***')
|
32
32
|
print "GET #{masked_url}... " if verbose
|
33
33
|
result = HTTParty.get url
|
34
34
|
raise "Error #{result.code}" unless result.code == 200
|
@@ -52,8 +52,8 @@ class Zeta::LocalOrRemoteFile
|
|
52
52
|
file = @options[:file]
|
53
53
|
|
54
54
|
uri = [branch, path, file].compact.join('/')
|
55
|
-
u = ENV['
|
56
|
-
p = ENV['
|
55
|
+
u = ENV['ZETA_HTTP_USER']
|
56
|
+
p = ENV['ZETA_HTTP_PASSWORD']
|
57
57
|
if p
|
58
58
|
"https://#{u}:#{p}@raw.githubusercontent.com/#{repo}/#{uri}"
|
59
59
|
else
|
data/lib/zeta/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zeta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jannis Hermanns
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|