zeta 0.7.4 → 0.9.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: ca76d162e2418f54207481fac9252e2cd88b4a23
4
- data.tar.gz: e1d8daaf169ecf6899cf462647424f5f410a3ef8
3
+ metadata.gz: 6bb0b15ff465a367dd3a3f41e6d01df8c20e9ce6
4
+ data.tar.gz: 6bbee27670bc83554c7fba07c1a700b3b4004b8e
5
5
  SHA512:
6
- metadata.gz: 1703dd43a13cc7408364fe2a5b7d34a7891b270459e5f972ae417ef3b1d33d9dafef54345a9582e0b19179c740cdf7f1227fdcb3e79fe71321bffa8a2d377a36
7
- data.tar.gz: dc22a5389000dd5b16c5ef1f6e197cac6098a29f8ece4304a22a3b3ea98adeb625e104fc6ecf6eb52f69c064dfcebd41ff7181a9371117eae623debdff532b67
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 HTTP_USER and HTTP_PASSWORD instead of GITHUB_USER and GITHUB_TOKEN
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 HTTP_USER=username` and `HTTP_PASSWORD=secret` and *Zeta* will use that. If you host on github, then use your github username as `HTTP_USER` and generate an API token to use as the `HTTP_PASSWORD`.
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 ||= new(verbose: true)
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['HTTP_PASSWORD'].blank? ? url : url.sub(ENV['HTTP_PASSWORD'], '***')
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['HTTP_USER']
56
- p = ENV['HTTP_PASSWORD']
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
@@ -1,3 +1,3 @@
1
1
  class Zeta
2
- VERSION = "0.7.4"
2
+ VERSION = "0.9.0"
3
3
  end
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.7.4
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-16 00:00:00.000000000 Z
11
+ date: 2015-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake