alephant-publisher 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alephant/env.rb +3 -1
- data/lib/alephant/publisher/version.rb +1 -1
- data/lib/alephant/publisher/writer.rb +13 -7
- 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: f7a546293bdb650ca60f791e611b1194265844d9
|
4
|
+
data.tar.gz: d057c5d138bf919c99b380d4d6c95f5e9da53a52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b5dc9fe8145b15ff5770edbf654d579922d701bd8e2d6c1deeecdabbe7048bf921463d5fd562aa70ef8675472516b583df011b2cb34f4cc41edb1161fb11f59
|
7
|
+
data.tar.gz: 30c91c4e2d1fac07504c82991f4f93e67b36accfd59901f0e5c7808f9e97b9b8068c0cf78eac6fdb20b0d0f1d8f48088834551230eaac5d8554f3be50498535b
|
data/lib/alephant/env.rb
CHANGED
@@ -19,20 +19,26 @@ module Alephant
|
|
19
19
|
def initialize(config, message)
|
20
20
|
@config = config
|
21
21
|
@message = message
|
22
|
+
end
|
23
|
+
|
24
|
+
def mapper
|
25
|
+
@mapper ||= RenderMapper.new(
|
26
|
+
config[:renderer_id],
|
27
|
+
config[:view_path]
|
28
|
+
)
|
29
|
+
end
|
22
30
|
|
23
|
-
|
31
|
+
def cache
|
32
|
+
Cache.new(
|
24
33
|
config[:s3_bucket_id],
|
25
34
|
config[:s3_object_path]
|
26
35
|
)
|
36
|
+
end
|
27
37
|
|
28
|
-
|
38
|
+
def parser
|
39
|
+
@parser ||= Support::Parser.new(
|
29
40
|
config[:msg_vary_id_path]
|
30
41
|
)
|
31
|
-
|
32
|
-
@mapper = RenderMapper.new(
|
33
|
-
config[:renderer_id],
|
34
|
-
config[:view_path]
|
35
|
-
)
|
36
42
|
end
|
37
43
|
|
38
44
|
def run!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alephant-publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Integralist
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|