prima-twig 0.51.4 → 0.51.5

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
- SHA256:
3
- metadata.gz: 135606e3a68854615c218153a0856970f5cd17e8934786c28e07162390da58e8
4
- data.tar.gz: ebec3292ffe6934f69dabba4f1b6f4ebe64645fae8aa98edf9eb3af36f95b2e0
2
+ SHA1:
3
+ metadata.gz: c2c9a964d6f6f02c173a4a1067435ee8535b1c67
4
+ data.tar.gz: a5af6dacb7e741ab6de9d74faffb0ad5aa077cf5
5
5
  SHA512:
6
- metadata.gz: a9b8fc7dec72f9df40f9ea2a6577d4a5d7e60da38b1755c953805c2a0cbd971c7fbc74106833f8617c09d0ee780af8e9e3c676fd94b6d49777dc427e3c6bdc91
7
- data.tar.gz: e2e53418f2dc3ac8523a623808a95d0ea0d3dadb3796907b78820618ddab8d14766e8b9263d0bf9972011764b3e3c6860ba8c346c12c0b6b4d5a1351922802a1
6
+ metadata.gz: 66377a80b95a0dd84f5c15d246facc6f3be89412da6fd2121f21fad757befad6e38e84ff076591c0d8be78261f40945aa967a1d0dc05a1919e0598b6d715d0ca
7
+ data.tar.gz: 006721356a536f86020c05fe6473e2cab49f7e36c6e413043edbb7868290dc2aed2201928ac17b153a6e1e5fd291f510bc93fa99a651f0950bada99cca5cd576
data/bin/twig-deploy CHANGED
@@ -142,9 +142,23 @@ class Review
142
142
  mail.delivery_method(:smtp, opts)
143
143
  mail.deliver
144
144
 
145
+ invalidate_prismic_cache
146
+
145
147
  exec_step "terminal-notifier -message 'Deploy terminato'" if which 'terminal-notifier'
146
148
  end
147
149
 
150
+ def invalidate_prismic_cache
151
+ [
152
+ "guarantee",
153
+ "glossary",
154
+ "guide",
155
+ "faq"
156
+ ].each do |page|
157
+
158
+ exec_step "curl -X POST -H \"Content-Type: application/json\" https://www.prima.it/api/cms/update/#{page}?apikey=#{@prima.config['prima_apikey']}"
159
+ end
160
+ end
161
+
148
162
  def reload_parameters!
149
163
  artifact_rev = ''
150
164
  resp = @cf.describe_stacks({
data/bin/twig-feature CHANGED
@@ -2207,6 +2207,9 @@ class Release
2207
2207
  '-c' 'mix local.hex --force && mix hex.info && \
2208
2208
  mix deps.get && mix compile && mix deps.compile && \
2209
2209
  mix phx.digest && \
2210
+ mix compile.sms && \
2211
+ mix compile.html && \
2212
+ mix compile.heml && \
2210
2213
  rm -rf _build/qa/rel/ && \
2211
2214
  mix release --env=qa'"
2212
2215
  ].each do |cmd|
data/lib/prima_twig.rb CHANGED
@@ -13,7 +13,7 @@ class Prima
13
13
  LABEL_HOTFIX='hotfix'
14
14
  LABEL_NEXT_RELEASE='next release'
15
15
  LABEL_IN_STAGING='in staging'
16
- CONFIG_KEYS=['github', 'mandrill', 'sparkpost', 'cloudflare_email', 'cloudflare_apikey', 'aws_username', 'aws_password']
16
+ CONFIG_KEYS=['github', 'mandrill', 'sparkpost', 'cloudflare_email', 'cloudflare_apikey', 'aws_username', 'aws_password', 'prima_apikey']
17
17
  attr_reader :gh, :twig, :config, :rugged, :aws
18
18
 
19
19
  def initialize
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prima-twig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.51.4
4
+ version: 0.51.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino
@@ -214,7 +214,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
- rubygems_version: 3.0.1
217
+ rubyforge_project:
218
+ rubygems_version: 2.5.2.3
218
219
  signing_key:
219
220
  specification_version: 4
220
221
  summary: The Prima twig toolbelt