zeta 0.9.0 → 0.10.0

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: 6bb0b15ff465a367dd3a3f41e6d01df8c20e9ce6
4
- data.tar.gz: 6bbee27670bc83554c7fba07c1a700b3b4004b8e
3
+ metadata.gz: 8b5e908506772595d20fc1d1792e3769a34582f9
4
+ data.tar.gz: c533f99341f47de3c7921f6a73f7128a0e56582d
5
5
  SHA512:
6
- metadata.gz: b5fa86b752b1bccbee4ab73a22fc20d575a76c2bd0e07b75f9789185cd33b9c9c4d226a0ea334db67b5d4e23d98dbf2681c8c6bfd45628397e688790aaac6530
7
- data.tar.gz: 11608be932e00e42a4a0f47a61e5050969e6bffd7ab91fac446d4805a1797bb8d3609835e7e353ccfc9a51b786099dca2e5a685f4b2209d6a86543a09c968f68
6
+ metadata.gz: 0ccb8f8477e702f9a472aa88e832781e14281c0401799a33c698278ab2a1fe460ff2c327705e35094122f2a90b1db2f9e20ec1922afc16bde1e991f3d660a48d
7
+ data.tar.gz: eb6521417057a4c5040d3187d82b672f0fec7a45d5eda43f7c002d1950bde48a50bbfc98e876512328a64caa1665bde58de80c3ca25e797f821d2e389244bb5d
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.10.0
2
+ - the Zeta singleton will only transform its own contracts after it's
3
+ initialized, but not fetch remote contracts as this is not necessary
4
+ at runtime see [#15](https://github.com/moviepilot/zeta/issues/15)
5
+
1
6
  # 0.9.0
2
7
  - change http basic auth env vars to ZETA_HTTP_USER and ZETA_HTTP_PASSWORD
3
8
 
data/lib/zeta.rb CHANGED
@@ -15,8 +15,16 @@ class Zeta
15
15
  send_args = [method, args].flatten.compact
16
16
  MUTEX.synchronize do
17
17
  unless @singleton
18
+ # Create a Zeta singleton
18
19
  @singleton = new(verbose: true)
19
- @singleton.update_contracts
20
+
21
+ # Copy the current service's specifications to cache dir
22
+ @singleton.update_own_contracts
23
+
24
+ # Convert current service's specifications so published and
25
+ # consumed objects of this service can be validated at
26
+ # runtime
27
+ @singleton.infrastructure.convert_all!
20
28
  end
21
29
  @singleton.send(*send_args)
22
30
  end
data/lib/zeta/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Zeta
2
- VERSION = "0.9.0"
2
+ VERSION = "0.10.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.9.0
4
+ version: 0.10.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-17 00:00:00.000000000 Z
11
+ date: 2015-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake