zeta 0.2.5 → 0.3.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: 332c4c04e173a5ca9b3e1735e865c0b396791076
4
- data.tar.gz: 2e55416065c24e91fa7317a65da8f98d4025353b
3
+ metadata.gz: 02f15040a2acf0e5a0b85b9d5a3aa02ff61e3aa4
4
+ data.tar.gz: e5c2e9bbc3751567af03ef034b90f9e715672710
5
5
  SHA512:
6
- metadata.gz: 2fa4f37b8b19938103f9cf33233475684b756eb8b3d72a2d53a97b95ea1a2114c0dbe0ad5f8dad4808c25ce77a829c4f89172265757fd04d4b3e512de3681d9c
7
- data.tar.gz: 2b25dd75a9bf73dfc5e87129ae5b5560428cdc4967218f34bdfc2e33d56eeae686fd059aa82885827de543a11bedc805975b03510345efe8c3d9d2c0abce7499
6
+ metadata.gz: fc605fed51ad16edcc90c4ed90bba8cd967c2a1b169d6ff2b5b558cd10886d4a51b31a5ec7a9b09bbdfecbb1421425e9d23dba457a55241d38287a81642e8fa0
7
+ data.tar.gz: 8ed946c7a676e81c3d36a99bdb7b904498f1c71138c7b4c5ccd229485832f84a245bc8f9c38a5f6f98fe008a101e8ef99036183aa139ac1e811ba73557869963
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.3.0 (29-Oct-15)
2
+ - forward published/consume object validation method to the current service in the infrastructure
3
+ - forward wrapped consume object creation to the current service
4
+
1
5
  # 0.2.5 (28-Oct-15)
2
6
  - better CLI help
3
7
  - update lacerda version
data/lib/zeta/instance.rb CHANGED
@@ -91,6 +91,30 @@ class Zeta
91
91
  @config = env_config
92
92
  end
93
93
 
94
+ def validate_object_to_publish!(type, data)
95
+ current_service.validate_object_to_publish!(type, data)
96
+ end
97
+
98
+ def validate_object_to_publish(type, data)
99
+ current_service.validate_object_to_publish(type, data)
100
+ end
101
+
102
+ def validate_object_to_consume!(type, data)
103
+ current_service.validate_object_to_consume!(type, data)
104
+ end
105
+
106
+ def validate_object_to_consume(type, data)
107
+ current_service.validate_object_to_consume(type, data)
108
+ end
109
+
110
+ def consume_object(type, data)
111
+ current_service.consume_object(type, data)
112
+ end
113
+
114
+ def current_service
115
+ @current_service ||= infrastructure.services[config[:service_name]]
116
+ end
117
+
94
118
  private
95
119
 
96
120
  def verbose?
data/lib/zeta/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Zeta
2
- VERSION = "0.2.5"
2
+ VERSION = "0.3.0"
3
3
  end
data/zeta.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_runtime_dependency 'rake', '~> 10.2'
22
- spec.add_runtime_dependency 'lacerda', '~> 0.3.2'
22
+ spec.add_runtime_dependency 'lacerda', '~> 0.5'
23
23
  spec.add_runtime_dependency 'activesupport'
24
24
  spec.add_runtime_dependency 'httparty', '~> 0.13'
25
25
  spec.add_runtime_dependency 'colorize'
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.2.5
4
+ version: 0.3.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-10-28 00:00:00.000000000 Z
11
+ date: 2015-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.3.2
33
+ version: '0.5'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.3.2
40
+ version: '0.5'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activesupport
43
43
  requirement: !ruby/object:Gem::Requirement